SAP Function Modules

HRGPBS_ME_STARTER_REMOVE SAP Function module - ME consolidation for Starters







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

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


Pattern for FM HRGPBS_ME_STARTER_REMOVE - HRGPBS ME STARTER REMOVE





CALL FUNCTION 'HRGPBS_ME_STARTER_REMOVE' "ME consolidation for Starters
  TABLES
    it_p45data =                " p08_p46gb0    HR-GB: Reporting structure Starter Notification
    it_p46data =                " p08_p46gb0    HR-GB: Reporting structure Starter Notification
    it_p46edata =               " p08_p46gb0    HR-GB: Reporting structure Starter Notification
    it_error =                  " hrerror       Transfer table for HR error handling
    it_sel_pernr =              " p08p_me_pernr  Multiple Employment Structure of Pernrs
  CHANGING
    i_selected =                " n             Number of Records selected
    i_rejected =                " n             Number of Records rejected
    i_already_issued =          " n             Number of already issued
    i_p45 =                     " n             Number of P45(3) processed
    i_p46 =                     " n             Number of P46 processed
    i_p46e =                    " n             Number of P46(Expat) processed
    .  "  HRGPBS_ME_STARTER_REMOVE

ABAP code example for Function Module HRGPBS_ME_STARTER_REMOVE





The ABAP code below is a full code listing to execute function module HRGPBS_ME_STARTER_REMOVE 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_it_p45data  TYPE STANDARD TABLE OF P08_P46GB0,"TABLES PARAM
wa_it_p45data  LIKE LINE OF it_it_p45data ,
it_it_p46data  TYPE STANDARD TABLE OF P08_P46GB0,"TABLES PARAM
wa_it_p46data  LIKE LINE OF it_it_p46data ,
it_it_p46edata  TYPE STANDARD TABLE OF P08_P46GB0,"TABLES PARAM
wa_it_p46edata  LIKE LINE OF it_it_p46edata ,
it_it_error  TYPE STANDARD TABLE OF HRERROR,"TABLES PARAM
wa_it_error  LIKE LINE OF it_it_error ,
it_it_sel_pernr  TYPE STANDARD TABLE OF P08P_ME_PERNR,"TABLES PARAM
wa_it_sel_pernr  LIKE LINE OF it_it_sel_pernr .

DATA(ld_i_selected) = 'Check type of data required'.
DATA(ld_i_rejected) = 'Check type of data required'.
DATA(ld_i_already_issued) = 'Check type of data required'.
DATA(ld_i_p45) = 'Check type of data required'.
DATA(ld_i_p46) = 'Check type of data required'.
DATA(ld_i_p46e) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_p45data to it_it_p45data.

"populate fields of struture and append to itab
append wa_it_p46data to it_it_p46data.

"populate fields of struture and append to itab
append wa_it_p46edata to it_it_p46edata.

"populate fields of struture and append to itab
append wa_it_error to it_it_error.

"populate fields of struture and append to itab
append wa_it_sel_pernr to it_it_sel_pernr. . CALL FUNCTION 'HRGPBS_ME_STARTER_REMOVE' TABLES it_p45data = it_it_p45data it_p46data = it_it_p46data it_p46edata = it_it_p46edata it_error = it_it_error it_sel_pernr = it_it_sel_pernr CHANGING i_selected = ld_i_selected i_rejected = ld_i_rejected i_already_issued = ld_i_already_issued i_p45 = ld_i_p45 i_p46 = ld_i_p46 i_p46e = ld_i_p46e . " HRGPBS_ME_STARTER_REMOVE
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_selected  TYPE N ,
it_it_p45data  TYPE STANDARD TABLE OF P08_P46GB0 ,
wa_it_p45data  LIKE LINE OF it_it_p45data,
ld_i_rejected  TYPE N ,
it_it_p46data  TYPE STANDARD TABLE OF P08_P46GB0 ,
wa_it_p46data  LIKE LINE OF it_it_p46data,
ld_i_already_issued  TYPE N ,
it_it_p46edata  TYPE STANDARD TABLE OF P08_P46GB0 ,
wa_it_p46edata  LIKE LINE OF it_it_p46edata,
ld_i_p45  TYPE N ,
it_it_error  TYPE STANDARD TABLE OF HRERROR ,
wa_it_error  LIKE LINE OF it_it_error,
ld_i_p46  TYPE N ,
it_it_sel_pernr  TYPE STANDARD TABLE OF P08P_ME_PERNR ,
wa_it_sel_pernr  LIKE LINE OF it_it_sel_pernr,
ld_i_p46e  TYPE N .

ld_i_selected = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_p45data to it_it_p45data.
ld_i_rejected = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_p46data to it_it_p46data.
ld_i_already_issued = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_p46edata to it_it_p46edata.
ld_i_p45 = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_error to it_it_error.
ld_i_p46 = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_sel_pernr to it_it_sel_pernr.
ld_i_p46e = '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 HRGPBS_ME_STARTER_REMOVE or its description.