cancel
Showing results for 
Search instead for 
Did you mean: 

create multiple file names

elton_w
Explorer
0 Kudos
298

Hi Experts,
I have one new requirement.
there is one flat file which contains multiple records file name is ABCD.txt which is placed in the sourec directory.
One of the description field input value is blank then this record should create another file name of EFGH.txt in the target directory.
if the description input value is available then the same input file name ABCD.txt created in the target directory.
But both the output files will be maintained in the same target directory.
graphical mapping.

Please give any solution for doing this using SAP PO.

thanks and Regards

Elton

Accepted Solutions (0)

Answers (2)

Answers (2)

Muniyappan
Active Contributor
0 Kudos

You dont need to do interface split here. instead use the dynamic configuration. do the condition check in UDF and set the name accordingly.

http://sapintegrationhub.com/pi-po/udf/dynamic-file-name-udf-sap-pi/

creating two interfaces and doing split will be like doing more work.

PRAGSMATIC
Participant
0 Kudos

1. read the flat file and do a content conversion. The file data will be XML

2. Add a interface split based on Description field, and check EX(//Desciption). If yes, then route to an interface have EFGH.txt file , else ABCD.txt file.

Regards,

Anurag

elton_w
Explorer
0 Kudos

Hi Anurag,

Please explain technically that will be more helpful.

regards

Elton

elton_w
Explorer
0 Kudos

Could you please explain more technically.

Add a interface split based on Description field, and check EX(//Desciption). If yes, then route to an interface have EFGH.txt file , else ABCD.txt file.