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: 

smartform from dialog program

Former Member
0 Kudos

Hi,

Is it possible to call a smartform from a dialog program?If so,how?

3 REPLIES 3

former_member182426
Active Contributor
0 Kudos

Hi,

How do u want call your smart form.

In ur case, When ever u click a button then do u want display your smart form or in wat way?

0 Kudos

lets say u have a button on that screen called 'SHOW'

and in PAI of ur module pool program u can check the sy-ucomm value . and when sy-ucomm = 'SHOW'. (FNC CODE of that button)

u can call ur Smartform FM.

Former Member
0 Kudos

hi

Check it

In call screen 100.PAI

MODULE user_command_0100 INPUT.

CASE ok_code.

WHEN 'DISP'.

PERFORM sub_select_emp.

WHEN 'EXIT'.

LEAVE PROGRAM.

WHEN 'PRINT'. "This is push button action code

PERFORM smart_form.

ENDCASE.

form smart_form.

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

EXPORTING

formname = 'Z_SMRT_EMP' "smartform name

  • VARIANT = ' '

  • DIRECT_CALL = ' '

IMPORTING

fm_name = fm_name

  • EXCEPTIONS

.

CALL FUNCTION fm_name

EXPORTING

amt_in_words = amt_in_words

TABLES

it_fin = it_fin.

endform.