Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

driver program for smartform

Dear gurus

My smartform name is zretail_invoice

when executed it gives the function module /1BCDWB/SF00000005

in program i callef function ssf_function_module_name

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

EXPORTING

FORMNAME = 'ZRETAIL_INVOICE'

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.

and again i called the function module /1BCDWB/SF00000005

it calls the smartform now

but when i do changes in that it's not accepting...

let me help that

Tags:
Former Member
Former Member replied

Continue doing your changes in ZRETAIL_INVOICE using the transaction SMARTFORMS. Don't do the changes in /1BCDWB/SF00000005 because that's a MANDT dependant name, so when you later transport the order, the changes don't carry across.

In other words, there's no guarantee that in another mandt /1BCDWB/SF00000005 will still be called /1BCDWB/SF00000005, so there's no point in making changes to it. If you do the changes to ZRETAIL_INVOICE they will be shown in this mandt as /1BCDWB/SF00000005, but you don't know how they will be called when you transport it. That's why you need to call SSF_FUNCTION_MODULE_NAME in your code and call the smartform with the name resulting from that function call.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question