on 10-23-2007 7:18 AM
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
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>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hello ramesh,
Please refer 651701,526824.
Please reward if helps.
regards,
Muralidhar Prasad.C
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
6 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.