Application Development and Automation 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: 
Read only

smartforms doubt

Former Member
0 Likes
898

hi,

I have a doubt in smartforms, we use two function modules to trigger the smartform one SSF_FUNCTION_MODULE_NAME another generated. tell me y do we use SSF_FUNCTION_MODULE_NAME passing the smartform and getting the unique name of the function module which will be like /1BCDWB/SF00000060 this how the /1BCDWB/SF00000060 will get changed.

Please send some links which states overview (how the data passes from prnt program to function module which is generated by the smartforms).

regards,

Prabhu

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
806

Hi,

The purpose of this Function module is becoz smartforms are client independent.Each time you will execute smart form in different clent different function module will produce.

The Smartform that is created in the Development may not have the same name in the Production server. So it is always advised to use the Function Module SSF_FUNCTION_MODULE_NAME to get the Function Module name by passing the Smartform name.

DATA: fm_name TYPE rs38l_fnam.

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

EXPORTING

formname = 'ZSMARTFORM'

IMPORTING

fm_name = fm_name

EXCEPTIONS

no_form = 1

no_function_module = 2

OTHERS = 3.

IF sy-subrc <> 0.

MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

ENDIF.

CALL FUNCTION fm_name

EXCEPTIONS

formatting_error = 1

internal_error = 2

send_error = 3

user_canceled = 4

OTHERS = 5.

IF sy-subrc <> 0.

MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

ENDIF.

for more refrence use below link.

https://www.sdn.sap.com/irj/sdn/wiki?path=/display/abap/smartforms&;

regrads,

Ruchika

Reward if useful..........

6 REPLIES 6
Read only

Former Member
0 Likes
806

hi..

Say i have a program in which I have called the smartform in direct method by using the function module generated.

Now if I change that smartform so much, sometimes a new function module will be generated. or if I delete that smartform and create a new one with same name, a new function module will be generated. Then I need to go and change all programs that call this smartform directly.

In the two step process, it is not necessary. Everytime the function module related to a smart form changes, the SSF_FUNCTION_MODULE_NAME fetches the latest. So we dont need to update our report programs each time we manipulate the smartform

Thanks

Ashu

Read only

Former Member
0 Likes
807

Hi,

The purpose of this Function module is becoz smartforms are client independent.Each time you will execute smart form in different clent different function module will produce.

The Smartform that is created in the Development may not have the same name in the Production server. So it is always advised to use the Function Module SSF_FUNCTION_MODULE_NAME to get the Function Module name by passing the Smartform name.

DATA: fm_name TYPE rs38l_fnam.

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

EXPORTING

formname = 'ZSMARTFORM'

IMPORTING

fm_name = fm_name

EXCEPTIONS

no_form = 1

no_function_module = 2

OTHERS = 3.

IF sy-subrc <> 0.

MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

ENDIF.

CALL FUNCTION fm_name

EXCEPTIONS

formatting_error = 1

internal_error = 2

send_error = 3

user_canceled = 4

OTHERS = 5.

IF sy-subrc <> 0.

MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

ENDIF.

for more refrence use below link.

https://www.sdn.sap.com/irj/sdn/wiki?path=/display/abap/smartforms&;

regrads,

Ruchika

Reward if useful..........

Read only

Former Member
0 Likes
806

Hi,

When u activate the system genarates a FM and which will have all the dataw indow etc related to the form. this will be trigger by the form using the FM and in turn this will return the FM which execute the smartform

Regards

Shiva

Read only

Former Member
0 Likes
806

hi Prabhu

<b>just refer to the link below once</b>

http://www.sapmaterial.com/?gclid=CN322K28t4sCFQ-WbgodSGbK2g (SAP link- helpful material )

<b>all ur doubts will get definitely clear</b>

regards

ravish

<b>plz dont forget to reward points if helpful</b>

Read only

Former Member
0 Likes
806

HI,

We all know that when we activate a smartform a function module will be generated. We can check this function module name from the Smartform editor itself by going to the menu bar Environment à Function module.

We can call this function module directly in our Driver Program.

But in the entire standard programs SSF_FUNCTION_MODULE_NAME function module is being used to get the function module name for the corresponding smartform by passing the form name.

WHAT IS THE DIFFERENCE BETWEEN THESE TWO??

When we transport the SMARTFORM we usually transport the Definition only.

When we call that definition (Smart form) in the new system the function module is regenerated. This name is different from the name generated in the Original system.

The name of the Function module generated by the smartform contains the prefix “/1BCDWB/SF” and an 8 digit number after this.

This 8 digit number depends on the R/3 System being used.

Reward points if it is helpful..

Regards,

Omkar.