SAP Function Modules

OIUXI_LOAD_CUSTOMER_BDC SAP Function module - Load Function - Customers







OIUXI_LOAD_CUSTOMER_BDC is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name OIUXI_LOAD_CUSTOMER_BDC into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: OIUXI_CUST_VEND_INTG
Released Date: Not Released
Processing type: Remote-Enabled
remote enabled module settings


Pattern for FM OIUXI_LOAD_CUSTOMER_BDC - OIUXI LOAD CUSTOMER BDC





CALL FUNCTION 'OIUXI_LOAD_CUSTOMER_BDC' "Load Function - Customers
  EXPORTING
    i_cust =                    " roiuxi_load_customer  Customer Load Structure
*   same_ba_no = 'X'            " char01        Character field length 1
*   conn_id =                   " oiuxi_conn_id  Connection ID
*   trace_on =                  " char01        OIUT2 Customising data
  IMPORTING
    rc =                        " sy-subrc      Return value, return value after ABAP statements
  TABLES
*   bank_data =                 " roiuxi_load_bank_info  Bank Information for Customers/Vendors
    return =                    " bapiret2      Return parameter
    .  "  OIUXI_LOAD_CUSTOMER_BDC

ABAP code example for Function Module OIUXI_LOAD_CUSTOMER_BDC





The ABAP code below is a full code listing to execute function module OIUXI_LOAD_CUSTOMER_BDC including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
ld_rc  TYPE SY-SUBRC ,
it_bank_data  TYPE STANDARD TABLE OF ROIUXI_LOAD_BANK_INFO,"TABLES PARAM
wa_bank_data  LIKE LINE OF it_bank_data ,
it_return  TYPE STANDARD TABLE OF BAPIRET2,"TABLES PARAM
wa_return  LIKE LINE OF it_return .

DATA(ld_i_cust) = 'Check type of data required'.
DATA(ld_same_ba_no) = 'Check type of data required'.
DATA(ld_conn_id) = 'Check type of data required'.
DATA(ld_trace_on) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_bank_data to it_bank_data.

"populate fields of struture and append to itab
append wa_return to it_return. . CALL FUNCTION 'OIUXI_LOAD_CUSTOMER_BDC' EXPORTING i_cust = ld_i_cust * same_ba_no = ld_same_ba_no * conn_id = ld_conn_id * trace_on = ld_trace_on IMPORTING rc = ld_rc TABLES * bank_data = it_bank_data return = it_return . " OIUXI_LOAD_CUSTOMER_BDC
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_rc  TYPE SY-SUBRC ,
ld_i_cust  TYPE ROIUXI_LOAD_CUSTOMER ,
it_bank_data  TYPE STANDARD TABLE OF ROIUXI_LOAD_BANK_INFO ,
wa_bank_data  LIKE LINE OF it_bank_data,
ld_same_ba_no  TYPE CHAR01 ,
it_return  TYPE STANDARD TABLE OF BAPIRET2 ,
wa_return  LIKE LINE OF it_return,
ld_conn_id  TYPE OIUXI_CONN_ID ,
ld_trace_on  TYPE CHAR01 .

ld_i_cust = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_bank_data to it_bank_data.
ld_same_ba_no = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_return to it_return.
ld_conn_id = 'Check type of data required'.
ld_trace_on = 'Check type of data required'.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name OIUXI_LOAD_CUSTOMER_BDC or its description.