Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Sales Order Item Text not getting saved in Inbound ORDERS05 IDOC

Former Member
0 Kudos

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.

4 REPLIES 4

Former Member
0 Kudos

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

0 Kudos

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.

0 Kudos

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.

0 Kudos

Hi Vamshi,

Thanks for posting the solution for this. I had the same issue and could resolve this! Thanks again.

Regards,

Raghav