Is PROVIDE-ENDPROVIDE statement obsolete ? Can I use it from now onwards?

Hello Techies..
I am working on HR ABAP, I have used PNP LDB extensively.
I came to know from SAP help that Provide-Endprovide statement has been obsolete in newer version of
SAP. I am aware that it is obsolete in ABAP OO context. But does that mean - we should not use provide - endprovide in our report(type 1 program).
I would be glad if you can focus some light on this point.
My second doubt:
I am using PNP LDB, can I replace PNP by PNPCE (since PNP is replaced by PNPCE in newer version).
If I do so my existing functionality will be affected.
Can you give me a brief of added features of PNPCE?
Points will be rewarded to satisfying answer !!
Regards,
Mihir.

>
Mihir Nagar wrote:
> I came to know from SAP help that Provide-Endprovide statement has been obsolete in newer version of SAP. I am aware that it is obsolete in ABAP OO context.  
> Mihir.
Hello Mihir,
That is not correct. The syntax for PROVIDE statement has changed in the newer version as a result the old syntax has been declared obsolete by SAP but that is not to say that the PROVIDE statement itself has become obsolete, if I understand you correctly.
Here's the (old) syntax which has become obsolete:
PROVIDE {*|{comp1 comp2 ...}} FROM itab1
        {*|{comp1 comp2 ...}} FROM itab2
        BETWEEN extliml AND extlimu.
And here's the (new) syntax for the same PROVIDE statement which you should use in the newer SAP releases:
PROVIDE FIELDS {*|{comp1 comp2 ...}}
               FROM itab1 INTO wa1 VALID flag1
               BOUNDS intliml1 AND intlimu1
               [WHERE log_exp1]
        FIELDS {*|{comp1 comp2 ...}}
               FROM itab2 INTO wa2 VALID flag2
               BOUNDS intliml2 AND intlimu2
               [WHERE log_exp2]
        BETWEEN extliml AND extlimu
        [INCLUDING GAPS].
ENDPROVIDE.
Note the changes in the syntax. The new syntax can be used to evaluate and process records in an internal table the same way you used to with the old syntax depending on the options you are using from the new syntax. In summary, the new syntax is able to do exactly the same processing as the old but only difference in the new syntax is that the introduction of additional keywords like FIELDS, VALID and BOUNDS. You'll also notice that the new syntax requires a single workarea to read the record in the provide-endprovide loop unlike the old syntax where it did not require an explicit workarea.
>
Mihir Nagar wrote:
> My second doubt:
> I am using PNP LDB, can I replace PNP by PNPCE (since PNP is replaced by PNPCE in newer version). If I do so my
> existing functionality will be affected. Can you give me a brief
> of added features of PNPCE?
> Mihir.
It only makes sense to use PNPCE if your comany uses the SAP functionality of Concurrent Employment (CE) in HR - i.e. this feature is turned on (active) via the IMG. If CE is not active there's no problem continuing to use PNP as this is not declared obsolete or anything like that but SAP recommends that all new developments should use LDB PNPCE - I understand existing developements should be fine (as long they don't have to handle CE scenarios).
So let me know if CE is active and you need to replace all PNP reports with PNPCE and I'll be happy to send you an overview with code snippets etc.
Hope this helps and please don't forget to reward points.
Cheers,
Sougata.

