RP_PROVIDE_FROM....

Hi Mates,
Is it possbile to use
RP_PROVIDE_FROM_LAST or RP_PROVIDE_FROM_FIRST inside
PROVIDE....ENDPROVIDE loop.
which record it will retrive ....
Regards,
Amit Raut

I'm not sure I understand your question.  If you use for example RP_PROVIDE_FROM_LAST P0001 SPACE PN-BEGDA PN-ENDDA it will bring back the record that is active during the data range specified.  As has been noted it is used when you are getting data using the LDP PNP or PNPCE.
PROVIDE/END-PROVIDE is also used in conjunction with LDB PNP/PNPCE but depending on what records qualify for your data selection you can bring back multiple records and you can write so that it brings back records from more than one Infotype.
Each is a separate ABAP statement and I can't imagine a scenario where you use the same Infotype number in both statements.

Similar Messages

  • Get data from more than 1 subtype using RP_PROVIDE_FROM LAST

    Hi all,
    I need to get data from infotype 2013 subtype 90 and subtype 91.
    Currently the codes only allow me to use it one time for the same infotype. If I use it again for the same infotype, pnp-sw-found will equal to zero. Anyone have any idea on this?
    Example:
    Get pernr.
    Start of selection.
    rp_provide_from_last p2013 0090 pn-begda pn-endda.
      IF pnp-sw-found =  1.
    **--> Populate internal table
        MOVE p2013-ktart TO ls_quota-ktart.
        MOVE p2013-aedtm to ls_quota-aedtm.
        MOVE p2013-uname to ls_quota-uname.
        MOVE p2013-accnu to ls_quota-accnu.
        MOVE p2013-accop to ls_quota-accop.
      ELSE.
        REJECT.
      ENDIF.
    End of selection.

    Using RP_PROVIDE_FROM_LAST you can only use for one infotype and one subtype. For reading data for IT2013 with subtypes 90 and 91....you have to use following....
    Get pernr.
    Start of selection.
    rp_provide_from_last p2013 0090 pn-begda pn-endda.
    IF pnp-sw-found = 1.
    **--> Populate internal table
        MOVE:
               p2013-ktart TO ls_quota-ktart,
               p2013-aedtm to ls_quota-aedtm,
               p2013-uname to ls_quota-uname,
               p2013-accnu to ls_quota-accnu,
               p2013-accop to ls_quota-accop.
    ELSE.
      rp_provide_from_last p2013 0091 pn-begda pn-endda.
      IF pnp-sw-found = 1.
         **--> Populate internal table
         MOVE:
               p2013-ktart TO ls_quota-ktart,
               p2013-aedtm to ls_quota-aedtm,
               p2013-uname to ls_quota-uname,
               p2013-accnu to ls_quota-accnu,
               p2013-accop to ls_quota-accop.
       ELSE.
           REJECT.
       ENDIF.
    ENDIF.
    End of selection.
    Hope this answer is helpful

Maybe you are looking for

  • Network Password Change

    First, please bare with me.  First time on here.   Second, though I have many Apple products and I manage my way around them, I am not familiar with computer terms and there is a lot I don't understand.  However, if something is explained clearly, st

  • Display refuses to wake from sleep; restarts on its own or needs a restart

    I'm having this issue since 10.9.3 over the past couple (Mac Pro Early 2009 with Apple LED Cinema Display). The screen goes black at the end of the screen saver and into sleep mode. It sometimes restarts on its own and generates a 'This machine resta

  • Roaming Profile are not stored completely

    Hello NG In our environment we work with NWClient 2 SP1 IR9, ZCM11 SP1a and Roaming profile is activated by a ZCM policy. Now we have the problem, that when a user logout from the workstation, the roaming profile is not stored completely to the home

  • ERec: How to add new column in Recruiter TRM New Registered Candidates list

    Hi, In the Recruiter tab, active query for TRM> New Registered Candidates, there are 9 columns which has candidate name, registered since, resume, interest group and so on. If I want to add "Country" in the view, how to proceed? Please advice. Thanks

  • IPhoto black boxes

    Just updated to IOS5 on my iPad.  Upon syncing the iPad several black boxes in lieu of phtos appear in Photos on iPad. Original photos are intact in iPhoto on computer. Tried re-syncing....same thing.  Also photos sync fine to iPhone (without IOS5).