cancel
Showing results for 
Search instead for 
Did you mean: 

Addition of new fields to SAP script

Former Member
0 Kudos

hello everybody,

can any one please help me for the following....

i would like to add some fields in a script which should be displayed in the output.

how to do that? please give me the step by step procedure.

i heard that there are r two methods.

1. using Program symbol

2.using Itcsy ,form and perform

can you please help me out by giving the step by step procedure for the above two methods please....

thanks and regards

Ram

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

Please check this link also,

Regards,

shamim

    • Reward points if it is useful.

Former Member
0 Kudos

hi

yes..u can achieve this using Program symbols and the ITCSY STRUCTURE but these has differences. Program symbols are used in the driver program which fetches the data from the database and display them on to the sap script form.

For example..

in the print program,.

declare the tables and the structures you want to use in the form.

tables kna1.

types begin of s_kna1,

kunr like kna1-kunnr,

name1 like kna1-name1,

end of s_kna1.

data t_kna1 type standard table of s_kna1 initial size 0,

w_kna1 type s_kna1.

in the form,

&w_kna1-name1& ,, &w_kna1-kunnr&

this tells u abt the program symbols.

ITCSY STRUCTURE helps u to add extra functionality in the scriptform adding a piece of code in the print program and Perform control command in the scriptform text editor.

in the form

perform zform in program zprogram

using <var1>

vhanging <var2>

in theprint program

form zform using in_var tables ITCSY STRUCTURE

out_var tables ITCSY STRUCTURE

-


-


-


endform.

this should help in developing the code.

regrds,

shamim.

amit_khare
Active Contributor
0 Kudos

Hi,

This will tell you everything about SAPSCRIPT.

<a href="http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRPROG/BCSRVSCRPROG.pdf">SAPScript</a>

Regards,

Amit

Reward all helpful replies.

Former Member
0 Kudos

amith could you pls give us step by step explanation pls....if possible.