Hi gurus,
im working on invoice billing.what should be the values for int_cond and out_cond.
please give me with good example.thanks in advance.
FORM F_GET_PRICE tables int_cond structure itcsy
outt_cond structure itcsy.
data : value type kbert.
statics value1 type kbert.
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
Rewarded with good points.
thanks and regards
sirish.
I cannot provide you a example right now but you need to define the same in SAP SCRIPT.
Define &i_total&
perform add_total in program zprogram using i_inputvalues changing i_total.
Then you can create a subroutine in your zprogram or in zinclude with the name of add_total.
then read the values using i_inputvalues and then perform your calculations and then append it to outtab value where the field name is i_total.
or check out this link
Sorry about that link.... Check this... I dont know how to redirect you to the url that i have copied this code from .
Thanks Naimesh... This is naimesh code and if you want to reward ... please reward naimesh...
DATA: W_SUM TYPE VBRP-NETWR.
START-OF-SELECTION.
CALL FUNCTION 'OPEN_FORM'
EXPORTING
APPLICATION = 'TX'
DEVICE = 'PRINTER'
DIALOG = 'X'
FORM = 'ZTEST_NP'
LANGUAGE = SY-LANGU.
DO 3 TIMES.
W_SUM = W_SUM + SY-INDEX. " << sum
CALL FUNCTION 'WRITE_FORM'
EXPORTING
ELEMENT = 'MAIN'
WINDOW = 'MAIN'.
ENDDO.
Fixed window for SUM
CALL FUNCTION 'WRITE_FORM'
EXPORTING
ELEMENT = 'LAST'
WINDOW = 'LAST'.
IF SY-SUBRC <> 0.
ENDIF.
CALL FUNCTION 'CLOSE_FORM'
Again this code copied from Naimesh message from another thread. I am sorry i didnt know how to copy the link here.
Add a comment