cancel
Showing results for 
Search instead for 
Did you mean: 

Idoc to file creation

former_member223432
Participant
0 Kudos

Hi I am working on IDOC to file sceanrio,

in my file structure, I have Subheader under this i have detail node.

now, depending upon the existenc of one of the idoc field i have to populate Subheader node.

i.e. if TDLINE field from source idoc exist then SUbheader node shoould come if not it shouldnt come..since my detail node is under this subheader node.even this is getting suppressed or deleted whenever therz no entry in TDLINE field which should not happen..

Irrespective of SUBHEADER node exist or not DETAIL node should come...

Can someone help me in acheiving this.

Regards

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi ,

TDLINE -> exists----> IF (true) -


> createIf -


> SUBHEADER

else(false) -


createIf -


> DETAIL

If TDLINE exists then you can create the SUBHEADER node and if TDLINE does not exist you need to creat only DETAIL node.

You can check the below link for help :-

http://help.sap.com/saphelp_nw04/helpdata/en/1f/ea0fb12403844bbb6c4cbc8a00cda9/frameset.htm

Regards,

Rohit

Former Member
0 Kudos

Hi

as you want to create target field depending on existence of source field.. following is the step..

use combination of function "createIf" and "exists".. and map it to target field.

Check first existence of source field by using "exists" then use "createif" and in condition map this to target field.

Thanks,

Bhupesh

rajasekhar_reddy14
Active Contributor
0 Kudos

Use node function createif function Subheader whenever TDline present in source.