cancel
Showing results for 
Search instead for 
Did you mean: 

smart forms triggered from crmd_order

Former Member
0 Kudos

Hi ,

How to provide input parameters to the custom smart forms which r triggered by action profiles in crmd_order trans ???

Pls help me

You will b highly rewarded.

Thank U ,

Ramesh

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member927251
Active Contributor
0 Kudos

Hi Ramesh,

We had a similar requirement to display a smartform from an action.

Create an action(method call) and assign the same to the required action profile. Create an implementation for the BADI definition EXEC_METHODCALL_PPF.

When you create a smartform and activate it, SAP generates a FM for the same. All the parameters, tables that you want to pass to the smartform from your action BADI should be defined in the Form Interface of the smartform.

When you activate the smartform, SAP generates a FM with the similar interface to pass data as you have defined in the smartform interface.

You can call this FM directly in your BADI and pass the data to the FM populating the relevant parameters, tables.

Refer the following piece of code :

  • Call the following FM to get the function module name of the SmartForm.

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

EXPORTING

formname = 'Your smartform name'

IMPORTING

fm_name = lv_fmname.

IF sy-subrc = 0.

ls_output_options-tdnoprint = 'X'.

ls_output_options-tddest = 'LOCL'.

ls_control_param-device = 'PRINTER'.

ls_control_param-no_dialog = 'X'.

ls_control_param-preview = 'X'.

  • Call the FM of the SmartForm which is retrieved in the previous step

CALL FUNCTION lv_fmname "'/1BCDWB/SF00000012'

EXPORTING

output_options = ls_output_options

control_parameters = ls_control_param

user_settings = space

TABLES

xt_active_prod = lt_active_prod

xt_rate_type_cate = lt_rate_type_cate_final.

<b>Reward points if it helps.</b>

Former Member
0 Kudos

hello ramesh,

Please refer 651701,526824.

Please reward if helps.

regards,

Muralidhar Prasad.C