Repeat output automatically in changes sales order

HI all,
  I need to resend an output ZEDI whenever  the sales order is CHANGED based on customer number, change in quantity, price and rejection code.   The ZEDI output is created when the order is saved.  My thinking is that i would need to write a requirement for this.   The ZEDI is using requirement 2 now. However, i am going to create a new requirement, put those codes from reqmnt 2 and apply to the new requirement.   Do you have any suggestions how i can check the changes for  quantity changes, price changes and rejection code ?  Will it work with the new requirement ?
thanks
Joyce

In a requirement, to allow the output proposal, set SY-SUBRC = 0.  To stop the output proposal,  set SY-SUBRC = 4.  In your case, the best approach is to set SY-SUBRC = 4 until you find a condition that should trigger the output, then set SY-SUBRC = 0.  Be aware of DB selections and other actions that change the value of SY-SUBRC or use a local variable to assign the value at the end of the routine (see examples in your system).
For price changes, the easiest way is to analyze a net value change or a subtotal field change, rather than trying to access individual conditions.
Here is a field symbol usage example for sales order items (you need to do this for XVBAP and YVBAP in change mode (T180-TRTYP = 'V'), then loop/compare the items:
  DATA : lv_fieldname  TYPE fieldname.
  DATA : lt_xvbap TYPE STANDARD TABLE OF vbapvb,
         ls_xvbap TYPE vbapvb.
  FIELD-SYMBOLS: <fs_xvbap> TYPE ANY.
  lv_fieldname = '(SAPMV45A)XVBAP[]'.
* Get the Order Items
  ASSIGN (lv_fieldname) TO <fs_xvbap>.
  IF sy-subrc EQ 0.
    lt_xvbap = <fs_xvbap>.
  ENDIF.

Similar Messages

  • Want to change output type for 10000 sales orders through MASS

    Hi Friends,
    I would like to change the Output type in the sales order for 10000 sales orders.
    Can I do with MASS transaction. If so, Plz let me know how ?
    Is there any other process to change the output type for 10000 sales orders, as its difficult to manually in each and every sales order.
    Its very urgent issue, Plz let me know at the earliest.
    Thanks & Regards,
    Praveen Kumar. A

    This may be little tough for 10000 sales orders.
    1. You have to remove the output record for the irrelevant output record using tcode VV12 for the relevant document type. So now for the document type, the old output wont be triggered.
    2. Now, create output records for hte correct output type in VV11 tcode(for the output type BA03) for the document type. Now this output will be triggered for all the document types you are creating from now onwards.
    3. To trigger the output type BA03, in all the old orders, you just have to open these sales orders in change mode (VA02), and just save it. When u open it the output type BA03 will be automatically triggered as the master data is maintained in VV11. But because just opening all the 10000 sales orders in VA02 one by one be a mechanical task, you have to think of some tool for this.
    May be a CATT procedure can do the trick. Else, you can just create a small program, where you can upload these sales orders and the program will just open these orders in change mode and just saves it (without making any changes). Then the output will be retriggered.
    Here again, if you are printing the output directly, it is advisable to trigger the output in batch mode(Date/Time field is 1 in VV11), and then you can again trigger the printing again using the program RSNAST00 after office hours for these 10k orders.
    I hope I answered ur query.
    Pls lemme know if you need some more info. (You can reward me too...)

  • How to control automatic rescheduling of sales order?

    Hi all,
    Could u please help me out to configure  to control  automatic rescheduling of sales order...
    eg.  I created a order on 13th March  and the material was not available, then its was kept pending.  But when the stocks got added on 19th March,  the sales order got automatically rescheduled for 19th March.
    I wish to stop this.   Might have to do something  with setting planned indepentent requirements which seems updating  the order automatically.
    Can anyone urgently help me out to control this automatic rescheduling?
    Thanks in advance.

    Hi Ravey
    For your query , it is better not to change the Include sales requirements in OVZ9 as it will affect the entire sales order . But as per your ticket you have to customize in OVZ9 by not checking the Include sales requirements box only
    But instead of that it is advisable to run V_V2 and change the date manually
    Regards
    Srinath

  • Exchange rate automatic update in Sale Order

    Dear All,
    This is regarding Exchange rate automatic update in Sale Order and requirement said below.
    Process:
    User will created a Export Sale order in the month of November , that time Exchange rate is 50.00, this  will
    get updated in Sale order Header and Item level.
    But user will create billing in the month of December , at that time Exchange rate is 40.00. So in Billing
    document Header level exchange rate will be 40.00 (Current rate) and Item level exchange rate will be
    50.00.
    Requirement:
    User requirement is like this the current exchange rate 40.00 to be updated in Sale Order Header and Item
    level automatically, because user using  Sale order Exchange rate  for Z-Report.
    As of now user manually updating Exchange rate in Sale Order.
    Let me know if there is any solution.
    Regards
    S Kumar

    I dont think this is possible.  You should be aware any change in subsequent document would not have any impact in the preceding document which means, whatever exchange rate flowing in billing cannot be updated in sale order.  May you can update your zee table by considering the billing document exchange rate by way of exit.
    thanks
    G. Lakshmipathi

  • How to change pricing Conditions in Sales order in change sales order bapi

    Hi Experts,
    How to change pricing Conditions in Sales order in change sales order bapi.
    I have used the 2 function modules bapi-changesalesorder and sd salesdocument change, But it is creating the new record , instead of changing the existing one, Could please assist regarding the same
    Thanks in Advance .
    NLN

    HI NLN
      I have just tried on my system and managed to overwrite the existing price by passing the following parameters.
      <b>Import Paramters:</b>
         SALESDOCUMENT - Sales Document Number
         ORDER_HEADER_INX - UPDATEFLAG as <b>'U'</b>.
         LOGIC_SWITCH - Import Structure - Pass 'X' to LOGIC_SWITCH-COND_HANDL.
      <b>Tables:</b>
         CONDITIONS_IN - ITM_NUMBER,
                         COND_COUNT, -> Condition counter same as KONV-ZAEHK generally it is <b>'01'</b>
                         COND_TYPE,
                         COND_VALUE,
                         CURRENCY.
         CONDITIONS_INX - ITM_NUMBER,
                          COND_COUNT,
                          COND_TYPE,
                          UPDATEFLAG as <b>'U'</b>,
                          CURRENCY.
       Hope i have clarified your query.
    Kind Regards
    Eswar

  • End User Transaction for Mass Change Sales Orders

    Hello,
    Transaction MASS can be used to change sales orders using object type BUS2032, however, end users are not allowed access to MASS.
    In most other cases, the object types can be accessed by individual transactions, for example, MEMASSPO for BUS2012 and XD99 for KNA1.
    But I cannot seem to find a similar transaction for object type BUS2032, does anyone know whether one exists or how to create such a shortcut.
    Thanks,
    Jake.

    Hi
    See SAP Note 483303 - BUS2032: Only sales orders of category VBAK-VBTYP = 'C'
    Regards
    Eduardo

  • Getting error in while changing sales order which is created using BAPI

    Hi All,
       I have created the sales order using BAPI ( BAPI_SALESORDER_CREATEFROMDAT1 ) and i am successfully creating sales order using this BAPI. But while i want to change sales order iam changing Shipping Conditions in Header Data of sales order .its giving an error .can any know any thing about this.
    Error mesage :    No status object is available for SDI 300082407/10    (Order Number/Item Number)
    In Header i  am passing these values ...
         wa_order_header_in-doc_type = vbak-auart.
        wa_order_header_in-sales_org = vbak-vkorg.
        wa_order_header_in-distr_chan = vbak-vtweg.
        wa_order_header_in-division = vbak-spart.
    Do i required to pass the below values ? in Header structure ( BAPISDHEAD1 ).
    REFOBJECTTYPE
    REFOBJECTKEY
    REFDOCTYPE
    Regards,
    Sudhakar Reddy A

    rectified

  • Automatically cr. block Sales Order once they reach within the Cr. Horizon

    How to automatically credit block Sales order made outside the Cr. Horizon, once they reach into the Cr. horizon.
    I have tried testing the same through Program RVKRED08, but it works for some orders if the Cr. horizon is maintained for 60days.
    But does not block if the Cr. horizon is maintained for 30days.
    Thanks in Advance

    if you specify horizon date, the system consider al the values
    which falls under this date. the system will not take into account if the values fall after the horizon date.
    EX: if you specify horizon date 2 months. Then system consider the open values which falls with in two months. if
    the value fall after the two months, the system ill not take into account.
    If your horizion date is 30 days and shcedule line date is in 30 days, system will check credit managemnt and blocks or unblocks.

  • Changing Sales Order PARTNER from 'MASS' transaction

    Hi,
    I have a requirement to change partner details (e.g. SHIP TO party  from SH1  to  SH2) for sales order. I need to use tcode 'MASS' (Mass maintainance)  for BUS2032.  But it does not have the option to change partner details.
    Can anybody let me any approach to achieve this. If we can do it through a config or may be creating a custom business object etc...
    I could found out the thread below talking about the same issue, but there is no solution to that. I want to build the solution around SAP standard and not interested for BDC/LSMW/CATT  etc.
    Mass changes Sales order partners
    Thanks,
    Madhu
    Edited by: Madhu K on Nov 1, 2011 11:58 PM

    Alan
    I am ok to create a custom tcode for MASS.  Do I need to copy the BUS2032  or the whole TCODE?
    My major concern is,  how to get the VBPA structure to the selection screen so that it ll show me  the I/P fields to enter Old  Ship to  and  New ship to..
    Can You please give me some idea on this.
    Thanks
    Madhu

  • New sales order and Change sales order in item level or delete at item leve

    I got one requirement. Daily i have to display one report on new sales orders created on that day and any sales order item is modified or any item is deleted or any item is added.
                      How to get the sales order numbers and position numbers which will follow above creteria. I found one function module but it is not giving position numbers and new sales order details.
             Is there any BAPI for this requirement.

    I am using "CHANGEDOCUMENT_READ" function module to get the new sales orders created and changed sales order items on a particular time. This function module is getting data from CDHDR and CDPOS tables. But only change sales orders is coming. New sales orders which is created on that time is not getting.
              One of my friend is telling like we have to activate one change pointer to retrive new sales orders also. Which is like there will be one check box.
    Is any body having idea on this. Please reply me on briefly with the code to retrive new sales orders and changed sales orders

  • BAPI / FM to change Sales order item data

    Hi,
    I need a BAPI or FM to update the following fields of VBAP (Sales Document Item Data)
    KZWI2 - Subtotal 2 from pricing procedure for condition
    KZWI3 - Subtotal 3 from pricing procedure for condition
    KZWI4 - Subtotal 4 from pricing procedure for condition
    KZWI5 - Subtotal 5 from pricing procedure for condition
    I found FM: ISM_SALES_ITEM_CHANGE for this, but when I use it, it gives me dump for some data object 'XJKNBK'.
    Does any one have idea on how to use this FM or if any other FM is there please let me know?
    Thanks & Regards,
    Sunanda.

    hi Sunanda..
    I think you can try the Bapi 'BAPI_SALESORDER_CHANGE'. You can make use of its Tables Parameter CONDITIONS_IN and CONDITIONS_INX.
    example:
    How to change pricing Conditions in Sales order in change sales order bapi
    thanks,
    Padma

  • Error received while changing sales order.

    Hi All,
    while changing sales order we have received error message "An internal program error has occured.See note 44283".
    So could you plesae explain me what needs to be done.
    Thanks in advance.

    To avoid to store inconsistent data in the future, activate the following method of the BADI                           BADI_SD_SALES:                                                          
    > 1 - Transaction SE18                                         
    > 2 - Definition name: BADI_SD_SALES Menu: Implementation -> Overview double-click on implementation: IM_CORE_CHECK
    > 3 - Now you will get an overview on the methods and you see also that the implementation IM_CORE_CHECK is inactive    
    > 4 - Press the change button and activate                                                                               
    This check works in the following way:
    > 1 - if the number of items is less than 10 and there is an inconsistency the system will not store the data and an A-message  will occur.
    > 2 - If the number of items is greater than 10 and less than 50 and there is an inconsistency the data will be stored and an I-message will occur.
    > 3 - if the number of items is greater than 50 there is no check because performance.
    Edited by: Gerard Magorrian on Aug 6, 2010 4:01 PM

  • Change Sales Order, Delivery, Billings Reports

    Hi Gurus,
    Can any body please tell me is there any Report for change logs of Change Sales Order, Delivery,
    Billings & Change report of Customer & Material,
    Regards,
    Sai

    Hi,
    There are no standard reports to display the changes made in the Sales orders and the details you had asked.
    But for the latest changes you can check in the Table :Header details for change CDHDR and for Item details CDPOS
    Or Based on your requirement you can go for a Customized Report
    rgds
    psk

  • Automatic Quantity in Sales Order

    Hi Gurus,
    My client has requirement that qty in Sales Order should be copied automatically.
    My client receives the List with details of Volume (LxWxH) & Weight. We are developing the Z programme wherein the total Volume & weight will be calculated. Either Total Volume or Weight will be taken as quantity in Sales Order. This quantity should be automatically copied in Sales Order. This List will be attached to Sales Order in workflow.
    Is this  possible? Is there any user exits for copying the quantity
    Thanks in advance.
    Regards
    Mahendra

    As per my understanding, if the sales order is being created through EDI / IDOC, in that case all details will come & the quantity based on the development may be captured, by provding appropriate logic.
    But if sales order is being created manually, in that case quantity will be required to be maintained. If the development is possible to be captured at sales order level, in that case you may have to try.
    Regards,
    Rajesh Banka

  • Error in change sales order.

    Hi ,
    my process is : First create SO than Billing  than Delivery. i need to change the sales order Batch  when
    delivery saved.
    When  i change Sales order Batch  withouting creating billing it is changing Fine through BAPI FM .
    But when i create So --Billing --- delivery than in this case Sales order batch not changing.
    it is giving error like below.
    Field  CHARGE  Can not be changed VBAPKOM 000010 is ready for input'
    Message is comming from message class V1 and Message no 739.
    PLease Reply .
    If any clue Have.
    Thanks.

    Hi,
    When you create a Billing Document for the Sales Order it is no longer possible to change a lot of fields (as these fields have been copied to the Billing Document). Field Batch is one of those fields.
    So if you have to include the batch in the Sales order you must update this field prior to creating the Billing Document.
    Regards,
    John.

Maybe you are looking for

  • Click Wheel iPod not recognized by Vista Retail

    I have a 20gb click wheel ipod that Vista v6.0 does not recognize in device manager. iTunes does not recognize the unit either. I'm surprised that Apple has not addressed the problem comprehesively but rather suggests generic fixes for all their prod

  • Re:gui_upload

    Hi All, what are the values of import parameter 'file type' in the function modules gui_upload and download. when we use ascii ? and when we use dat? and what are the other values for file type? what scenario we will use perticular value? can any one

  • Webdynpro ABAP/Portal. Plugin HTTP connection issue on WaitingEventQueue.js

    Hello, We are experiencing a strange Portal Behavior with our Webdynpros. Our portal contains several iViews including some Webdynpro (ABAP) and some reporting transaction calls that use SAPgui for HTML. When portal is called for the first time and a

  • How to filter data in message mapping?Kindly help! URGENT

    Hi Experts, I have a source XML as shown below: <Inventory> <InventoryItem> <InventoryQty> <MaterialNo>X001</MaterialNo> <ItemCode>InTransit</ItemCode> <Quantity>1000</Quantity> </InventoryQty> <InventoryQty> <ItemCode>Available</ItemCode> <Quantity>

  • Dbus/Hal automount not working in KDE

    Hi I have set portmap dbus hal in rc.conf. In Gnome automount works great but in KDE automount does not work and I don't know why. Can someone please help? All I want to have is when I insert cd,dvd,usbstick to have them automount.