How to know which Smart-Form is being called
We need to know the name of Smart-Form being called in Transaction FBCJ . In Tcode FBCJ if we click on Edit and then select the option "Print Receipt" then a Smart-Form is called and output gets generated .
Kindly guide us as how can we know the name of Smart-Form being called .
With Thanks and Rgds
This is a very loaded question as it really depends upon which module you are speaking...most DEVELOPERS know SD/logistics' NACE IS where an output condition is attached to a program and form. The form can be SMARTFORM/SAPscript or SFP (adobe PDF form).
If you know what transaction or better what print program is calling the SMARTFORM then your job is easier as SMARTFORMS are basically functions that are found with same function within the program. LV_TDSFNAME would be the name of the SMARTFORM while FM_NAME is the corresponding function module used by the SMARTFORM where you do all your debugging.
So in the NACE tcode you get the outputs configured to the print program and the form and these are held in table TNAPR.
You need to remember that NACE does not do all modules and some modules such as FI can be challenging but ultimately all should be found within IMG using SPRO.
*--Get Functiona module name
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
FORMNAME = LV_TDSFNAME
FM_NAME = FM_NAME
NO_FORM = 1
NO_FUNCTION_MODULE = 2
OTHERS = 3.