To change the shipTo  party.

Hi ,
We have a requirement that we have to change the shipTo party in B2C.
We are changing the business partner to a common BP ,but that BP number is not getting while we are calling change ship to address in the check out page.
Can anyone suggest which FM is giving the shipto party number to the front end while we are calling the change shipto address in the checkout page.
How we can pass the newly modified shipto number to the front end after registeration.
Thanks and Regards
shanto aloor

Hi Christian,
I wanted to update you on my findings. The problem was that I was entering more data than required in the import parameters.
To change a partner in a salesorder - shipto in my case - I just had to fill in the partnerchanges table. There is no need to enter the partner information again in the partners table which I was populating. I understood this only after debugging the update sessions of VA02 and the BAPI concurrently. My BAPI call was trying to insert the soldto and shipto again resulting in a SAPSQL_ARRAY_INSERT_DUPREC error.
Anyway, since there I searched extensively and found no information on how or what fields to fill to change a partner in a document I thought I will put down the  info I gathered. Here is what I found, hopefully it will be useful for someone else.
1. PARTNERS table : Fill this table with any new partner function(s) that you want to associate with the document. For example, you created a salesdoc and now want to associate a salesperson to it. Enter the partner details in the partners table with the appropriate partner function. Do not enter any partner functions already associated with the document in this table
2. PARTNERCHANGES table : If you want to update any of the existing partner functions associated with the document enter the old and new values with 'U' in the updateflag field. You can also disassociate any non-mandatory partner functions with a document by entering the values with a 'D' in the updateflag field.(Disclaimer : I have not tried the delete/disassociation but this is based on the what I saw during the extensive debugging sessions ).
Anyway, I am glad I knew of an impending business request and had the time to research it before it became a formal request. There is not much documentation (if any) on how to use the partners & partnerchanges tables with these BAPIs.
Thanks,
Anu

