Skip to Content

GET PERNR thows to end Of Selection

Hi

i am new to the HR-ABAP

I am writing one custoized Payslip Z program. i have used Get Prnr macro. However, it does not populate the PERNR structure and the related infotypes.

Can someone help me where i am missing.

I used appropriate LDB in Program attriutes.

regards,

venkat

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Nov 25, 2011 at 06:29 AM

    Try to define TABLES: PERNR.

    It will fetch all the infotype details in the PERNR structure and if you want to see specific infotype detail then you have to declare it like infotype: 0000, 0001 like this.

    thanks,

    Khush

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 24, 2011 at 02:19 PM

    did you define which infotypes you want to fill with INFOTYPES statement ?

    also you should have TABLES: pernr.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 24, 2011 at 02:28 PM

    - [GET|http://help.sap.com/abapdocu_70/en/ABAPGET-.htm] PERNR is not a macro but an Abap statement (actually an event) used in logical database (check nodes via SE36 on ldb like PNP), RP_READ_INFOTYPE is a macro as example.

    - Did you define PERNR as [TABLES|http://help.sap.com/abapdocu_70/en/ABAPTABLES.htm] or [NODES|http://help.sap.com/abapdocu_70/en/ABAPNODES.htm] in your report

    Sample

    REPORT RPABAP05.
    TABLES: PERNR.
    INFOTYPES:  2001 MODE N.
    GET PERNR.
      RP-READ-ALL-TIME-ITY PN/BEGDA PN/ENDDA.
      LOOP AT P2001.
        WRITE: / P2001-ABWTG.
      ENDLOOP.

    other sample

    REPORT RPABAP01.
    TABLES: PERNR.
    INFOTYPES: 0001.
      GET PERNR.
        PROVIDE * FROM P0001 BETWEEN PN-BEGDA AND PN-ENDDA.
        WRITE:  / P0001-PERNR,
                  P0001-STELL,
                  P0001-BEGDA,
                  P0001-ENDDA.
        ENDPROVIDE.

    (look at help.sap.com or sdn.sap.com with correct keywords, you will find many samples)

    Regards,

    Raymond

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 27, 2011 at 07:33 AM

    Closing the thread

    Add a comment
    10|10000 characters needed characters exceeded