Calling PROVIDE .....  ENDPROVIDE

Hi guru,
My script below is not working :
sort l_T_POS_TXT_1 by OBJID BEGDA ENDDA.
sort l_T_POS_TXT_2 by OBJID BEGDA ENDDA.
    PROVIDE FIELDS  * FROM l_T_POS_TXT_1 INTO l_t_POS_WA1
                                         VALID flag1
                                         BOUNDS begda AND endda          
            FIELDS  * FROM l_T_POS_TXT_2 INTO l_t_POS_WA2
                                         VALID flag2
                                         BOUNDS begda AND endda
            BETWEEN '20090101' and '99991231'.
    ENDPROVIDE.  
I have the following error msg when activating the program (user exit) :   "Old and new exception can not be used at the same time"
Please what is wrong in the script ?
Thanks for your help.

Which user exit ?

Similar Messages

  • PROVIDE - ENDPROVIDE in HR ABAP

    Hi All,
    I am trying to understand how the PROVIDE - ENDPROVIDE statement in HR ABAP works.
    I have gone through many of the links discussion on this but is not very clear.
    Can you please correct my understanding if it.
    I was under impression that the provide statement in the below report ZTEST gets exectuted like the following LOOP ENDLOOP statement which is not correct. Can you please help me understand how it processes the provide statement and how different is the PROVIDE statement from the LOOP ENDLOOP statement.
        loop at p0002 where begda <= pn-begda
                            and endda >= pn-endda.
          WRITE: / p0002-pernr.
        endloop.
    REPORT ZTEST.
    TABLES: pernr.
    INFOTYPES: 0002. "Personal Data
    SELECT-OPTIONS: language FOR p0002-sprsl.
    **-- Selection screen
    INITIALIZATION.
    pnptimed = 'D'.
    *-- Processing
    START-OF-SELECTION.
    GET pernr.
    PROVIDE * FROM p0002 BETWEEN pn-begda AND
    pn-endda.
    CHECK language.
    WRITE: / p0002-pernr,
    sy-vline,
    pernr-ename,
    sy-vline,
    p0002-sprsl,
    sy-vline,
    p0002-gbdat.
    ENDPROVIDE.
    Regards,
    Sanjay.

    Look at this documentation [Report Programming in HR|http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PAXX/PYINT_PROGRAMM.pdf]
    Processing All Infotype Records (PA-PAD)
    After the GET PERNR event, the internal tables of the infotypes contain records and are ready for processing.
    Internal tables are generally processed line-by-line using the LOOP statement.
    The internal tables of infotypes have features which allow special processing.
    These tables are defined for specific intervals. In HR, these are time intervals or validity periods.
    Processing of infotype records is time-dependent; by this we mean dependent on the data selection period entered on the selection screen. The data of several infotypes can be processed
    at the same time and made available for a specific partial period.
    Internal infotype tables are processed with the PROVIDE statement.
    The syntax is as follows:
    PROVIDE * FROM Pnnnn BETWEEN PN-BEGDA AND PN-ENDDA.
    WRITE: / Pnnnn-<field>.
    ENDPROVIDE.
    nnnn stands for the four-digit infotype number. The relationship between the infotype and the data selection period of the selection screen is established using the PN/BEGDA and PN/ENDDA variables.
    In the PROVIDE loop, the data of an infotype record is available for processing in the Pnnnn
    structure.
    Regards

  • Provide - Endprovide with SD n MM modules

    Hi experts can any one tell me im learning ABAP-HR, in this im working with LDB, i have a doubt that can't we use Provide - Endprovide of LDB with SD and MM Modules .

    Hi Madhu,
      Please find the below program which displays the available user exits for the specified transaction code. Just you need to specify the transaction code it will display all the user exits of the transaction.
    Use the following link for the above from ****************
    http://****************/Tutorials/ExitsBADIs/FindUserExitswithTCode.htm
    You can also find some scenarios in **************** for the user exits and Badis.
    Explore the **************** site.
    Thanks,
    Naveen Kumar.

  • 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.

  • Difference between Provide - Endprovide.

    Hi experts can any one spot light on the significance of PROVIDE - ENDPROVIDE in LDB?  and what is the difference between LOOP - ENDLOOP and
    PROVIDE - ENDPROVIDE.
    Thanks in advance.
    vamsi.

    Hi
    You can go through help doc .
    PROVIDE - ENDPROVIDE is similar like Loop
    LOOP - ENDLOOP
    [<b>b]Reminder : Points should be given on answers.</b></b>

  • Significance of Provide - endprovide in LDB

    Hi experts can any one spot light on the significance of PROVIDE - ENDPROVIDE in LDB?  and what is the difference between LOOP - ENDLOOP and
    PROVIDE - ENDPROVIDE.
    Thanks in advance.
    vamsi.

    1) Provide :
    Its used to FETCH data from INTERNAL TABLE.
    Its also used in logical databases like pnp,
    where the actual data is retrived by
    the logical database itself,
    and our provide statement, JUST,
    fetches from the internal table in ldb program.
    2) Retrieves the contents of the specified fields from the internal tables and places them in the table header lines within the required range.
    Provide is similar to outer join of tables.
    3) Provide:
    PROVIDE f1 f2 ... FROM itab1
    g1 g2 ... FROM itab2
    FROM itabi
    BETWEEN f AND g.

  • Macros versus provide -endprovide

    Why do we use MACRO instead of provide- endprovide in HR sometimes ?
    Is it that we have to use macro when we are using logical database for reporting of PD under HR.

    I cannot tell in terms of HR but in a general sense, PROVIDE will work only with internal tables. It is a kind of outer join concept as it relates to database tables.
    MACRO is just a name given to an executable piece of code. So I can define a macro GET_ME_SUM_OF that adds two numbers and puts it into a variable as follows.
    DEFINE GET_ME_SUM_OF.
      &3 = &1 + &2.
    END-OF-DEFINITION.
    Now in my program I can simply write get_me_sum_of 1 2 v_sum, which will get me the sum of 1 and 2 and puts 3 into the variable v_sum.
    Srinivas

  • Regarding Provide endprovide

    Hi,
    I am using PNP ldb as we know that we will get a standard selection screen by using pnp and I have to add 4 extra fields to the existing selection screen then  I have created by using select-options in the program.
    Now my question is .. Can we skip the standard selection screen .
    I hope u got.
    Regards
    Anil

    Hi
    PROVIDE
    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.
    The statements PROVIDE and ENDPROVIDE define a loop through a statement block. In this loop, any number of internal tables itab1 itab2 ... are processed together. A single table can appear several times. For every table itab you must specify a FIELDS clause. After FIELDS you must specify the character * for all components or a list comp1 comp2 ... for specific components of the relevant table. The names of the components comp1 comp2 ... can only be specified directly.
    To be able to process internal tables using PROVIDE, all tables itab1 itab2 ... must be fully typed index tables and contain two special columns that have the same data type (d, i, n, or t) for all relevant tables. For every table you must specify the names intliml1 intliml2 ... and intlimu1 intlimu2 ... of these columns using the addition BOUNDS.
    The columns intliml1 intliml2 ... and intlimu1 intlimu2 ... in every row of the relevant internal tables must contain values that can be interpreted as limits of closed intervals. Within a table, the intervals specified in these columns must not overlap and must be sorted in ascending order. The intervals therefore make up a unique key for every row.
    For every table you must specify a work area wa1 wa2 ... compatible with the row type and a variable flag1 flag2 ..., for which a character-type data type with length 1 is expected. In the PROVIDE loop, the components specified after FIELDS are filled with values in the relevant work areas wa1 wa2 ... for every specified internal table. The variables flag1 flag2 ... are also filled. A work area wa1 wa2 ... or a variable flag1 flag2 ... cannot be specified more than once.
    With the BETWEEN addition you must specify an interval extliml, extlimu. It must be possible to convert the data objects extliml and extlimu into the data types of the respective columns intliml1 intliml2 ... and intlimu1 intlimu2 ... of the individual tables.
    The interval limits intliml1 intliml2 ... and intlimu1 intlim2 for every row of all relevant internal tables itab1 itab2 ... that are within the closed interval made up by extliml and extlimu divide the latter into new intervals and every interval limit closes one interval in the original direction. If, within a relevant table, a lower interval limit follows an upper interval limit with no space or gap between them and the components of the corresponding rows specified after FIELDS have the same content, the two intervals are combined and the corresponding interval limits intliml1 intliml2 ... and intlimu1 intlimu2 ... are ignored for the new intervals.
    For every interval that is created in such a way and overlaps with at least one of the intervals of a table involved, the PROVIDE loop is passed once. The components of every work area wa1 wa2 ... specified after FIELDS and the variables flag1 flag2 ... are filled with values as follows:
    The components intliml1 intliml2 ... and intlimu1 intlimu2 ... of every work area wa1 wa2 ... are filled with the interval limits of the current interval.
    If the current interval overlaps with one of the intervals of an involved table, the remaining components of the corresponding work area are assigned the contents of the relevant components of this table row and the variable flag1 flag2 ... is set to the value "X". Otherwise, the work area components and the variables flag1 flag2 ... are set to their Initial value.
    Except for intliml1 intliml2 ... and intlimu1 intlimu2 ..., the components not specified after FIELDS are always set to their initial value. The components intliml1 intliml2 ... and intlimu1 intlimu2 ... are always assigned.
    The ABAP runtime environment checks for every table involved, whether the condition of sorted and non-overlapping intervals is met within the interval made up by extliml and extlimu and, if necessary, triggers an exception that can be handled.
    If the INCLUDING GAPS addition is specified, the system passes the PROVIDE loop for every interval, that is also when the current interval does not overlap with at least one of the intervals of an involved table. In the latter case, the variable flag is of initial value for every relevant table.
    You can use the WHERE addition to specify a condition for every table itab1 itab2 ... involved. After WHERE, you can specify any logical expression log_exp1 log_exp2 ... ; the first operand of every comparison must be a component of the internal table. As such, all logical expressions except for IS ASSIGNED, IS REQUESTED, and IS SUPPLIED are possible. You can only specify components that are in the list after FIELDS. Here it is not possible to specify a component using character-type data objects in brackets. The table entries for which the condition is not met are ignored by the PROVIDE loop. You can leave the PROVIDE loop following the instructions in the section Leaving loops.
    <b>System fields</b>
    The system fields sy-subrc and sy-tabix are set to the value 0 before every loop pass and at ENDPROVIDE. Only if the loop is not passed once, is sy-subrc set to 4 at ENDPROVIDE.
    The relevant internal tables should not be modified in the PROVIDE loop.
    The WHERE condition can be used to remove overlaps between the tables involved or to ensure the sorting of the intervals.
    In two tables itab1 and itab2, the respective columns col1 and col2 are interval limits of type i. The filling of the internal tables results in the following intervals (rows two and three):
    The interval specified in the BETWEEN addition to the PROVIDE statement is shown in the fourth row. It serves as a basis for the five intervals in the fifth row represented by i1 to i5. These can be processed in the PROVIDE loop.
    Because each of the five intervals overlaps with one of the intervals from rows two and three, the PROVIDE loop is passed five times.
    Only the component col3 of wa1 is filled in the first pass, only the component col3 of wa2 in the third pass, and the components col3 of both work areas in the second and fourth passes. The fields valid1 and valid2 are set accordingly.
    DATA: BEGIN OF wa1,
            col1 TYPE i,
            col2 TYPE i,
            col3 TYPE string,
          END OF wa1.
    DATA: BEGIN OF wa2,
            col1 TYPE i,
            col2 TYPE i,
            col3 TYPE string,
          END OF wa2.
    DATA: itab1 LIKE STANDARD TABLE OF wa1,
          itab2 LIKE STANDARD TABLE OF wa2.
    DATA: flag1(1) TYPE c,
          flag2(1) TYPE c.
    wa1-col1 = 1.
    wa1-col2 = 6.
    wa1-col3 = 'Itab1 Int1'.
    APPEND wa1 TO itab1.
    wa1-col1 = 9.
    wa1-col2 = 12.
    wa1-col3 = 'Itab1 Int2'.
    APPEND wa1 TO itab1.
    wa2-col1 = 4.
    wa2-col2 = 11.
    wa2-col3 = 'Itab2 Int1'.
    PROVIDE FIELDS col3 FROM itab1 INTO wa1
                                   VALID flag1
                                   BOUNDS col1 AND col2
            FIELDS col3 FROM itab2 INTO wa2
                                   VALID flag2
                                   BOUNDS col1 AND col2
            BETWEEN 2 AND 14.
      WRITE: / wa1-col1, wa1-col2, wa1-col3, flag1.
      WRITE: / wa2-col1, wa2-col2, wa2-col3, flag2.
      SKIP.
    ENDPROVIDE.
    The list output is as follows:
       2           3  Itab1 Int1 X
       2           3
       4           6  Itab1 Int1 X
       4           6  Itab2 Int1 X
       7           8
       7           8  Itab2 Int1 X
       9          11  Itab1 Int2 X
       9          11  Itab2 Int1 X
      12          12  Itab1 Int2 X
      12          12
    <b>REWARD IF USEFULL</b>

  • Using Provide-endprovide copy internal table

    Hi,
    I have problem that is if i want to copy the data from infotype to internal table means
    Provide * from p9012 between  pn-begda  and  pn-endda.
    if p9012-zz_client_c EQ itemp-z_client_c.
    MOVE: p9012-begda TO it9012-begda,
               p9012-zz_dept_c TO it9012-z_dept_c,
               SORT IT9012 BY z_dept_c.
               append it9012.
    endif.
    endprovide.
    this one not copying data from infotype to internaltable.
    what i can do?
    Thanks,
    Regards,
    Nandha

    HI Use this code example..
    plz reward poins if it helps you..
    & Report  ZSAPHR_PNP
    Report ZSAPHR_PNP.
    TABLES : PERNR.
    *Infotype Declaration
    INFOTYPES: 0002, "PERSONAL DATA
               0006, "ADDRESS
               0008, "
               0000, "
               0001. "ACTIONS
    DATA : BEGIN OF ITAB  OCCURS 10,  "INTERNAL TABLE DECLARATION
           NACHN  LIKE  P0002-NACHN,
           VORNA  LIKE  P0002-VORNA,
           GESCH  LIKE  P0002-GESCH,
           GBDAT  LIKE  P0002-GBDAT,
           FAMST  LIKE  P0002-FAMST,
           HSNMR  LIKE  P0006-HSNMR,
           STRAS  LIKE  P0006-STRAS,
           LOCAT  LIKE  P0006-LOCAT,
           PSTLZ  LIKE  P0006-PSTLZ,
           LAND1  LIKE  P0006-LAND1,
           PLANS  LIKE  P0001-PLANS,
           ORGEH  LIKE  P0001-ORGEH,
           BET01  LIKE  P0008-BET01,
           WAERS  LIKE  P0008-WAERS,
           PERNR  LIKE  P0000-PERNR,
           END OF ITAB.
    DATA: G_REPID LIKE SY-REPID."Report name
    INITIALIZATION.
      G_REPID = SY-REPID.
      PNPTIMED = 'D'.
    **********************************************START OF
    SELECTION*****************************************
    START-OF-SELECTION.
    GET PERNR.
      PROVIDE * FROM P0002 BETWEEN PN-BEGDA AND PN-ENDDA.
        ITAB-PERNR = P0000-PERNR.
        ITAB-NACHN = P0002-NACHN.
        ITAB-VORNA = P0002-VORNA.
        IF P0002-FAMST = '0'.
          ITAB-FAMST = 'S'.
        ELSE.
          ITAB-FAMST = 'M'.
        ENDIF.
        ITAB-FAMST = P0002-FAMST.
        IF P0002-GESCH = '1'.
          ITAB-GESCH = 'M'.
        ELSE.
          ITAB-GESCH = 'F'.
        ENDIF.
        ITAB-GBDAT = P0002-GBDAT.
        ITAB-HSNMR = P0006-HSNMR.
        ITAB-STRAS = P0006-STRAS.
        ITAB-LOCAT = P0006-LOCAT.
        ITAB-PSTLZ = P0006-PSTLZ.
        ITAB-LAND1 = P0006-LAND1.
        ITAB-ORGEH = P0001-ORGEH.
        ITAB-PLANS = P0001-PLANS.
        ITAB-BET01 = P0008-BET01.
        ITAB-WAERS = P0008-WAERS.
        APPEND ITAB.
      ENDPROVIDE.
    END-OF-SELECTION.

  • Provide, endprovide and protect

    what is the difference between provide..endprovide and  protect...endprotect statements
    Title edited by: Alvaro Tejada Galindo on Jun 12, 2008 6:51 AM

    Hi Sudheer,
    Processing All Infotype Records (PA-PAD)
    After the GET PERNR event, the internal tables of the infotypes contain records and are ready for processing.
    Internal tables are generally processed line-by-line using the LOOP statement.
    The internal tables of infotypes have features which allow special processing.
    These tables are defined for specific intervals. In HR, these are time intervals or validity periods.
    Processing of infotype records is time-dependent; by this we mean dependent on the data selection period entered on the selection screen. The data of several infotypes can be processed
    at the same time and made available for a specific partial period.
    Internal infotype tables are processed with the PROVIDE statement.
    The syntax is as follows:
    PROVIDE * FROM Pnnnn BETWEEN PN-BEGDA AND PN-ENDDA.
    WRITE: / Pnnnn-<field>.
    ENDPROVIDE.
    nnnn stands for the four-digit infotype number. The relationship between the infotype and the data selection period of the selection screen is established using the PN/BEGDA and PN/ENDDA variables.
    In the PROVIDE loop, the data of an infotype record is available for processing in the Pnnnn
    structure.
    Preventing Page Breaks: PROTECT
    You can specify, either in the style or in the form, that a particular paragraph should not be split in two by a page break. If this page protect attribute is set, then the complete paragraph is always printed on one page. This property applies only to that particular paragraph.
    This attribute is not intended to be used to protect all paragraphs against a page break. The point is that a page break is by its very nature a dynamic event and the exact point at which it occurs depends on the current state (length and contents) of the preceding text. It is also possible that you may want to protect only certain parts of a paragraph against a page break. One way to achieve this is to use the NEW-PAGE command immediately before the text concerned starts. Explicitly beginning a new page at this point should ensure that a further page break does not occur within the text. However, this technique is not change-friendly. For example, you format your text with the help of the NEW-PAGE command so that no page breaks occur where they should not. At a later time, you insert or delete some lines. These changes cause all the subsequent text to be moved relative to the printed page, and you must check each NEW-PAGE command you previously inserted to see if it is still in the correct place.
    To allow you to define the areas to be protected against a page break on an individual basis, SAPscript provides the PROTECT.. ENDPROTECT command pair. If you enclose the text to be protected in these commands, then SAPscript will ensure that each line of this text is printed together on the same page. If the complete text fits in the space remaining on the current page, then it is printed on this page just as it would be if no PROTECT command had been used. If, however, the remaining space is not sufficient for the text, then the PROTECT command has the same effect as a NEW-PAGE command and text is printed on a new page.
    Thus the PROTECT/ENDPROTECT commands may be regarded as a kind of conditional NEW-PAGE command, the condition being whether or not the lines enclosed between the two commands fit in the space remaining in the current main window.
    Syntax:
    /: PROTECT
    /: ENDPROTECT
    The text lines to be protected are enclosed between the two commands.
    o     An ENDPROTECT command without a preceding PROTECT command has no effect.
    o     If the terminating ENDPROTECT is missing, SAPscript assumes it at the end of the text.
    o     PROTECT.. ENDPROTECT command pairs cannot be nested. If a second PROTECT command occurs before the first one has been terminated by an ENDPROTECT, it is ignored.
    o     If the text enclosed by a PROTECT.. ENDPROTECT pair is itself too long for a single page, then a page break is generated immediately before the text and the text is printed in the normal way. It is then unavoidable that a page break will occur at some point within the text.
    <REMOVED BY MODERATOR>
    Regards,
    Nitin.
    Edited by: Alvaro Tejada Galindo on Jun 12, 2008 6:51 AM

  • Transferring call provider within contract

    I am about 3 months into a 12 month contract for Unlimited Weekend with BT.
    Whilst I understand I cannot change my line rental within the 12 months, am I able to have transfer calls to another service provider?

    Yes as long as your on the basic UWP and keep the line rental with BT you could take a call package/BB with another CP.
    Inherent omniscience - the ability to know anything that one chooses to know and can be known

  • HT1414 My Iphone is disabled, what do I do now? Call provider or restore via Itunes?

    If my phone is disabled, what steps do I do first?  Call the provider to enable it?  Restore on Itunes?  How do I know for sure that my Iphone backed up before it was disabled?

    https://discussions.apple.com/message/18482548#18482548

  • RP_PROVIDE_FROM_LAST AND PROVIDE AND ENDPROVIDE

    hi all,
        When to use RP_PROVIDE_FROM_LAST and Provide and EndProvide?
    which scenario we go for RP_PROVIDE_FROM_LAST and Provide?
    both will do the same purpose?
      RP_PROVIDE_FROM_LAST  will read recent records.
      Provide will read sequentially data.
    other than this...difference
        can anyone clear my doubt?

    Hi,
    For PROVIDE-ENDPROVIDE : 
    1) You can fetch individual fields of the infotypes.
    2) You can also use the JOIN and PROJECTION of infotypes. Based on the criteria, datas can be fetched from two or more infotypes.
    3) It is similar to the SELECT STATEMENT of normal ABAP.
    4) You can do processing within the Block of PROVIDE -  ENDPROVIDE
    For RP_PROVIDE_FROM_LAST:
    1) You fetch only the recent record of the Infotype.
    2) This is a MACRO delivered by SAP and not a statement. You can also create something similar to this.
    Regards,
    Anirban

  • PROVIDE END PROVIDE

    Dear All,
    I have written a program for using Logical Database PNP displaying employee data which are fetched from different infotypes. I have used PROVIDE END PROVIDE Statement. In the Report it is found that it is Printing PN-BEGDA and PN-ENDDA value for P0001-BEGDA and P0001-ENDDA when User selects following values in Selection Screen.
    1) Today
    2) Current Month
    3) Current Year
    4) Up to Today
    5) From Today
    if require I will send the code.
    Thanks in Advance
    Regards
    Mangesh

    Hi Mangesha,
    <li>PROVIDE-ENDPROVIDE is like LOOP-ENDLOOP but It creates partial periods.
    Lets say we have two records for one employee in itab p0001.We give dates on selection-screen 01.06.2008 to 01.06.2009.
    Lets say p0000 has two records
    1).. 01.01.2008 to 31.12.2009 -first record
    2).. 01.01.2009 to 31.12.2009 -second record
    If use PROVIDE statement to loop the p0000 table, It is looped two times. But if you see P000-BEGDA and P0000-ENDDA inside PROVIDE-ENDPROVIDE, the records are like below.
    p0000-begda -- p0000-endda
    01.06.2008  --  31.12.2009
    01.01.2009  --  01.06.2009.
    <li>It can be used to join tables more tables
    Thanks
    Venkat.O

  • How to Refresh cache of Service Call

    Hi
    Normally I use java WD, but am helping out a friend who uses ABAP flavour.
    In the java WD, if the RFC changes, I just re-import the model so that the changes are made available to me in the Dev Studio. How do I do the equivalent in ABAP WD? ie How do I refresh/re-import the Service Call?
    thanks

    Hi Anton,
    In WD ABAP, if we want to reimport the service call, we need to follow the same steps which we follow to create a service call.
    One thing to notice is that wizard does not allow to give the same method name which we gave/system proposed during the last time service call creation. Hence in the second time when we reimport the service call provide all details and new method name. A new method will be created in Controller (if we use existing controller). During adapting the nodes new nodes/attributes will be created.
    Hence the best approach is to before reimporting the service call is to delete the context, attributes and the method created during the previous service call creation.
    Best regards,
    Suresh

