Mass change with Reason for Rejection.

Dear Gurus,
Pl tell me the process to close all the open orders at one go. I have tried with the t.code MASS, but I was unable to do that.
Pl give the step by step process.
Regds,
Sreehari

Hari,
MASS transaction is useful, If you know what fields to change  and in what documents/customers/vendors/.
In your case what fields is pretty clear (VBAP-ABGRU  or MASSVBAP-ABGRU )
But what documents is not clear.
Points to consider.
     You can the documents that are open by just writing some query or even you can get it from SE16 using VBAP table
        and you can use these document numbers and enter in the MASS T.Code.
It looks simple but the main hurdle is not all of the items in these orders are open, right...so you can't enter the reason for rejection in an item which was already delivered, or scheduled to deliver.
So  Unless you know that all the items of an order are open, its not feasible to use MASS T.code.
         So my suggestion is to write an ABAP program that check whether the item in an order is open or not and then change the reason for rejection using BDC code.
                Thats my suggestion. I hope you understood the reason for going to an ABAP program.
Regards,
Ajai.
Reward points if helpful.

Similar Messages

  • Mass change of reason for rejection

    I need to show a list of all the orders on teh basis of sales order date.
    the user will select few from the list and click "reject".
    this will popup a window showing all the reasons.
    after selecting a reason the program should change
    all the line items from all the sales docu with the
    selected reason of rejection.
    The obvious choice will be to call VA02 in BDC session in the background.
    But can it be done without BDC.
    I have given it a shot using  FUNCTION module 'SD_SALES_DOCUMENT_READ' but I am unable to send the new reason for rejection to the fn module . Also the fn module SD_BULK_CHANGE is not helping as for as my understanding goes.
    TABLES: vbap, vbak, vbakkom.
    DATA:   BEGIN OF xvbap OCCURS 125.
            INCLUDE STRUCTURE vbapvb.
    DATA:   END OF xvbap.
    SELECT SINGLE * FROM vbak INTO vbak
      WHERE vbeln = '0000012065'.
    SELECT SINGLE * FROM vbap INTO vbap
      WHERE vbeln = '0000012065'.
    SELECT * FROM vbap INTO TABLE xvbap
      WHERE vbeln = '0000012065'.
    DATA wa_vbap LIKE LINE OF xvbap.
    wa_vbap-abgru = '02'.
    Alter all rows in one go
    MODIFY xvbap FROM wa_vbap
    TRANSPORTING abgru WHERE vbeln <> space.
    EXPORT xvbap TO MEMORY ID 'XVBAP'.
    vbap-abgru = wa_vbap-abgru .
    CALL FUNCTION 'SD_SALES_DOCUMENT_READ'
      EXPORTING
        document_number = vbak-vbeln
      IMPORTING
        evbak           = vbak
        evbakkom        = vbakkom
      EXCEPTIONS
        error_message   = 01.
    vbap-abgru = wa_vbap-abgru .
    CALL FUNCTION 'SD_SALES_DOCUMENT_SAVE'
    EXPORTING
       synchron                         = 'X'
       status_buffer_refresh            = ''
       requisition_buffer_refresh       = ''
    IMPORTING
      EVBAK                            =
    TABLES
      EFXVBEP                          =
       efxvbap                          = xvbap[]
      ATTR_TAB                         =
      EFXVBPA                          =
    COMMIT WORK.

    Hi,
    Look at the table ORDER_ITEM_IN
    Regards.

  • Tcode to view the list of orders with reason for rejection

    Hi friends,
    Can any one tell the T.code or report to view the  list of sales orders or Scheduling agreements with Reason for Rejection updated.
    Kindly help.
    Regards,
    K.Vivek

    Hi Vivek,
    Use Tcode VA05 i.e. List of Sales Order. In this Tcode you can enter sales document type, sales area and other related data. After execution, from layout you can select Reason for Rejection from the list.
    This way you can filter all the sales documents including Scheduling agreements by using sales document types.
    Hope this will help you.
    regards,
    Sagar Wagh

  • Create EDI sales order with reason for rejection set for item

    Hello all,
    I'm trying create an EDI sales order with item rejected, but I get the following error: Item 000001's configuration can no longer be changed.
    I set the reason for rejection in the segment E1EDP01, field ABGRU.
    How can create the sales order, with item rejected without error?

    Use program SDJEDI to simulate the error (see note 380603)
    This way you can figure out whether the same issue exists in VA01 or just in the SD EDI process
    From reading the issue, it seems you have a configurable item and the line is not open for input and that's why your reason for rejection is ignored.
    But SDJEDI should tell you everything.
    Run it first to see the BDCDATA your idoc produces.
    Then run it again in simulate mode and it should take you very close to the error
    Hope this helps
    Paul

  • Quotations with reason for rejection still appears in sales order creation

    Hi,
    when i create a sales order with open quotations and if i want to display the list of these quotations, the system displays even the quotations with a reason for rejection. do somebody knows how to customize it in order to have only the open quotations in the list (without reason for rejection)
    thaks a lot
    Zak

    This is the standard config to supress printing on the rejected item. Are you using standard programs or customised ?

  • Sales Order Change BAPI - Reason for Rejection

    Hi,
    I want to update reason for rejection field for a particular sales order at item level. When I am executing the BAPI "BAPI_SALESORDER_CHANGE", I am getting the error "Field header_inx-updateflag is not an input field". I did not check this field as I'm not making any change in the header part.
    Please help me in resolving this issue. Let me know if I have to provide any other information.
    regards,
    ravikiran.

    Found BAPI myself...... BAPI_SALESORDER_CHANGE

  • Price Inactive during change in reason for rejection

    Hi ,
        I am facing an issue while providing reason for rejection in VA02.The issue is the price shows as inactive if we cancel the reason of rejection for an item(we get pop-up to select if we want to have reason of rejection or not).As per configuration if reason for rejection(vbap-abgru) has a value then statistical field(vbap-kowrr) will also have value as 'X'.So during providing reason for rejection,if user selects cancel we clear both the values(abgru as well as kowrr).But at this moment the price shows as inactive,but if we press update or save the price shows active.
    Please suggest how i can have the price as active after user input,all this is done through an exit 'MV45AFZB'.This is triggered when user provides values for reason for rejection,then popup appears if it satisfies certain conditions.
    Jeten

    Hi,
    Look at the table ORDER_ITEM_IN
    Regards.

  • REASONS FOR REJECTION - SALES ORDER

    I would like to know if is it possible to change a reason for rejection that had already exist and it is not selected the item 'Not relevant for Billing'. I would like to select this item, this change influence on all sales orders that have already used this reason? If not, how can I reprocess all sales order that used this reason?
    Waiting your comments,
    Regards

    Hi
    Use T-Code MASS
    Object Type : BUS2032 Sale orders and Execute
    Regards,
    Prasanna

  • 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

  • Reasons for Rejection

    Hi all
    I facing problem with Reason for Rejection, while raising a sales order the there is no problem, but when i save the document Reason For Rejection is getting activated automatically and i need to go to change mode and remove the option (Reason for Rejection)
    Thanks all
    Madhu

    Dear Madhu
    Definitely some user exit is applied to either sale document type or customer.  Take the help of ABAPer and find out the problem
    For information, since Reason for Rejection is applied at item level, you can check whether any of the following user exits are applied.
    -  User exits in the program MV45AFZZ - USEREXIT_MOVE_FIELD_TO_VBAP
    -  User exits in the program MV45AFZZ - USEREXIT_SAVE_DOCUMENT
    -  User-Exits in program MV45AFZB - USEREXIT_CHECK_VBAP
    thanks
    G. Lakshmipathi

  • How can I disable the Reason for Rejection field in VA02 line items

    Hi,
      I dont want the users to be able to change the reason for rejection field in the sales order line items. Can someone please suggest a tried and tested way of doing this
    Thanks for reading.

    Set up an auth object for the field.  In userexit field modification check the auth object and set the field to be grayed out if they don't have authority.  Users can then not change the value of the field  Sample code
    IF screen-name = 'VBAP-ABGRU'.
           AUTHORITY-CHECK OBJECT 'Z_BLK_REAS'
                   ID 'ABGRU' DUMMY.
          IF sy-subrc EQ 0.
            screen-input = 1.
          ELSE.
            screen-input = 0.
          ENDIF.
      ENDIF.

  • Reason for Rejection

    Hi ,
    The Sales order is created  and the PR is generated and Based on PR, purchase order is created. The Inbound delivery and  GR is done and the stocks is in Sales order Stock.
    By Mistake User puts a Reason for Rejection for the Line item and system accepts it without showing any error message.
    This needs to be corrected

    Hi Akash A,
                This is std system behaviour to allow the Reason for rejection. But system issues warning message before you set the reason for rejection. Have tested the same & system triggered below message in sequence.
    Message no. V1036
    Message no. V1775
    Message no. V1544
    Message no. V1579, Then able to save the document with reason for rejection  ( code:00)
    in VA02,- when i was trying to remove the reason for rejection,system didnt allow to do so & issued below error message
    Message no. V1597.
    This is because,
    Eg: MTO- scenario, flow is like
    MTO - PR - PO - IBD- MIGO, then stock in inventory against SO.
    In this stage, if customer cancels the Order,  you cant cancel the delivery, you have only option to set the delivery / billing block. but still system shows this order in "Incomplete order list" To avoid this,
    you set the reason for rejection & status will get updated as "Complete".
    If you dont want to do so, you have to fine tune system or Dont give option to the user to view this tab or field.
    Regards,
    Reazuddin MD

  • Error V1 322 u2013 Delete Reason for rejection

    Hi,
    I have the following error when I trying to delete the reason for rejection in sales order position:
    Error in building the index of the table XMVERF_POS / 0000396002 / 000010
    Number message V1322
    Internal Error
    Where 0000396002 is the sale order number and 000010 is the sales order position. Please, any suggest?
    Thanks
    Enrique

    Hi
    Thanks for the reply. Sorry, the error is when i trying to change the reason for rejection in saler order position to for example "10 - Unreasonable request" to blank.
    Thanks
    Enrique

  • Problem in adding "Reason for Rejection" using BAPI_SALESORDER_CHANGE

    Hi all,
           I have a requirement to stop further processing of sales order by changing the reason for rejection at line item. I have done the code and passed the reason code in the item table to BAPI. The return message says the sales order ammended successsfully, but when i go and see the sales order I dont see it getting updated. when i go to check the order its throwing an error message "Update was terminated"  Could some one please help in getting this solved.
    The code is shown below
    Populate the headerX details
    it_bapisdh1x-updateflag  = 'U'.
    it_bapisdh1x-sales_org   = 'X'.
    it_bapisdh1x-distr_chan  = 'X'.
    it_bapisdh1x-division    = 'X'.
    it_bapisdh1x-purch_no_c  = 'X'.
    it_bapisdh1x-cust_group  = 'X'.
    Populate the header details
    it_bapisdh1-sales_org    = '1298'.
    it_bapisdh1-distr_chan   = '95'.
    it_bapisdh1-division     = '00'.
    it_bapisdh1-purch_no_c   = 'Test1'.
    Partner Roles
    it_bapiparnr-partn_role = 'AG'.
    it_bapiparnr-partn_numb = '9820000049'.
    it_bapiparnr-itm_number = '00000'.
    APPEND it_bapiparnr.
    it_bapiparnr-partn_role = 'WE'.
    it_bapiparnr-partn_numb = '9820000049'.
    it_bapiparnr-itm_number = '000000'.
    APPEND it_bapiparnr.
    it_bapisditmx-itm_number = '00010'.
    it_bapisditmx-updateflag = 'U'.
    it_bapisditmx-material   = 'X'.
    it_bapisditmx-cust_group = 'X'.
    it_bapisditmx-reason_rej = 'X'.
    APPEND it_bapisditmx.
    it_bapisditm-itm_number = '00010'.
    it_bapisditm-material   = 'YAG'.
    it_bapisditm-reason_rej = '01'.
    APPEND it_bapisditm.
    BREAK-POINT.
    salesd = '4000004045'.
    CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
    EXPORTING
      salesdocument = salesd
      order_header_in = it_bapisdh1
      order_header_inx = it_bapisdh1x
      behave_when_error = ' '
      int_number_assignment = ' '
    TABLES
      order_item_in = it_bapisditm
      order_item_inx = it_bapisditmx
      partners = it_bapiparnr
      return = it_bapiret2.
    IF sy-subrc = 0.
      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
    endif.

    When using BAPI_SALESORDER_CHANGE, you set the fields your are updating to 'X'.  In the example you gave, you are trying to change the header data, material number, etc.
    Try slimming it down to:
    Populate the headerX details
    it_bapisdh1x-updateflag = 'U'.
    it_bapisditmx-itm_number = '00010'.
    it_bapisditmx-updateflag = 'U'.
    it_bapisditmx-reason_rej = 'X'.
    APPEND it_bapisditmx.
    it_bapisditm-itm_number = '00010'.
    it_bapisditm-reason_rej = '01'.
    APPEND it_bapisditm.
    BREAK-POINT.
    salesd = '4000004045'.
    CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
    EXPORTING
    salesdocument = salesd
    order_header_in = it_bapisdh1
    order_header_inx = it_bapisdh1x
    behave_when_error = ' '
    int_number_assignment = ' '
    TABLES
    order_item_in = it_bapisditm
    order_item_inx = it_bapisditmx
    return = it_bapiret2.
    IF sy-subrc = 0.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
    endif.
    I hope this helps,
    Mark

  • 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

Maybe you are looking for

  • DVI video cards for older PowerMacs

    Hi all, Just curious but may I be able to install dvi video PCI cards in my 8600 and G3 mini-tower like the way G4 towers are configured? Thanks for your help web dude

  • Random file corruption with SSHFS, while CIFS is fine

    I'm not sure what is happening, but it seems that sometimes, files read from a  sshfs mount come up corrupted. I have checked my filesystem and my RAM for errors on both ends, everything comes up clean. I'm currently mounting my shares as fuse.sshfs

  • SAPUI5 Project - Missing persistence.xml

    Hi, I have created a simple SAPUI5 application having an Employee form. The values should be saved in the HANA DB. As there are multiple ways to save the data in HANA, I am exploring the JPA based approach. I am following the Container-Managed Persis

  • Nokia asha311 7.36

    Don't upgrade to 7.36 no chat no mail 5.92 is better

  • I-beam cursor in flash sprites

    I'm having a problem with the I-beam cursor dissapearing in text fields in flash sprites. I'm using Director MX and flash MX. I see that this problem is fixed in the latest version of Director, but my client requries WinNT4 support, so I'm stuck usin