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: 

scripts general doubt

Former Member
0 Kudos

Hi ALL,

I have a generaldoubt, i have noticed that in the text elements of sap scripts in windows, i see only the standard elements like

<b>/:POBOX &LFA1-PFACH& CODE &LFA1-PSTL2&

/:CITY&LFA1-ORT01&, &LFA1-ORT02&

/:POSTCODE &LFA1-PSTLZ&</b>

Is there any particular reason.

I see in driver program the data is in internal table then its assigned to standard fields

This is part of driver program it coded before a write program ,

<b>mabdr-lgpbe = itab_resb-lgpla.

mseg-ebeln = itab_resb-ebeln.

mseg-erfmg = itab_resb-erfmg.

mseg-erfme = itab_resb-erfme.</b>

i checked by passsing internal table fields in the scripts.

like this

<b>/:POSTCODE &itab-PSTLZ&</b>

I was thinking there might a reason for doing so.

If you guys have an idea please let me know.

Thanks

1 ACCEPTED SOLUTION

abdul_hakim
Active Contributor
0 Kudos

hi

text symbols and other symbols will be diplayed as what you are seeing.

Note your driver program will supply the value for the program symbol.

Cheers,

Abdul Hakim

6 REPLIES 6

abdul_hakim
Active Contributor
0 Kudos

hi

text symbols and other symbols will be diplayed as what you are seeing.

Note your driver program will supply the value for the program symbol.

Cheers,

Abdul Hakim

former_member182371
Active Contributor
0 Kudos

Hi,

In SAP HELP the documentation says that for the address there is a standard command:

/: ADDRESS

.....

/: ENDADDRESS

This command formats the address according to the postal standards of the destination country.

The reason for using both standard ddic fields or internal tables can be multiple. Just consider a sapscript form where you have to show the address not only of the sender but the receiver.

The values of both may be found in the same table but you could show the values of the sender´s address in standard ddic fields and the values of the receiver´s address in an internal table.

Best regards.

0 Kudos

can you be little bit more clear

Thanks

Former Member
0 Kudos

hi,

in general in Scripts standard driver programs data is fetched into the Structures not into intertables, and those structures data is passed into Print program.. by using loops... ie in most print programs(standard) structures are used to display the data... in order to understand this carefully observe the driver program(standard) how data is fetched...

Regards

Ashok P.

0 Kudos

Hi ,

I have seen programs in which the data is retrieved in to internal tables ans then passed to standard fields.

mseg-rsnum = itab_resb-rsnum.

mseg-matnr = itab_resb-matnr.

then mseg-rsnum and mseg-matnr are used in scripts.

If i use utab_resb-rsnum and itab_resb-matnr instead of

mseg-rsnum and mseg-matnr would that be wrong or any disadvantage.

Thanks

0 Kudos

HI KAJOL,

I DONT THINK THERE WILL BE ANY PROBLEM.

BUT CHECK THE CONDITION ON WHICH THE ITAB DATA IS MOVED TO THE MSEG STRUCTURE.