SAP BUPA_MAIN_SELECT_NEXT_DATA Function Module for NOTRANSL: Baustein für blockweises Lesen der Partner-Daten









BUPA_MAIN_SELECT_NEXT_DATA is a standard bupa main select next data 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: Baustein für blockweises Lesen der Partner-Daten 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 bupa main select next data FM, simply by entering the name BUPA_MAIN_SELECT_NEXT_DATA into the relevant SAP transaction such as SE37 or SE38.

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



Function BUPA_MAIN_SELECT_NEXT_DATA 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 'BUPA_MAIN_SELECT_NEXT_DATA'"NOTRANSL: Baustein für blockweises Lesen der Partner-Daten
IMPORTING
LASTBLOCK = "DE-EN-LANG-SWITCH-NO-TRANSLATION
COMPLETE_RECORD_NUMBER = "DE-EN-LANG-SWITCH-NO-TRANSLATION
COMPLETE_BLOCK_NUMBER = "DE-EN-LANG-SWITCH-NO-TRANSLATION

TABLES
* OUT_BUT000_TAB = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* OUT_ADRCT_TAB = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* OUT_ADRP_TAB = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* OUT_ADR2_TAB = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* OUT_ADR3_TAB = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* OUT_ADR4_TAB = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* OUT_ADR5_TAB = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* OUT_ADR6_TAB = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* OUT_ADR7_TAB = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* OUT_ADR8_TAB = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* OUT_ADR9_TAB = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* OUT_BUT001_TAB = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* OUT_ADR10_TAB = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* OUT_ADR11_TAB = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* OUT_ADR12_TAB = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* OUT_ADR13_TAB = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* OUT_ADRT_TAB = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* OUT_BUT020_TAB = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* OUT_BUT021_TAB = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* OUT_BUT100_TAB = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* OUT_BUT0BK_TAB = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* OUT_BUT0CC_TAB = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* OUT_DFKKBPTAXNUM_TAB = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* OUT_ADRC_TAB = "DE-EN-LANG-SWITCH-NO-TRANSLATION

EXCEPTIONS
FUNCTION_MISSING = 1 FUNCTION_CALL_FAILED = 2
.



EXPORTING Parameters details for BUPA_MAIN_SELECT_NEXT_DATA

LASTBLOCK - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

COMPLETE_RECORD_NUMBER - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

COMPLETE_BLOCK_NUMBER - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

TABLES Parameters details for BUPA_MAIN_SELECT_NEXT_DATA

OUT_BUT000_TAB - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type: BUT000
Optional: Yes
Call by Reference: Yes

OUT_ADRCT_TAB - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type: ADRCT
Optional: Yes
Call by Reference: Yes

OUT_ADRP_TAB - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type: ADRP
Optional: Yes
Call by Reference: Yes

OUT_ADR2_TAB - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type: ADR2
Optional: Yes
Call by Reference: Yes

OUT_ADR3_TAB - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type: ADR3
Optional: Yes
Call by Reference: Yes

OUT_ADR4_TAB - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type: ADR4
Optional: Yes
Call by Reference: Yes

OUT_ADR5_TAB - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type: ADR5
Optional: Yes
Call by Reference: Yes

OUT_ADR6_TAB - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type: ADR6
Optional: Yes
Call by Reference: Yes

OUT_ADR7_TAB - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type: ADR7
Optional: Yes
Call by Reference: Yes

OUT_ADR8_TAB - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type: ADR8
Optional: Yes
Call by Reference: Yes

OUT_ADR9_TAB - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type: ADR9
Optional: Yes
Call by Reference: Yes

OUT_BUT001_TAB - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type: BUT001
Optional: Yes
Call by Reference: Yes

OUT_ADR10_TAB - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type: ADR10
Optional: Yes
Call by Reference: Yes

OUT_ADR11_TAB - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type: ADR11
Optional: Yes
Call by Reference: Yes

OUT_ADR12_TAB - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type: ADR12
Optional: Yes
Call by Reference: Yes

OUT_ADR13_TAB - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type: ADR13
Optional: Yes
Call by Reference: Yes

OUT_ADRT_TAB - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type: ADRT
Optional: Yes
Call by Reference: Yes

OUT_BUT020_TAB - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type: BUT020
Optional: Yes
Call by Reference: Yes

OUT_BUT021_TAB - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type: BUT021
Optional: Yes
Call by Reference: Yes

OUT_BUT100_TAB - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type: BUT100
Optional: Yes
Call by Reference: Yes

OUT_BUT0BK_TAB - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type: BUT0BK
Optional: Yes
Call by Reference: Yes

OUT_BUT0CC_TAB - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type: BUT0CC
Optional: Yes
Call by Reference: Yes

OUT_DFKKBPTAXNUM_TAB - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type: DFKKBPTAXNUM
Optional: Yes
Call by Reference: Yes

OUT_ADRC_TAB - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type: ADRC
Optional: Yes
Call by Reference: Yes

EXCEPTIONS details

FUNCTION_MISSING - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

FUNCTION_CALL_FAILED - Function module call error

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

