cancel
Showing results for 
Search instead for 
Did you mean: 

stadard sapscript

Former Member
0 Kudos

Moved to correct forum by moderator

hi all

customer invoice report

I need to modify stadard script without touching the standard pbm,

linitem description amount

001 short text 1000

002 Gst % 100

subtotal 1100

003 customer advance

pay - 200

total 900

Edited by: Matt on Dec 28, 2008 1:48 PM

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi,

you can perform all your calculation in the program to calculate description amount and customer advance by passing variable via script.

Former Member
0 Kudos

Hi

u can do ur calculation in subroutine prog....hence no need to touch the std prog....the Logic is we send our variables form Layout(form)to subroutine prog and there we process them and agai send back to form vai another variable.

former_member196280
Active Contributor
0 Kudos

Yes, this can be done.. there is no need to modify the standard driver program. Thing you have to do is to call the sub-routine pool in your SAPscript.

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

matt
Active Contributor
0 Kudos

Please ask it in the correct forum. ( Moved now )

former_member181995
Active Contributor
0 Kudos

Do it with [subroutine pools|https://www.sdn.sap.com/irj/scn/advancedsearch?query=subroutine+pools&cat=sdn_all].