Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

print one record in one page of smartform

Former Member
0 Kudos

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?

5 REPLIES 5

ipravir
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

can you please give some example of print the records using open_form and close_form?

ipravir
Active Contributor
0 Kudos

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.

former_member182915
Active Contributor
0 Kudos

hi,

page break after particular count

former_member182915
Active Contributor
0 Kudos

To restrict manually  the number of records displayed per page we can use COMMAND.

in scn have a example.

Page Break in SMARTFORMS - ABAP Development - SCN Wiki