Similar Messages

  • Change Ship to Party on outbound delivery

    Hi
    Our customer has a specific requirement changing the ship to party on outbound delivery when it is created (VL01N). The requirement is trading partner order the goods for example 100 qty. When the goods are ready for delivery he will inform to deliver 50 nos to XYZ customer (end user) and ABC customer (end user). So the sales order is created with the trading partner but when delivery is created the first 50 should be for XYZ and the second 50 should be for ABC. In this case there will be two outbound deliveries one with ship to XYZ and other one with ABC ship to.
    When sales order created it has trading partner as ship to now during the delivery creation we need sort of pop us to select the ship to party. I have searched all the possible delivery creation user exits but did not find any on partner function to implement the pop up functionality.
    Note: customer does not want to change the address of ship to on delivery by keeping the original ship to which is copied from sales order
    Please help me with suitable suggestions.

    My ex-company did this customization, and our users are very happy.
    As mentioned by G. Lakshmipathi, change that VOPA setting, untick it.
    Customized  a OB creation t code. You need good abaper for this.
    In selection screen, have something like this.
    Sales Order number
    Item Number (If required)
    Sales Order date
    Sold To party
    Shipping Point
    etc...
    And "Delivery ShipTo Party" example.
    You should have a output screen for user to select which SO item to create OB.
    In your program, use VL01N to create it, then VL02N to change the shipto party to the required as per selection screen.
    You should then have a output screen to capture and display all standard error messages or succcss message.
    Optional: You may like to consider also, in VL02N user exit, control shipto party is grey off by user's ID and not by the customized t-code.

  • Restricting changes in Invoicing party in MIRO transaction

    Hi MM gurus,
    Did anyone try to change the messages
    M8 286 Different invoicing party & planned in purchase order &
    M8 288 Different invoicing party & planned in purchase order &
    for the MIRO transaction?
    Our requirement is to restrict the users in MIRO screen for changing the invoicing party to a different vendor.
    1) Is there any other way to achieve this functionality?
    We should not allow users to change the invoicing party when they create MIRO.
    Request help in this regard and thanks in advance.
    Best regards,
    Sridhar

    Hi,
    1.- standard message
    M8 286 Different invoicing party & planned in purchase order &
    This message appears when the vendor of MIRO transaction is different from vendor of PO.
    2.- badi message
    The solution i proposed appears when you´ve saved the document and you modify the document to change the vendor regardless of if it is the same of the PO or not.
    If the vendor is different from the one saved in the first place a message would appear.
    Maybe i got it wrong and this is not what you expected.
    Perhaps this is what you need:
    check transaction code OMRM and change the message 286/288, class M8, from W to E (error).
    Best regards.
    Edited by: Pablo Casamayor on Dec 8, 2009 5:33 PM

  • Re: Customer consignment showing SOH based on SHIPTO party

    Hi,
    The customer has more than 10 shipto party representing different stores.
    When a consignment fillup was created, it was delivered to the SHIPTO party. However, the SOH was accumulated under the Customer code(SOLDTO).
    In these scenarios, it is not possible to get a feel on the stock level for each SHIPTO party.
    Is there a way to track the SOH at the various SHIPTO location?
    What program customization might be required?
    Will reward points.
    Bye

    I think I need to setup a customize table to store the info.
    Closed for now.

  • Changing the Address for Shipto party for a Service Order..... pls respond

    Hi friends,
    When i create a Service Order, using CRM_ORDER_MAINTAIN, I want to pass Ship to party number and its address.(its not Master data from BUT000, ADRC tables.).
    THe address data what i mean is when we go to Partners tab, the address you see is not master data.
    I want to update this address.
    Somehow i was able to create with my Shipto party , but im not able to give the address in the IT_PARTNER parameter of Crm_order_maintain.
    How can i give the address aswell, when i create Service order, or even changing a service order.
    Basically i want to change the address of ship to for a SO.
    kindly respond....
    thanks in advance,
    Niraja

    THis is the code i wrote to update the street: . but its not updating.. :((((((((((
    pls hlp fnds...
        CLEAR: ls_input_fields.
        ls_input_fields-objectname  = 'PARTNER'.
        ls_input_fields-ref_kind    = c_a.
        IF p_header-guid IS INITIAL.              
          ls_input_fields-ref_handle = c_handle.
          ls_sconf_partner-ref_handle = c_handle.
        ELSE.
          ls_input_fields-ref_guid = p_header-guid.
          ls_sconf_partner-ref_guid   = p_header-guid.
        ENDIF.
        ls_partfieldnames-fieldname =  'ADDR_NP'.
        INSERT ls_partfieldnames INTO TABLE lt_partfieldnames.
        ls_partfieldnames-fieldname = 'ADDR_NR'.
        INSERT ls_partfieldnames INTO TABLE lt_partfieldnames.
        ls_partfieldnames-fieldname = 'ADDR_ORIGIN'.
        INSERT ls_partfieldnames INTO TABLE lt_partfieldnames.
        ls_partfieldnames-fieldname = 'ADDR_TYPE'.
        INSERT ls_partfieldnames INTO TABLE lt_partfieldnames.
        ls_partfieldnames-fieldname = 'STD_BP_ADDRESS'.
        INSERT ls_partfieldnames INTO TABLE lt_partfieldnames.
        ls_partfieldnames-fieldname = 'KIND_OF_ENTRY'.
        INSERT ls_partfieldnames INTO TABLE lt_partfieldnames.
        ls_partfieldnames-fieldname = 'STREET'.
        INSERT ls_partfieldnames INTO TABLE lt_partfieldnames.
        ls_input_fields-field_names = lt_partfieldnames.
        CONCATENATE '000000000055 ' p_header-shipto_no '        BPBP'
               INTO  ls_input_fields-logical_key.
        INSERT ls_input_fields INTO TABLE lt_input_fields.
        ls_sconf_partner-ref_partner_handle = '0001'.
        ls_sconf_partner-ref_kind = c_a.
        ls_sconf_partner-ref_partner_fct = c_00000055.
        ls_sconf_partner-ref_partner_no  =  p_header-shipto_no. "'0010017295'.  "
        ls_sconf_partner-ref_no_type = 'BP'.
        ls_sconf_partner-ref_display_type = 'BP'.
        ls_sconf_partner-kind_of_entry = 'C'.
        ls_sconf_partner-partner_fct = c_00000055.
        ls_sconf_partner-partner_no  =  p_header-shipto_no. "'0010017295'.  "
        ls_sconf_partner-no_type = 'BP'.
        ls_sconf_partner-display_type = 'BP'.
        ls_sconf_partner-mainpartner = 'X'.
        ls_sconf_partner-addr_nr = '0000060435'.
        ls_sconf_partner-addr_np = ''.
        ls_sconf_partner-addr_type = 1.
        ls_sconf_partner-addr_origin = 'B'.
        ls_sconf_partner-relation_partner = '48222495E5735887E1000000CC9AA02A'.
        ls_sconf_partner-std_bp_address = ''.
        ls_sconf_partner-street = 'helloteststreet'.
        INSERT ls_sconf_partner INTO TABLE lt_sconf_partner.
    Can somebody give me any hints. pls ......
    thanks in advance,
    Niraja

  • Not able to change the value in 'sold to party' once disabled.

    Hi,
    I am validating the Business partner entered in the 'sold to party' field while creating a sales order in webclient UI.
    The error message pop up as expected but the field becomes disabled. I tried changing the field to editable by setting  rv_disabled = 'FALSE' in method GET_I_SOLDTO_NAME.
    Now the field is editable but it does not take the new value which i enter. it takes the old value only.
    How do i make the field to accept new values?
    Thanks in advance.
    Regards
    Shanthi.

    Hi Shanthi,
    Just check small config in your Partner determination profile if it helps you:
    Path: SPRO->CRM->Partner Processing->Define Partner Determination Procedure-
    Open you Partner determination Profile and go in details Sold-to-party partner and Mark Check box Changable to allow to make changes in partner.
    Regards,
    Dipesh.

  • Change the Sold to Party(SP) in sales order in change mode

    Hi,
    Is it possible to change the Sold to Party(SP) in sales order in change mode?
    If yes then How??
    Regards
    Somnath

    Hi somnath,
    It is very much possible to change the sold-to-party in the change mode of Sales order(VA02).
    Goto VA02-->enter the sale order number.
    Press enter.
    In the overview screen if you change the sold-to-party then every thing will be redetermined(Taxes and pricing procedure etc...).These will be determined from CMr etc.
    You cannot change the sold-to-party at the partners tab that is present in the Header details.
    It will be greyed out.
    If you change the sold-to-party at the overview screen as suggested earlier it will not apply to the item.
    You are also going to see this message while changing.
    And finally save the document.
    Regards,
    Krishna.

  • Changes Allowed on the 3rd Party Sales Order when PO is created

    Hello,
    We have a requirement to change the Sales Order even if the PO is already created for teh 3rd party order. I am not sure which fields and what changes can we do if the PO is already created for the 3rd Party sales order.
    Can you please guide me in pointing to the configuration or any user exit that we can control the field changes on the 3rd party sales order when teh PO is already created.
    Thank you!
    Chandrakant

    Venu,
    FIRST ANSWER THE BELOW TWO QUESTIONS.
    1. Did you understand what Shiva has mentioned?
    He has clearly mentioned that  you can change the PO qty and in standard it self the same PO changed  qty will be reflected in Sales order schduline lines qty, and he also mentioned that if this is not happening then advised to refer the Note 1361281.
    2. Did you read the note?
    It says that It will occur if the sales order line item is part of the delivery group or if you have set the complete delivery indicator for the sales order. And it also advised to apply the program code to over come the issue.
    Please note: before commenting others just check once in system then talk, don't just blindly through the ball, it will not have good results.
    Before also mentioned the same, but you still repeating the same.
    Sorry Moderators that i have mentioned some lines in the Note here.
    thanks,
    Srinu.

  • I want to change the settings (brightness, contrast, gamma) for my internal cam on Macbook pro. I find having to but a third party software (iglasses, webcam settings) to control basic settings as unnecessary and exploitative. Does anyone have a solution?

    I want to change the settings (brightness, contrast, gamma) for my internal cam on Macbook pro. I find having to but a third party software (iglasses, webcam settings) to control basic settings as unnecessary and exploitative. Does anyone have a solution?

    It is not about payment of $19.95 (Igalsses) or $7.99(webcam settings). This is a very basic setting that should be available in the system settings. The automatic setting of the internal cam does not work great on low lighting as everyone is aware.
    i am just amazed how users take in lying down and suggest solutions such as paying for a 3rd party paid app or improving the lighting in your room.

  • BAPI_SALESORDER_CHANGE - Want to change the Ship-to-party at header level

    Hi
    I want to change the Ship-to-party at header level in the Sales Order created. I tried using the BAPI BAPI_SALESORDER_CHANGE  as shown below.
    When I run the program I get the log as Sales Order 45 saved succesfully. However, I don't find the SO changed. Apart from this I get an Express Message saying the Updation failure. Not sure of what'z wrong here.
    Pls help
    thanks
    girish
    REPORT  ZBAPI_SALESORD_CHANGE.
    data : zBAPISDHD       type BAPISDH1,
           zSALESDOCUMENT  type BAPIVBELN-VBELN.
    data : zORDER_ITEMS_IN     like /AFS/BAPISDITM occurs 0 with header line,
           zORDER_SCHEDULES_IN like /AFS/BAPISDSCHD occurs 0 with header line,
           zORDER_PARTNERS like BAPIPARNR      occurs 0 with header line,
           zRETURN         like BAPIRET2 occurs 0 with header line,
           so_no           type BAPIVBELN-VBELN,
           zORDER_HEADER_INX    TYPE BAPISDH1X,
           zPARTNERCHANGES like  BAPIPARNRC occurs 0 with header line.
    clear : zBAPISDHD.
    so_no = '0000000045'.
    data : l_comp_qty like zORDER_ITEMS_IN-COMP_QUANT.
    l_comp_qty = 10.
    zBAPISDHD-SALES_ORG = 'BP01'.
    zBAPISDHD-DISTR_CHAN = '02'.
    zBAPISDHD-DIVISION = '01'.
    zORDER_HEADER_INX-UPDATEFLAG = 'U'.
    zORDER_HEADER_INX-SALES_ORG  = 'X'.
    zORDER_HEADER_INX-DISTR_CHAN = 'X'.
    zORDER_HEADER_INX-DIVISION = 'X'.
    Ship to pary
    zORDER_PARTNERS-PARTN_ROLE = 'WE'.
    zORDER_PARTNERS-PARTN_NUMB = 'BPAFS0007'.
    append zORDER_PARTNERS.
    zPARTNERCHANGES-DOCUMENT = '45'.
    zPARTNERCHANGES-ITM_NUMBER = '10'.
    zPARTNERCHANGES-UPDATEFLAG = 'U'.
    zPARTNERCHANGES-PARTN_ROLE = 'WE'.
    zPARTNERCHANGES-P_NUMB_OLD = 'BPAFS0001'.
    zPARTNERCHANGES-P_NUMB_NEW = 'BPAFS0007'.
    append zPARTNERCHANGES.
    CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
      EXPORTING
        SALESDOCUMENT               = so_no
        ORDER_HEADER_IN             = zBAPISDHD
        ORDER_HEADER_INX            = zORDER_HEADER_INX
      SIMULATION                  =
      BEHAVE_WHEN_ERROR           = ' '
      INT_NUMBER_ASSIGNMENT       = ' '
      LOGIC_SWITCH                =
      NO_STATUS_BUF_INIT          = ' '
      TABLES
        RETURN                      = zRETURN
      ORDER_ITEM_IN               =
      ORDER_ITEM_INX              =
        PARTNERS                    = zORDER_PARTNERS
        PARTNERCHANGES              = zPARTNERCHANGES.
      PARTNERADDRESSES            =
      ORDER_CFGS_REF              =
      ORDER_CFGS_INST             =
      ORDER_CFGS_PART_OF          =
      ORDER_CFGS_VALUE            =
      ORDER_CFGS_BLOB             =
      ORDER_CFGS_VK               =
      ORDER_CFGS_REFINST          =
      SCHEDULE_LINES              =
      SCHEDULE_LINESX             =
      ORDER_TEXT                  =
      ORDER_KEYS                  =
      CONDITIONS_IN               =
      CONDITIONS_INX              =
      EXTENSIONIN                 =
    data : s_BAPIRET2 like  BAPIRET2.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    exporting
    wait = 'X'
    importing
    return = s_bapiret2.

    Thanks Prashanth. It worked !!!!!!!!!!!!!
    Now I am facing another type of problem. The requirement is to change the Sales Order Item Quantity. I basically planned to update the quantity of Schedule Item which needs to be changed. When I run the below code, it works and says the Sales Order changed succesfully. However I get an express message saying the Database update failure. I don't get any sort of technical information.
    Appreciate if you could help me finding the error.
    Thanks
    regards
    girish
    Note --> I am trying to change the Quantity for 2 line item in SO '56' to 40 Units.
    REPORT  ZBAPI_SALESORD_CHANGE.
    data : zBAPISDHD       type /AFS/BAPISDHD,
           zORDER_HEADER_INX    TYPE /AFS/BAPISDHDX,
           zSALESDOCUMENT  type BAPIVBELN-VBELN.
    data : zORDER_ITEMS_IN     like /AFS/BAPISDITM   occurs 0 with header line,
           zORDER_ITEM_INX     like /AFS/BAPISDITMX  occurs 0 with header line,
           zORDER_SCHEDULES_IN like /AFS/BAPISDSCHD  occurs 0 with header line,
           ZSCHEDULE_LINESX    LIKE /AFS/BAPISDSCHDX occurs 0 with header line,
           zORDER_PARTNERS like BAPIPARNR      occurs 0 with header line,
           zRETURN         like BAPIRET2 occurs 0 with header line,
           so_no           type BAPIVBELN-VBELN,
           zPARTNERCHANGES like  BAPIPARNRC occurs 0 with header line.
    data : l_comp_qty like zORDER_ITEMS_IN-COMP_QUANT.
    data : g_qty like /AFS/BAPISDSCHD-REQ_QTY.
    g_qty = 40.
    l_comp_qty = 40.
    clear : zBAPISDHD.
    so_no = '0000000056'.
    zBAPISDHD-REFOBJTYPE = '/AFS/ORDER'.
    zBAPISDHD-SALES_ORG = 'BP01'.
    zBAPISDHD-DISTR_CHAN = '02'.
    zBAPISDHD-DIVISION = '01'.
    zBAPISDHD-PMNTTRMS = '0001'.
    zORDER_HEADER_INX-UPDATEFLAG = 'U'.
    zORDER_HEADER_INX-SALES_ORG  = 'X'.
    zORDER_HEADER_INX-DISTR_CHAN = 'X'.
    zORDER_HEADER_INX-DIVISION = 'X'.
    zORDER_HEADER_INX-PMNTTRMS = 'X'.
    **********ITEM ***************************************
    zORDER_ITEMS_IN-ITM_NUMBER = '00020'.
    zORDER_ITEMS_IN-MATERIAL = 'F1202'.
    zORDER_ITEMS_IN-PLANT = 'BP01'.
    zORDER_ITEMS_IN-ITEM_CATEG = 'TAS'.
    zORDER_ITEMS_IN-SHIP_POINT = 'BP01'.
    zORDER_ITEMS_IN-COMP_QUANT = l_comp_qty.
    zORDER_ITEMS_IN-TARGET_QTY = l_comp_qty.
    zORDER_ITEMS_IN-TARGET_QU = 'ST'.
    append zORDER_ITEMS_IN.
    zORDER_ITEM_INX-ITM_NUMBER = '00020'.
    zORDER_ITEM_INX-UPDATEFLAG = 'U'.
    zORDER_ITEM_INX-MATERIAL = 'X'.
    zORDER_ITEM_INX-PLANT = 'X'.
    zORDER_ITEM_INX-ITEM_CATEG = 'X'.
    zORDER_ITEM_INX-SHIP_POINT = 'X'.
    zORDER_ITEM_INX-COMP_QUANT = 'X'.
    zORDER_ITEM_INX-TARGET_QTY = 'X'.
    zORDER_ITEM_INX-TARGET_QU = 'X'.
    append zORDER_ITEM_INX.
    *********SCHEDULE LINE******************************
    refresh zORDER_SCHEDULES_IN.
    clear zORDER_SCHEDULES_IN.
    zORDER_SCHEDULES_IN-ITM_NUMBER = '000020'.
    zORDER_SCHEDULES_IN-SCHED_LINE = '0001'.
    zORDER_SCHEDULES_IN-REQ_DATE = '20070525'.
    zORDER_SCHEDULES_IN-DATE_TYPE = '1'.
    zORDER_SCHEDULES_IN-SCHED_TYPE = 'CS'.
    zORDER_SCHEDULES_IN-GRID_VALUE = 'BLK2728'.
    zORDER_SCHEDULES_IN-REQ_CATEGORY = '1DE'.
    zORDER_SCHEDULES_IN-REFOBJTYPE = '/AFS/ORDER'.
    zORDER_SCHEDULES_IN-REQ_QTY = g_qty.
    append zORDER_SCHEDULES_IN.
    refresh ZSCHEDULE_LINESX.
    clear ZSCHEDULE_LINESX.
    ZSCHEDULE_LINESX-ITM_NUMBER = '000020'.
    ZSCHEDULE_LINESX-SCHED_LINE = '0001'.
    ZSCHEDULE_LINESX-UPDATEFLAG = 'U'.
    ZSCHEDULE_LINESX-REQ_DATE = 'X'.
    ZSCHEDULE_LINESX-DATE_TYPE = 'X'.
    ZSCHEDULE_LINESX-SCHED_TYPE = 'X'.
    ZSCHEDULE_LINESX-GRID_VALUE = 'X'.
    ZSCHEDULE_LINESX-REQ_CATEGORY = 'X'.
    ZSCHEDULE_LINESX-REFOBJTYPE = 'X'.
    ZSCHEDULE_LINESX-REQ_QTY = 'X'.
    append ZSCHEDULE_LINESX.
    CALL FUNCTION '/AFS/BAPI_SALESORD_CHANGE'
      EXPORTING
        SALESDOCUMENT               = so_no
        ORDER_HEADER_IN             = zBAPISDHD
        ORDER_HEADER_INX            = zORDER_HEADER_INX
      SIMULATION                  =
      BEHAVE_WHEN_ERROR           = ' '
      INT_NUMBER_ASSIGNMENT       = ' '
      LOGIC_SWITCH                =
      TABLES
        RETURN                      = zRETURN
        ORDER_ITEM_IN               = zORDER_ITEMS_IN
        ORDER_ITEM_INX              = zORDER_ITEM_INX
        ORDER_SCHEDULE_LINES        = zORDER_SCHEDULES_IN
        ORDER_SCHEDULE_LINESX       = ZSCHEDULE_LINESX.
      PARTNERS                    =
      PARTNERCHANGES              = zPARTNERCHANGES
      PARTNERADDRESSES            =
      ORDER_CFGS_REF              =
      ORDER_CFGS_INST             =
      ORDER_CFGS_PART_OF          =
      ORDER_CFGS_VALUE            =
      ORDER_CFGS_BLOB             =
      ORDER_CFGS_VK               =
      ORDER_CFGS_REFINST          =
      ORDER_TEXT                  =
      ORDER_KEYS                  =
      CONDITIONS_IN               =
      CONDITIONS_INX              =
      EXTENSIONIN                 =
    *CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
    EXPORTING
       SALESDOCUMENT               = so_no
       ORDER_HEADER_IN             = zBAPISDHD
       ORDER_HEADER_INX            = zORDER_HEADER_INX
    TABLES
       RETURN                      = zRETURN
       ORDER_ITEM_IN               = zORDER_ITEMS_IN
       ORDER_ITEM_INX              = zORDER_ITEM_INX
       PARTNERS                    = zORDER_PARTNERS
       PARTNERCHANGES              = zPARTNERCHANGES
      PARTNERADDRESSES            =
      ORDER_CFGS_REF              =
      ORDER_CFGS_INST             =
      ORDER_CFGS_PART_OF          =
      ORDER_CFGS_VALUE            =
      ORDER_CFGS_BLOB             =
      ORDER_CFGS_VK               =
      ORDER_CFGS_REFINST          =
      SCHEDULE_LINES               = zORDER_SCHEDULES_IN
      SCHEDULE_LINESX              = ZSCHEDULE_LINESX.
      ORDER_TEXT                  =
      ORDER_KEYS                  =
      CONDITIONS_IN               =
      CONDITIONS_INX              =
      EXTENSIONIN                 =
    data : s_BAPIRET2 like  BAPIRET2.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    importing
    return = s_bapiret2.

  • User Exit to change the Ship-to party address at Sales Order headder level

    Hi,
    I have requirement like this......
    I need to change the  ship-to party address at Sales Order headder level. for that which user exit i need to  use and which structure i need to use to update the transaction.
    I used : userexit_save_document_prepare, in that i passed data to 'xvbpa' and 'xvbadr' structures. even though it is not update the transaction.
    Please let me know the answer.
    Thanks,
    Satish.

    Hi Satish,
    Step1. Create new Data Copy Routine using Tcode VOFM.
    Step2. *-----------------------------------Ship to Party from contract
       IF CVBPA-PARVW = 'WE' OR
          CVBPA-PARVW = 'SH'.
        REFRESH IT_STP.
        SELECT KTOKD
               A~KUNNR
               NAME1
               NAME2
               A~ADRNR
               FROM VBPA AS A INNER JOIN KNA1 AS B ON A~KUNNR = B~KUNNR
               INTO CORRESPONDING FIELDS OF TABLE IT_STP
               WHERE VBELN = CVBPA-VBELN . 
    Step3.
       CALL FUNCTION 'POPUP_WITH_TABLE_DISPLAY'
            EXPORTING
              ENDPOS_COL   = 80
              ENDPOS_ROW   = 10
              STARTPOS_COL = 10
              STARTPOS_ROW = 5
              TITLETEXT    = 'Your Title'
            IMPORTING
              CHOISE       = T_SELIDX<=====Index No of selection
            TABLES
              VALUETAB     = IT_STP
            EXCEPTIONS
              BREAK_OFF    = 1
              OTHERS       = 2.
    Step4.
           READ TABLE IT_STP INTO WA_STP INDEX T_SELIDX.
            IF SY-SUBRC = 0.
              CLEAR:CVBPA-KUNNR, CVBPA-ADRNR.
              MOVE WA_STP-KUNNR TO CVBPA-KUNNR.
              MOVE WA_STP-ADRNR TO CVBPA-ADRNR. <========Address ID (Change Here).  
           ENDIF.
    Regards,
    Amrendra
    Moderator Message - Please do not reply to old, dormant threads.
    Message was edited by: Suhas Saha

  • Change the address of ship to party in the shipment document

    Hello Gurus,
    Is there a way we can change the address of ship to party in the shipment document????
    When I go to stages, it only display the address, its not allowing me to change the address though the shipment is in change mode.....
    Please advise...
    Thanks and Regards,
    Pavan P.

    Dear Pavan,
    You try with this option,I havn't tried in my system because I have some technical problem in my system.
    -->Go to Shipment document in Display mode (transaction VT03N).
    -->Click on Document flow Icon
    -->Select delivery then click on Display document.
    -->System will take you to the Delivery document display mode here you Change the display mode of the delivery to the change mode.
    -->Now you click on address push button go into address detail screen then change the address.
    Note:-You can able to change the address of the ship to party before PGI.
    I hope it will help you
    Regards,
    Murali.

  • No text redetermination once change the ship to party

    Hello Experts,
    We have text like picking/packing/shipping text in ship to party. and we have assigned such text value in ship to party.
    Suppose:
    Ship to party A has shipping text: ABCDEFG
    Ship to party B has shipping text: 12345678
    I create the sales order with ship to party: A and system determine text (header level) as ABCDEFG, I save it later i change the ship to party in sale order from A to B. according to business logic system should change the shipping text from ABCDEFG to 12345678 once I change the ship to party from A to B. But it is not happening.
    Even though changing the ship to party from A to B, system is not redetermining text and I am wondering why it's happening?
    Is it the standard functionality ? why it is happening ?
    Thanks,

    How text will be redetermined if the ship to party is changed
    Please refer the above tread, System does not re determine the text if Ship to party  is changed, it changes only for SP, also if you want to redetermine the SH text then refer the notes also which was mentioned in the above tread.
    thanks,
    Srinu.

  • Any exits to change the ship-to-party in VA01 before its display

    Hi All,
    I'm having a situation here that i would need your help.
    From IW51 i'll create a sales order VA01 and just before creation i would need to do some validation on the plant and service center and then change the Ship-to-party value to another.
    I am not sure on which exit or badi offers that functions. the ones that i've found is EXIT_SAPLV46H_002 and EXIT_SAPLV09A_004. Both of this doesn't work.
    If any one of you has encountered this problem and manage to resolve it please help me resolve mine as well.
    Thank you.
    Vinod

    Hi,
    here u will find complete example:
    http://sap.niraj.tripod.com/id21.html
    Jogdand M B

  • Sales order: price condition not working when i change the sold to party

    Hi guys,
    I've a strange problem by making the following steps:
    1. Create a sales order:
         By VA01 i create an order by filling the SOLD TO and one material - all OK. The price is calculated correctly.
    2. Change SOLD TO:
        I change the sold to by filling another payer that has a different price list (PLTYP) - the price is not re-calculated
    If i change with another payer with the same price list everything is ok.
    Can you tell me what could be the problem?
    Many thanks

    Did you actually change the sold-to party though or just the payer?  The sold-to party's price list type controls the price list type value copied into the order header.  Even if the payer has a different value, it's not copied to the order header.  You can see this behavior in FV45KFKD_VBKD_FUELLEN.  If you switch sold-to's then you should get a pop-up that new pricing was carried out; you should also see your new price list type value in the order header and you can use the 'analysis' function at the item level to verify that the correct price was used.

Maybe you are looking for