Change of Ship-to-party address in IC WebClient

Dear Guru's,
Acc. my business requirement i need to configure IC-webclient,
Scenario1:- End User should be able to change the Ship-to-party address (on customers request) thru IC-Webclient. (in this scenario sold-to-party & ship-to-party are 2 different addresses.)
can ny1 guide me on this.
Thanx in advance
-Nirav.

Hi,
Nirav
Pull in the Transaction BP view from the transaction launcher .This will have the BP transaction which will have the details in edit mode for you .You can restrict the views with authorisations for the user.
Hope this will resolve your Issue
Regards
Raj
Don't forget to reward!!

Similar Messages

  • 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

  • Schedule date changing with change in ship-to-party address

    Hi Experts,
    When ship-to-party address in the "Partners" (tab_pg) is changed from one country to the other in the header level, the confirmed quantity date is being changed automatically in the Schedule lines (tab_pg).
    Any help is highly appreciated........

    Hi Sunil,
    Whenever the ship to party is changed on the Sales order the Country (picked from ship to party master) will be redetermined. Few other parameters being redetermined are Shipping point, route, transit time etc because of the Ship-To-party(partner receiving the goods) chnages in Sales order. According to that the above parameters will be changed in SO.
    Hope this helps you.
    Thanks
    Arun

  • Ship to party address in sales order header

    Hi
    We changed the ship to party address at the header level and new address number got generated and updated the table VBPA.
    We need to revert the address so that the original address number of the ship to party should be updated in the table VBPA.
    Eg : Ship to party address number -  123
    During the creation of the sales order,  123 is updated in VBPA.
    We changed the address of the ship to party at header level and new addess number 963 got generated for the changed address and updated in the table VBPA.
    Now we need to revert the changes so that original address number 123 should get updated in VBPA.
    Please help us to resolve this issue.
    Thanks in Advance
    Shaju

    HI Shaju,
    This is not SAP standard, but a trick we learned and we have used successfully.
    Go to the change mode of sales order. Delete the ship-to and press enter. It will give you a warning, still press enter. If its very compulsory then put some other ship to party and then press enter. DO NOT save the sales order.
    There will be a lot of re-determinations, let them happen.BUT DO NOT save the sales order. Once all the re-detereminations happen. Delete the new ship-to and put in the old one. ANd you will have the old shipt-to with the oroiginal address and address number.
    Now save the sales order.
    The logic is when you put in the new ship-to then it re-determines everything including the address number. And then when you put in the old one, it will do one more round of re-determination and will copy the address number from customer master. Thus you get the original address.
    Hope this helps,
    Abhishek

  • Changing ship to party address in sales order

    Hi All,
    We have a scenario herein in sales order, the ship to party  address is copied from some other ship to party address. Put simply if the ship to party in sales order 1 is A, the address of A will be copied from ship to party B. The ship to party B is in sales order 2.  The ship to party in sales order 1 will remain A only but the address is copied from B ship to address
    i just need to know where this kind of development must have been done. i.e the include program, exit etc.
    i am trying to see exit  EXIT_SAPLV09A_001, but i could not see it in se38?
    regards
    sachin

    Hi,
    In first place why you want to have such a requirement. Why can't you have the correct address in the Ship to Party master record in the XD01 and assign correct ship to party at the sales order line item, so that correct address flows to the sales order line item.
    Eg:
    Sold to Party A
    Ship to Party A & Ship to Party B (Both are assigned in the Partner tab of Sold to Party A)
    Ship to Party A has Address A & Ship to Party B  has Address B (Ship to Party B was created with Account Group SHIP TO)
    On the sales order line item, change the ship to party to Ship to Party B
    So that you have correct address in the relevant line item.
    As per your requirement, you have to have a Z table to keep the logic between hip to Party & relevant address.
    If not, check below link for all User Exits in SD>
    https://wiki.sdn.sap.com/wiki/display/ERPLO/SDUserexits
    Find a correct one for your requirement.
    Best regards,
    Anupa

  • Over write ship to party address when sales order is created

    Hi
    I am creating sales order using BAPI_SALESORDER_CREATEFROMDAT2 but would like to change the shipto party address.
    I want to change the following address fields of shipto party
    Name1
    Name2
    Street
    STR_SUPPL1 (Street2)
    C_O_NAME (c/o name)
    POSTL_COD1 (City postal code)
    CITY
    COUNTRY
    REGION
    TRANSPZONE
    Following is the piece of code i wrote for partner structure and partner address structure of the BAPI.
    I_ORDER_PARTNERS-PARTN_ROLE    = 'WE'.
    I_ORDER_PARTNERS-PARTN_NUMB    = '0000241269'.
    I_ORDER_PARTNERS-country               = 'US'.
    I_ORDER_PARTNERS-TRANSPZONE    = 'US'.
    I_ORDER_PARTNERS-ADDR_LINK        = ''0000201328'.
    APPEND I_ORDER_PARTNERS.
      I_PARTNERADDRESSES-ADDR_NO      = ''0000201328'..
      I_PARTNERADDRESSES-NAME            = WA_CUSTOMER-NAME.
      I_PARTNERADDRESSES-NAME_2         = WA_CUSTOMER-NAME2.
      I_PARTNERADDRESSES-STREET         = WA_CUSTOMER-STREET.
    I_PARTNERADDRESSES-STR_SUPPL1   = WA_CUSTOMER-STREET2.
    I_PARTNERADDRESSES-C_O_NAME      = wa_customer-c_o_name.
      I_PARTNERADDRESSES-POSTL_COD1  = WA_CUSTOMER-ZIPCODE.
      I_PARTNERADDRESSES-CITY                = WA_CUSTOMER-CITY.
      I_PARTNERADDRESSES-COUNTRY     = WA_CUSTOMER-COUNTRY.
      I_PARTNERADDRESSES-REGION  = WA_CUSTOMER-REGION..
      I_PARTNERADDRESSES-TRANSPZONE  = WA_CUSTOMER-TRANSPZONE..
    In the above code address number 0000201328 is address number for customer 0000241269. Now the sales order is getting created but ship to party address is not overwritten with the values passed above. Ship to party address is just defaulted from customer master.
    What should i have to pass to the address number field.
    Any piece of code which is working would be more helpful.
    Thanks in advance
    Rajesh.

    I haven't tried for this, but from the documentation of FM I got this note:
    <i>Notes
    If the table is used to enter document addresses for a sales and distribution document, the address data is then not necessary in the document partner table BAPIPARNR / BAPIPARTNR ).</i>
    So, I am not sure wheather it is possible or not.
    Regards,
    Naimesh Patel

  • Ship to Party address is missing country name in SAPScript FORM

    Hi All,
    i had modified the form for displaying the address of the Ship - to - party address, but the country name is missing in the FORM output, can any body suggest a solution for this..
    here is the code that i had written...
    FORM get_addr TABLES intab TYPE t_intab
                  out_tab TYPE t_outtab.
      DATA : wa_intab LIKE itcsy,
             w_outtab LIKE itcsy.
      DATA v_adrnr_we TYPE adrc-addrnumber.
      READ TABLE intab INTO wa_intab INDEX 1.
      v_adrnr_we = wa_intab-value.
      CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
        EXPORTING
          input  = v_adrnr_we
        IMPORTING
          output = v_adrnr_we.
      SELECT SINGLE * FROM adrc WHERE addrnumber = v_adrnr_we.
      READ TABLE out_tab INTO w_outtab WITH KEY name = 'Z_NAME1'.
      IF sy-subrc EQ 0.
        w_outtab-value = adrc-name1.
        MODIFY out_tab FROM w_outtab INDEX sy-tabix.
      ENDIF.
      READ TABLE out_tab INTO w_outtab WITH KEY name = 'Z_NAME2'.
      IF sy-subrc EQ 0.
        w_outtab-value = adrc-name2.
        MODIFY out_tab FROM w_outtab INDEX sy-tabix.
      ENDIF.
      READ TABLE out_tab INTO w_outtab WITH KEY name = 'Z_NAME3'.
      IF sy-subrc EQ 0.
        w_outtab-value = adrc-name3.
        MODIFY out_tab FROM w_outtab INDEX sy-tabix.
      ENDIF.
      READ TABLE out_tab INTO w_outtab WITH KEY name = 'Z_NAME4'.
      IF sy-subrc EQ 0.
        w_outtab-value = adrc-name4.
        MODIFY out_tab FROM w_outtab INDEX sy-tabix.
      ENDIF.
      READ TABLE out_tab INTO w_outtab WITH KEY name = 'Z_STREET'.
      IF sy-subrc EQ 0.
        w_outtab-value = adrc-street.
        MODIFY out_tab FROM w_outtab INDEX sy-tabix.
      ENDIF.
      READ TABLE out_tab INTO w_outtab WITH KEY name = 'Z_CITY1'.
      IF sy-subrc EQ 0.
        w_outtab-value = adrc-city1.
        MODIFY out_tab FROM w_outtab INDEX sy-tabix.
      ENDIF.
      READ TABLE out_tab INTO w_outtab WITH KEY name = 'Z_CITY2'.
      IF sy-subrc EQ 0.
        w_outtab-value = adrc-city2.
        MODIFY out_tab FROM w_outtab INDEX sy-tabix.
      ENDIF.
      CLEAR adrc.
    ENDFORM.                    "GET_ADDR
    and in the form editor it was like this.....
    PERFORM GET_NAME IN PROGRAM ZSD_SDPACKLI
    USING &VBPLA-ADRNR_WE&
    CHANGING &Z_NAME1&
    CHANGING &Z_NAME2&
    CHANGING &Z_NAME3&
    CHANGING &Z_NAME4&
    CHANGING &Z_STREET&
    CHANGING &Z_CITY1&
    CHANGING &Z_CITY2&
    ENDPERFORM
    ADDRESS DELIVERY PARAGRAPH AS\
    NAME     &Z_NAME1&, &Z_NAME2&, &Z_NAME3&, &Z_NAME4&
    STREET   &Z_STREET&
    CITY     &Z_CITY1&, &Z_CITY2&
      POSTCODE &VBPLA-PSTLZ_WE&
      COUNTRY  &VBPLA-LAND1_WE&
      REGION   &VBPLA-REGIO_WE&
      FROMCOUNTRY &VBPLA-LAND1_VST&
    ENDADDRESS
    Thanks in advance..!

    Hi Abaper,
    In ADRC table,you will have a field by name COUNTRY.This holds the country key.
    Using this country key LAND1 in ADRC table,you will have to fetch the Country name from T005T table.The field in the T005T which holds the Country name is LANDX.
    You will have to write select querries for this.
    By using LANDX from T005T table ,you can display the country name.
    Regards,
    Kashyap Ivaturi

  • Delivery report output for'Ship-to party address and Sold-to party address'

    Hi Experts,
    We have an report output generated upon delivery creation.
    We need print following fields:
    Ship-to party #
    Ship-to party Name
    Ship-to Party Address
    Sold-to party #
    Sold-to party Name
    Sold-to Party Address
    As per i understand, we could get those field according to partner function....
    So experts, could please advise me from which table and field and logic to get above information....
    Thank you very much!!

    Hi,
    Are you changing partner details in delivery document?
    This partner address details will be updated in VBPA table.
    E.g change the partner street no.  in delivery document manually.
    Now goto VBPA table, enter correspondence sales document number for that delivery and execute.
    Click on partner function AG / WE get the address number (ADRNR) .
    Now goto ADRC table, enter this address number in ADRNR field and execute. you will get partner details.
    Regards,
    Chandra

  • Change of ship-to party right before dispatch on delivery (not order)

    have a client that consistently has to change the ship-to party right before dispatch. the client has customers that are dealers, who in turn have sub-dealers. the dealers very rarely accept shipment to their address, they want the delivery posted to the sub-dealers and this can change at the last minute. as of right now, the addresses for sub-dealers is not maintained by the client, but they would like to have this option.
    i would like to maintain the address of the sub-dealers. but once the delivery document is created the ship-to party is greyed out, how would i change this, so i can enter a new ship-to party? the address changes last minute, but after the delivery has been created.
    thanks in advance!

    Hi
    In standard SAP it is not possible.
    Once , you create a Delivery document, you can not change the Ship-to-party. Ship-to-party is a Header data in Delivery.
    If you want the change then you have to delete the Delivery.
    Make your client understand that it is not only Ship-to-party, so many other  related data will get redetermine once the Ship-to-party is changed.
    For example, When Ship-to-party is changed, Route will be redetermined, Tax will be redetermined, partial delivery agreement may be different etc.
    The new Ship-to-party may have a choice of different Plant also.
    Normally, the above data are determined in Sales order, therefore you can change those in Sales order only and NOT possible to change in the Delivery document.

  • Change of ship-to party right before dispatch

    have a client that consistently has to change the ship-to party right before dispatch. the client has customers that are dealers, who in turn have sub-dealers. the dealers very rarely accept shipment to their address, they want the delivery posted to the sub-dealers and this can change at the last minute. as of right now, the addresses for sub-dealers is not maintained by the client, but they would like to have this option. so, a 2 part question, do we have to maintain the addresses for the sub-dealers or can we use them as a one-time customer? and 2, how would be change the ship-to address last minute right before dispatch?
    thanks a bunch!

    Hi Astro, 
    Option 1 - Since most of the Deliveries are shipped to the Sub Dealers, it is better to maintain Ship to Party Master Record for these Sub dealers and assign the same to the Sold to Party. Here, you have to justify the correct Ship to Party and maintain or change in Sales Order before the Delivery is created.
    Option 2 - Maintain one single Ship to Party for all the Sub Dealers and you can change the address of the Ship to party as required at the last minute before goods issue.
    Hope this will be helpful to u. let me know if anything.
    Rgds,
    Ravi.

  • Ship to party Address is not Printing-Script

    Hi All,
    We are facing a problem for a particular PO.
    When we see the print preview for a particular PO for the first time Ship to party address is not printing .Whereas in the next time if we see the print preview its showing that address.Its because while runing for first time there is no value in w_adrc(work area) when that ship to party window .after that one perform is called at that time values are populated for w_adrc so when we runing for the second time its showing that value.Whereas we have faced another problem in another one PO.In that there was no value for w_adrc while that ship to party window called but its showing value in the print preview(w_adrc value is populate after that window called from a perform )Why it is like this?
    Kindly help me in this issue..
    Thanks.
    Raj.

    Hi Raja,
              In my project we are also facing same problem. are u able to find the solution for this problem.Please reply to me ASAP.

  • Ship to party Address is not Printing

    Hi All,
    We are facing a problem for a particular PO.
    When we see the print preview for a particular PO for the first time Ship to party address is not printing .Whereas in the next time if we see the print preview its showing that address.Its because while runing for first time there is no value in w_adrc(work area) when that ship to party window .after that one perform is called at that time values are populated for w_adrc so when we runing for the second time its showing that value.<b>Whereas we have faced another problem in another one PO.In that there was no value for w_adrc while that ship to party window called but its showing value in the print preview(w_adrc value is populate after that window called from a perform )</b>Why it is like this?
    Kindly help me in this issue..
    Thanks.
    Raj.

    Hi Raja,
              In my project we are also facing same problem. are u able to find the solution for this problem.Please reply to me ASAP.

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

  • Maintaining multiple ship to party address in SD

    Hi Guys,
    Could you please let me know, how we can maintain multiple ship to party address for a customer?
    Thanks,
    Kam.

    hi,
    this is to inform you that,
    you can create another SH against 0002 - or yours and create a multiple address for SH.
    then assign the SH number to original customer then this will reflect as two SH's one for the original customer and second is created SH in sales order you will get a POP up screen you can select manually there.
    or
    you can use contacts person address tab page for alternate address of SH if you dont want to trigger another SH and this is use ful for only address maintaince.
    if you can come to a confirmation that you are not using contacts person tab page for any other purpose.  then you can use it
    regards,
    balajia

  • Maintaining multiple ship to party address in ECC 6.0

    Hi Guys,
    Could you please let me know, how we can multiple ship to party address for a customer in ECC 6.0?
    Thanks,
    Kam.

    I suggest you ask this question in an SD forum - and/or try to get this information from SAP help or a consultant.
    Markus

