Using DTW to change a sales order shipping address

I found a template RDR12 and according to the di help file this seems to correspond to the addressextension object.
I want to use this template to change the address information for an order. Either an existing order or a new order as it is imported.
Can I change the address information showing in the shipping address box on the logistics tab of an existing order using this template and a csv file?
Is it independent of existing addresses associated with a business partner?
I tried importing a row corresponding to an existing sales order, using the sales order DocNum as the primary key. It did not work, giving the error, Can not find this object in B1 Application. I verified that the order existed.
Can anyone point me to an example or give me information regarding how to use this template?
Is what I want to do possible?
Thanks,
Mark

Hi,
try this
DATA: IT_MESSAGE TYPE STANDARD TABLE OF BAPIRET2,
      WA_VBELN TYPE BAPIVBELN-VBELN.
DATA: WA_BAPIHEAD TYPE BAPISDH1,
      WA_BAPIHEADX TYPE BAPISDH1X,
      WA_HEADDATA TYPE BAPISDH1.
DATA: I_BAPIITEM TYPE STANDARD TABLE OF BAPISDITM,
      WA_BAPIITEM TYPE BAPISDITM,
        WA_DATA TYPE BAPISDITM,
      I_BAPIITEMX TYPE STANDARD TABLE OF BAPISDITMX,
      WA_BAPIITEMX TYPE BAPISDITMX.
CHANGE ITEM DATA
WA_BAPIITEM-ITM_NUMBER =WA_DATA-ITM_NUMBER.
WA_BAPIITEM-REASON_REJ = WA_DATA-REASON_REJ. "(REASON FOR REJECTION)
WA_BAPIITEMX-ITM_NUMBER = WA_DATA-ITM_NUMBER. "(ITEM NUMBER)
WA_BAPIITEMX-UPDATEFLAG = 'X'.
WA_BAPIITEMX-REASON_REJ = 'X'.
APPEND WA_BAPIITEM TO I_BAPIITEM.
APPEND WA_BAPIITEMX TO I_BAPIITEMX.
TO CHANGE HEADER DATA
WA_BAPIHEADX-UPDATEFLAG = 'U'.
WA_BAPIHEADX-DLV_BLOCK = 'X'.
WA_BAPIHEAD-SALES_ORG = WA_HEADDATA-SALES_ORG. "(COMPANY CODE)
WA_BAPIHEAD-DLV_BLOCK = WA_HEADDATA-DLV_BLOCK. "(DELIVERY BLOCK)
WA_VBELN = '0000000168'.
CALL BAPI AND PASS THE VALUE
CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
   EXPORTING
     SALESDOCUMENT               = WA_VBELN " (SALES AND DOCUMENT NO)
    ORDER_HEADER_IN             = WA_BAPIHEAD
     ORDER_HEADER_INX           = WA_BAPIHEADX
   TABLES
     RETURN                     = IT_MESSAGE
    ORDER_ITEM_IN               = I_BAPIITEM
    ORDER_ITEM_INX              = I_BAPIITEMX
CLEAR IT_MESSAGE.

