cancel
Showing results for 
Search instead for 
Did you mean: 

regarding smartforms

Former Member
0 Kudos

Moved to correct forum by moderator. Please use a meaningful subject in future

After calling SSF_FUNCTION_MODULE_NAME' you get the FM name in fm_name. Now how to call

call function fm_name. because it is defined by us not a standard one.please help me.

i am getting the same fn module in fm_name as generated in smartfforms.

only problem is how to call fm_name??

Edited by: Matt on Dec 2, 2008 2:19 PM

Accepted Solutions (0)

Answers (9)

Answers (9)

matt
Active Contributor
0 Kudos

Please use a meaningful subject in future

Former Member
0 Kudos

DATA: CPARAM TYPE SSFCTRLOP,

OUTOP TYPE SSFCOMPOP,

FM_NAME TYPE RS38L_FNAM,

TAB_OTF_DATA TYPE SSFCRESCL..

OUTOP-TDDEST = 'LP01'. " printer name

CPARAM-NO_DIALOG = 'X'.

CPARAM-PREVIEW = SPACE.

CPARAM-GETOTF = 'X'.

CALL FUNCTION FM_NAME

EXPORTING

CONTROL_PARAMETERS = CPARAM

OUTPUT_OPTIONS = OUTOP

USER_SETTINGS = SPACE

IMPORTING

JOB_OUTPUT_INFO = TAB_OTF_DATA

EXCEPTIONS

FORMATTING_ERROR = 1

INTERNAL_ERROR = 2

SEND_ERROR = 3

USER_CANCELED = 4

OTHERS = 5 .

Former Member
0 Kudos

Hi,

Try this way

1. Goto to Tcode Smartfroms...give the SMARTFROM NAME ABD EXECUTE.

2. You get the SE37 screen with FM name

3. take the Fm name and in your progam using Patters button in application tool bar of se38 editor.

get the Fm structure.

4. Change the Fm name to variable.

Former Member
0 Kudos

Hi,

Do one thing call the function module which is generated by smartform then do as follows..

Call function '/1bc.....'

write

call function fm_name.

Hope this will help.

Regards,

Rohan.

Former Member
0 Kudos

Hi Sanjay,

Go to TCODE SMARTFORMS and give your form name.

Click on menu Environment->Function module name. This gives something like /1BCDWB/SF00000135

You can use this in pattern in editor to get the rest of the parameters and "/1BCDWB/SF00000135" can be replaced by fm_name

Regards

i048168
Advisor
Advisor
0 Kudos

Hi,

1. Go to the smartform and find the function module name.

2. Type the FM name using pattern. You will get all the importing/exporting/tables parameters.

3. Then delete the existing FM name and replace it with the variable fm_name.

Regards,

Vadi

Former Member
0 Kudos

Goto pattern in the abap editor paste the auto generated FM name in that and OK.

Now you get those import/Export/Tables/Exceptions in the FM, as code.

Rename the system generated (smartform) FM name to the variable fm_name.

Regards

Sam.

Former Member
0 Kudos

Hi,

Refer to this:

https://www.sdn.sap.com/irj/scn/wiki?path=/display/abap/importanceofthefunctionmodule+SSF_FUNCTION_MODULE_NAME

Former Member
0 Kudos

CALL FUNCTION L_FM_NAME

  • exporting

  • ARCHIVE_INDEX =

  • ARCHIVE_INDEX_TAB =

  • ARCHIVE_PARAMETERS =

  • CONTROL_PARAMETERS =

  • MAIL_APPL_OBJ =

  • MAIL_RECIPIENT =

  • MAIL_SENDER =

  • OUTPUT_OPTIONS =

  • USER_SETTINGS = 'X'

P_INVNO = P_INVNO

  • IMPORTING

  • DOCUMENT_OUTPUT_INFO =

  • JOB_OUTPUT_INFO =

  • JOB_OUTPUT_OPTIONS =

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.

where p_invno is interface parameter

Regards,

Kashyap

Edited by: kashyap joshi on Dec 2, 2008 12:27 PM