While Transporting Smartform form Dev to Test to
Production, it is possible that Name of the Function Module
change, Why? In which case it changes and in which case it
remains same?
Answers were Sorted based on User's Feedback
Answer / amitesh jaiswal
Once you have activated the smartform, go to the environment
-> function module name. There you can get the name of
funtion module name.
The key thing is the program that calls it. for instance,
the invoice SMARTFORM LB_BIL_INVOICE is ran by the program
RLB_INVOICE.
This program uses another FM to determine the name of the FM
to use itself. The key thing is that when it calls this FM
(using a variable to store the actual name), that the
parameters match the paramters in your smartform.
Another thing to note is that the FM name will change
wherever the SF is transported to.
So you need to use the FM to determine the name of the SF.
Here is the code that can be use to determine the internal
name of the function module:
Code:
if sf_label(1) <> '/'. " need to resolve by name
move sf_label to externalname.
call function 'SSF_FUNCTION_MODULE_NAME'
exporting
formname = externalname
importing
fm_name = internalname
exceptions
no_form = 1
no_function_module = 2
others = 3.
if sy-subrc <> 0.
message 'e427'.
endif.
move internalname to sf_label.
endif.
Is This Answer Correct ? | 2 Yes | 0 No |
Answer / nitin gautam
See, Whenever we transport SF from one server to another, the Function module no chages, because every time , a new FM NO will be generated while activating smartform on different servers...
Please, correct me or suggest me some more points.. to it..
Is This Answer Correct ? | 1 Yes | 0 No |
We created ZEMP table now i want to add more data but previous data should not disturb how can i do this?
How move-corresponding works
create a Report to print Stock & Valuated Stock for Plant (ALV Grid) Selection Screen Ranges: Material Number (MARA-MATNR) Material Type (MARA-MTART) Valuation Class (MBEW-BKLAS) Storage Location (MARD-LGORT) Parameter filed plant (MARD-WERKS) Selection condition: Total valuated stock – MBEW-LBKUM – should be greater than zero Table to be used MAKT,MARD,MBEW,MARA,T001L.. (Use inner joins) Display output: Storage location: (TOO1L-LGORT) Description (T001L-LGOBE) Material No (MARA-MATNR), Material Description (MAKT- MAKTX), Total valuated stock (MBEW-LBKUM), Val of tot valuated stock (MBEW-SALK3), IF MBEW-VPRSV = 'S'. Price – MBEW-STPRS ELSEIF DTAB-VPRSV = 'V'. Price – MBEW-VERPR. ENDIF. Subtotal of Total valuated stock (MBEW-LBKUM), Val of tot valuated stock (MBEW-SALK3), Grand Total of Total valuated stock (MBEW-LBKUM), Val of tot valuated stock (MBEW-SALK3), In the ALV grid display keep a button in the tool bar which on clicking navigates through the screen to the next grid which displays the grand total. Use SET PF_STATUS which is in the FM reuse_alv_grid_display to set the button.
Tell the step by step procedure to print a smart form?
After transferring of data from flat file to application server i found that it is showing wrong data .Say i had currency in flat file as 1000.00 USD. After transferring i found it is showing as 100.000 in the application server. How will you handle this case?
How to handle Errors in Function Modules?
Define structure in abap data dictionary?
why we are using pgm RSTXTRAN?
What is alv programming in abap?
im thinking to do sap course ....before doing that there shoud be any course to complete
What is the difference between User Exits and BADI?
5 Answers Accenture, IBM, SAP Labs,
How will you define org structure in MM?