cancel
Showing results for 
Search instead for 
Did you mean: 

Sapscript modification

Former Member
0 Kudos

Hi frnds,

i need the steps fo the following.

How to add a new field in SAPSCRIPT.

regards,

sanjay

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Perform and Endperform is useful to call subroutine which is written in another ABAP Program.

If you want to display the value of one field which is not available in the standard Script program, then u can use this method.

Former Member
0 Kudos

Hi,

I hope you need to print a new field in the output.

You need to find exact location where the value need to be printed.

Then before that you need write External subroutine to paopulate the vairable.

Then you need to use the vairable to print the data in the output.

Sample code:

this below code need to be written in SAP Scripts.

/: Peroform Z_GET_VALUE In PROGRAM ZTEST1

/: USING &VBAK-VBELN&

/: CHANGING &Z_VALUE&

The below code need to be written in the program ZTEST1.

Form Z_GET_VALUE using in_tab like ITCSY structure

out_tab LIKE ITSCY structure.

In_tab will have the Using parameters field name and its value.

Out_tab will have the changing parameters field name and its value.

so you need to write the code, to got the data based on the In_tab table dat.

and modify the out_tab table.

Rgds,

Hemanth

Former Member
0 Kudos

to add a field to SAPScript just enter the field name

in any of he windows as <b>&itab-<f>&</b>

refer thread for perform...

kishan negi

Former Member
0 Kudos

i mean what we do using perfform endperform,

like by using ITCSY Structure.

regards,

sanjay

Former Member
Former Member
0 Kudos

we can write the custom code in the form

by using this perform statement.

Example

Suppose you have a Material Number. If you want to know the Material group for a perticular material and print that material group also.

use the following statement

Perform 'formname' in Program Programname(Z***) using Matnr changing MATKL(Material group )

Ennd perform.

after end perform u can use the MATKL for printing.

U\now create a subroutine pool progrm by using se38.

the Program name is 'Z******'

Form

read the material group by using the ITCSY structure

select the material group by using that material number

then update the ITCSY structure by using the material group.

Endform

thanks

Sekhar

Message was edited by:

Lakshmi Sekhar Reddy