Similar Messages

  • Function module which uses both BAPI's for sales order create and change

    Please name the function module which uses both BAPI's for sales order create and change.
    BAPI_SALESORDER_CREATEFORMDAT2
    BAPI_SALESORDERCHANGE

    Yup.
    you must write a piece of code for this.
    with if else condition.first check if SO is exsist than use second FM to change it else create new SO from first FM.
    logic somethig like this.
    Amit.

  • Report on changes to sales orders

    Hi Experts,
    I am looking for a way to report on changes to sales orders, specifically the row shipping date and quantity.
    I can see that the data is apparently in tables ADOC and ADO1 but am having trouble getting useful results. What I need is a report that, for sales orders only and for a date range, shows all changes to row quantities or row shipping dates. The type of output that would be useful is:
    Change date  - document # - row# - Item code - old shipping date - new shipping date - old qty - new qty
    filtered on change date for sales orders only. This seems beyond my preferred option of XL-Reporter and I'm getting lost in the history tables in creating a query.
    Best Regards
    Matthew

    Hi,
    Without doing the query for you, history tables are linked as the "normal" table but with the addition of the LogInstance column. Then the UpdateDate column (from base table ie. ADOC) will tell you when it was changed.
    Your query isn't an easy one... SInce you have to link an instance (ie. LogInstance = 1, which will be the original created object) to all the modified ones.
    Regards,
    Eric

  • EBS financial Sales Order Acknowledgement Address change

    Kind of a newbie question, new to apps space with 11.5.10.2, maybe I initially posted under the wrong forum
    Question on Sales Order Acknowledgement Address change
    our company recently moved to a new location so needs address change below our Company logo.
    Where Bill to: & Ship To: address fields are fine. Just the organization address needs to be changed below our company logo.
    Was going back & forth on the Navigator -> Application Developer -> FlexField : Descriptive -> Segments {Order Management}
    Looking for the rights fields to be update so it gets changed in the SO Acknowledgement when it gets published through the XML publisher I believe.
    Thanks for you help in advance.

    In addition to the function in the previous reply, you may use table VBPA and ADRC to get the details
    Raj
    Reward points if helpful

  • Restrict manual change in sales order with respect to quotation

    Hi All,
    The user use to create sales order with respect to quotation.  The user can able to change pricing as well as some header and item fields.  How can I restrict user for manual change in sales order expect some specific fields.
    Thanks.

    Hi Sunil,
    It is possible through configuration better you can post in sd forums.
    For the condition type settings , ensure that the manual entries is 'D'. it wont allow any changes in the order.
    Regards,
    Madhu.
    Edited by: madhurao123 on Aug 1, 2011 1:08 PM

  • How to restrict the user from making any changes in Sales order- item level

    Hi to all
    How to restrict the users from making any changes in sales order at item level if the same sales order is released by senior user through status profile.
    Regards
    Anish Parikh
    Edited by: anish parikh on Jan 24, 2008 5:16 AM

    Hi Anish,
    This can be achieved through the roles and authorization.
    This can be done through the basis team. they can create user profiles and roles.
    For the roles they assign some transaction codes so that they can view the only assigned tr. codes.
    Like that ur requirement can be done.
    Also u can prevent the user to change any fields in the sales order screen (VA02). for that please modify the authorisations.
    Hope i answers.
    Reward points if useful.
    Edited by: kaleeswaran bhoopathy on Jan 24, 2008 9:57 AM

  • Change of sales order address while changing the delivery address

    Hi,
    Problem: Changing delivery address in outbound delivery is changing the originating sales order address for one user while for a different user id the sales order and delivery has their different delivery addresses.
    Scenario:
    1. A new sale order is created and its address for ship to party is modified (to say A1)
    2. Delivery for the sales order is created and the ship to party address is modified (to say A2).
    While executing this scenario with two different users we are getting different result
    For user 1, after step 2 both the sales order and delivery has shipping address as A2
    whereas for user 2, sales order has address A1 and delivery document has address A2
    How can this difference in behaviour be explained?

    Found the solution myself,
    The standard behavior is being modified in the user exits V09A0001 ( Reference/duplicate decision making manual address). Also refer to note 97832 for detailed solution.

  • Changes in sales order

    Hello,
    Table VBUK is for order header status.
    I made changes to sales order.
    which field in table indicates sales order change Date & Time?
    thanks

    hi
    from CDHDR you will get the details as who made the change, when, using what tcode and the change type ie. update, delete.
    CDPOS will give u details of changed fields its old value and its new value.
    The change document object is VERKBELEG for sales documents.
    Check the link to have more
    http://www.sap-img.com/ab024.htm
    regards

  • Mass Change to sales orders

    Dear All,
    If i have alot of sales orders and i want to carry out new pricing to all of them is there away to carry out mass change to them or i have to change them Individually,
    thanks in advance.

    Dear,
        You can use T. Code ME17 or MASS for mass change in sales order,
        Please go via below step :
        1) Enter T.Code MASS. Select Object BUS2032.--> F8. Select Sales Order Item Data (MASSVBAP). -->F8
        2) Enter Sales Order No. and plant code --> F8
        3) Click on Display All Records
        4) Click on Select field button
        5) Select field which you want to change in selection criteria
        6) Enter new value which you want to replace in place of old field.
        7) And click on carry out a mass change button.
        8) Select column which you want to change.
        9) Save it.
       You can also change your sales order price using this path like --> VA05 ---> Orders -> Edit -> Mass change -> New pricing.
    Regards,
    Sandip

  • Change a sales order while delivery

    Hi Gurus,
    I need to change the status of a sales order line item from being complete to incomplete in case it fails some validation during delivery creation.
    I was earlier planning to code this in the copy-control routine ( order to delivery)  and use the standard FM BAPI_SALESORDER_CHANGE in the copy control code to attain this, but however, the sales order cannot be edited when being delivered.
    Is there any other means of attaining this. Backend update of tables can lead to a couple of challenges and undesired behavior that I want to avoid.
    Regards,
    Jasmit

    Dear Jasmit ,
    As Regards to the Change a sales order while delivery.
    There will be 2 Approaches for it
    1. Firstly use the User Exit SAPMV45A.
    2. Use the Enhancement V45S0001/V50S0001/V50R0004
    This will definitely help in your requirement .
    Regards,
    Saurabh Goel

  • Sales Order-Shipping Conditions from Sold-to-Party

    Hi Guys
    When sales order created, shipping conditions copied from Sold-to-Party.  At that time, in SP, shipping conditions maintained wrongly. 
    After creating Sales Order, shipping conditions modified in SP, but system not allowing to modify shipping conditions in sales order.  Because of this, shipping point has not been determined.  Could not change manually also.
    Please suggest on this.
    Regards
    Uma

    Dear Uma
    On your comments
    "Because of this, shipping point has not been determined",
      I dont think, it could be bcoz of shipping condition.
    If Shipping Point is not flowing in sale order, then you need to check in OVL2 where you have to maintain the shipping point for the combination of Shipping Condition from Customer Master, Loading Group from Material Master and Plant.  So check whether you maintained this. 
    Meanwhile, with regard to the field Shipping Condition which you could not make change, please note that even if subsequent documents are generated, this field will be in editable mode only and if you try to change, system will give you a message
    -  Shipping Conditions were changed, Redetermine Routes and shipping of all items
    and if you click "Redetermine", the new shipping condition will take place.
    So, can you please let me know whether your sale document type is copied from standard OR where the screen controls are there.
    thanks
    G. Lakshmipathi

  • Tracking Post Booking changes to Sales Orders

    Hi,
    We have a requirement for routing changes to Sales Orders through an approval after booking of the order. The changes which need to be tracked and routed through the approval workflow are changes to Scheduled Ship Date and Quantity in the Order Lines.
    Please can anyone in this forum provide ideas/options for developing a solution for this requirement.
    Regards,
    Balu

    Hi Prashant,
    Yes. You are right. The requirement is to approve changes to SSD and Quantity. I am providing detailed description of the requirement for your reference.
    Regards,
    Balu
    Change Order - Customization
    ======================
    Scenario
    Customer orders once booked go through changes (scheduled ship date, quantity, request date and ship to address) on a regular basis. These change requests need to approved by
    1. The Plant Scheduler
    2. and Logistics
    Currently these processes are done through offline requests (email, or verbal)
    Order Management Module Limitation
    Order Management module does not support change order approval and hence there is a need to customize the existing workflow.
    Solution
    The process would be as follows;
    1. The order is booked and the line status becomes ‘Awaiting Shipping’.
    2. Change order request is placed by the customer. (E.g. request date change)
    3. CSR updates the ‘Request Date’ field. At this point the line status should become ‘Pending - Internal Approval’ and accordingly reflect in Production Scheduling Application
    3. Approval notification is sent to Plant scheduler, Formulation Engineer and Logistics. This approval notification should follow a hierarchy, i.e. first needs to be approved by scheduler and so on.
    4. Once approved by process owners, the line status becomes ‘Awaiting Shipping’ and follow the normal process.
    5. If rejected by one of the process owner, then the status should become ‘Booked - Internally rejected’.
    6. The line status remains ‘Booked – Internally rejected’, and should not progress, unless approved by the process owners.
    Additionally a notification needs to be sent to Scheduler, Logistics, and Formulation Engineer regarding any change to an order.

  • Purchase Requisition number not changing when sales order item is rejected

    Hi all,
    I have a requirement to change the sales order status to 'TECO' when ever some reason for rejection is selected in the status tab at the item level.The status should change from 'TECO' when i remove the reason for rejection.
    The status change is happening correctly.I have achieved it using user exit.
    CASE 1 : Initially, when a new item is added in the Sales order the purchase requisition number appears in the schedule lines tab of the item level. This is as expected.
    CASE 2 :When the same item is blocked (by entering a reason for rejection in status tab of VA02 ) then the purchase requisition number is not present in the schedule lines tab.This is as expected.
    But i face the following issue.
    CASE3 : Again if the blocked item is unblocked (By removing the reason for rejection in status tab of VA02 ) then the purchase requisition number does not appear again in the schedule lines tab.The purchase requisition number is expected to appear again.
    This happens in case of DROP SHIPMENT scenario. I understand that in case of dropshipment scenario the purchase requisition number is triggered by item category and schedule lines only.
    I tried to make the changes(to change the status ) in user exits 'MV45AFZZ' and also 'MV45AFZB'.But i face the issue in both the exits.Please let me know if there are any means to solve this issue(as mentioned in case 3).
    Regards,
    S.Suba

    Many thanks for your answer. It help me to solve the issue.
    So applying note 738171, with transaction OVB5 (or VOFM, requirements->subsequent functions->Purch.requisitions) we create one new requirement, ie RV07A900, and then we apply the rule that if we have delivery or billing block, that is, VBAK-LIFSK or VBAK-FAKSK not empty, then we set an error with a code similar to this:
                da_sy-msgid = 'Z1'.    (message class)
                da_sy-msgno = '001'.  (message number)
                error_exception = true.
    and then the PR is not created.
    Regards.

  • Creating check on officers who can change a sales order - User Status

    The user needs to create a check on persons who can change (User Status) on the sales order created.
    The sales order are created by a group of people. These group of people can not be allowed to change the sales order - User Status(In header Detail).
    Only a second level user users should be allowed change this user status.
    Can it be done at configuration level. Or should we use an Exit?
    Thanks in advance.

    Hi Sunoj,
    I never have used this auth. objects, but if you want to set restrictions on some users, search before in auth. objects. As I told you, you can use the tcode SU24 for this purpose. Do the selection, see the result, try it with tcode PFCG and check it.
    If you can do something with customizing tools or other standard tools (as authoritation tools) avoid the use of enhancements, BADI, BTE'S and so on. If you don't find the solution, then go to userexits.
    I hope this helps you
    Regards
    Eduardo

  • Change the  sales order reason for rejection for line item

    Hi,
    i want to change the  sales order reason for rejection for line item.
    iam using bapi_salesorder_change.but i unable to change the sales order.
    if possible please provide me what are the fields necessary  for changing
    sales order reason for rejection for line item.
    Regards,
    Suresh

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

