Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Extract Field from file

Hai Experts,

I have a scenario in which i am collecting IDOCS(900-1000 number) in the form of a file (as given in Steffans Blog).

File adapter picks up this file and posts this file to target.

My requirement is to extract a field value from this file .This field value is unique for all the 900-1000 IDOCs collected(into the file).Before posting the file at target i have to add this field as a header to the file.

for eg:if all the IDOCs collected has a unique field called ACKKEY and has a value PET500, my target file should have the header field at top as


followed by the contents of the field.

Should i write a user defined function for this?or is there any other way?

If i have to write any user defined function for this what is it to be(i dont know much about how to write java code)?

I will award points for sure

Former Member

Helpful Answer

Not what you were looking for? View more on this topic or Ask a question