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

Function Module READ_TEXT

Former Member
0 Likes
626

Hi,

I created a standard text in SO10.

My standard text is as follows:

You have the opportunity to sell part &LV_MATNR& of Quantity &LV_QTY& . Please confirm the opportunity.

In my program i read this text using FM READ_TEXT. Before reading the text my code is :

loop at itab into watab.

lv_mantr = watab-matnr.

lv_wty = watab-qty.

call READ_TEXT.

ENDLOOP.

now if i display the text in debugging mode i dont see the value of lv_matnr and lv_qty.

this is not an SCRIPT but a program.

can any one help me in passing the value dynamically in every loop pass.

now i send this text as an email using FM SO_NEW_DOCUMENT_SEND_API1.

Thanks,

Challa.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
555

In this program there is no connection b/t READ_TEXT and other variables..Please tell ur exact requirements and post actual code..

3 REPLIES 3
Read only

Former Member
0 Likes
556

In this program there is no connection b/t READ_TEXT and other variables..Please tell ur exact requirements and post actual code..

Read only

0 Likes
555

txt

Edited by: challa bhaskar on Mar 31, 2010 4:47 PM

Read only

Former Member
0 Likes
555

You could do this:

In your program:

Concatenate 'You have the opportunity to sell part ' LV_MATNR 'of Quantity ' LV_QTY '. Please confirm the opportunity.' into OBJECT_CONTENT-line.

then call SO_NEW_DOCUMENT_SEND_API1. The object type is 'Raw'.

Make sure the user that is sending the document outside of the SAP system has an internet mail address set up in their user information.