Maybe you are looking for

  • Chart Legend Edits not holding - CR XI R2

    We are making a report with multiple sub reports. Many of the sub reports are charts (Pie, stacked bar & line). The default legend labels are "Sum of [table or query name].[field name]." When we preview, then edit the legend labels to something more

  • Compatible SSD that can run 3 Gbps (Sata 2) speed - Macbook 5.1 Late 2008 Aluminum

    I've read on several forums most of the SSD drives run negotiate 1.5 Gbps speed on Macbook 5.1 Late 2008 Aluminum (Not macbook pro) . Can you recommend a drive currently on the market 120-256 GB range that can run at negotiated 3 Gbps speed ?

  • Can't get movies to play

    I have the BlkBry 8100. I have some movies that I would like on my phone.  I've tried encoders but nothing seems to work. HELP! What am I doing wrong Solved! Go to Solution.

  • How Do I Get Technical Support for my S10-3T?

    My battery is taking over five hours to charge up, and the charge doesn't  last.  I have a problem. I have just spent a terribly frustrating hour, trying to find out how to get technical support for this computer.  First off, I cannot find a telephon

  • HT5035 credit balance

    Hi, I have a credit balance linked to my apple id.  But I cannot see this balance when I would like to purchase apps from  my ipad mini.  Any chance I could transfer this credit to my ipad? (same appleid)