07-03-2015 8:28 AM
hello experts,
i create an alv program with smartform. now when i select one record it will print one record.
but when i select multiple records from alv it should display in different pages.
i mean one record should display in one smartform page and second record should display in second page.
so is it possible or not?
and is it possible that smartform page1 all content is copy in page2?
07-03-2015 8:46 AM
Hi,
Use OPEN_FORM and CLOSE_FORM function module to display one information in one page and other one in next page.
Google with these function module, you will get lots of link with sample example.
For you, logic would be.
CALL FUNCTiON OPEN_FORM.
Loop at internal_table.
CALL FUNCTION 'SMART_FORM' with return parameters from OPEN_FORM.
endloop.
CALL FUNCTION CLOSE FORM.
Regards,
Praveer.
07-03-2015 10:18 AM
can you please give some example of print the records using open_form and close_form?
07-03-2015 10:30 AM
Hi Chirag,
You can refer a demo program from you SAP system.
which has explain OPEN_FORM and CLOSE_FORM functionality with SAP screen.
The main purpose of these two FM, to get the print preview pop-up window one time and based on the preview setting call your Smart Forms.
Program Name : RSPOPOSS_TEST
Note: the above demo is in script, but you can get the idea of FM's.
Regards,
Praveer.
07-03-2015 8:49 AM
07-03-2015 8:51 AM
To restrict manually the number of records displayed per page we can use COMMAND.
in scn have a example.