‎2007 Apr 20 7:31 AM
‎2007 Apr 20 7:50 AM
Hi Naga Mrudula,
<b>Program symbols</b>
Program symbols are for values from the ABAP print program.
For example, &VBDPA-NETWR(11)& in SAPscript code represents the value of the ABAP field VBDPA-NETWR, but as text (to be printable) and restricted to 11 characters.
Such values are not explicitly passed by the print program. A side effect of some of the SAPscript-related function calls that a print program makes seems to be that all the ABAP fields and their contents (as they are at that moment) become available for SAPscript-symbol use.
Hope this resolves your query.
Reward all the helpful answers.
Regards
‎2007 Apr 20 7:35 AM
Hi naga,
To search for program symbols in the corresponding print program, choose Include >Symbols > Program symbols. A dialog box appears, where the system may offer more than one print program. Here, you can also include new print programs.
Mark a print program and then choose the desired symbol definition (DDIC fields, Global data). The system displays a list of the fields or global data available.
Reward if useful.
‎2007 Apr 20 7:38 AM
Hi naga,
a form can be linked to one or several print programs. The global variables in these programs (and also db table declararations) are so-called "program symbols".
To access these print programs, enter transaction SE71, change the form, go to "Page Window" and edit the contents (i.e. the text) of some window. Then go to Insert > Symbols > Program symbols. Here you will see the linked print programs, and a couple of pushbuttons which link to db table declarations and to global variables.
So if you select a field of a db table or a global variable, you may insert its content into the form display.
I hope it helps. BR,
Alvaro
‎2007 Apr 20 7:44 AM
HI NAGA,
program symbol has the syntax &table-fields&
means whatever table and fields u r going to access in you script form through your print program must be assign to form under your line item in main window.
check out this code in change editor of main window.
BELOW &itab-matnr&.........so on is the program symbol.
........1........2........3........4....+....5...
/* HEADER ITEM
/: TOP
HI MATERIAL NO ,, CREATED BY ,, MATERIAL TYPE
HI &SY-ULINE(50)&
/: ENDTOP
/* LINE_ITEM
/E MATERIAL
LI &ITAB-MATNR&,,,,&ITAB-ERNAM&,,,,&ITAB-MTART&
regards*
vijay
‎2007 Apr 20 7:49 AM
Hi,
Fields you are capturing in your print program are ur program symbols:
which can used for output display &symbols&..
Thanks .
‎2007 Apr 20 7:50 AM
Hi Naga Mrudula,
<b>Program symbols</b>
Program symbols are for values from the ABAP print program.
For example, &VBDPA-NETWR(11)& in SAPscript code represents the value of the ABAP field VBDPA-NETWR, but as text (to be printable) and restricted to 11 characters.
Such values are not explicitly passed by the print program. A side effect of some of the SAPscript-related function calls that a print program makes seems to be that all the ABAP fields and their contents (as they are at that moment) become available for SAPscript-symbol use.
Hope this resolves your query.
Reward all the helpful answers.
Regards