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: 

Program calling multiple smartforms

madhu_reddy22
Participant
0 Kudos

HI All,

i have a requirement wherein i should create a program to print 5 to 10 smart forms .Whenever the program is run 5 forms should be printed automatically and the selection screen contains check boxes for selecting the forms to printed from the remaining five.

Can some one give me an overview of how the program can be developed. The only knowledge i have is giving the form name and getting the function module and then passing the relevant parameters to the function module. I think its not just calling all the ten function modules and passing the parameters.

Thanks in advance

1 ACCEPTED SOLUTION

Former Member
0 Kudos

hi,

i dont knw but just try this.

data: output_options type SSFCOMPOP.

if checkbox1 = 'X'.

output_options-TDIMMED = 'X'. " TRY HERE WITH X OR 1

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

EXPORTING

formname = enter ur smartform name here

IMPORTING

fm_name = fnam

EXCEPTIONS

no_form = 1

no_function_module = 2

OTHERS = 3.

IF sy-subrc <> 0.

ENDIF.

********FUNCTIONAL MODULE FOR IMPORTING INPUT PARAMETER TO SMARTFORMS*************

CALL FUNCTION fnam

EXPORTING

EXPORT THE PARAMETERS HERE WHICH U WANT 2 SEND TO UR SMARTFORMS.ALSO ALONG WITH THE PARAMETERS PASS

OUTPUT_OPTIONS = OUTPUT_OPTIONS.

  • ebeln = ebeln

EXCEPTIONS

formatting_error = 1

internal_error = 2

send_error = 3

user_canceled = 4

OTHERS = 5.

IF sy-subrc <> 0.

ENDIF.

CLEAR OUTPUT_OPTIONS.

ENDIF.

REPEAT THE ABOVE STEPS FROM CHECKING THE RADIO BUTTON TO CALLING THE SMARTFORM. HMM THIS SHOULD WORK

1 REPLY 1

Former Member
0 Kudos

hi,

i dont knw but just try this.

data: output_options type SSFCOMPOP.

if checkbox1 = 'X'.

output_options-TDIMMED = 'X'. " TRY HERE WITH X OR 1

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

EXPORTING

formname = enter ur smartform name here

IMPORTING

fm_name = fnam

EXCEPTIONS

no_form = 1

no_function_module = 2

OTHERS = 3.

IF sy-subrc <> 0.

ENDIF.

********FUNCTIONAL MODULE FOR IMPORTING INPUT PARAMETER TO SMARTFORMS*************

CALL FUNCTION fnam

EXPORTING

EXPORT THE PARAMETERS HERE WHICH U WANT 2 SEND TO UR SMARTFORMS.ALSO ALONG WITH THE PARAMETERS PASS

OUTPUT_OPTIONS = OUTPUT_OPTIONS.

  • ebeln = ebeln

EXCEPTIONS

formatting_error = 1

internal_error = 2

send_error = 3

user_canceled = 4

OTHERS = 5.

IF sy-subrc <> 0.

ENDIF.

CLEAR OUTPUT_OPTIONS.

ENDIF.

REPEAT THE ABOVE STEPS FROM CHECKING THE RADIO BUTTON TO CALLING THE SMARTFORM. HMM THIS SHOULD WORK