02-07-2011 6:30 PM
Hi:
I am creating a sales order from an Inbound IDOC. I am using standard Function Module IDOC_INPUT_ORDERS. I am populating sales order item text in E1EDPT1 and E1EDPT2. However the Item text is not getting saved where as the header text is getting saved in order.
E1EDPT1-TDID = 'Z001'.
E1EDPT1-TSSPRAS = 'E'.
E1EDPT1-TSSPRAS_ISO = 'EN'.
E1EDPT2-TDLINE = 'Some Value'.
E1EDPt2-TDFORMAT = '*'.
I tried debugging and found that Header and Item texts are exported in to some memory ID and from where they might get imported and texts are created.
I couldn't quite figure out where am I doing wrong. Any ideas pls?
Thanks.
02-07-2011 11:13 PM
Hi,
Did you check that the text type Z001 is setup at the sales order item level and that the text determination procedure to which it is assigned is linked to the sales order item category you are creating the item for? Maybe consult the functional analyst about this or first try to create the order manually to verify that the text id actually exits.
Kind regards,
Robert
02-08-2011 4:09 AM
Hi:
Thanks for the response.
Yeah, when I try to create an Order manually with the item category that is coming in IDOC I am able to see the Text ID's at the item level and I am even able to save some text in them.
Do you think we need to do something else somewhere? May be we need to explicitly write some additional logic in order to save the item texts.
Thanks.
02-08-2011 6:33 AM
We need to pass E1EDP01-POSEX with a value. Becuase this value is first moved to XVBAP-POSEX and then to item text segment XE1EDPT2-POSEX in PERFORM ZUORDNEN_ORDERS_E1EDPT2. of IDOC_INPUT_ORDERS.
If we do not pass anything in POSEX it will still create an item with line item number as 10 (for the first line item) as it refers to line item number from XVAB-POSNR in PERFORM ZUORDNEN_ORDERS_E1EDP01. But to create Item Text, POSEX must be passed.
Thanks.
11-22-2011 8:43 AM
Hi Vamshi,
Thanks for posting the solution for this. I had the same issue and could resolve this! Thanks again.
Regards,
Raghav