on 12-08-2008 9:57 AM
Hi All,
I need multiple copies as output from a SAPScript. But my print prog is standard and script is z.
I have to print 'Original' in the first copy, 'Duplicate in the second copy and 'Triplicate' in the thrid copy etc..
Is this possible in sapscript without changing the print program?
Thanks in advance,
Neerja
you can call perform like below
PERFORM GET_DATA IN PROGRAM YABC
USING &XYZ&
TABLES &I_TAB&
/: DEFINE &ZGW01&
/: PERFORM CALCULATE IN PROGRAM Z_CALCULATE
/: USING &AFVGD-VGW01&
/: CHANGING &ZGW01&
/: ENDPERFORM
In the program i make this:
REPORT Z_CALCULATE.
FORM CALCULATE TABLES IN_TAB structure itcsy
OUT_TAB structure itcsy.
DATA: ZGW01 LIKE AFVGD-VGW01.
Read table IN_TAB index 1.
ZGW01 = IN_TAB-VALUE * 2.
Read table OUT_TAB index 1.
MOVE ZGW01 TO OUT_TAB-VALUE.
Modify OUT_TAB index 1.
ENDFORM.
this is the repeat output.......
SELECT objky
kschl
erdat
eruhr
vstat FROM nast INTO TABLE gt_date
WHERE objky EQ gv_del_num.
IF sy-subrc EQ 0.
SORT gt_date BY objky erdat DESCENDING .
DESCRIBE TABLE gt_date LINES lv_n.
IF lv_n GT 1.
gv_repeat = lc_x.
ENDIF.
READ TABLE gt_date INTO gwa_date INDEX 1.
ENDIF.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
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.