Is REJECT statement obsolete?

Dear All,
           I am trying REJECT statement with LDB . but in Extended Program Check in ECC 6.0 it says REJECT is obsolete.
         Can anybody plz suggest me what could be the Alternative for the same?
Thanks n Regards,
Atul.

Hi Atul
This is what i could find from the documentation:
Cannot Use REJECT
The REJECT statement is not allowed in ABAP Objects.
Error message in ABAP objects for:
REJECT [dbtab].
Reason:
The REJECT statement should only be used during the GET event while type 1 programs are being executed with logical databases. Editing of the current line of the node of the logical database is terminated with REJECT and the next line of the same or of a lower lying node dbtab is read. The old event concept of the ABAP runtime environment and the past way of processing logical databases is not supported by ABAP objects.
Regards
Eswar

Similar Messages

  • REJECT is obsolete in ECC 6.0 - Any Alternative?

    Hi Developers,
    REJECT statment is used to break from GET event (say GET PERNR event in Logical Database) used to process for an Employee.
    This REJECT statement is Obsolete . Is there any alternative for this ?
    If so, please reply at the earliest as it is very Urgent.
    Regards,

    Use check statement.
    Demo is as follows -
    constants: c_1(1) type c value '1' .
    Start-of-selection.
    get pernr.
    Read Infotype 0
    rp-provide-from-last p0000 space pn-begda pn-endda.
    check pnp-sw-found eq c_1. "it will check if record is there,if not it will go to next pernr

  • Replacement for REJECT Statement

    Hi Experts,
    I have used REJECT statement in the code :
    REJECT< DBTAB>.
    But when i am doing extended chek, it is giving me an obsolete statement error .
    Pleae tell me any replacement statement for REJECT statement.
    Thanks and Best regards,
    Sahil

    Hi Sahil,
    May be this link helps you in getting some information:
    http://www.sdn.sap.com/irj/scn/advancedsearch?query=reject+statement
    Regards,
    Swarna Munukoti

  • Replacements for the Reject Statement.

    Hi All,
    When I do syntax Check it's showing "REJECT" is obsolete statment
    Generally The statement REJECT is not allowed in ABAP Objects in later versions.
    Every time Error message is shown in ABAP Objects if the following syntax is used:
    REJECT [dbtab].
    Thanks in advance
    Venkatesh
    this is body message

    Guess you are using LDBs. I belive it is a warning but not error.
    This syntax message is related to the ABAP portion of your report and nothing to do with the config or functionalities. Your ABAPer would help you on this.

  • Call Transaction statement Obsolete

    Hi,
    We are upgrading our system from 4.6 B to Ecc 6.0.
    What are the statements obsolete in ECC 6.0 due to Unicode, what is the replacement for Call Transaction.
    Can any one give me a step by step procedure to use UCCHECK and SPAU?
    My email ID is [email protected]
    Regards,
    Abhishek...

    Hi,
    You can use the Function Module COPF_CALL_TRANSACTION
    CALL FUNCTION 'COPF_CALL_TRANSACTION'
            EXPORTING
              TCODE = '<tcode>'
              NEW_SESSION = ' '.
    if NEW_SESSION = 'X' then transaction will open in a new window
    Regards,
    Samson Rodrigues.

  • Workflow Approbation - Accessing and Editing Approve/Reject state

    Hello
    I'm creating a custom workflow in order to manage mass approbations. I have used the Approval and Multi Approval workflows to make my own one.
    This work great except on one point: I can't use the standard approbation/reject buttons of the end user approvals list as i wish. I didn't find out in the workItem of type Approval where is set the accept or reject value.
    I have seen in documentation that there are action and confirm attributes in WorkItem List View attribute but i don't see how to use it as i already have a view in use. I am using a custom workflow variable which hold the value of the result. This work except that i have to customize too the End User Approvals List to change this variable.
    I guess there is somewhere an easy way to know about the state of an Approval WorkItem but dunno how to access it easily.
    If you have got any idea, please tell me!
    Grtz,
    Adrien

    Thanks for your answer.
    I agree with you but the problem is that the variable i'm looking for isn't in the WorkItem View (or i just didn't find it out).
    I am looking for the location of the variable which indicate to the requestor the result of his approbation request (accepted or rejected) in order to make a custom report form. This way my requestor who make approbation for severals different users at the same time will have a report telling him which request was accepted or rejected.
    Hope this make much sense.

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

  • I have an error 550 550 5.7.1 Command rejected (state 18) . Printer C310, Windows XP.

    I would like some help as I cannot send a wireless print job to this printer. I have changed my email address for eprint-did not work.

    For those who are experiencing ongoing issues with their web services, you can attempt to try the following steps that may help resolve your problems.
    1.) Completely shut down your printer and restart it
    2.) If you have prints that have not printed, log into ePrint Center (or create an account if you do not have one) and then look for your printer status. If printer status is green but you still have pending jobs, delete the pending jobs one at a time (Starting with the oldest first). There may be a print job stuck in the queue that further restricts other jobs from completing.
    a. If option 1 or 2 above still doesn’t work, removing web services and re-adding web services will cause the printer to reattach to the cloud.
    b. Please note that if you attempt option 3, you will get a new eprint email address (and lose your custom one with no ability to get it back) furthermore, you will need to re-add your printer back to your ePC account.
    I am an HP employee

  • REJECT statment to break GET event is Obsolete in ECC 6.0 - Alternative?

    Hi Developers,
    REJECT statment is used to break from GET event (say GET PERNR event in Logical Database) used to process for an Employee.
    This REJECT statement is Obsolete . Is there any alternative for this ?
    If so, please reply at the earliest as it is very Urgent.
    Regards,

    Hi Suma,
    The REJECT statement was specially developed for leaving GET event blocks. Unlike CHECK and EXIT, REJECT always refers to the current GET event block. If CHECK and EXIT occur in a loop, they refer to the loop, and in a subroutine, they always refer to the subroutine. The REJECT statement, on the other hand, allows you to exit a GET event block directly from a loop or a called subroutine.
    The statement
    REJECT [dbtab].
    always terminates the processing of the current line of the node of the logical database. Without the optional dbtabspecification, the logical database automatically reads the next line of the same node, and the next GET event at the same hierarchy level is triggered. If you use the optional dbtab specification, the logical database reads the next line of the node dbtab. The node dbtab  must occur above the current node in the logical database hierarchy.
    Example
    The following executable program is connected to the logical database F1S.
    REPORT EVENT_DEMO.
    NODES: SPFLI, SFLIGHT, SBOOK.
    GET SFLIGHT.
      SKIP.
      WRITE: / 'Carrid:', SFLIGHT-CARRID,
               'Connid:', SFLIGHT-CONNID,
               'Fldate:', SFLIGHT-FLDATE.
      ULINE.
    GET SBOOK.
      PERFORM SUB.
    FORM SUB.
      WRITE: / 'Bookid:', SBOOK-BOOKID.
      REJECT 'SFLIGHT'.
    ENDFORM.
    This program reads and displays only the first booking for each flight, since the logical database reads the next line of SFLIGHT after the REJECT statement.

  • 9971 SIP Phones at remote location status REJECTED

    Hi,
    I have 10 locations, Site 1, 2, ....10. All these locations have 10 phones each. These phone are configured with default SIP Profile. Were registered and working fine. While adding a subscriber I downgraded the cluster. After bringing back to regular version. I find all my phones status shows unknown. 
    I tried to change dhcp option 150 on dhcp router to point different server and reconfigured with the correct tftp ip address. Also I tried to shutdown the interface where phones are connected and bring it back up. Restarted tftp server many times. Even after all these I find my phones in REJECTED state. 
    I know personal reset on each phone will fix this issue. But is there any other way to fix this, since these phones are at remote locations.
    Any help is appreciated.
    Thanks,
    MR

    Hello!
    I think, that the most possible issue is problem with CTL/ITL.
    Certificates were regenerated while downgrading/upgrading and were not propagated to the phones.
    So u should try to delete ITL on the phones.
    Regards,
    Kirill

  • Invoice cannot be reversed while PO is in approval or rejected

    Hi all
    I have an instance in R/3 of an invoice that I need to reverse. The purchase order was increased to cover this invoice but the invoice has now been paid by other means so is now not required. I cannot reverse the invoice when the purchase order is in an approval state or rejected state. I also cannot enter a credit memo.
    The only option I have been advised of is to get the purchase order approved and then reverse the invoice. I don't think I should need to do this? Is there any other way of reversing the invoice?
    Thanks
    Heidi

    Hi Maruthi and sudipto
    Thanks for your replies.
    1. I cannot reverse through MIR4, the option is greyed out. We are not allowed to 'change' invoices once they have been entered. I can change the accounting document but not reverse it.
    2. The invoice in question is a second invoice and has not been paid. It is blocked on quantity. The purchase order had been increased to quantity 2 to cover the second invoice and is now in approval for the increase but we have found out that payment of this second invoice has been made another way (FB60) so this invoice is no longer required.
    I cannot reduce the purchase order back to what was originally approved (ie quantity 1) as there 2 invoices against the line. Nor can I reverse the invoice through MR8M while the purchase order is either in approval or rejected. I have been advised the only way to reverse the invoice is to have the purchase order increase approved but is this the only way?
    The message I get when I try to reverse the invoice MR8M is:
    Purchasing document 4016115 not yet released
    Message no. ME390
    Diagnosis
    The purchasing document is subject to a release strategy. The goods receipt cannot be entered until Purchasing has released (approved) the document.
    Procedure
    Contact the person responsible in Purchasing in order to have the purchasing document released.
    You can view the release strategy in the header data of the purchasing document.
    The message talks about a goods receipt which I think is misleading. I've looked through SAP notes for this but have come up with nothing relevant to this situation :o(
    Regards
    Heidi

  • Register Rejected: security error

    Hi
    i have a CCM 9 with autoregister enabled, trying to register a CIPC said "register rejected: security error"
    I have other CIPC and runs fine, but in one is failing, even with a manual registering said the same message.
    any idea where can be the problem? In CCM is in rejected state.
    Thanks.                

    I was having the same error.
    CUCM, CAPF and CTL service was running which i turned off. After deleting the Phones when i tried to re-register the phones they started to give me this error. "Registeration Rejected : Security Error" . I also switched the tftp from Publisher to a subscriber server.
    Solution : I manually added each phone to the system since they were few phones. You can Use BAT to add the phones if you too many phone having the same problem.
    Hope that helps
    If any one figure out why it happened please share it here.
    Thanks
    Regards
    Mazin Muhammad

  • FV60- Parked document - need to re-trigger workflow on Rejection

    Hi all
    I have a below client requirment in the case of rejection and change of parked invoice workflow.
    Any suggesions please?
    Rejection
    =======
    If an approver rejects a document, instead of re-triggering
    the workflow from the very beginning, the client requires that
    the approval needs to be able to un-reject and re-approve the document
    so that the document can continue on with the work flow. 
    Change
    =====
    The workflow should trigger only relevant change occurs in document (Example cost center, G/L, and dollar amount). For example change of a tax code which might increase dollar amount by tax.
    Thanks in advance
    Shree

    Hi Raj /Rick
    Rick answer to your questions :
    What if the approver and the initiator can't come to an agreement? Is there any option of really rejecting the request?
    The business answer is let the workflow remain at rejected state.
    How can they come to an agreement - by changing something? In which case, doesn't it have to go through the approval process again, including via the earlier levels that already approved it?
    99% of the change is on budget side so the business dosent want to go through the approval process again.
    Raj :
    When i run the SOFM - Compose method manually in swo1 it ask for some information like STATUSTOMAIL ....ATTACH ....ETC...... what i need to give in that?
    How can i pass the initiator id to that method in runtime? will i be able to store the initiator id in a workflow container and pass in binding?
    Thanks
    Shree

  • Functionality of cancel,reject,back

    friends let me know the  functionality of cancel,reject,back keywords.

    Hi,
       BACK : statement positions the list cursor on the first position of the first line in a logical unit.
       CANCEL: There is no key word cancel.
       REJECT: The REJECT statement exits the current GET event block of an executable program. If you do not specify node, the runtime environment responds as described in Exiting Processing Blocks.
    The REJECT statement always refers to the current GET event, not to the location where it is executed. If you call a procedure in a GET event block, and the REJECT statement is executed there, the calling event block is affected.
    for more details:
      This statement positions the list cursor on the first position of the first line in a logical unit. There are the following logical units in a list:
    A line block defined with RESERVE.
    If BACK is executed after the RESERVE statement, the list cursor is placed in the first line of the current line block.
    The lines within a self-defined page header.
    If BACK is executed within the event block for TOP-OF-PAGE and is not placed after RESERVE, the list cursor will be positioned in the first line underneath the standard page header.
    The lines of a page underneath the page header.
    If BACK is executed outside of the event block for TOP-OF-PAGE and not after RESERVE, the list cursor will be positioned in the first line underneath the page header.

  • Rejecting no longer causes picture to disappear

    Hello.
    All of a sudden when I hit 0 to reject a photo it stays put. It used to immediately disappear and go to the rejected photo section. Now it stays in the project. It does have an X in the corner signifying its rejected state.
    Thanks

    I would check your filter or search/find function. It probably has been changed to accept all images rather than just those defined as no rating or above. You find this looking for magnifying glass icon..and it varies a bit as to which window you are working with. If you select the view of just the thumbnails (second one to the left in the right upper corner, the magnifying glass is right underneath it.
    hope this helps
    steven

Maybe you are looking for

  • I have a mac book prob that is on OS X 10.5.8 how do I update to 10.6 I can't find it anywhere?

    I have a mac book prob that is on OS X 10.5.8 how do I update to 10.6 I can't find it anywhere?

  • How do I save pictures when installing Elements 11

    I have Elements 7 installed on my PC with thousands of pictures.  I have purchased Elements 11.  Do I need to do anything to preserve my picture fies before installing Elements 11?

  • Regarding dates and selection screen

    Hi all, In my selection screen i have 2 date fields(ranges). I have a requirement wherein i have to allow user to select only one date i.e. let the date fields be date1 and date2 when the user enters date1 he should not be allowed to enter date2 and

  • [Dynamic Tabs UI Shell Template] Access AM from main page

    Hi I am using JDeveloper 11.1.2.1 I have a doubt about UI Shell Template. I'm using this template and this user data map implementation to store user preferences:    http://andrejusb.blogspot.com.es/2012/05/solution-for-sharing-global-user-data.html

  • Automated area-sizing

    When using HTML and CSS you can automate the size of an "area" of the page an "area" is classed as a DIV and you automate it by setting its height and/or width to auto (usually height only with width given a fixed size) in adition you can set the DIV