SAP FB_MIGRATE_FORM Function Module for









FB_MIGRATE_FORM is a standard fb migrate form SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for fb migrate form FM, simply by entering the name FB_MIGRATE_FORM into the relevant SAP transaction such as SE37 or SE38.

Function Group: STXB
Program Name: SAPLSTXB
Main Program: SAPLSTXB
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function FB_MIGRATE_FORM pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'FB_MIGRATE_FORM'"
EXPORTING
* I_FORMNAME_SAPSCRIPT = ' ' "
* I_LANGUAGE_SAPSCRIPT = SY-LANGU "
* I_CLIENT_SAPSCRIPT = ' ' "
* I_FORMNAME_SMARTFORM = ' ' "
* I_WITH_DIALOG = 'X' "
* I_WITH_FORM_BUILDER = 'X' "
* I_CHECK_FORMS_ARE_OK = 'X' "

IMPORTING
O_FORMNAME_SAPSCRIPT = "
O_FORMNAME_SMARTFORM = "

EXCEPTIONS
NO_NAME = 1 NO_LANGUAGE = 2 NO_FORM = 3 FORM_EXISTS = 4 NO_ACCESS_PERMISSION = 5 ILLEGAL_LANGUAGE = 6 ILLEGAL_NAME = 7 NO_SUCCESS = 8
.



IMPORTING Parameters details for FB_MIGRATE_FORM

I_FORMNAME_SAPSCRIPT -

Data type: ITCTA-TDFORM
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_LANGUAGE_SAPSCRIPT -

Data type: SY-LANGU
Default: SY-LANGU
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_CLIENT_SAPSCRIPT -

Data type: STXH-MANDT
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_FORMNAME_SMARTFORM -

Data type: TDSFNAME
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_WITH_DIALOG -

Data type: TDSFFLAG
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_WITH_FORM_BUILDER -

Data type: TDSFFLAG
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_CHECK_FORMS_ARE_OK -

Data type: TDSFFLAG
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for FB_MIGRATE_FORM

O_FORMNAME_SAPSCRIPT -

Data type: ITCTA-TDFORM
Optional: No
Call by Reference: No ( called with pass by value option)

O_FORMNAME_SMARTFORM -

Data type: TDSFNAME
Optional: No
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

NO_NAME -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

NO_LANGUAGE -

Data type:
Optional: No
Call by Reference: Yes

NO_FORM -

Data type:
Optional: No
Call by Reference: Yes

FORM_EXISTS -

Data type:
Optional: No
Call by Reference: Yes

NO_ACCESS_PERMISSION -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

ILLEGAL_LANGUAGE - Invalid language

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

ILLEGAL_NAME -

Data type:
Optional: No
Call by Reference: Yes

NO_SUCCESS - Other Error

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for FB_MIGRATE_FORM Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.

DATA:
lv_no_name  TYPE STRING, "   
lv_i_formname_sapscript  TYPE ITCTA-TDFORM, "   SPACE
lv_o_formname_sapscript  TYPE ITCTA-TDFORM, "   
lv_no_language  TYPE ITCTA, "   
lv_i_language_sapscript  TYPE SY-LANGU, "   SY-LANGU
lv_o_formname_smartform  TYPE TDSFNAME, "   
lv_no_form  TYPE TDSFNAME, "   
lv_i_client_sapscript  TYPE STXH-MANDT, "   SPACE
lv_form_exists  TYPE STXH, "   
lv_i_formname_smartform  TYPE TDSFNAME, "   SPACE
lv_i_with_dialog  TYPE TDSFFLAG, "   'X'
lv_no_access_permission  TYPE TDSFFLAG, "   
lv_illegal_language  TYPE TDSFFLAG, "   
lv_i_with_form_builder  TYPE TDSFFLAG, "   'X'
lv_illegal_name  TYPE TDSFFLAG, "   
lv_i_check_forms_are_ok  TYPE TDSFFLAG, "   'X'
lv_no_success  TYPE TDSFFLAG. "   

  CALL FUNCTION 'FB_MIGRATE_FORM'  "
    EXPORTING
         I_FORMNAME_SAPSCRIPT = lv_i_formname_sapscript
         I_LANGUAGE_SAPSCRIPT = lv_i_language_sapscript
         I_CLIENT_SAPSCRIPT = lv_i_client_sapscript
         I_FORMNAME_SMARTFORM = lv_i_formname_smartform
         I_WITH_DIALOG = lv_i_with_dialog
         I_WITH_FORM_BUILDER = lv_i_with_form_builder
         I_CHECK_FORMS_ARE_OK = lv_i_check_forms_are_ok
    IMPORTING
         O_FORMNAME_SAPSCRIPT = lv_o_formname_sapscript
         O_FORMNAME_SMARTFORM = lv_o_formname_smartform
    EXCEPTIONS
        NO_NAME = 1
        NO_LANGUAGE = 2
        NO_FORM = 3
        FORM_EXISTS = 4
        NO_ACCESS_PERMISSION = 5
        ILLEGAL_LANGUAGE = 6
        ILLEGAL_NAME = 7
        NO_SUCCESS = 8
. " FB_MIGRATE_FORM




ABAP code using 7.40 inline data declarations to call FM FB_MIGRATE_FORM

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

 
"SELECT single TDFORM FROM ITCTA INTO @DATA(ld_i_formname_sapscript).
DATA(ld_i_formname_sapscript) = ' '.
 
"SELECT single TDFORM FROM ITCTA INTO @DATA(ld_o_formname_sapscript).
 
 
"SELECT single LANGU FROM SY INTO @DATA(ld_i_language_sapscript).
DATA(ld_i_language_sapscript) = SY-LANGU.
 
 
 
"SELECT single MANDT FROM STXH INTO @DATA(ld_i_client_sapscript).
DATA(ld_i_client_sapscript) = ' '.
 
 
DATA(ld_i_formname_smartform) = ' '.
 
DATA(ld_i_with_dialog) = 'X'.
 
 
 
DATA(ld_i_with_form_builder) = 'X'.
 
 
DATA(ld_i_check_forms_are_ok) = 'X'.
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!