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

sap script

Former Member
0 Likes
590

what are program symbols in sapscript?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
554

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

5 REPLIES 5
Read only

Former Member
0 Likes
554

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.

Read only

Former Member
0 Likes
554

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

Read only

Former Member
0 Likes
554

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

Read only

Former Member
0 Likes
554

Hi,

Fields you are capturing in your print program are ur program symbols:

which can used for output display &symbols&..

Thanks .

Read only

Former Member
0 Likes
555

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