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

Similar Messages

  • 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

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

  • 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

  • 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

  • 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

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

  • FM for Updating Installation date in Contracts + sales orders Item level

    Hi
    Plesae give any FM for Updating Installation date in Contracts + sales orders Item level for contracts tab.
    Thanks and Regards,
    Vishnuvardhan....

    Have used the billing transaction to set a Default Billing date at time of blling.

  • Credit Check for "Not Relevant" sales order items

    Hello All,
    I am having a situation where my client takes advance reservations almost an year in advance.
    The sales order items have schedule line category to not consume inventory and so the overall status on each line item is "not relevant". The credit status on the order is "not performed". Since the overall status is "not relevant", the sales order amount is not added to the credit master receivables.
    We have around 100K orders and I am trying to see if there is a good solution to do a credit check on all these orders.
    I am in a desperate situation and would really appreciate a quick response.
    Thanks very much for your help.
    AM

    Hi Shiva Ram,
    Thanks very much for your reply.
    When I change the schedule line category on the items, the overall status on the line item changes to "Open". The credit status of the order will be "not performed".
    If I were to create an advance order with items consuming inventory, it goes through a credit check with the existing configuration.
    AM

  • Extractor for statuses of sales order items

    Hi Experts,
    If I want to report on different statuses of an sales order item which extractor you will use.
    Regards
    nagini

    hi,
    Use the following:
    2LIS_11_VASTH for header status and 2LIS_11_VASTI for item status.
    Cheers..

  • Updated Pricing for partly deliver sales order

    Hi Expert,
    System should allows to edit the pricing for partially proceed item. 
    Regards
    BK GAIKWAD
    M9881908615

    Yes i know, but i have required to update pricing in sales order level if partly qty deliver.
    because our user forgot the update pricing in billing document.
    Regard
    BK GAIKWAD

  • Delivery from Project for the Assembly: sales order item

    Hi,
    When I create a sales order lets say for material "A".
    And I want to deliver this component from sales order. With Production order.
    I have attached the material "A" in Project to an activity with a positive quantity, in MD04 I am unable to see the planned order for that.
    Project is released and it has created a order reservation but i am unable to convert it into the Planned order how it can be achieved.
    Material is not relevent for the MRP.
    Please suggest some solution.

    Hi,
    Please run project MRP (MD51), selecting option 3 (planned orders) against create P.req. field under MRP control parameters tab.
    Planned orders will be created automatically & u can see in MD04 also.
    Thanks
    Kishore

  • Updating the User Status in Sales Order Item

    Dear Gurus,
    Iam trying to update the User Status on the SO item using STATUS_CHANGE_EXTERN function module and the status is successfully getting updated.
    But the problem is if Iam updating the status it has to delete the Purchase Requisition assgined to it, which is not happening.. whereas when Iam manually changing the Status, the PR is getting deleted.. Can anyone suggest some other function module or some other way of doing it other than BDC?
    Best Regards,
    Sreenivas.

    Hi ,
    I am also need to update the Item user status. Could you please provide me the logic for the FM 'STATUS_CHANGE_EXTERN'. And also let me know the where we need to write the logic in VA01/VA02.
    It would be helpful me a lot.
    Thanks
    Srihari.

  • E-mail notification for Non-compliant Sales order items in creation of SO

    Hi All,
    I have a requirement to write the code in user exits of VA01/VA02 when save ,to check each item whether it is legally compliant or not by looking at its system status. If the item is noncompliant then system status (EXLS) for that item will be active. The program then sends a consolidated email  to report all the noncompliant items in the sales order. Any code to resolve this will be appreciated.
    Regards,
    Sanjit

    Problem Solved.

Maybe you are looking for

  • Session ID and IP Address

    Hi Experts, In BIEE 11.1.1.6.11 I can view the Session ID and IP Address through Administration-> Manager Session , I believe both of them must be stored related file in local machine . But I do not know which files. Could you please tell me how to f

  • Exchange rate difference in transaction FB05

    Dear experts, I have a question regarding exchange rate difference in transaction FB05. Prerequisite:We have implement accounts for the exchange rate difference in OB09. I try to clear the customer in a billing transfer document in FB05, and I didn't

  • PSE7 External hard drive rename does not disconnect files but...

    I am running Vista, and keep my pic files on an external HD (Drive F:). Occasionally I would run into the issue that my EHD would get bumped to the G: drive (because I would plug something else into the USB port). When I would open PSE6 Organizer wit

  • Discoverer 10.1.2.3 with Windows 7

    Can anyone share some information on discoverer 10.1.2.3 in a windows 7 envoriment Are there any issues with Desktop Plus Viewer

  • Unable to sync books on iPad 1.

    I restored my iPad earlier this week. Since that time I am unable to get my books to sync. At first the all had the litle spinning circle grayed out and then finally it showed them all syncing (or so I thought) and I open iPad and no books at all on