Skip to Content
author's profile photo Former Member
Former Member

Abap hr PNPCE

Hi,

I am LDB PNPCE, when I use rp-provide macro it says not recognised. Can we use macros in PNPCE or no. Then what is the other way to get latest record instead of using loop.

Thanks,

Oscar.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jun 06, 2008 at 07:20 AM

    Hi,

    Instead of using rp-provide-from-last pnnnn subtyp begda endda use

    RP_PROVIDE_FROM_LAST pnnnn subtyp begda endda

    to get last latest record.

    Use this code to get latest reocrd using pnpce .

    TABLES: pernr.

    NODES: peras.

    INFOTYPES: 0001 NAME p0001.

    INITIALIZATION.

    pnpbegda = pnpendda = sy-datum.

    START-OF-SELECTION.

    GET peras.

    rp_provide_from_last p0001 space pnpbegda pnpendda.

    END-OF-SELECTION.

    WRITE :/ p0001-pernr, p0001-ename.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.