Application Development and Automation 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: 
Read only

Insert item texts with iDoc

Former Member
0 Likes
1,160

Hi.

I have created a program that creates sales orders trought idocs. I have problems inserting item line text. (header text is no problem).

I have tried some code found on other posts, but no result yet. This is my last version of the code (edited to fit the post):

  • E1EDPAD

l_e1edpad-qualf = '001'.

  • E1TXTH1

l_e1txth1-tdid = '0001'.

l_e1txth1-tdspras = sy-langu.

l_e1txth1-tdobject = 'VBBP'.

  • E1TXTPI

l_e1txtp1-tdline = 'This is a comment'.

Can anyone please point out whats wrong?

1 ACCEPTED SOLUTION
Read only

sridhar_k1
Active Contributor
0 Likes
874

Use segments E1EDPT1, E1EDPT2 for item text.

Regards

Sridhar

Hi.

I have created a program that creates sales orders trought idocs. I have problems inserting item line text. (header text is no problem).

I have tried some code found on other posts, but no result yet. This is my last version of the code (edited to fit the post):

  • E1EDPAD

l_e1edpad-qualf = '001'.

  • E1TXTH1

l_e1txth1-tdid = '0001'.

l_e1txth1-tdspras = sy-langu.

l_e1txth1-tdobject = 'VBBP'.

  • E1TXTPI

l_e1txtp1-tdline = 'This is a comment'.

Can anyone please point out whats wrong?

3 REPLIES 3
Read only

sridhar_k1
Active Contributor
0 Likes
875

Use segments E1EDPT1, E1EDPT2 for item text.

Regards

Sridhar

Read only

0 Likes
874

That solved the problem:)

Thanks!

Read only

0 Likes
874

when i have 2 or more lines in my sales order i get all comments on each line. (i.e. comment line1, comment line2... on each of the lines) How can I get the comments to come 1 on each line?

/ja