Skip to main content
Question

External File Template - ApiApi Before Unpack and Api After Unpack

  • April 8, 2025
  • 1 reply
  • 11 views

Forum|alt.badge.img

Hello All,

 

Can anyone help, how to use Api Before Unpack and Api After Unpack in package option in external file template input file in ifs aurena.

Forum|alt.badge.img+10
  • Hero (Employee)
  • April 8, 2025

IFS documentation gives following information:

https://docs.ifs.com/techdocs/24r1/030_administration/030_integration/330_ifs_applications_business_components/190_ext_files_i/#external_file_template_-_information_on_tab_input_files

 

Api Before Unpack Specifies a method to be called before the file is unpacked. This method can be a method that modifies loaded data so it can be handled by the normal unpacking routine.
There is one "standard" method that can be used: External_File_Utility_API.Merge_File_Lines (<file_line LIKE ':6%'>).For this method the parameter is a condition to use in the methods SQL statement

All records selected are regarded as "master" records. All other records between these "master" records are merge to the "master" record.

There is also one other "standard" method that can be used: External_File_Utility_API.Merge_File_Skipped_Lines

All lines are checked according to control rules specified in External Files Control page.

All lines that not fulfill these rules, are merged to the first record before the line. (Useful for XML files)

Any Procedure with following parameters can be used,

Some_API.Method(
info_ IN OUT VARCHAR2,
load_file_id_ IN NUMBER )

The two parameters info_ and load_file_id_ are mandatory. It's possible to have 3 optional parameters.
Api After Unpack Specifies a method to be called after the file is unpacked. This method can be a method that modifies loaded data that can't be done by the normal unpacking routine.

 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings