cancel
Showing results for 
Search instead for 
Did you mean: 

Page selection at runtime

Former Member
0 Kudos

Hi all,

I have created a smart form which have 3 pages.

I have made one selection screen in the driver program which have 3 radio buttons. Now I want that when the user selects the first radio button, only the first page should get printed, if the user selects second radio button, only page 2 should be printd.

How to do this.

I have the following coding :

selection-screen begin of block b2 with frame title text-001.

selection-screen begin of line.

selection-screen comment 3(30) text-007.

selection-screen end of line.

selection-screen begin of line.

selection-screen comment 5(30) text-004.

parameter p1 radiobutton group pg.

selection-screen end of line.

selection-screen begin of line.

selection-screen comment 5(30) text-005.

parameter p2 radiobutton group pg.

selection-screen end of line.

selection-screen begin of line.

selection-screen comment 5(30) text-006.

parameter p3 radiobutton group pg.

selection-screen end of line.

Selection-screen end of block b2.

Thanks

Ribhu

Accepted Solutions (1)

Accepted Solutions (1)

Peter_Inotai
Active Contributor
0 Kudos

In the generated FM you have parameter OUTPUT_OPTIONS-TDPAGESLCT, which is for "Pages selected for printing".

You have to call FM 'SSF_FUNCTION_MODULE_NAME' to get the generated FM name, then call this FM dynamically with the mentioned parameter.

Peter

Former Member
0 Kudos

Hey peter,

Its not showing up the respective page. If i pass this variable, it shows all the pages and not the selected ones. Can you elaborate with an example how to pass the page number?

Thanks

Ribhu

Answers (0)