SAP Function Modules

BAPI_BASICPAY_CHANGE SAP Function module - Change Basic Pay







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

Associated Function Group: BPAY
Released Date: 29.08.1997
Processing type: Remote-Enabled
remote enabled module settings


Pattern for FM BAPI_BASICPAY_CHANGE - BAPI BASICPAY CHANGE





CALL FUNCTION 'BAPI_BASICPAY_CHANGE' "Change Basic Pay
  EXPORTING
    employeenumber =            " bapip0008-pernr  Personnel number
    subtype =                   " bapip0008-subty  Subtype
    objectid =                  " bapip0008-objps  Object identification
    lockindicator =             " bapip0008-sprps  Lock indicator for HR master record
    validitybegin =             " bapip0008-begda  Valid from date
    validityend =               " bapip0008-endda  Valid To Date
    recordnumber =              " bapip0008-seqnr  Number of Infotype Record
*   payscaletype =              " bapip0008-trfar  Pay scale type
*   payscalearea =              " bapip0008-trfgb  Pay Scale Area
*   payscalegroup =             " bapip0008-trfgr  Pay Scale Group
*   payscalelevel =             " bapip0008-trfst  Pay scale level
*   nextincrease =              " bapip0008-stvor  Date of next increase
*   localallowlevel =           " bapip0008-orzst  Cost of living allowance level
*   partnership =               " bapip0008-partn  Partnership
*   currency =                  " bapip0008-waers  Currency Key
*   comparisonpayscltype =      " bapip0008-vglta  Comparison pay scale type
*   comparisonpaysclarea =      " bapip0008-vglgb  Comparison pay scale area
*   comparisonpaysclgrp =       " bapip0008-vglgr  Comparison pay scale group
*   comparisonpayscllvl =       " bapip0008-vglst  Comparison pay scale level
*   compnextincrease =          " bapip0008-vglsv  Date of next increase
*   capacityutillevel =         " bapip0008-bsgrd  Capacity Util. Level
*   hoursworkedperperiod =      " bapip0008-divgv  Hours worked per payroll period
*   annualsalary =              " bapip0008-ansal  Currency Amount of BAPI Interfaces
*   casegroupcatalog =          " bapip0008-falgk  Case group catalog
*   casegroup =                 " bapip0008-falgr  Case group
*   currencyannualsalary =      " bapip0008-ancur  Currency key for annual salary
*   reason =                    " bapip0008-preas  Reason for changing master data
*   nocommit =                  " bapi_stand-no_commit  COMMIT control at BAPI interface
  IMPORTING
    return =                    " bapireturn1   Structure for return code
* TABLES
*   wagetypes =                 " bapip0008p    Transfer structure
    .  "  BAPI_BASICPAY_CHANGE

ABAP code example for Function Module BAPI_BASICPAY_CHANGE





The ABAP code below is a full code listing to execute function module BAPI_BASICPAY_CHANGE 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_return  TYPE BAPIRETURN1 ,
it_wagetypes  TYPE STANDARD TABLE OF BAPIP0008P,"TABLES PARAM
wa_wagetypes  LIKE LINE OF it_wagetypes .


DATA(ld_employeenumber) = Check type of data required

DATA(ld_subtype) = some text here

DATA(ld_objectid) = some text here

DATA(ld_lockindicator) = some text here

DATA(ld_validitybegin) = 20210129

DATA(ld_validityend) = 20210129

DATA(ld_recordnumber) = Check type of data required

DATA(ld_payscaletype) = some text here

DATA(ld_payscalearea) = some text here

DATA(ld_payscalegroup) = some text here

DATA(ld_payscalelevel) = some text here

DATA(ld_nextincrease) = 20210129

DATA(ld_localallowlevel) = some text here

DATA(ld_partnership) = some text here

DATA(ld_currency) = Check type of data required

DATA(ld_comparisonpayscltype) = some text here

DATA(ld_comparisonpaysclarea) = some text here

DATA(ld_comparisonpaysclgrp) = some text here

DATA(ld_comparisonpayscllvl) = some text here

DATA(ld_compnextincrease) = 20210129

DATA(ld_capacityutillevel) = Check type of data required

DATA(ld_hoursworkedperperiod) = Check type of data required

DATA(ld_annualsalary) = Check type of data required

DATA(ld_casegroupcatalog) = some text here

DATA(ld_casegroup) = some text here

DATA(ld_currencyannualsalary) = Check type of data required

DATA(ld_reason) = some text here

DATA(ld_nocommit) = some text here

