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: 

How to use Text elements in SAP Script

Former Member
0 Kudos

Hi all,

I have created a window and giving text elements in that window.Now i m Adding a lin of type /E in change editor to use text element.i needed it it to specify text elements in SPRO transaction.

So for that i want to add text elements in Form in SPRO transaction.

Also want to know that is it possible to use condiitons in Text elements?

Suggess me it's Urgent for implement.

Points will be sured.

Thanks

Sanket sethi

3 REPLIES 3

Former Member
0 Kudos

Hi

Text elements in SAPscript are the individual text components of a form. In the different windows, you can define text elements with different attributes. For printout, the print program accesses them. Text elements can also contain variables (symbols) and SAPscript control statements.

In simple words, Text Elements are the only way to transfer the data from report program to FORM using WRITE _FORM FM.

Check this link(Very Helpful) :

http://help.sap.com/saphelp_nw04/helpdata/en/d6/0db38b494511d182b70000e829fbfe/frameset.htm

Former Member
0 Kudos

call this funcation. crate_text.

CALL FUNCTION 'CREATE_TEXT'

EXPORTING

FID =

FLANGUAGE =

FNAME =

FOBJECT =

  • SAVE_DIRECT = 'X'

  • FFORMAT = '*'

TABLES

FLINES =

  • EXCEPTIONS

  • NO_INIT = 1

  • NO_SAVE = 2

  • OTHERS = 3

.

IF SY-SUBRC <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

Former Member
0 Kudos

This message was moderated.