10-30-2007 3:43 AM
hi gurus,
i want functioning of TEXT ELEMENTS IN SAP SCRIPTS ...detaily...
Regards
baskar
10-30-2007 3:45 AM
Hi,
You can define the text elements in sap script to group the texts that you want to display...like a condition..
Ex..
/E TEXT1
P1 This is a first text element..
Then use WRITE_FORM function module to call the text element
CALL FUNCTION 'WRITE_FORM'
ELEMENT = 'TEXT1'.
You can also call the write_form function module within a loop..
Thanks
Naren
10-30-2007 3:46 AM
You can define text elements (window texts) for each window. On the Form: Request screen, choose Edit-> Text elements
The print program accesses text elements by name, formats them and prints them in the respective window. That is, the program can decide which text elements should be printed in a particular window. It calls these text elements by name to print them. You must therefore change text element names in the print program if you make any changes to text element names in a form.
In the layout of a text element, you can use only the paragraph and character formats defined in the form.
Example of a text element in an order confirmation:
/E ITEM_LINE
IL &VBDPA-POSNR&,,&VBDPA-MATNR&,,&VBDPA-ARKTX&
/ &'Customerarticlenumber 'VBDPA-IDNKD' '&&'Position
/ 'VBDPA-POSEX&
This example shows a section of a main window of a form, with an item line of an order confirmation. The /E in the tag column is used to identify the text as a text element, ITEM_LINE is the name of the text element.
Regards,
Raghavendra
10-30-2007 3:46 AM
Hi,
Text Elements are like pointers in a program. The print program gathers data together and calls a certain Text Element is Sapscript. this determines which information is printed out and when.
ashish
10-30-2007 4:05 AM
hi baskar,
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.
<b>Check this link(Very Helpful)</b> :
http://help.sap.com/saphelp_nw04/helpdata/en/d6/0db38b494511d182b70000e829fbfe/frameset.htm
Reward me if useful.........
Harimanjesh AN
12-26-2007 2:15 PM
hi bhaskar,
You can define text elements (window texts) for each window. The print program accesses text elements by name, formats them and prints them in the respective window. The paragraph and the character formats used must be defined in the form.
REWARD POINTS IF USEFULL.