06-30-2009 1:22 PM
Hi,
Is it possible to call a smartform from a dialog program?If so,how?
06-30-2009 1:30 PM
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?
06-30-2009 1:38 PM
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.
06-30-2009 1:39 PM
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.