SAP Function Modules

BUP_BUPA_BUT100_GET SAP Function module







BUP_BUPA_BUT100_GET 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 BUP_BUPA_BUT100_GET into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: BUD0
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM BUP_BUPA_BUT100_GET - BUP BUPA BUT100 GET





CALL FUNCTION 'BUP_BUPA_BUT100_GET' "
* TABLES
*   t_but100 =                  " but100
*   t_but100_old =              " but100
*   t_data =                    " busdata
*   t_partnerroles =            " bup_partnerroles
*   t_but100_all =              " but100
    .  "  BUP_BUPA_BUT100_GET

ABAP code example for Function Module BUP_BUPA_BUT100_GET





The ABAP code below is a full code listing to execute function module BUP_BUPA_BUT100_GET 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:
it_t_but100  TYPE STANDARD TABLE OF BUT100,"TABLES PARAM
wa_t_but100  LIKE LINE OF it_t_but100 ,
it_t_but100_old  TYPE STANDARD TABLE OF BUT100,"TABLES PARAM
wa_t_but100_old  LIKE LINE OF it_t_but100_old ,
it_t_data  TYPE STANDARD TABLE OF BUSDATA,"TABLES PARAM
wa_t_data  LIKE LINE OF it_t_data ,
it_t_partnerroles  TYPE STANDARD TABLE OF BUP_PARTNERROLES,"TABLES PARAM
wa_t_partnerroles  LIKE LINE OF it_t_partnerroles ,
it_t_but100_all  TYPE STANDARD TABLE OF BUT100,"TABLES PARAM
wa_t_but100_all  LIKE LINE OF it_t_but100_all .


"populate fields of struture and append to itab
append wa_t_but100 to it_t_but100.

"populate fields of struture and append to itab
append wa_t_but100_old to it_t_but100_old.

"populate fields of struture and append to itab
append wa_t_data to it_t_data.

"populate fields of struture and append to itab
append wa_t_partnerroles to it_t_partnerroles.

"populate fields of struture and append to itab
append wa_t_but100_all to it_t_but100_all. . CALL FUNCTION 'BUP_BUPA_BUT100_GET' * TABLES * t_but100 = it_t_but100 * t_but100_old = it_t_but100_old * t_data = it_t_data * t_partnerroles = it_t_partnerroles * t_but100_all = it_t_but100_all . " BUP_BUPA_BUT100_GET
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:
it_t_but100  TYPE STANDARD TABLE OF BUT100 ,
wa_t_but100  LIKE LINE OF it_t_but100,
it_t_but100_old  TYPE STANDARD TABLE OF BUT100 ,
wa_t_but100_old  LIKE LINE OF it_t_but100_old,
it_t_data  TYPE STANDARD TABLE OF BUSDATA ,
wa_t_data  LIKE LINE OF it_t_data,
it_t_partnerroles  TYPE STANDARD TABLE OF BUP_PARTNERROLES ,
wa_t_partnerroles  LIKE LINE OF it_t_partnerroles,
it_t_but100_all  TYPE STANDARD TABLE OF BUT100 ,
wa_t_but100_all  LIKE LINE OF it_t_but100_all.


"populate fields of struture and append to itab
append wa_t_but100 to it_t_but100.

"populate fields of struture and append to itab
append wa_t_but100_old to it_t_but100_old.

"populate fields of struture and append to itab
append wa_t_data to it_t_data.

"populate fields of struture and append to itab
append wa_t_partnerroles to it_t_partnerroles.

"populate fields of struture and append to itab
append wa_t_but100_all to it_t_but100_all.

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 BUP_BUPA_BUT100_GET or its description.