on 05-28-2009 2:18 PM
Hi experts..
I am working on SCRIPTS.
I have one internal tabl.
I want to generate PAGE-BREAK depending upon 3 fields.
How to generate page break.
assume those fields as Field1, Field2, field3.
thanks
Hi ,
I think start_form is not neccesary. but try that FM with no form name ,then it will consider the previously activated form.
Thanks,
suma.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
write below code in the driver program.
sort itab by field1 field2 field3.
LOOP AT ITAB.
AT NEW field3.
CALL FUNCTION 'CONTROL_FORM'
EXPORTING
COMMAND = 'NEW-PAGE LIST' " LIST would be the new page
EXCEPTIONS
UNOPENED = 1
UNSTARTED = 2
OTHERS = 3.
ENDAT.
ENDLOOP.
Thanks,
Suma.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In your driver program you can call the FM CONTROL_FORM to generate a new page.
LOOP AT ITAB.
ON CHANGE OF ITAB-FIELD1.
CALL FUNCTION 'CONTROL_FORM'
EXPORTING
COMMAND = 'NEW-PAGE LIST' " LIST would be the new page
EXCEPTIONS
UNOPENED = 1
UNSTARTED = 2
OTHERS = 3.
ENDON.
ENDLOOP.
Regards,
Naimesh Patel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.