SAP Reports / Programs | Payroll(PY) SAP PY

HBGLNAP0 SAP ABAP Report -







HBGLNAP0 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for You run this report to create a file with information about contracts to be sent to the National Agency of Payments (NAP)...see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.

If you would like to execute this report or see the full code listing simply enter HBGLNAP0 into the relevant SAP transactions such as SE38 or SE80


ABAP code to call this SAP report using the submit statement

This report can be called from another progam/report simply by using the ABAP SUBMIT statement, see below for example ABAP code snipts of how to do this.






SUBMIT HBGLNAP0. "Basic submit
SUBMIT HBGLNAP0 AND RETURN. "Return to original report after report execution complete
SUBMIT HBGLNAP0 VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Selection Text: PA_ALV = Display ALV
Selection Text: PA_BNAME = Name of batch input session
Selection Text: PA_BSTAT = BULSTAT-EIK
Selection Text: PA_BUSER = User Logon Name
Selection Text: PA_CODEP = File codepage
Selection Text: PA_DGBTC = Batch input session
Selection Text: PA_DGDIR = Direct
Selection Text: PA_DG_NO = No
Selection Text: PA_EGNID = EGN
Selection Text: PA_FILE = Notification data file
Selection Text: PA_FONLY = Accomp. letter data file only
Selection Text: PA_IDCAR = ID card
Selection Text: PA_MIDNM = Middle (Father) name
Selection Text: PA_MODE = Processing mode
Selection Text: PA_NACHN = Last name
Selection Text: PA_PATH = Directory for save notif. file
Selection Text: PA_SALAR = Salary wage types
Selection Text: PA_TEMPL = Template for Accomp. letter
Selection Text: PA_TMPDR = Directory for save acc. file
Selection Text: PA_UPDTE = Update mode
Selection Text: PA_VARIA = ALV Variant
Selection Text: PA_VORNA = First name
Selection Text: PA_WORD = Accompanying letter
Title:
Text Symbol: I01 = Nr. of processed PERNRs:
Text Symbol: H03 = Update NAP status
Text Symbol: H02 = HR Administrator
Text Symbol: H01 = Options
Text Symbol: 035 = Sign.year
Text Symbol: 034 = Contract sign date - year
Text Symbol: 033 = Sign.month
Text Symbol: 032 = Contract sign date - month
Text Symbol: 001 = NAP notification about labor contracts
Text Symbol: 002 = Corection code
Text Symbol: 003 = CC
Text Symbol: 004 = Contract type
Text Symbol: 005 = CntType
Text Symbol: 006 = Nationality





Text Symbol: 007 = Natnt
Text Symbol: 008 = Contract date - day
Text Symbol: 009 = Cnt.day
Text Symbol: 010 = Contract date - month
Text Symbol: 011 = Cnt.month
Text Symbol: 012 = Contract date - year
Text Symbol: 013 = Cnt.year
Text Symbol: 014 = Expiry date - day
Text Symbol: 015 = Exp.day
Text Symbol: 016 = Expiry date - month
Text Symbol: 017 = Exp.month
Text Symbol: 018 = Expiry date - year
Text Symbol: 019 = Exp.year
Text Symbol: 020 = Termination date - day
Text Symbol: 021 = Term.day
Text Symbol: 022 = Termination date - month
Text Symbol: 023 = Term.month
Text Symbol: 024 = Termination date - year
Text Symbol: 025 = Term.year
Text Symbol: 026 = Save to word template
Text Symbol: 027 = Only data file
Text Symbol: 028 = Salary
Text Symbol: 029 = SW BULSTAT
Text Symbol: 030 = Contract sign date - day
Text Symbol: 031 = Sign.day


INCLUDES used within this REPORT HBGLNAP0

INCLUDE: HBGUREP0.
INCLUDE: HBGUREP1.
INCLUDE: HBGUREP2. "FILE SUBRUTINES
INCLUDE HBGUACT0.


TABLES used within REPORT and the associated SELECT statement:

No SAP DATABASE tables are accessed within this REPORT code!


Function Modules used within report and the associated call statement:

RP_HIRE_FIRE CALL FUNCTION 'RP_HIRE_FIRE' EXPORTING beg = p0935-begda end = p0935-begda IMPORTING fire_date = lv_fire hire_date = lv_hire TABLES pphifi = lt_hifi pp0000 = p0000 pp0001 = p0001.

RP_FILL_WAGE_TYPE_TABLE_EXT CALL FUNCTION 'RP_FILL_WAGE_TYPE_TABLE_EXT' EXPORTING pernr = pernr-pernr infty = '0008' subty = p0008-subty objps = p0008-objps begda = p0008-begda endda = p0008-endda dlspl = ' ' "XPSN159482 TABLES ppbwla = ppbwla pp0001 = p0001 pp0007 = p0007 pp0008 = p0008 EXCEPTIONS error_at_indirect_evaluation = 1.

HR_FEATURE_BACKFIELD CALL FUNCTION 'HR_FEATURE_BACKFIELD' EXPORTING feature = 'BGBSW' struc_content = ls_pme01 kind_of_error = space IMPORTING back = ps_nap-bstat_sw EXCEPTIONS dummy = 1 error_operation = 2 no_backvalue = 3 feature_not_generated = 4 invalid_sign_in_funid = 5 field_in_report_tab_in_pe03 = 6 OTHERS = 7.

HR_BG_GET_PERNR_NAME CALL FUNCTION 'HR_BG_GET_PERNR_NAME' "nt01352111 EXPORTING I0002 = p0002 I_STATUTORY = 'X' IMPORTING E_VORNA = ps_nap-vorna E_MIDNM = ps_nap-midnm E_NACHN = ps_nap-nachn EXCEPTIONS INFTY_0002_NOT_FOUND = 1 OTHERS = 2.






REUSE_ALV_COMMENTARY_WRITE CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING it_list_commentary = gt_alv_header.

BDC_OPEN_GROUP CALL FUNCTION 'BDC_OPEN_GROUP' EXPORTING client = sy-mandt group = pa_bname user = pa_buser keep = 'X'.

BDC_INSERT CALL FUNCTION 'BDC_INSERT' EXPORTING tcode = 'PA30' TABLES dynprotab = gt_bdcdata.

BDC_CLOSE_GROUP CALL FUNCTION 'BDC_CLOSE_GROUP'.



Contribute (Add Comments)

Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.

The contribute/comments section below therefore offer's an opportunity for anyone to add additional information. This can be anything from useful hints, tips and screen shots to relevant SAP notes or anything else you feel is relevant to this report.

This will then be available for everyone to easily find by simply searching on the report name HBGLNAP0 or its description.