cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic SO10 text

Former Member
0 Kudos

hello experts,

i want generate a Dynamic SO10 text, i dont know how to do this, i have created a popuop where the user can write his note there, and this note should be exported to the so10 text, and then send as email,

can you please tell me how can I export the note to the so10 text.

trhank you all

Accepted Solutions (0)

Answers (2)

Answers (2)

Venkat_Sesha
Advisor
Advisor
0 Kudos

Hi ,

Use the CREATE_TEXT Function Module and need to pass the details as mentioned below

Text Name ZTEXT -


> This is the Standard text Name

Language EN -


> Language which ever you want.

Text ID ST -


> Text Id should be ST if it is a Standard text

Text object TEXT -


> SAPscript standard texts

In the FM you need to pass these details

FID ST

FLANGUAGE EN

FNAME ZTEXT

FOBJECT TEXT

FLINES TD * TDLINE -->Here the lines that he writes in the popup need to be passed here.

To make sure that your Standard Text has been created you can check it in SO10 or Use READ_TEXT to read it and can check the exact lines that what he passed in your Popup. Hope this helps

Former Member
0 Kudos

but my text should set in so10, and then i have to call read_text, the question is, which attribute shall I use in so10 to get first my text there;

exampl:

Dear employee,

<my dynamic text> <-- here is my dynamic text so which attribute do this?

Kind regards

Venkat_Sesha
Advisor
Advisor
0 Kudos

If you already have a Standard Text lets say ZTEXT in SO10. And you need to edit or insert lines into it. Use the below mentioned Function Modules.

EDIT_TEXT_INLINE

READ_TEXT_INLINE

Hope this helps

Former Member
0 Kudos

Hi,

You want to pass standard text to your email?

Your email ,how are you sending it? is it an attachment of smartform?

hi, you can use FM READ_STDTEX to read the created standard text.

Edited by: sap_wiz on Jul 5, 2011 7:48 PM

Former Member
0 Kudos

hi ,

and how can I keep my fixed text?

exampl:

Dear employee, <-- how can I keep this in so10

<mytext>

Kind regards <-- how can I keep this in so10

because that fixed text will be alawys over writen by the new added lines !

Former Member
0 Kudos

Hi,

You can acheive this functionalty by using PERFORM in the STANDARD TEXT.

For Example..

In SO10 : ZTEST

/: PERFORM GET_NAME IN PROGRAM ZGETNAME CHANGING &NAME&.

/: ENDPERFORM

A3 Dear,,&NAME&

content.....

/: PERFORM GET_REGARDS IN PROGRAM ZGETNAME CHANGING &REGARDS&

/:ENDPERFORM

A3 Kindly,

A3 &REGARDS&

Former Member
0 Kudos

Hi,

You can use FM create_text to create a text in SO10.

Pass teh text from the popup to you program, and from there create the standard text by using create_text FM.

Former Member
0 Kudos

thanks for your replay,

but which attribute or parameter shall i use in so10 to get back my text? and how can I fill this FM, where shall I pass my text and what about the other parameters?