SAP BUB_BUPR_BUT050_LM_READ Function Module for









BUB_BUPR_BUT050_LM_READ is a standard bub bupr but050 lm read 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 bub bupr but050 lm read FM, simply by entering the name BUB_BUPR_BUT050_LM_READ into the relevant SAP transaction such as SE37 or SE38.

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



Function BUB_BUPR_BUT050_LM_READ 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 'BUB_BUPR_BUT050_LM_READ'"
EXPORTING
* I_XLM1 = ' ' "
* I_XLM2 = ' ' "
* I_XDB = 'X' "
I_XRF = "
* I_XALL = ' ' "
* I_RNMBR = ' ' "
* IV_XCHECK_ONLY = ' ' "
* IV_N = 0 "

TABLES
* T_RELTYP = "
* T_RELATIONS = "
* T_RELATIONS_EXT = "
* T_RELATIONS_LM = "
* T_RELNR = "
* T_PARTNER1 = "
* T_RLTYP = "
* T_PARTNER2 = "
* T_DATE_FROM = "
* T_DATE_TO = "
* T_DFTVAL = "
* T_ACTION = "
.



IMPORTING Parameters details for BUB_BUPR_BUT050_LM_READ

I_XLM1 -

Data type: BUS050FLDS-XLM
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_XLM2 -

Data type: BUS050FLDS-XLM
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_XDB -

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

I_XRF -

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

I_XALL -

Data type: BUS050FLDS-XALL
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_RNMBR -

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

IV_XCHECK_ONLY -

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

IV_N -

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

TABLES Parameters details for BUB_BUPR_BUT050_LM_READ

T_RELTYP -

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

T_RELATIONS -

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

T_RELATIONS_EXT -

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

T_RELATIONS_LM -

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

T_RELNR -

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

T_PARTNER1 -

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

T_RLTYP -

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

T_PARTNER2 -

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

T_DATE_FROM -

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

T_DATE_TO -

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

T_DFTVAL -

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

T_ACTION -

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

Copy and paste ABAP code example for BUB_BUPR_BUT050_LM_READ 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_i_xlm1  TYPE BUS050FLDS-XLM, "   ' '
lt_t_reltyp  TYPE STANDARD TABLE OF BUS050_BTR, "   
lt_t_relations  TYPE STANDARD TABLE OF BUT050, "   
lt_t_relations_ext  TYPE STANDARD TABLE OF BUB01_REL_ADMIN_TAB, "   
lt_t_relations_lm  TYPE STANDARD TABLE OF BUS050___I, "   
lv_i_xlm2  TYPE BUS050FLDS-XLM, "   ' '
lt_t_relnr  TYPE STANDARD TABLE OF BUS050_RNR, "   
lv_i_xdb  TYPE BUS050FLDS-XDB, "   'X'
lt_t_partner1  TYPE STANDARD TABLE OF BUS050_GP, "   
lv_i_xrf  TYPE TBZ9-XRF, "   
lt_t_rltyp  TYPE STANDARD TABLE OF BUS050_RTR, "   
lv_i_xall  TYPE BUS050FLDS-XALL, "   ' '
lt_t_partner2  TYPE STANDARD TABLE OF BUS050_GP, "   
lv_i_rnmbr  TYPE BOOLE-BOOLE, "   ' '
lt_t_date_from  TYPE STANDARD TABLE OF BUS050_DAR, "   
lt_t_date_to  TYPE STANDARD TABLE OF BUS050_DAR, "   
lv_iv_xcheck_only  TYPE BOOLE-BOOLE, "   ' '
lv_iv_n  TYPE I, "   0
lt_t_dftval  TYPE STANDARD TABLE OF BUS050_DTV, "   
lt_t_action  TYPE STANDARD TABLE OF BUB01_ACTION_RNGTAB. "   

  CALL FUNCTION 'BUB_BUPR_BUT050_LM_READ'  "
    EXPORTING
         I_XLM1 = lv_i_xlm1
         I_XLM2 = lv_i_xlm2
         I_XDB = lv_i_xdb
         I_XRF = lv_i_xrf
         I_XALL = lv_i_xall
         I_RNMBR = lv_i_rnmbr
         IV_XCHECK_ONLY = lv_iv_xcheck_only
         IV_N = lv_iv_n
    TABLES
         T_RELTYP = lt_t_reltyp
         T_RELATIONS = lt_t_relations
         T_RELATIONS_EXT = lt_t_relations_ext
         T_RELATIONS_LM = lt_t_relations_lm
         T_RELNR = lt_t_relnr
         T_PARTNER1 = lt_t_partner1
         T_RLTYP = lt_t_rltyp
         T_PARTNER2 = lt_t_partner2
         T_DATE_FROM = lt_t_date_from
         T_DATE_TO = lt_t_date_to
         T_DFTVAL = lt_t_dftval
         T_ACTION = lt_t_action
. " BUB_BUPR_BUT050_LM_READ




ABAP code using 7.40 inline data declarations to call FM BUB_BUPR_BUT050_LM_READ

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 XLM FROM BUS050FLDS INTO @DATA(ld_i_xlm1).
DATA(ld_i_xlm1) = ' '.
 
 
 
 
 
"SELECT single XLM FROM BUS050FLDS INTO @DATA(ld_i_xlm2).
DATA(ld_i_xlm2) = ' '.
 
 
"SELECT single XDB FROM BUS050FLDS INTO @DATA(ld_i_xdb).
DATA(ld_i_xdb) = 'X'.
 
 
"SELECT single XRF FROM TBZ9 INTO @DATA(ld_i_xrf).
 
 
"SELECT single XALL FROM BUS050FLDS INTO @DATA(ld_i_xall).
DATA(ld_i_xall) = ' '.
 
 
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_rnmbr).
DATA(ld_i_rnmbr) = ' '.
 
 
 
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_iv_xcheck_only).
DATA(ld_iv_xcheck_only) = ' '.
 
 
 
 


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!