on 03-05-2007 8:40 AM
Hi,
Any one can help me to print total amount &'$'REGUD-WRBTR(C)&,, by adding &'$'REGUD-SWABZ(C)&,,&'$'REGUD-SWRBT(C)& in scripts.
Detailed coding.
Thanks,
donald
Ramesh,
I tried in that way also, iam not able to do.
Thanks,
Donald
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi!
This is a working example from SAP. Shows you how can you exactly call a FORM from your SAPScript. You just change your variables and make the summing within your program.
Definition in the SAPscript form:
/: PERFORM GET_BARCODE IN PROGRAM QCJPERFO
/: USING &PAGE&
/: USING &NEXTPAGE&
/: CHANGING &BARCODE&
/: ENDPERFORM
/
/ &BARCODE&
Coding of the calling ABAP program:
REPORT QCJPERFO.
FORM GET_BARCODE TABLES IN_PAR STUCTURE ITCSY
OUT_PAR STRUCTURE ITCSY.
DATA: PAGNUM LIKE SY-TABIX, "page number
NEXTPAGE LIKE SY-TABIX. "number of next page
READ TABLE IN_PAR WITH KEY PAGE.
CHECK SY-SUBRC = 0.
PAGNUM = IN_PAR-VALUE.
READ TABLE IN_PAR WITH KEY NEXTPAGE.
CHECK SY-SUBRC = 0.
NEXTPAGE = IN_PAR-VALUE.
READ TABLE OUT_PAR WITH KEY BARCODE.
CHECK SY-SUBRC = 0.
IF PAGNUM = 1.
OUT_PAR-VALUE = |. "First page
ELSE.
OUT_PAR-VALUE = ||. "Next page
ENDIF.
IF NEXTPAGE = 0.
OUT_PAR-VALUE+2 = L. "Flag: last page
ENDIF.
MODIFY OUT_PAR INDEX SY-TABIX.
ENDFORM.
Regards
Tamá
Use SUMMING option....
SUMMING &'$'REGUD-SWABZ(C)& &'$'REGUD-SWRBT(C)& INTO &'$'REGUD-WRBTR(C)&...
Use this in the main window before all the statements...
this should be the first statement... in the window. (before all the text elements)
and &'$'REGUD-WRBTR(C)& should be printed onli once per 1 iteration of the whole script.
reward if it helps u.....
sai ramesh.
use ®UD-WRBTR& ®UD-SWRBT& INTO ®UD-WRBTR&...
dont use symbols in summing statement.. while printing those use symbols and textssss.....
try this ..
waiting for repliiii....
Message was edited by:
sai ramesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
call a program this way ...
[code]
perform <perform name> in program ZTEST using &'$'REGUD-SWABZ(C)& ,&'$'REGUD-SWRBT(C)& changing v&'$'REGUD-WRBTR(C)&
[/code]
in that perform do the addition operation ..
Regards,
Santosh
Message was edited by:
Santosh Kumar Patha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.