SAP TBLP_TRANSFER_LOAN_CREATE Function Module for Create a transfer/loan movement
TBLP_TRANSFER_LOAN_CREATE is a standard tblp transfer loan create SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Create a transfer/loan movement processing and below is the pattern details for this FM, 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 tblp transfer loan create FM, simply by entering the name TBLP_TRANSFER_LOAN_CREATE into the relevant SAP transaction such as SE37 or SE38.
Function Group: TBLP
Program Name: SAPLTBLP
Main Program: SAPLTBLP
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function TBLP_TRANSFER_LOAN_CREATE 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 'TBLP_TRANSFER_LOAN_CREATE'"Create a transfer/loan movement.
EXPORTING
* I_WBSS = "
* I_LGORT_R = "
I_DELKZ = "
* I_DELNR = "
* I_DELPS = "
* I_COMMIT = ' ' "
* I_TYPE = "
* I_WOCOST = "Flag (X or blank)
* I_GRPS = "Flag (X or blank)
* I_VALTYPE_S = "Valuation Type
* I_VALTYPE_R = "Valuation Type
* I_MATNR = "
* I_WERKS_S = "
* I_LGORT_S = "
* I_ERFMG = "
* I_ERFME = "
* I_CHARG = "
* I_WBSR = "
* I_WERKS_R = "
IMPORTING
E_TBLP = "
E_RC = "
EXCEPTIONS
SERIAL_NUMBERS = 1 CREATE_PLORD_FAILURE = 10 TBLP_ERROR = 11 NO_MAT_PROCUREMENT = 12 CCODES_NOT_SAME = 2 STOCK_TOO_LOW = 3 INVALID_MTART = 4 INVALID_CCODE = 5 WRONG_POSTING_PERIOD = 6 WBS_INVALID = 7 MOVEMENT_FAILURE = 8 CREATE_RESERVATION_FAILURE = 9
Customer Function user exits
Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.EXIT_SAPLTBLP_001 Raw Material Valuation exit
EXIT_SAPLTBLP_002 WBS Break Point exit
IMPORTING Parameters details for TBLP_TRANSFER_LOAN_CREATE
I_WBSS -
Data type: PRPS-PSPNROptional: Yes
Call by Reference: No ( called with pass by value option)
I_LGORT_R -
Data type: RM07M-LGORTOptional: Yes
Call by Reference: No ( called with pass by value option)
I_DELKZ -
Data type: MDPS-DELKZOptional: No
Call by Reference: No ( called with pass by value option)
I_DELNR -
Data type: MDPS-DELNROptional: Yes
Call by Reference: No ( called with pass by value option)
I_DELPS -
Data type: MDPS-DELPSOptional: Yes
Call by Reference: No ( called with pass by value option)
I_COMMIT -
Data type: CDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_TYPE -
Data type: COptional: Yes
Call by Reference: No ( called with pass by value option)
I_WOCOST - Flag (X or blank)
Data type: AS4FLAGOptional: Yes
Call by Reference: No ( called with pass by value option)
I_GRPS - Flag (X or blank)
Data type: AS4FLAGOptional: Yes
Call by Reference: No ( called with pass by value option)
I_VALTYPE_S - Valuation Type
Data type: BWTAR_DOptional: Yes
Call by Reference: No ( called with pass by value option)
I_VALTYPE_R - Valuation Type
Data type: BWTAR_DOptional: Yes
Call by Reference: No ( called with pass by value option)
I_MATNR -
Data type: MARC-MATNROptional: Yes
Call by Reference: No ( called with pass by value option)
I_WERKS_S -
Data type: MARC-WERKSOptional: Yes
Call by Reference: No ( called with pass by value option)
I_LGORT_S -
Data type: RM07M-LGORTOptional: Yes
Call by Reference: No ( called with pass by value option)
I_ERFMG -
Data type: MSEG-ERFMGOptional: Yes
Call by Reference: No ( called with pass by value option)
I_ERFME -
Data type: MSEG-ERFMEOptional: Yes
Call by Reference: No ( called with pass by value option)
I_CHARG -
Data type: MSEG-CHARGOptional: Yes
Call by Reference: No ( called with pass by value option)
I_WBSR -
Data type: PRPS-PSPNROptional: Yes
Call by Reference: No ( called with pass by value option)
I_WERKS_R -
Data type: MARC-WERKSOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for TBLP_TRANSFER_LOAN_CREATE
E_TBLP -
Data type: TBLPOptional: No
Call by Reference: No ( called with pass by value option)
E_RC -
Data type: SY-SUBRCOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
SERIAL_NUMBERS -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
CREATE_PLORD_FAILURE - Planned order creation failed
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
TBLP_ERROR - Table tblp was not updated
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_MAT_PROCUREMENT -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
CCODES_NOT_SAME - Company codes are not the same
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
STOCK_TOO_LOW - Sending stock too low to create movement
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INVALID_MTART - Material type is not set to quantity updating
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INVALID_CCODE - Company codes are invalid for posting period
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
WRONG_POSTING_PERIOD - Movement is not possible in current posting per.
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
WBS_INVALID - WBS status is invalid e.g. not released
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
MOVEMENT_FAILURE - Movement creation failed
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
CREATE_RESERVATION_FAILURE - Reservation creation failed
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for TBLP_TRANSFER_LOAN_CREATE 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_e_tblp | TYPE TBLP, " | |||
| lv_i_wbss | TYPE PRPS-PSPNR, " | |||
| lv_serial_numbers | TYPE PRPS, " | |||
| lv_i_lgort_r | TYPE RM07M-LGORT, " | |||
| lv_create_plord_failure | TYPE RM07M, " | |||
| lv_i_delkz | TYPE MDPS-DELKZ, " | |||
| lv_tblp_error | TYPE MDPS, " | |||
| lv_i_delnr | TYPE MDPS-DELNR, " | |||
| lv_no_mat_procurement | TYPE MDPS, " | |||
| lv_i_delps | TYPE MDPS-DELPS, " | |||
| lv_i_commit | TYPE C, " SPACE | |||
| lv_i_type | TYPE C, " | |||
| lv_i_wocost | TYPE AS4FLAG, " | |||
| lv_i_grps | TYPE AS4FLAG, " | |||
| lv_i_valtype_s | TYPE BWTAR_D, " | |||
| lv_i_valtype_r | TYPE BWTAR_D, " | |||
| lv_e_rc | TYPE SY-SUBRC, " | |||
| lv_i_matnr | TYPE MARC-MATNR, " | |||
| lv_ccodes_not_same | TYPE MARC, " | |||
| lv_i_werks_s | TYPE MARC-WERKS, " | |||
| lv_stock_too_low | TYPE MARC, " | |||
| lv_i_lgort_s | TYPE RM07M-LGORT, " | |||
| lv_invalid_mtart | TYPE RM07M, " | |||
| lv_i_erfmg | TYPE MSEG-ERFMG, " | |||
| lv_invalid_ccode | TYPE MSEG, " | |||
| lv_i_erfme | TYPE MSEG-ERFME, " | |||
| lv_wrong_posting_period | TYPE MSEG, " | |||
| lv_i_charg | TYPE MSEG-CHARG, " | |||
| lv_wbs_invalid | TYPE MSEG, " | |||
| lv_i_wbsr | TYPE PRPS-PSPNR, " | |||
| lv_movement_failure | TYPE PRPS, " | |||
| lv_i_werks_r | TYPE MARC-WERKS, " | |||
| lv_create_reservation_failure | TYPE MARC. " |
|   CALL FUNCTION 'TBLP_TRANSFER_LOAN_CREATE' "Create a transfer/loan movement |
| EXPORTING | ||
| I_WBSS | = lv_i_wbss | |
| I_LGORT_R | = lv_i_lgort_r | |
| I_DELKZ | = lv_i_delkz | |
| I_DELNR | = lv_i_delnr | |
| I_DELPS | = lv_i_delps | |
| I_COMMIT | = lv_i_commit | |
| I_TYPE | = lv_i_type | |
| I_WOCOST | = lv_i_wocost | |
| I_GRPS | = lv_i_grps | |
| I_VALTYPE_S | = lv_i_valtype_s | |
| I_VALTYPE_R | = lv_i_valtype_r | |
| I_MATNR | = lv_i_matnr | |
| I_WERKS_S | = lv_i_werks_s | |
| I_LGORT_S | = lv_i_lgort_s | |
| I_ERFMG | = lv_i_erfmg | |
| I_ERFME | = lv_i_erfme | |
| I_CHARG | = lv_i_charg | |
| I_WBSR | = lv_i_wbsr | |
| I_WERKS_R | = lv_i_werks_r | |
| IMPORTING | ||
| E_TBLP | = lv_e_tblp | |
| E_RC | = lv_e_rc | |
| EXCEPTIONS | ||
| SERIAL_NUMBERS = 1 | ||
| CREATE_PLORD_FAILURE = 10 | ||
| TBLP_ERROR = 11 | ||
| NO_MAT_PROCUREMENT = 12 | ||
| CCODES_NOT_SAME = 2 | ||
| STOCK_TOO_LOW = 3 | ||
| INVALID_MTART = 4 | ||
| INVALID_CCODE = 5 | ||
| WRONG_POSTING_PERIOD = 6 | ||
| WBS_INVALID = 7 | ||
| MOVEMENT_FAILURE = 8 | ||
| CREATE_RESERVATION_FAILURE = 9 | ||
| . " TBLP_TRANSFER_LOAN_CREATE | ||
ABAP code using 7.40 inline data declarations to call FM TBLP_TRANSFER_LOAN_CREATE
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 PSPNR FROM PRPS INTO @DATA(ld_i_wbss). | ||||
| "SELECT single LGORT FROM RM07M INTO @DATA(ld_i_lgort_r). | ||||
| "SELECT single DELKZ FROM MDPS INTO @DATA(ld_i_delkz). | ||||
| "SELECT single DELNR FROM MDPS INTO @DATA(ld_i_delnr). | ||||
| "SELECT single DELPS FROM MDPS INTO @DATA(ld_i_delps). | ||||
| DATA(ld_i_commit) | = ' '. | |||
| "SELECT single SUBRC FROM SY INTO @DATA(ld_e_rc). | ||||
| "SELECT single MATNR FROM MARC INTO @DATA(ld_i_matnr). | ||||
| "SELECT single WERKS FROM MARC INTO @DATA(ld_i_werks_s). | ||||
| "SELECT single LGORT FROM RM07M INTO @DATA(ld_i_lgort_s). | ||||
| "SELECT single ERFMG FROM MSEG INTO @DATA(ld_i_erfmg). | ||||
| "SELECT single ERFME FROM MSEG INTO @DATA(ld_i_erfme). | ||||
| "SELECT single CHARG FROM MSEG INTO @DATA(ld_i_charg). | ||||
| "SELECT single PSPNR FROM PRPS INTO @DATA(ld_i_wbsr). | ||||
| "SELECT single WERKS FROM MARC INTO @DATA(ld_i_werks_r). | ||||
Search for further information about these or an SAP related objects