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: 

Regarding sending line items via email

former_member242166
Participant
0 Kudos

Hi experts,

how can i send invoiced line items to customer mail id. I am fetching the all line items but i cant transport into a single variable ( i.e  lt_mailtxt ).  I know the working functionalities of  Function Module   SO_NEW_DOCUMENT_SEND_API1. 

How can i transport all line items into that It_mailtxt variable.I can transport last line item only.

My Code

select fkimg arktx kzwi1 from vbrp into (fkimg1,arktx1,kzwi11) where vbeln = docno.

t1 = arktx1.

t2 = fkimg1.

t3 = kzwi11.

concatenate t1 cl_abap_char_utilities=>horizontal_tab t2 cl_abap_char_utilities=>horizontal_tab t3 into t4.

endselect.

It's transporting the last line item only. Please give some help.

Regards,

Linganathan

2 REPLIES 2

former_member242166
Participant
0 Kudos

Please can anyone Help me for my query.

Thanks and Regards,

Linganathan.K

0 Kudos

Hi Linganathan,

Please refer the program BCS_EXAMPLE_7.

Thanks and Regards,

Nilesh