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: 

Passing the selection screen value to the Smartform

Former Member
0 Kudos

Hi all,

i have a print program of a smartform, now i have to send the parameter p_formnumber which is of type c length 20 to the smartform interface how to do that.

i mean i have to use the value of the p_formnumber in the smartform initialization.

can any body help me in this

1 ACCEPTED SOLUTION

naimesh_patel
Active Contributor
0 Kudos

You need to add that parameter to SMARTforms Form Interface.

Go to Global data... select the Form interface tab..

Put the variable as

i_formnumber   type   char20

Now in your Program you need to do call the FM like:

CALL SMARTFORM_FM
  EXPORTING
     .....
     I_formnumber  = p_formnumber 
  IMPORINT
     ......

Regards,

Naimesh Patel

1 REPLY 1

naimesh_patel
Active Contributor
0 Kudos

You need to add that parameter to SMARTforms Form Interface.

Go to Global data... select the Form interface tab..

Put the variable as

i_formnumber   type   char20

Now in your Program you need to do call the FM like:

CALL SMARTFORM_FM
  EXPORTING
     .....
     I_formnumber  = p_formnumber 
  IMPORINT
     ......

Regards,

Naimesh Patel