Maybe you are looking for

  • Text Input field return char problem

    I have a multiline text input field used as a message area on a form (sending mail through a PHP doc).  When I hit return to start new paragraph in that field and the form content is send and received at other end everything after that return is lost

  • Can't install 64 Bit Windows 7 on 13" MBP???

    Hello everyone! I'm trying to install 64 Bit Win 7 on my 13" MBP The version of the Bootcamp Assistant I am running (3.02) only allows for the 32 bit version to be installed. I am fully updated on my OSX updates, yet I see that I should be running Bo

  • Install windows 7 on mac pro raid

    I have just got a mac pro with raid (3 1tb drives), they are set to raid 0 and I am trying to install windows 7 64 bit, 32bit if I really have too but it will not find the drivers on the disk the mac made for the windows installation. Where do I find

  • WS TO IDOC  ERROR in the OUT BOUND STATUS

    HI all, This question remains unresolved I have Provided the trace contents as asked by XIans. I am Again sending the contents of the trace. Please let me know where the problem is? Thanks, SrinivasaP

  • IPhoto 6 refuses to display many of my photos

    I have a number of photos that I use in Slideshows that suddenly refuse to display in the newest version of iPhoto. They come up as a solid black screen. In trying to get them in the editor, the progress wheel continues to spin with no results. They