|
TABLES : ZPACK,ZTRN.
DATA: BEGIN OF ITAB OCCURS 0,
DATA MVAR(12) TYPE C.
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
SELECT * FROM ZPACK INTO CORRESPONDING FIELDS OF TABLE ITAB WHERE
CALL FUNCTION 'OPEN_FORM'
DO 4 TIMES. MCTR = 100000 + SY-INDEX.
DO 80 TIMES.
ENDDO. SORT ITAB BY ZPKSLIP_NO ZCARTON_NO. CALL FUNCTION 'START_FORM'
LOOP AT ITAB. AT NEW ZPKSLIP_NO. CALL FUNCTION 'WRITE_FORM'
ENDAT. CALL FUNCTION 'WRITE_FORM'
AT END OF ZPKSLIP_NO. CALL FUNCTION 'END_FORM'. CALL FUNCTION 'START_FORM'
ENDAT. ENDLOOP. CALL FUNCTION 'END_FORM'. CALL FUNCTION 'CLOSE_FORM'.
In sap script write :
SAPscripts Tips by : Rajiv Singh |
|
Fast Links:
ABAP Books
SAP Scripts Tips
Best regards,
All the site contents are Copyright © www.erpgreat.com
and the content authors. All rights reserved.
|