SAP Function Modules

PPEBAPITOOLS_GET_CHNG_BAL_DATA SAP Function module







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

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


Pattern for FM PPEBAPITOOLS_GET_CHNG_BAL_DATA - PPEBAPITOOLS GET CHNG BAL DATA





CALL FUNCTION 'PPEBAPITOOLS_GET_CHNG_BAL_DATA' "
* EXPORTING
*   i_mode_all = 'X'            " xfeld
*   i_msg_handling = 'A'        " char1
*   i_delta_flg = SPACE         " xfeld
*   apo_cif = SPACE             " xfeld
  TABLES
    chng_obj =                  " ppe_changed_objects
*   linebalancingdata =         " bapi1183_bal_baldata
*   linebalancingtext =         " bapi1183_bal_baltext
*   linebalancingvalid =        " bapi1183_bal_valid
*   linebalancingrelation =     " bapi1183_bal_relation
*   modelmixheader =            " bapi1183_bal_modmixdata
*   modelmixpositions =         " bapi1183_bal_modmixpos
*   admindata =                 " pvshi_admindata
*   return =                    " bapiret2
    .  "  PPEBAPITOOLS_GET_CHNG_BAL_DATA

ABAP code example for Function Module PPEBAPITOOLS_GET_CHNG_BAL_DATA





The ABAP code below is a full code listing to execute function module PPEBAPITOOLS_GET_CHNG_BAL_DATA 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_chng_obj  TYPE STANDARD TABLE OF PPE_CHANGED_OBJECTS,"TABLES PARAM
wa_chng_obj  LIKE LINE OF it_chng_obj ,
it_linebalancingdata  TYPE STANDARD TABLE OF BAPI1183_BAL_BALDATA,"TABLES PARAM
wa_linebalancingdata  LIKE LINE OF it_linebalancingdata ,
it_linebalancingtext  TYPE STANDARD TABLE OF BAPI1183_BAL_BALTEXT,"TABLES PARAM
wa_linebalancingtext  LIKE LINE OF it_linebalancingtext ,
it_linebalancingvalid  TYPE STANDARD TABLE OF BAPI1183_BAL_VALID,"TABLES PARAM
wa_linebalancingvalid  LIKE LINE OF it_linebalancingvalid ,
it_linebalancingrelation  TYPE STANDARD TABLE OF BAPI1183_BAL_RELATION,"TABLES PARAM
wa_linebalancingrelation  LIKE LINE OF it_linebalancingrelation ,
it_modelmixheader  TYPE STANDARD TABLE OF BAPI1183_BAL_MODMIXDATA,"TABLES PARAM
wa_modelmixheader  LIKE LINE OF it_modelmixheader ,
it_modelmixpositions  TYPE STANDARD TABLE OF BAPI1183_BAL_MODMIXPOS,"TABLES PARAM
wa_modelmixpositions  LIKE LINE OF it_modelmixpositions ,
it_admindata  TYPE STANDARD TABLE OF PVSHI_ADMINDATA,"TABLES PARAM
wa_admindata  LIKE LINE OF it_admindata ,
it_return  TYPE STANDARD TABLE OF BAPIRET2,"TABLES PARAM
wa_return  LIKE LINE OF it_return .

DATA(ld_i_mode_all) = 'Check type of data required'.
DATA(ld_i_msg_handling) = 'Check type of data required'.
DATA(ld_i_delta_flg) = 'Check type of data required'.
DATA(ld_apo_cif) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_chng_obj to it_chng_obj.

"populate fields of struture and append to itab
append wa_linebalancingdata to it_linebalancingdata.

"populate fields of struture and append to itab
append wa_linebalancingtext to it_linebalancingtext.

"populate fields of struture and append to itab
append wa_linebalancingvalid to it_linebalancingvalid.

"populate fields of struture and append to itab
append wa_linebalancingrelation to it_linebalancingrelation.

"populate fields of struture and append to itab
append wa_modelmixheader to it_modelmixheader.

"populate fields of struture and append to itab
append wa_modelmixpositions to it_modelmixpositions.

"populate fields of struture and append to itab
append wa_admindata to it_admindata.

"populate fields of struture and append to itab
append wa_return to it_return. . CALL FUNCTION 'PPEBAPITOOLS_GET_CHNG_BAL_DATA' * EXPORTING * i_mode_all = ld_i_mode_all * i_msg_handling = ld_i_msg_handling * i_delta_flg = ld_i_delta_flg * apo_cif = ld_apo_cif TABLES chng_obj = it_chng_obj * linebalancingdata = it_linebalancingdata * linebalancingtext = it_linebalancingtext * linebalancingvalid = it_linebalancingvalid * linebalancingrelation = it_linebalancingrelation * modelmixheader = it_modelmixheader * modelmixpositions = it_modelmixpositions * admindata = it_admindata * return = it_return . " PPEBAPITOOLS_GET_CHNG_BAL_DATA
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_i_mode_all  TYPE XFELD ,
it_chng_obj  TYPE STANDARD TABLE OF PPE_CHANGED_OBJECTS ,
wa_chng_obj  LIKE LINE OF it_chng_obj,
ld_i_msg_handling  TYPE CHAR1 ,
it_linebalancingdata  TYPE STANDARD TABLE OF BAPI1183_BAL_BALDATA ,
wa_linebalancingdata  LIKE LINE OF it_linebalancingdata,
ld_i_delta_flg  TYPE XFELD ,
it_linebalancingtext  TYPE STANDARD TABLE OF BAPI1183_BAL_BALTEXT ,
wa_linebalancingtext  LIKE LINE OF it_linebalancingtext,
ld_apo_cif  TYPE XFELD ,
it_linebalancingvalid  TYPE STANDARD TABLE OF BAPI1183_BAL_VALID ,
wa_linebalancingvalid  LIKE LINE OF it_linebalancingvalid,
it_linebalancingrelation  TYPE STANDARD TABLE OF BAPI1183_BAL_RELATION ,
wa_linebalancingrelation  LIKE LINE OF it_linebalancingrelation,
it_modelmixheader  TYPE STANDARD TABLE OF BAPI1183_BAL_MODMIXDATA ,
wa_modelmixheader  LIKE LINE OF it_modelmixheader,
it_modelmixpositions  TYPE STANDARD TABLE OF BAPI1183_BAL_MODMIXPOS ,
wa_modelmixpositions  LIKE LINE OF it_modelmixpositions,
it_admindata  TYPE STANDARD TABLE OF PVSHI_ADMINDATA ,
wa_admindata  LIKE LINE OF it_admindata,
it_return  TYPE STANDARD TABLE OF BAPIRET2 ,
wa_return  LIKE LINE OF it_return.

ld_i_mode_all = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_chng_obj to it_chng_obj.
ld_i_msg_handling = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_linebalancingdata to it_linebalancingdata.
ld_i_delta_flg = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_linebalancingtext to it_linebalancingtext.
ld_apo_cif = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_linebalancingvalid to it_linebalancingvalid.

"populate fields of struture and append to itab
append wa_linebalancingrelation to it_linebalancingrelation.

"populate fields of struture and append to itab
append wa_modelmixheader to it_modelmixheader.

"populate fields of struture and append to itab
append wa_modelmixpositions to it_modelmixpositions.

"populate fields of struture and append to itab
append wa_admindata to it_admindata.

"populate fields of struture and append to itab
append wa_return to it_return.

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