Not able to put reason for rejection at sales order level.

Hi Gurus,
I have an issue where I am not able to put reason for rejection for line item in sales order. It gives error as please delete the follow on document purchase order line item number 10. I have already deleted the line item in purchase order. Then tried but did not work. Tried by deleting the purchase requision item also but it did not work.
Tried to undelete the item from PO and then again tried to put reason for rejection but it could no worked out. 
Please guide me what can be the solution.
Regards
Vinod

As far a I understand you created PO for line item
So first check whether GR is reversed or not for PO
Then mark this line item for deletion in PO and then in PR
Check if you have created any billing document for PO if so reversed that invoice
Also check if you have created any delivery for the Line item in sales order if yes then reversed the same
If you have Sales order related Billing, and if you have done billing reverse the same
If you have Delivery related Billing, and if you have done billing reverse the same
After reversing all docuemnts created for Sales order then only try to reject the line item
You can check table VBFA for document flow

Similar Messages

  • BAPI_SALESORDER_CHANGE to update reason for rejection of sales order item

    Hi,
    The FM BAPI_SALESORDER_CHANGE is not working properly as I am getting below error when try to update the reason for rejection at sales order item level.
    The delivery is done for this salesorder. Is it because the reason for rejection field is not as an input field when delivery done?
    error in return table is " Field 'ABGRU' cannot be changed, VBAPKOM 000010  ready for input"
    Request your suggestions to avoid this error.
    Thanks

    >
    anikaushi wrote:
    > Hi,
    > The delivery is done for this salesorder. Is it because the reason for rejection field is not as an input field when delivery done?
    >
    >  error in return table is " Field 'ABGRU' cannot be changed, VBAPKOM 000010  ready for input"
    >
    >
    > Thanks
    Yes, Most likely.. You can confirm this by trying to change a order without delivery and see if it goes thru (to ensure that you have passed correct parameters)...
    you may have to delete the delivery (and if billing document exist, cancel it), before you can reject the line item... it would be safer to raise an error message and let the users manually delete delivery document as long as you don't have large volumes of this scenario..
    Please see the SDN thread for how you can avoid this error...
    Re: Cancel Sale Order after Issued Billing

  • How to put Reason for  rejection to line item level?

    Hi
    I am updating the Sales order at line item and putting the reason for rejection but it didnt updates the database. Below is the code.
          LOOP AT LT_VBUP1 INTO WA_VBUP1.
             ON CHANGE OF  WA_VBUP1-VBELN.
              CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
                EXPORTING
                  SALESDOCUMENT    = WA_VBUP1-VBELN
                  ORDER_HEADER_INX = LV_ORDER_HEADER_INX
                TABLES
                  RETURN           = IT_RETURN
                  ORDER_ITEM_IN    = IT_ORDER_ITEM_IN
                  ORDER_ITEM_INX   = IT_ORDER_ITEM_INX.
              CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
                EXPORTING
                  WAIT = 'X'.
              CLEAR WA_TY_SOCLOSE.
              IF SY-SUBRC EQ 0.
                LT_TY_SOCLOSE-VBELN = LV_SALESDOCUMENT.
                LT_TY_SOCLOSE-STCLOSE = 'Y'.
              ELSE.
                LT_TY_SOCLOSE-VBELN = LV_SALESDOCUMENT.
                LT_TY_SOCLOSE-STCLOSE = 'N'.
              ENDIF.
              APPEND  LT_TY_SOCLOSE.
            ENDON.
            CLEAR: WA_ORDER_ITEM_IN,WA_ORDER_ITEM_INX.
            WA_ORDER_ITEM_IN-ITM_NUMBER =  WA_VBUP1-POSNR.
            WA_ORDER_ITEM_IN-REASON_REJ = 'Y1'. " Putting order of rejection for the archiving
            WA_ORDER_ITEM_INX-ITM_NUMBER = WA_VBUP1-POSNR.
            WA_ORDER_ITEM_INX-UPDATEFLAG = 'U'.
            WA_ORDER_ITEM_INX-REASON_REJ = 'X'.
            APPEND WA_ORDER_ITEM_IN TO IT_ORDER_ITEM_IN.
            APPEND WA_ORDER_ITEM_INX TO IT_ORDER_ITEM_INX.
            CLEAR WA_VBUP1.
          ENDLOOP.
    Correct me where I am putting wrong.
    Regards
    Mohinder

    LOOP AT LT_VBUP1 INTO WA_VBUP1.
    ON CHANGE OF WA_VBUP1-VBELN.
    CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
    EXPORTING
    SALESDOCUMENT = WA_VBUP1-VBELN
    ORDER_HEADER_INX = LV_ORDER_HEADER_INX
    TABLES
    RETURN = IT_RETURN
    ORDER_ITEM_IN = IT_ORDER_ITEM_IN
    ORDER_ITEM_INX = IT_ORDER_ITEM_INX.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
    WAIT = 'X'.
    CLEAR WA_TY_SOCLOSE.
    IF SY-SUBRC EQ 0.
    LT_TY_SOCLOSE-VBELN = LV_SALESDOCUMENT.
    LT_TY_SOCLOSE-STCLOSE = 'Y'.
    ELSE.
    LT_TY_SOCLOSE-VBELN = LV_SALESDOCUMENT.
    LT_TY_SOCLOSE-STCLOSE = 'N'.
    ENDIF.
    APPEND LT_TY_SOCLOSE.
    ENDON.
    CLEAR: WA_ORDER_ITEM_IN,WA_ORDER_ITEM_INX.
    WA_ORDER_ITEM_IN-ITM_NUMBER = WA_VBUP1-POSNR.
    WA_ORDER_ITEM_IN-REASON_REJ = 'Y1'. " Putting order of rejection for the archiving
    WA_ORDER_ITEM_INX-ITM_NUMBER = WA_VBUP1-POSNR.
    WA_ORDER_ITEM_INX-UPDATEFLAG = 'U'.
    WA_ORDER_ITEM_INX-REASON_REJ = 'X'.
    APPEND WA_ORDER_ITEM_IN TO IT_ORDER_ITEM_IN.
    APPEND WA_ORDER_ITEM_INX TO IT_ORDER_ITEM_INX.
    ***********************************************************************<<<<do this bit here
    CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
    EXPORTING
    SALESDOCUMENT = WA_VBUP1-VBELN
    ORDER_HEADER_INX = LV_ORDER_HEADER_INX
    TABLES
    RETURN = IT_RETURN
    ORDER_ITEM_IN = IT_ORDER_ITEM_IN
    ORDER_ITEM_INX = IT_ORDER_ITEM_INX.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
    WAIT = 'X'.
    CLEAR WA_VBUP1.
    ENDLOOP.

  • Reason for Rejection in Sales order

    Hi,
    when my customer sends me a PO cancel request, iam going to delete the Sales order in my SAP system.
    what is the best way to do this, either to delete the SO or keep the Sales order with Reason for Rejection code?
    If it is a Reason for rejection, what happens to the SO,
    1)will it allow for further processing for e.g: Delivery creation.
    2)will the Availability check carried out for this?, and is the stock going to be blocked for this?
    what is the difference between Reason for rejection and the Delivery block, both at the Header and item level.
    Pls reply,its urgent...
    Regards
    SR

    Syed,
    It is always advicable to reject the order by giving a reason for rejection rather than deleting the sales order.
    Once you delete the sales order, the number will be skipped, the system will not create another sales order with the same number.
    Once you reject the order by a reson for rejection, the system will not allow to process the order further, the requirement will be reversed. The order status also will become as closed, so no further processing allowed (like delivery, PGI ... etc).
    If you put delivery block in the item level of the order, the order can't be delivered, but the overall tatus of the order will be being processed.
    So it is advicable to reject the order by giving an appropriate reson for rejection.
    Prase

  • Customize reason for rejection in sales order

    Hi,
    Reason for rejection for line items in a sales order are displayed from the table TVAG.
    My requirement is to display this drop down list based on TVAG and another custom table.
    I wanted to know the place where this field VBAP-ABGRU is populated in standard code so that I can suppress that and display only those which are required.
    Thanks in advance.
    Abhishek

    Syed,
    It is always advicable to reject the order by giving a reason for rejection rather than deleting the sales order.
    Once you delete the sales order, the number will be skipped, the system will not create another sales order with the same number.
    Once you reject the order by a reson for rejection, the system will not allow to process the order further, the requirement will be reversed. The order status also will become as closed, so no further processing allowed (like delivery, PGI ... etc).
    If you put delivery block in the item level of the order, the order can't be delivered, but the overall tatus of the order will be being processed.
    So it is advicable to reject the order by giving an appropriate reson for rejection.
    Prase

  • Dump while supplying Reason for Rejection in sales order

    Hi Gurus,
    when I am suppling the Reason for Rejection ("Cancelled") for a line item in existing Sales Order, the sales order is going to dump,this is the case with production system where as the same is working fine with testing system,ofcourse I am using different sales order numbers for both the cases....what may be the reason...
    Please suggest.
    Thanks for the help....Have a Nice Day..

    Hi
    Kindly post the error details.
    After dump, use t code ST22, click on today, click on the error & analyse.
    thank you.

  • Remove Reason For Rejection From Sales Order Using BAPI_SALESORDER_CHANGE

    Hi
    I have a sales order and would like to remove the rejection reason.
    I am trying to use BAPI_SALESORDER_CHANGE with the following code:
    (0000xxxxxxx  is my material #. i just removed the actual #).
    MOVE: '0000050106' TO SALESDOCUMENT.
    MOVE: 'U' TO T_HEADER_INX-UPDATEFLAG.
    MOVE:                        30 to t_order_item_in-ITM_NUMBER,
                                      ' ' to t_order_item_in-REASON_REJ,
          '0000000000xxxxxxxx' to t_order_item_in-material.
    APPEND t_order_item_in.
    MOVE: 'U' TO t_order_item_inx-updateflag.
    MOVE: 'X' to t_order_item_inx-REASON_REJ,
               'X' TO t_order_item_inx-material.
    CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
      EXPORTING
        salesdocument              = SALESDOCUMENT
        order_header_inx           = T_HEADER_INX
      tables
        RETURN                     = T_RETURN
        ORDER_ITEM_IN              = T_ORDER_ITEM_IN
        ORDER_ITEM_INX             = T_ORDER_ITEM_INX
    WAIT UP TO 5 SECONDS.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
      WAIT          = 'X'
    IMPORTING
       RETURN        = t_return
    WAIT UP TO 5 SECONDS.
    can anybody help?
    the BAPI returns success messages saying the item was processed successfully but the reason code is still there.
    However, if i pass in any other reason code like 02 or 06, it works!.
    thanks.

    Thanks for your help. =)
    I also realized that I forgot to add the SO Item # into the T_ORDER_ITEM_INX-ITM_NUMBER fields.
    But now it works.

  • Reason for Rejection at Sale sorder item - Not updating the quotation

    Dear All,
    I have quotation with 100 quantity and created 2 sales orders with reference to the quotation with qunatity 60 and 40.
    Next changed the first sales order with reason for rejection at item level for 60 quantity.
    But sales order status is still complete, where it should open and may create one sale sorder with 60.
    now, issue is when ever reason for rejection in sales order, it should update the status of quotation.
    Is this standard behavior???
    Thanks in Advance.

    Hi,
    When you put the reason for rejection in the sales order, it is SAP standard to put the sales order complete. When the sales order is complete, then I believe system considers the quotation to be complete as well.
    Try the below. It might help.
    a. Delete the line item with 60 qty. Now check if the quotation has opened up. If yes, then, there you go with a solution... Else,
    b. Check the configuration for sales order document type. Check what is the marking done for completion of the quotation. Put in the right one so that quotation is not marked (or updated) as complete when the reason for rejection is put in the sales order.
    Hope this helps
    Thanks
    Mukund S

  • Credit amount not updated once gave reason for rejection

    Dear all
    i want to know one thing once i Gave reason for rejection to sales order or some line items that amount should play in credit Account of the customer
    but in my case it is not Playing
    ex: i have given Credit limit 20000 rs
    now customer created one sales order with the value 20000 rs ...so Credit limit finished
    Now Due to some problem Maintained reason for rejection for that document
    now That 20000 rs should add in Customer account right but unable to create new sales order with that customer .
    What is problem cause?

    Dear Madhuri
    RVKRED88 & RVKRED77 Run the programs then only it will be updated
    please check this link Rejected orders decrease credit limit
    Thanks a lot
    venu

  • Unable to put  Reason for Rejection for Return Sales Order

    Hi
    I am unable to put  Reason for Rejection for Return Sales Order.
    what may be the reason?
    Reg,
    Antaa21

    hi
    One of the possible reson could be, there is subsequent document created. Please check the VBFA table for document flow and see if there is any other document created for this line item, if yes then you have to reverse the same
    Check whether this field is maintained as DISPLAY only or not
    T-Code SE51(Screen Painter)
    Give Program Name SAPMV45A
    (before doing this confirm from the field from sales order, keep curcer on the pricing date press F1
    and then select technical details)
    Screen Number 4441
    (before doing this confirm from the field from sales order, keep curcer on the pricing date press F1
    and then select technical details)
    Select Attributes radio button.
    Go to Element list Tab. Inturn select Special Attribute tab in Subscreen.
    For Field Name "VBAP-ABGRU" Check what is maintained might be it is maintained as DISPLAY only.

  • REASON OF REJECTION AT SALES ORDER ITEM LEVEL

    In sales order item level after putting reason of rejection wether net value of sales order changed to ZERO Value?
    In Sales infromation system for that particular customer & material sales  order value reflects in report?
    Kindly send your comments on it.
    regards,
    N.M.PAWAR

    Hi
    Suppose a sales order has 2 line items say material 1  and qty is five units and each is Rs 100 and material 2  and qty is Three unitsand each is Rs 100
    Then the nett value of the sales order is Rs 800
    If you reject material 2 and qty is Three units then after that  whether order value changes to Rs 500 or remains at Rs 800 depends on your SPRO settings
    In t code OVAG against your reason of rejection if you maintain blank in the statistical column system keeps the price as Rs 800 even after rejecting it the sales order but while billing it will be billed for Rs 500 only
    If you maintain X/Y in the statistical column system changes the price as Rs 500  after assigning the reason of rejection and then enter
    The difference between X and Y is
    tomorrow if the top management wants a report that how much value loss has come thro reason of rejection such report is not available with X (if you maintain X) and with Y you can take such reports because X doesnt updates the information structures but Y does update information structures
    Regards
    Raja

  • Not able to change item category of a sales order in VA02

    Hi,
    When I am going to transaction VA02 for changing an sales order it is not allowing me to change z item category of the line item. Can someone tell me if it is a configuration or some User exit/BADI might be there behind this behavior.
    Note: Recently the system was upgraded to ECC 6.0 and after that only this problem was coming.
    Thanks,
    Chinmay

    Hi Chinmay,
    Based on your question, I assume you need to go through this links:
    http://www.magnatraining.com/sap-item-category-determination-manual-vs-automatic/
    http://help.sap.com/saphelp_46c/helpdata/en/dd/55fb13545a11d1a7020000e829fd11/content.htm
    Also search this forum and if you dont find an answer then get back.
    Please help yourselves with this link and if you still have further questions..get back.
    Regards,
    Raghu.

  • Not able to Create Credit Memo During Return Sales Order

    Hi Guru's,
    Need your help in the below problem:-
    While Creating Return Sales Order it give us Order No with delivery no. and then finally I am able to do VL02N where I did Post Good Return sucessfully and also check using MB51 that goods got return.
    But when we try to create Credit Memo using VF01 I got the below message in log.
    Error Log
                 0060000799 000000 "Create billing document" not allowed (User Status LKD, object VB0060000799000000)
                LongText
                Technical data   ))))))))
    I have checked all copy control including Iteam Category etc etc all are in place.
    Looking for your help.
    Thanks
    Best Regards
    Bidhan Konar

    Thanks Krishna,
    Thanks for the solution. Find below the steps which i follow:-
    Go to Tcode VA02, Use the sale order reference and execute. From top menu bar, click on "Goto -- Header -- Status. Then again click on "Object Status" and when check I find that lock is there:- A radio button checked at -- 10 LKD Locked and change it to
    --20 REL Released and SAVE. Finally working.
    Thanks
    BR
    Bidhan
    Edited by: Bidhan Konar on Jun 3, 2010 8:35 PM

  • Not able to add extra line item in sales order - va01

    Hi friends,
    At the time of creation of sales order via va01.
    I am appending the my extra line item in xvbap. But on screen I am not able to view that extra line item.
    Could you please help me out with this problem.
    My code is given below.
    I am writting this code in MV45AFZB &
    in that FORM USEREXIT_CHECK_VBAP USING US_DIALOG.
    it_free_goods is the table in which i am having data which needs to be uploaded in xvbap.
      IF it_free_goods[] IS NOT INITIAL.
        LOOP AT it_free_goods INTO wa_free_goods.
          wa_xvbap-matnr = wa_free_goods-matnr.
          RV45A-MABNR  = wa_free_goods-matnr.
          VBAP-POSNR   = vbap-posnr + 10.
          wa_xvbap-kwmeng = wa_free_goods-menge.
          wa_xvbap-meins = wa_free_goods-meins.
          wa_xvbap-pstyv = co_pstyv.
          wa_xvbap-posnr = vbap-posnr + 10.
          wa_XVBAP-UPDKZ = 'I'.
          MOVE-CORRESPONDING wa_xvbap TO xvbap.
          APPEND xvbap.
         ENDLOOP.
       ENDIF.
    Please let me know if somethings needs to be changed.
    It will be very helpful for me,
    Thanks,
    Best Regards,
    Prashant

    Hi Prashanth,
    I believe the use of
    USEREXIT_CHECK_VBAP
    This user exit can be used to carry out additional checks (e.g. for completion) at item level
    Please check the following link which has a similar requirement
    Re: VA01/VA02  screen exit
    Regards
    Byju

  • Not able to save pricing condition type in Sales order

    Hi
    I have created a SO and there is a condition type pb00 that I have to enter manually. when I save it and come back and reopen the SO, the condition type vanishes. It does not give out any error and i tried different ways of updating like 'carry out new pricing', 'copy manual pricing' etc but it doesnot work. Please let me know how I can save this condition type in SO.
    Thanks
    Princeoflight

    Hi Prince,
    Go to conditons analysis and check the access sequences and what is the message it giving for this condition type.
    Check it once and revert back.
    Best Regards
    Sri

Maybe you are looking for