REMOVE REASON FOR REJECTION FROM THE SALES ORDER

Hi,
When i am trying to change status of items 130+140 from net cancellation to "open"  (remove reason for rejection), saving is not possible because of this error message!
Item 000130 :Target qty of reference: 1 PC (total referenced: 2 PC).
Also an information message: Subsequent documents already exist for item 000140.

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.

Similar Messages

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

  • How to sets the Reason for Rejection of the Open Sales Order Lines

    Hello gurus,
              I want to set the Reason for Rejection of the Open Sales Order Lines, Case is like :
    If current date is exeed the Auto Void Confirmed Back Order Days(for item level) +  date (last responding from customer), then reason for rejection should be set, So i want the logic to find out the date is exceed or not.
    Thanks
    Anjana

    Hello anjana,
       Actually your question is some confusing, but if u want to get eldest change as active sales order then logic is as follows:
    1.  On base of OBJNR u have to get UDATE from JCDS table
    2. then write logic as:
    SORT i_jcds BY objnr stat chgnr DESCENDING.
          LOOP AT i_jcds INTO wa_jcds1.
            CLEAR lv_stat.
            lv_stat = wa_jcds1-stat.
            AT NEW objnr.
              AT NEW stat.
                CLEAR: wa_tab.
                wa_tab-objnr = wa_jcds1-objnr.
                wa_tab-stat = lv_stat.
              ENDAT.
            ENDAT.
            IF wa_jcds1-inact = 'X'.
              CLEAR lv_tabix.
              IF sy-tabix > 1.
                lv_tabix = sy-tabix - 1.
              ELSE.
                lv_tabix = 1.
              ENDIF.
              READ TABLE i_jcds INTO wa_jcds2 INDEX lv_tabix.
              IF sy-subrc = 0.
                wa_tab-chgnr = wa_jcds2-chgnr.
                wa_tab-udate = wa_jcds2-udate.
                wa_tab-utime = wa_jcds2-utime.
                APPEND wa_tab TO i_tab.
              ENDIF.
              CONTINUE.
            ELSE.
              wa_tab-chgnr = wa_jcds1-chgnr.
              wa_tab-udate = wa_jcds1-udate.
              wa_tab-utime = wa_jcds1-utime.
            ENDIF.
            AT END OF objnr .
              AT END OF stat.
                APPEND wa_tab TO i_tab.
              ENDAT.
            ENDAT.
          ENDLOOP.
          DELETE ADJACENT DUPLICATES FROM i_tab COMPARING objnr stat.
          SORT i_tab BY objnr stat udate utime.
          DELETE ADJACENT DUPLICATES FROM i_tab COMPARING objnr.
    3. now in i_tab table u'll get eldest UDATE
    Hope its work for u.
    Thanks & Regards,
    Sumit Joshi

  • How to create planned order from the sales order for a processing item

    In the MTO sceanrio, assembly order is created directly from the sales order. I would like to create a planned order from the sales order.
    I tried the Planning strategy group 81 in the material master but it didnt work.
    Could you please let me know how to do it? Is it Schedule line config that controls whether planned order is created?
    Thanks
    Harish

    Narayana,
    Planning strategy 82 is the best & standard way of getting production order created on sale order create.
    just assign this strategy  in MRP 3 view under strategy group.
    If not then using sale order reqt type ( KMFA- Assembly with production order) & assigning this to your sale order item category is also another way to create prodcution order without using planning strategy in material master.
    Follow steps in SPRO-->Sales & dist --> basic functions >avail check &transfer of requirements> transfer reqts-->determination of reqt type using transaction
    Here you may select the item category you in sale orders & assign KMFA to your item category. this will then give option in sale order create to change reqt type to KFMA for assebly orders.
    If you need KFMA to be default assign it to Item cat/ MRP type ( PD) combo.
    Regards
    Ritesh

  • How to delete a line item from the sales order

    Hi all,
    how to delete a line item from the sales order for which the production is already happened and it has been delivered. the production order status is DLV.
    Regards
    Kumar

    Hi
    U can do this in two ways one u can short close the order by entering Reason for rejection in VA02 at header level and if yr order is multiple line item order u can enter the reason for rejection in any of the line item which u don't want to deliver.
    This is called short close ( as the qty is not delivered fully).
    Thx.

  • Subcontract PO from the sales order..!

    Hi SD Gurus,
    Can i create subcontract purhcase req from the sales order.
    My requirement is when i create the sales order my item/sheduline category should create a subcontract po to my sister concern company.
    Is't possible ? Kinldy help to advice & let me know what are the config setup i need to setup.
    Thanks.

    Hello,
    The PO number field you see in VA03 is usually an input which need not be an actual PO number existing in the current system.So you can have a PO number like 'test123'.The system will accept it and store it as is in the table VBAK.
    However if you create a sales order with reference to a PO number then the PO number obviously does exist in the system and can be accessed via transaction ME23n and can also be found in tables EKKO,EKPO.
    So to sum up the number you enter in the PO field may or may not be an actual PO number existing in the SAP system.it can be used as a reference for later checks a customer may do when he calls to find out the status of his sales order.
    Hope this explanation helps you.
    Regards,
    Neil.

  • Workflow: Select Reason for rejection from dropdown list.

    Hi all
        I have to create a step where the Manager has to select the
    Reason for Rejection from a dropdown list refering to a custom
    parameter table maintained from t-code sm30.
    Please post your suggestions on this.
    Thanks for your time,
    Mallik

    Thanks for your Reply,
       But It doesn't seem to work because It has to display a (table parameter) field containing the predefined Reasons for Rejection(dropdown list or more like search
    help) from which the supervisor has to select one and it has to be attached and sent as a mail.
    thanx

  • No condition update from the sales orders exist - VK322 Message

    Hello All,
    I have activated " Condition Index" & " Condition Update" flag for one of my discount condition type and then created it's condition record along with scales on three levels. The condition type which I mentioned above is set as " Value Scale" in Scale Basis for checking the document value and apply the applicable discount percentage.
    I have created three sales orders wherein the discount percentage is getting applied as per my condition record ( so, the document value is getting accumulated and compared with the condition record correctly )  but when I try to check the cumulative values ( ctrl +shift + F4 ) from the condition record, I get information message " VK322" mentioned in the subject.
    VK322 -
    No condition update from the sales orders exist
    Message no. VK322
    Diagnosis
    The following causes are possible:
    1. There are no sales orders for the condition record that you selected.
    2. Updating condition records in the sales order entry is not active.
    Procedure
    Concerning 1:
    Check the sales orders created for the condition record that you selected.
    Concerning 2:
    Activate the updating for condition records in the sales order entry.
    I have checked everything in SPRO for this but could not find anything which can give me a clue to resolve this problem, especially " Concerning 2" part of this message.
    My requirement > To be able to see the cumulative values from condition record.
    Also, in which table the accumulated values get stored?
    Appreciate your expert advise on this issue.
    Regards,
    Hrishi
    Edited by: Hrishikesh Bhalwankar on Sep 13, 2011 1:59 AM

    Hello Everyone,
    I would like to thank each one of you for giving valuable inputs in regard to my requirement and I would like to let you know that I am able to achieve the results as per the expectation.
    I would also like to share some key things which I did ( with the help of all your expert inputs ) due to which the requirement is met:-
    1. Activation of ' Condition Index, Condition Update' in V/06 for the discount condition type.
    2. Maintained ' B - Value Scale' in Scale Basis for the said condition type in V/06 - my requirement was to check against a value to apply the necessary scale base percentage.
    3. Activation of ' S071' info structure via OM01
    4. Condition record maintenance as per the required scales.
    4. Written a new routine to check the accumulated condition base value from S071 along with the current document condition base value.
    5. Put this routine in ' Scale Formula' in V/06.
    This is giving me the perfect results for the correct application of the discount.
    Just last question - How to re-organize the S071 info structure as I tried to re-organize it with Standard Program ' RV15F001' but it is not re-organizing this info structure... Any idea on this?
    Thanks a lot friends for all your advice...
    Regards,
    Hrishi
    Edited by: Hrishikesh Bhalwankar on Oct 11, 2011 2:11 AM

  • Header text to be copied from the sales order to delivery

    Hi Gurus,
    I have a requirement in which  header text "Customer order text " needs to be copied from the sales order to the delivery.After copying the text we need to print on the packing slip.
    Can anyone advise me as how to copy the text from the sales order header to delivery  and then print on the packing slip.
    Thanks ,
    Smitha.

    Maintain the Text ID @ Sales Documnet Header level and add it to your Text Procedure. Also ensure you assign the access sequence to your Text ID in your procedure.
    Access Seuquence should have VBBK and the text ID number and check All Languages and use Requirement 1.
    Then in the Delivery Header Text Procudure add this text ID and assign the same access sequence as above.
    This will copy the Text ID from Sales Order to Delivery Order Header.
    You can configure the output for packing slipduring the delivery process  and in the output program read this Text ID and print it.
    Note" Copy Controls do not copy text from preceeding documents to succeeding documents. Only the Access Sequences used in the Text Procedure will do that with the help of the reuqirement assigned in the same.
    Thanks and Hope this helps.
    Sai

  • Send 'Reason for Rejection' from Task Process back to User

    I have a SharePoint 2013 workflow that uses "Start a task process" to get approval for documents in a library. On the task list, I have a field named 'reason for rejection' that the approvers would complete if they're going to reject the document.
    When the document is rejected the workflow sends an email back to the person who created the document. Is it possible to somehow include the reason for rejection in the email? If not, is there some other solution for getting this information back to
    them (other than just saying to contact the approvers)?

    Hi Andrea_2,
    According to your description, my understanding is that you want the email which is sent by workflow after the document is rejected to contain the field "reason for rejection".
    Instead of adding the field into the email which is sent after the document is rejected, I suggest you add an "Send email" action when a single task is rejected, and make the mail is sent to the creator of the document.
    You can do as the followings:
    Open the workflow with SharePoint Designer 2013.
    Open and edit the workflow, then click "Approval(**)".
    Click "Change the behavior of a single task"
    In the "When a task completes" scetion, add a "Send email" action in the ELSE IF branch, like the screenshot below:
    Best Regards,
    Wendy
    Wendy Li
    TechNet Community Support

  • Planned cost in S_ALR_87013105 for rejected item in sales order

    Hello Experts
    I have a sales order item having reason for rejection (as error).  However, the planned cost of this sales order item is shown in S_ALR_87013105 report. 
    The sales order was created in the month of Feb2011.  If I run the report for limited period from 03 to 07 the planned cost is NIL but If I run the same report from Feb 11 till date, it shows the planned cost of material +overheads.
    can some body throw light on why the report behaves in this way?
    Thanks and best regards,

    Use T Code KO12 and see if you've got any annual/overall values planned against the IO.
    Regards
    Sreenivas

  • System allowing order related Billing for rejected item in sales order

    Hi all,
    I have created a new reason for rejection: "Billed before Go live"
    I have then asigned it to sales item 10 in sales order thus rejecting it.
    I expected that when I do the billing for this sales order, the system will not allow to bill the rejected item, but the rejected item is still getting billed by VF01
    Can anybody please tell me why this is happening.
    Regards,
    Avinash Gyale

    Hi,
    mere reason for rejection is not enough for blocking from billing, at item level  you need to put billing block also apart from reason for rejection, then only you can reject the item and block from billing.
    thanks ,
    gln

  • Update Reason of Rejection field in Sales Orders

    Hi all,
    My scenario is:
    1) To Close all the open sales orders with a customized Reason of Rejection (ABGRU) field
    2) Only when the Sales Order Created Date is 1 month behind the Current Date.
    The report program which shall be developed should be run in background and shall automatically close all the Open Sales Orders and update the Reason of Rejection.
    Any hints shall be very helpful in addressing ,my problem.
    Thanks and Regards
    Srikanth.P

    Hi,
    After prfoeming select query on data base tables , use  Bapi BAPI_SALESORDER_CHANGE  for updating the reason for rejection  and FM RV_SALES_DOCUMENT_UPDATE  for updating the status of SO.
    Hope this helps you.
    BR,
    Lokeswari.
    Edited by: Lokeswari Bandaru on Sep 27, 2010 9:06 AM

  • Reason of rejection field in sales order

    Hi All,
       For a sales order when we create subsequent document i.e delivery...etc the reason for rejection field at item level gets Grayed out and the function module BAPI_SALESORDER_CHANGE is not updating it and returining the message " Field 'ABGRU' cannot be changed, VBAPKOM 000001  ready for input."
    Is there any other function module or any other way to update the ABGRU i.e reason for rejection in sales order?
    any help will be highly appreciated.:)
    regards,
    pavan.

    Basically BAPI do the direct update to the tables, it will cross check with the configurations settings and not allowing to do the change for the particular field. Try to make it modifiable and run your BAPI it should work.

  • GRN number for rejected items in sales order

    hi sapgurus,
    i want to know the grn number for rejected goods in the sales order 
    consider if i put a sales order for a material named X for 10 quantities and if 5 quantities are rejected i will put GRN for those rejected items and add it to my stock.
    I have taken GRN no linking VBAK with VBRP .VBRP with LIPS .LIPS with MKPF thro VBELN_LA (ie.delivery note).
    the delivery note will be updated only Post goods issue happens with complete status.
    Is there any other way to get GRN no without delivery note while PGI in process Status.
    thanks in advance!
    Edited by: rakesh on Oct 3, 2008 11:29 AM
    Edited by: rakesh on Oct 6, 2008 12:31 AM

    i solved ths issue

