cancel
Showing results for 
Search instead for 
Did you mean: 

Can we write subroutine or in the script text editor

Former Member
0 Kudos

Can we add Include program or subroutine in the script editor

Normally we create includes and add that includes in the standard driver program

But my requirement is i dont want to modify the standard program i want to modify the script only to change the layout and to extract some additional fields

Can anyone help me regarding this

Accepted Solutions (1)

Accepted Solutions (1)

former_member196280
Active Contributor
0 Kudos

Yes, you can call subroutine from SAPscript.

Go through this example

Ex.

/: PERFORM <Subroutine name> IN PROGRAM <subroutine prog name>

/:USING &<field name>&

/:CHANGING &<field name1&

/:ENDPERFORM

Then create subroutine pool program and you have to write the code.

FORM ><subroutine name> tables int_cond structure itcsy

outt_cond structure itcsy.

data : value(20), value1(20). "do your own declarations

Read int_cond table index 1.

value = int_cond-value.

value1 = value1 + value.

Read outt_cond table index 1.

outt_cond-value = value1.

Modify outt_cond index 1.

ENDFORM.

Just rough idea given above.

Regards,

SaiRam

Former Member
0 Kudos

Thank you Sai ram

Answers (1)

Answers (1)

Former Member
0 Kudos

Check out this related threads