Copy and paste ABAP code example for BUPA_MAIN_SELECT_NEXT_DATA 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_lastblock  TYPE SEL_FIELDS_CRM-READ_FLAG, "   
lt_out_but000_tab  TYPE STANDARD TABLE OF BUT000, "   
lv_function_missing  TYPE BUT000, "   
lt_out_adrct_tab  TYPE STANDARD TABLE OF ADRCT, "   
lt_out_adrp_tab  TYPE STANDARD TABLE OF ADRP, "   
lt_out_adr2_tab  TYPE STANDARD TABLE OF ADR2, "   
lt_out_adr3_tab  TYPE STANDARD TABLE OF ADR3, "   
lt_out_adr4_tab  TYPE STANDARD TABLE OF ADR4, "   
lt_out_adr5_tab  TYPE STANDARD TABLE OF ADR5, "   
lt_out_adr6_tab  TYPE STANDARD TABLE OF ADR6, "   
lt_out_adr7_tab  TYPE STANDARD TABLE OF ADR7, "   
lt_out_adr8_tab  TYPE STANDARD TABLE OF ADR8, "   
lt_out_adr9_tab  TYPE STANDARD TABLE OF ADR9, "   
lt_out_but001_tab  TYPE STANDARD TABLE OF BUT001, "   
lv_function_call_failed  TYPE BUT001, "   
lv_complete_record_number  TYPE SEL_FIELDS_CRM-MAX_PARTNER, "   
lt_out_adr10_tab  TYPE STANDARD TABLE OF ADR10, "   
lt_out_adr11_tab  TYPE STANDARD TABLE OF ADR11, "   
lt_out_adr12_tab  TYPE STANDARD TABLE OF ADR12, "   
lt_out_adr13_tab  TYPE STANDARD TABLE OF ADR13, "   
lt_out_adrt_tab  TYPE STANDARD TABLE OF ADRT, "   
lt_out_but020_tab  TYPE STANDARD TABLE OF BUT020, "   
lv_complete_block_number  TYPE SEL_FIELDS_CRM-MAX_PARTNER, "   
lt_out_but021_tab  TYPE STANDARD TABLE OF BUT021, "   
lt_out_but100_tab  TYPE STANDARD TABLE OF BUT100, "   
lt_out_but0bk_tab  TYPE STANDARD TABLE OF BUT0BK, "   
lt_out_but0cc_tab  TYPE STANDARD TABLE OF BUT0CC, "   
lt_out_dfkkbptaxnum_tab  TYPE STANDARD TABLE OF DFKKBPTAXNUM, "   
lt_out_adrc_tab  TYPE STANDARD TABLE OF ADRC. "   

  CALL FUNCTION 'BUPA_MAIN_SELECT_NEXT_DATA'  "NOTRANSL: Baustein für blockweises Lesen der Partner-Daten
    IMPORTING
         LASTBLOCK = lv_lastblock
         COMPLETE_RECORD_NUMBER = lv_complete_record_number
         COMPLETE_BLOCK_NUMBER = lv_complete_block_number
    TABLES
         OUT_BUT000_TAB = lt_out_but000_tab
         OUT_ADRCT_TAB = lt_out_adrct_tab
         OUT_ADRP_TAB = lt_out_adrp_tab
         OUT_ADR2_TAB = lt_out_adr2_tab
         OUT_ADR3_TAB = lt_out_adr3_tab
         OUT_ADR4_TAB = lt_out_adr4_tab
         OUT_ADR5_TAB = lt_out_adr5_tab
         OUT_ADR6_TAB = lt_out_adr6_tab
         OUT_ADR7_TAB = lt_out_adr7_tab
         OUT_ADR8_TAB = lt_out_adr8_tab
         OUT_ADR9_TAB = lt_out_adr9_tab
         OUT_BUT001_TAB = lt_out_but001_tab
         OUT_ADR10_TAB = lt_out_adr10_tab
         OUT_ADR11_TAB = lt_out_adr11_tab
         OUT_ADR12_TAB = lt_out_adr12_tab
         OUT_ADR13_TAB = lt_out_adr13_tab
         OUT_ADRT_TAB = lt_out_adrt_tab
         OUT_BUT020_TAB = lt_out_but020_tab
         OUT_BUT021_TAB = lt_out_but021_tab
         OUT_BUT100_TAB = lt_out_but100_tab
         OUT_BUT0BK_TAB = lt_out_but0bk_tab
         OUT_BUT0CC_TAB = lt_out_but0cc_tab
         OUT_DFKKBPTAXNUM_TAB = lt_out_dfkkbptaxnum_tab
         OUT_ADRC_TAB = lt_out_adrc_tab
    EXCEPTIONS
        FUNCTION_MISSING = 1
        FUNCTION_CALL_FAILED = 2
. " BUPA_MAIN_SELECT_NEXT_DATA




ABAP code using 7.40 inline data declarations to call FM BUPA_MAIN_SELECT_NEXT_DATA

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 READ_FLAG FROM SEL_FIELDS_CRM INTO @DATA(ld_lastblock).
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
"SELECT single MAX_PARTNER FROM SEL_FIELDS_CRM INTO @DATA(ld_complete_record_number).
 
 
 
 
 
 
 
"SELECT single MAX_PARTNER FROM SEL_FIELDS_CRM INTO @DATA(ld_complete_block_number).
 
 
 
 
 
 
 


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!