SAP LR_DEBITOR_PARTNER_ASSIGN Function Module for NOTRANSL: Zuordnungen Deitor - Geschäftspartner ermitteln









LR_DEBITOR_PARTNER_ASSIGN is a standard lr debitor partner assign SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Zuordnungen Deitor - Geschäftspartner ermitteln 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 lr debitor partner assign FM, simply by entering the name LR_DEBITOR_PARTNER_ASSIGN into the relevant SAP transaction such as SE37 or SE38.

Function Group: LBU1
Program Name: SAPLLBU1
Main Program: SAPLLBU1
Appliation area: V
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function LR_DEBITOR_PARTNER_ASSIGN 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 'LR_DEBITOR_PARTNER_ASSIGN'"NOTRANSL: Zuordnungen Deitor - Geschäftspartner ermitteln
EXPORTING
* I_KUNNR = "
* I_PARTNER = "
* I_XMEMORY = "
* I_XWA = "

IMPORTING
E_KUNNR = "
E_KUNNR_TEMP = "Customer Number
E_PARTNER = "

EXCEPTIONS
NOT_FOUND = 1 WRONG_ASSIGN = 2 WRONG_PARAMETERS = 3 NUMBER_MISSING = 4
.



IMPORTING Parameters details for LR_DEBITOR_PARTNER_ASSIGN

I_KUNNR -

Data type: KNA1-KUNNR
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_PARTNER -

Data type: BUT000-PARTNER
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_XMEMORY -

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

I_XWA -

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

EXPORTING Parameters details for LR_DEBITOR_PARTNER_ASSIGN

E_KUNNR -

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

E_KUNNR_TEMP - Customer Number

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

E_PARTNER -

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

EXCEPTIONS details

NOT_FOUND -

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

WRONG_ASSIGN -

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

WRONG_PARAMETERS -

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

NUMBER_MISSING -

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

Copy and paste ABAP code example for LR_DEBITOR_PARTNER_ASSIGN 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_kunnr  TYPE KNA1-KUNNR, "   
lv_i_kunnr  TYPE KNA1-KUNNR, "   
lv_not_found  TYPE KNA1, "   
lv_i_partner  TYPE BUT000-PARTNER, "   
lv_e_kunnr_temp  TYPE KNA1-KUNNR, "   
lv_wrong_assign  TYPE KNA1, "   
lv_e_partner  TYPE BUT000-PARTNER, "   
lv_i_xmemory  TYPE BOOLE-BOOLE, "   
lv_wrong_parameters  TYPE BOOLE, "   
lv_i_xwa  TYPE BOOLE-BOOLE, "   
lv_number_missing  TYPE BOOLE. "   

  CALL FUNCTION 'LR_DEBITOR_PARTNER_ASSIGN'  "NOTRANSL: Zuordnungen Deitor - Geschäftspartner ermitteln
    EXPORTING
         I_KUNNR = lv_i_kunnr
         I_PARTNER = lv_i_partner
         I_XMEMORY = lv_i_xmemory
         I_XWA = lv_i_xwa
    IMPORTING
         E_KUNNR = lv_e_kunnr
         E_KUNNR_TEMP = lv_e_kunnr_temp
         E_PARTNER = lv_e_partner
    EXCEPTIONS
        NOT_FOUND = 1
        WRONG_ASSIGN = 2
        WRONG_PARAMETERS = 3
        NUMBER_MISSING = 4
. " LR_DEBITOR_PARTNER_ASSIGN




ABAP code using 7.40 inline data declarations to call FM LR_DEBITOR_PARTNER_ASSIGN

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 KUNNR FROM KNA1 INTO @DATA(ld_e_kunnr).
 
"SELECT single KUNNR FROM KNA1 INTO @DATA(ld_i_kunnr).
 
 
"SELECT single PARTNER FROM BUT000 INTO @DATA(ld_i_partner).
 
"SELECT single KUNNR FROM KNA1 INTO @DATA(ld_e_kunnr_temp).
 
 
"SELECT single PARTNER FROM BUT000 INTO @DATA(ld_e_partner).
 
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_xmemory).
 
 
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_xwa).
 
 


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!