Similar Messages

  • I want to hook up a mac mini and us my tv as a monitor. how can I use airplay from my phone on the mac mini like i can with an apple tv (without having to buy an apple tv!). the airplay capabilities i want to use are mirroring and streaming from my iphone

    i want to hook up a mac mini and us my tv as a monitor. how can I use airplay from my phone on the mac mini like i can with an apple tv (without having to buy an apple tv!). the airplay capabilities i want to use are mirroring and streaming from my iphone!

    Download AirPlayer for Mac - Transforms your Mac into an AirPlay-compatible display. MacUpdate.com

  • Can we use Result from another query in Webi using Bex uery universe?

    Hi,
    Can we use Result from another query filter option in Webi to create a report using a Bex Query universe?
    I need to create a report using two universes, one is Bex Query Universe and the other is Orcle universe. I have two queries, one is using Oracle universe; the other using Bex Query universe. I need to pass the Oracle data from the Oracle query to the Bex Query query to get the matched data from SAP Bex query.
    I used Result from another query in the query filter panel for the query using Bex query universe. But I got an error saying that 'A filter contains a wrong value. you cannot run this query. (Error: WIS 00007). The data used in the filter on both sides are the same. they are char.
    I have tested by using two queries from the same Bex query universe to see if the Result from another query filter option works. And I got the same error.
    Has anyone run into the same issue and if this is possible and what should be the solution?
    Thanks in advance!
    Edited by: BO_Haiyan on Oct 6, 2010 3:47 PM

    In that situation:
    Create two queries : Oracle and BW query.
    @ Report:
    As you have to see result set from both the Dataproviders, correct? To achieve thise one must have common dimension objects to merge them at report and use Objects those are coming from both queries to use them in single Table/Report.
    Unless you don't use Merge Dimensions, you don't get a chane to use both queries objects in single Table/Report. (It will give tooltip saying: You can't drop here -- Incompatable Objects)
    In case, if you don't have common dimensions, change object definitions to Detail objects, for those required.
    Hope it helps you.
    Thank You!!

  • HT201210 I started update connected to my work computer....it started update and now it is asking me to connect to Itunes, which I have but my work computer doesn't have my Iphone information..... I can't use my phone now when I start up it says connect t

    I started update connected to my work computer....it started update and now it is asking me to connect to Itunes, which I have but my work computer doesn't have my Iphone information, it says I have the latest software, my only option is to "restore phone" which I don't want to do here at work as none of my apps or music are showing up ..... I can't use my phone now when I start up it says connect to itunes.....

    Mozilla has nothing to do with a Microsoft product activation key.
    That "test" page should be viewed in Internet Explorer and not with Firefox, as it may use ActiveX which isn't compatible with any Mozilla product.
    [https://support.mozilla.com/en-US/kb/ActiveX]

  • I can´t use the phone now!

    I got an error message Nr 1015 when I tried to update my Iphone to latest Itunes.What to do?I can´t use the phone now!
    Yours
    Christer Jansson

    You got this error because you iPhone was previously hacked with an "unauthorized modification."
    "Error 1015: This error is caused by attempts to downgrade the iPhone, iPad, or iPod touch's software. This can occur when you attempt to restore using an older .ipsw file. Downgrading to a previous version is not supported. To resolve this issue, attempt to restore with the latest iPhone, iPad, or iPod touch software available from Apple. This error can also occur when an unauthorized modification of the iOS has occurred."
    http://support.apple.com/kb/TS3694#error1015

  • How can I use music from two different iTunes accounts?

    how can I use music from two different iTunes accounts?

    If you mean iTunes Store accounts, there's really nothing for you to do. Just add the tracks to the iTunes library and play them. Music purchased prior to late-2009 will been to be authorized, though. Pull down Store > Authorize... and type the credentials of the Apple ID used to buy the tracks.
    If you mean something else, please describe in more detail.

  • Can we use XML from Forms 6i?

    Can we use XML from Forms 6i?

    Did you mean: can you parse an XML document within Forms 6i? With the new Java importer support, you should be able to use the Oracle XML parser for Java to do this.

  • Can i use xerox from pc

    i have a hp 1050 model printers. can i use xerox from pc by hp 1050.... i see a printer that directly xerox from pc as scan option on software which is install it....if the process is sucess that its easy to manage brightness and contrast save ink.... so plz rply me urgent......

    Hey jayanta_das,
    Welcome to the HP Support Forums! I see you have an HP Deskjet 1050, from your description it sounds like you would like to scan or copy to the computer and then print so you can make modifications to the original rather than performing a copy directly from the printer. Is this correct? If I have misunderstood, please re-explain the task you are trying to perform and how I can help.
    I look forward to hearing from you.
    Thanks,
    HevnLgh
    I work on behalf of HP
    Please click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" to the left of the reply button to say “Thanks” for helping!

  • Can i use whatsapp from ipad?

    Can i use whatsapp from ipad?

    Whatsapp requires full phone capability and is only available for the iPhone. From their website :
    We support all iPhone devices no matter how old or new, as long they are running iPhone OS 3.1 and up. Sorry, but there is no iPod or iPad support at the moment.

  • Can i use applications from an external hard drive?

    Can i use applications from an external hard drive?

    Photoshop itself needs to reside inside of it's Applications folder so that it has access to it's Libraries and plugins. So if you are going to attempt to store and run it from an external drive you need to copy the whole Application folder or install it directly to the external drive. Even still I am not 100% positive it will work as I know it still needs to access your Library/Application Support for additional files and licensing.
    Why do you want to run Photoshop from an external drive?
    George

  • Hi how can i use imessage from my mac

    hi how can i use imessage from my mac , i tried to text message to one of my contact name but it said the number is not registered with imessage so how can i registered all my contacts to the imessage . thanks

    The person you try to contact has to register his number/his appleID with iMessage.

  • HT201317 Can I use photos from icloud (on a pc) to create an iphoto book?

    Can I use photos from icloud (on a pc) to create an iphoto book?

    Hi jbaker5d,
    If you are having an issue with photos not showing up in My Photo Stream on your Windows computer, I would suggest that you troubleshoot using the steps in this article - 
    Get help using My Photo Stream
    Thanks for using Apple Support Communities.
    Best,
    Brett L 

  • New itunes card I got at Ralphs when I pulled the card from the backing you can't read the pin numbers. the card sould be able to be scaned to show that it is good  but they wouldn't . how can I use my card now?

    bought an iTune card when I took the paper off the card the glue took part of the pin numbers. The card should be able to be scaned, how can I use this card now Ralphs can't help thats were I bought the card

    iTunes Store: Invalid, inactive, or illegible codes

  • I have updated ios6 in my iphone 4s. afterthat i can't use call from skype

    i have updated ios6 in my iphone 4s. afterthat i can't use call from skype

    MMS requires a cellular data connection.

  • How can I migrate my iphone apps from a Windows Computer to a new imac so that I can syncronize my iphone from now on on this machine?

    ow can I migrate my iphone apps from a Windows Computer to a new imac so that I can syncronize my iphone from now on on this machine?

    Redownload all your purchased/free apps.
    How to redownload purchased apps from the App Store

Maybe you are looking for