Maybe you are looking for

  • MacBook Pro graphics problems shipset Nvidia 8600M GT

    Hello, I have a macbook pro 15 "@ 2.4 GHz, has nvidia graphics shipset problems, and to investigate and is a manufacturing defect if apple apple and is responsible for resolving the problem. <E-mail Edited by Host>

  • 10g BI publisher installation getting error in windows 2008 R2 64bit

    HI Friends, I am trying to install the 10.1.3.4.1. and 10.1.3.4.2 in the windows 2008 R2 64bit server. At the running the setup.exe file its checking and getting passed in the pre-requites. And its not opening the installer graphical utility instead

  • How do i turn off the Facebook chat on iphone 4s

    Hello, How do i turn off the Facebook chat on iphone 4s? I need to know how to turn my facebook chat offline when i'm on facebook. While i'm on a computer my chat is offline but when i go on my iphone it's always on. Please help!! Thanks

  • Ask user filesystem access permission only when necessary

    Hello Sorry I can't find an explicit title. I try to remove my applet signature to avoid the startup security dialog which is not user-friendly. But my applet offers the possiblity to save something on the user file system that can't be done without

  • FF 9.0.1- Google's Gmail refusing to load

    Hello, Let me say first that FF has been my default Browser for several years now, and greatly appreciate everyone's hard work in making it my favorite! After having installed FF 9.0.1 last week I have re-installed 8.0.1 because of 2 problems in usin