Importance of The Function Module SSF - FUNCTION - MODULE - NAME
Importance of The Function Module SSF - FUNCTION - MODULE - NAME
Search
Home Trai ni ngs Qui z Ti ps Tutori al s Functi onal Cert Q's I ntervi ew Q's Jobs Testi moni al s Adverti se Contact Us
Tips Categories: A function module is generated whenever a Smart Form is activated. This Smart
Form could be called from the driver program by calling this function module as
shownbelow:
ABAPTM
ABAPHR REPORTZcall_smartform.
ALE&IDocs
CALLFUNCTION'/1BCDWB/SF00000359'
BAPI
BASIS
*EXPORTING
LSMW
*ARCHIVE_INDEX=
*ARCHIVE_INDEX_TAB=
SAPScript/SmartForms
*ARCHIVE_PARAMETERS=
SAPWorkflow
*CONTROL_PARAMETERS=
Userexits/BADIs
XI
*MAIL_APPL_OBJ=
Others
*MAIL_RECIPIENT=
*MAIL_SENDER=
*OUTPUT_OPTIONS=
*USER_SETTINGS='X'
Contribute? *IMPORTING
*DOCUMENT_OUTPUT_INFO=
*JOB_OUTPUT_INFO=
What's New? *JOB_OUTPUT_OPTIONS=
*EXCEPTIONS
*FORMATTING_ERROR=1
DownloadABAPCodeintoPDFfile
*INTERNAL_ERROR=2
CreateTransportRequestusing
FunctionModule
*SEND_ERROR=3
*USER_CANCELED=4
Creatingradiobuttonsonpopup
window *OTHERS=5
Enableordisableaparameter .
basedonotherparameter'svalue IFsysubrc<>0.
Howtorestrictotherusersfrom *MESSAGEIDSYMSGIDTYPESYMSGTYNUMBERSYMSGNO
editingaprogram? *WITHSYMSGV1SYMSGV2SYMSGV3SYMSGV4.
SkiptransactioninLSMW ENDIF.
Howtomakeatablefieldtostorea
lowercasevalue? ButthisisnotanefficientwayofcallingSmartFormforthefollowingreason:
IncreasemaximumnumberofSAP
sessionsperuser Whenever a Smart Form is generated, a function module is generated and the
ManuallypushanemailfromSAP naming convention for that Smart Form is done internally by using Number range
OutboxusingSOST
WherethehistoryofTransaction
object or something similar. In the above case, the function module name is
Codesdoesgetstored? /1BCDWB/SF00000359.ThefunctionmoduleforthenextnewandactivatedSmart
Enable,disableanddeleteinput Formwouldbe/1BCDWB/SF00000360.
history
ComparingtwoSAPscriptforms So when this Smart Form is transported from the development to Quality or
ConsistencycheckforSAPScript Production system, a new function module name is generated according to the
formsandstyles number series available in that system. If the above program is transported to
HTMLViewerofSAPScripttexts either quality or production system, the program might go for a dump as the
Uploadingimagewithoutany function module is not available in that system. To handle this situation, we use
distortionfromoriginalimage
Increasingnumberofdisplaypages
the function module SSF_FUNCTION_MODULE_NAME to get the name of the
inspoolrequest function module for a Smart Form dynamically. If the form is not active, the
Unlockingthetransport function module SSF_FUNCTION_MODULE_NAME raises the exception
request/task NO_FORM.
CreatingZIPfileon
UNIX/Applicationserver Lookatthemodifiedprogrambelow:
Forwardingspoolrequesttoyour
inbox REPORTzcall_smartform.
ConvertingSmartformoutputinto
ListDisplayin1step
DATA:
Includingallobjectsofapackagein
thetransportrequest
fnameTYPErs38l_fnam.
callfunction'SSF_FUNCTION_MODULE_NAME'
exporting
What's Hot? formname='ZSMARTFORMS_TRAINING2'
*VARIANT=''
*DIRECT_CALL=''
WebDynproforABAPTutorials
importing
fm_name=fname
JointheMailingList *EXCEPTIONS
*NO_FORM=1
Enternameandemailaddressbelow: *NO_FUNCTION_MODULE=2
Name: *OTHERS=3
.
IFsysubrc<>0.
Email:
*MESSAGEIDSYMSGIDTYPESYMSGTYNUMBERSYMSGNO
*WITHSYMSGV1SYMSGV2SYMSGV3SYMSGV4.
Subscribe Unsubscribe ENDIF.
GO *Nowreplacethefunctionmodulename'/1BCDWB/SF00000359'
*withthevariableFNAME
http://saptechnical.com/Tips/SmartForms/FMImportance.htm 1/2
26/08/2016 ImportanceofthefunctionmoduleSSF_FUNCTION_MODULE_NAME
CALLFUNCTIONFNAME
*EXPORTING
*ARCHIVE_INDEX=
*ARCHIVE_INDEX_TAB=
*ARCHIVE_PARAMETERS=
*CONTROL_PARAMETERS=
*MAIL_APPL_OBJ=
*MAIL_RECIPIENT=
*MAIL_SENDER=
*OUTPUT_OPTIONS=
*USER_SETTINGS='X'
*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
.
IFsysubrc<>0.
*MESSAGEIDSYMSGIDTYPESYMSGTYNUMBERSYMSGNO
*WITHSYMSGV1SYMSGV2SYMSGV3SYMSGV4.
ENDIF.
Pleasesendusyourfeedback/[email protected]
HomeContributeAboutUsPrivacyTermsOfUseDisclaimerSafeCompanies:AdvertiseonSAPTechnical.COM|PostJobContactUs
20062007SAPTechnical.COM.Allrightsreserved.
Allproductnamesaretrademarksoftheirrespectivecompanies.SAPTechnical.COMisinnowayaffiliatedwithSAPAG.
SAP,SAPR/3,R/3software,mySAP,ABAP,BAPI,xApps,SAPNetWeaver,andandanyotherSAPtrademarksareregisteredtrademarksofSAPAGinGermanyandinseveralothercountries.
Everyeffortismadetoensurecontentintegrity.Useinformationonthissiteatyourownrisk.
GraphicDesignbyRoundtheBendWizards
http://saptechnical.com/Tips/SmartForms/FMImportance.htm 2/2