"populate fields of struture and append to itab
append wa_wagetypes to it_wagetypes. . CALL FUNCTION 'BAPI_BASICPAY_CHANGE' EXPORTING employeenumber = ld_employeenumber subtype = ld_subtype objectid = ld_objectid lockindicator = ld_lockindicator validitybegin = ld_validitybegin validityend = ld_validityend recordnumber = ld_recordnumber * payscaletype = ld_payscaletype * payscalearea = ld_payscalearea * payscalegroup = ld_payscalegroup * payscalelevel = ld_payscalelevel * nextincrease = ld_nextincrease * localallowlevel = ld_localallowlevel * partnership = ld_partnership * currency = ld_currency * comparisonpayscltype = ld_comparisonpayscltype * comparisonpaysclarea = ld_comparisonpaysclarea * comparisonpaysclgrp = ld_comparisonpaysclgrp * comparisonpayscllvl = ld_comparisonpayscllvl * compnextincrease = ld_compnextincrease * capacityutillevel = ld_capacityutillevel * hoursworkedperperiod = ld_hoursworkedperperiod * annualsalary = ld_annualsalary * casegroupcatalog = ld_casegroupcatalog * casegroup = ld_casegroup * currencyannualsalary = ld_currencyannualsalary * reason = ld_reason * nocommit = ld_nocommit IMPORTING return = ld_return * TABLES * wagetypes = it_wagetypes . " BAPI_BASICPAY_CHANGE
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_return  TYPE BAPIRETURN1 ,
ld_employeenumber  TYPE BAPIP0008-PERNR ,
it_wagetypes  TYPE STANDARD TABLE OF BAPIP0008P ,
wa_wagetypes  LIKE LINE OF it_wagetypes,
ld_subtype  TYPE BAPIP0008-SUBTY ,
ld_objectid  TYPE BAPIP0008-OBJPS ,
ld_lockindicator  TYPE BAPIP0008-SPRPS ,
ld_validitybegin  TYPE BAPIP0008-BEGDA ,
ld_validityend  TYPE BAPIP0008-ENDDA ,
ld_recordnumber  TYPE BAPIP0008-SEQNR ,
ld_payscaletype  TYPE BAPIP0008-TRFAR ,
ld_payscalearea  TYPE BAPIP0008-TRFGB ,
ld_payscalegroup  TYPE BAPIP0008-TRFGR ,
ld_payscalelevel  TYPE BAPIP0008-TRFST ,
ld_nextincrease  TYPE BAPIP0008-STVOR ,
ld_localallowlevel  TYPE BAPIP0008-ORZST ,
ld_partnership  TYPE BAPIP0008-PARTN ,
ld_currency  TYPE BAPIP0008-WAERS ,
ld_comparisonpayscltype  TYPE BAPIP0008-VGLTA ,
ld_comparisonpaysclarea  TYPE BAPIP0008-VGLGB ,
ld_comparisonpaysclgrp  TYPE BAPIP0008-VGLGR ,
ld_comparisonpayscllvl  TYPE BAPIP0008-VGLST ,
ld_compnextincrease  TYPE BAPIP0008-VGLSV ,
ld_capacityutillevel  TYPE BAPIP0008-BSGRD ,
ld_hoursworkedperperiod  TYPE BAPIP0008-DIVGV ,
ld_annualsalary  TYPE BAPIP0008-ANSAL ,
ld_casegroupcatalog  TYPE BAPIP0008-FALGK ,
ld_casegroup  TYPE BAPIP0008-FALGR ,
ld_currencyannualsalary  TYPE BAPIP0008-ANCUR ,
ld_reason  TYPE BAPIP0008-PREAS ,
ld_nocommit  TYPE BAPI_STAND-NO_COMMIT .


ld_employeenumber = Check type of data required

"populate fields of struture and append to itab
append wa_wagetypes to it_wagetypes.

ld_subtype = some text here

ld_objectid = some text here

ld_lockindicator = some text here

ld_validitybegin = 20210129

ld_validityend = 20210129

ld_recordnumber = Check type of data required

ld_payscaletype = some text here

ld_payscalearea = some text here

ld_payscalegroup = some text here

ld_payscalelevel = some text here

ld_nextincrease = 20210129

ld_localallowlevel = some text here

ld_partnership = some text here

ld_currency = Check type of data required

ld_comparisonpayscltype = some text here

ld_comparisonpaysclarea = some text here

ld_comparisonpaysclgrp = some text here

ld_comparisonpayscllvl = some text here

ld_compnextincrease = 20210129

ld_capacityutillevel = Check type of data required

ld_hoursworkedperperiod = Check type of data required

ld_annualsalary = Check type of data required

ld_casegroupcatalog = some text here

ld_casegroup = some text here

ld_currencyannualsalary = Check type of data required

ld_reason = some text here

ld_nocommit = some text here

SAP Documentation for FM BAPI_BASICPAY_CHANGE


You can use this method to change a Basic Pay record (0008).

HINTS ...See here for full SAP fm documentation






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