Maybe you are looking for

  • How to set up slider mobile menu widget on master and pages of mobile website in Muse

    Adobe Muse Slider Mobile Menu Widget by MuseThemes I am new to mobile website design and Muse, I love this widget, but I am not sure how to set it up on multiple pages. Do I put it on the master? Content covers it when it is on master, so I could use

  • Flash Player not installing for IE8

    I'm trying to install Flash Player into my IE8, but when I go to "Get Adobe Flash Player", it brings up a page saying "Sorry Adobe® Flash® Player is not available from Adobe.com for your device's operating system or browser." I checked the 'supported

  • I cannot get an applet to run in an html page through jdeveloper 10g

    I can run applets ok that i bring down from the web so i know the browser will support applets. But they will not work when i try to run a html page with an applet through jdeveloper. When I use the tool to create a page that will run an applet i get

  • Unable to Start WEBLOGIC 5.1

    Hi,I installed WL 5.1 on my Win NT 4.0 with service pack 6.When I start the Weblogic Server its starts but shuts down immediately with the following error message. Please help me with this please. THANKS A TON!<ListenThread> **** Unable to create>ser

  • Tools samiliar as SQL Server Profiler on SQL Server

    Dear Forum, Is there the tools that samiliar as SQL Server Profiler usually using on SQL Server ? SQL Server Profiler capable of all running query on database. Or do you know the syntax query for it ?