Copying delivery address on po item l

Hai,
Please anybody help regarding population of delivery address on to the line item through inbound idoc in the purchase order.Please give any user exits and badis . Its  very urgent.

Hi!
An inbound IDoc is calling a function module. Within this function module, mostly we are using CALL TRANSACTION update and not user-exits/badis...
You can find the function module, using transaction WE42.
Regards
Tamá

Similar Messages

  • Want to copy Delivery address of one line item in shopping cart to all item

    Hi Experts,
                    We are upgrading from SRM 5.0 to SRM 7.0,In SC Creation We want to copy Delivery address of one line item in shopping cart to all line items in Shopping cart by clicking Change All Items button.This is custom button we added this button and we had written code to achieve the functionality but it is not working.This is same like Change All Items button in Account Assigment for copy accont details of one line item to all other line items in SC.
    Web Dynpro Component:/SAPSRM/WDC_UI_DO_SHIPTO
    Web Dynpro View:V_DODC_SHIPTO
    Thanks,
    Aarthi.

    Hi Prasad,
                   Our customer needs that button,they want whenever they are clicking the button delivery address should copy to all line items.
    In my action ONCHANGE_ALL_ITEMS i called this method
    wd_this->mo_dodm_shipto->zchange_all_items( ).
    zchange_all_items( ) is  implemented in class /SAPSRM/CL_CH_WD_DODM_SHIPTO.
    the code i wrote inside zchange_all_items( )
    *Error
      DATA: LX_PDO_ABORT               TYPE REF TO /SAPSRM/CX_PDO_ABORT,  " Class for Fatal error caught by PDO Layer
            LX_PDO_ERROR               TYPE REF TO /SAPSRM/CX_PDO_ERROR.  " Class for PDO General Exception
    Object Instances
      DATA: LO_MSG_CONSUMER            TYPE REF TO /SAPSRM/IF_PDO_MSG_CONSUMER,
            LO_PDO_SHIPTO              TYPE REF TO /SAPSRM/IF_PDO_DO_PARTNER.
    Context-Data
      DATA: lte_cll_shipto              TYPE /sapsrm/if_ch_wd_set_facade=>gt_guid_element,
            loe_cll_shipto              TYPE REF TO /sapsrm/if_ch_wd_set_element.
    Field Symbols
      FIELD-SYMBOLS <lse_cll_shipto>    LIKE LINE OF lte_cll_shipto.
    DATA : lo_pdo_acc TYPE REF TO /sapsrm/if_pdo_do_acct_assgmnt.
      DATA : ls_shipto_cll type /SAPSRM/S_CLL_SHIPTO,
             lt_pdo_partnerdetails      TYPE bbp_pdt_partner,
             ls_pdo_partnerdetails      TYPE bbp_pds_partner,
              LV_GUID          TYPE BBP_GUID,
              lv_item_guid type bbp_guid,
             lv_filled TYPE wdy_boolean.
    *exceptions
      DATA : LX_ABORT                  TYPE REF TO /SAPSRM/CX_PDO_ABORT.
    *Constants
      CONSTANTS : LC_OBJECT_ID         TYPE CRMT_SUBOBJECT_CATEGORY_DB VALUE 'BUS2121001',
                  LC_ADDR_ORIGIN       TYPE /SAPSRM/S_CLL_SHIPTO-ADDR_ORIGIN VALUE 'B'.
      IF LV_FILLED = ABAP_TRUE.
    Downcasting to shipto
        LO_PDO_SHIPTO ?= MO_PDO.
    insert the clipboard into facade and update and submit update
        me->/sapsrm/if_cll_do_mapper~insert_from_clipboard( io_set_facade = mon_cll_set_facade ).
    Add new Accounting entries.
        lte_cll_shipto = mon_cll_set_facade->get_data_elements( ). "get all elements from the context
        LOOP AT  lte_cll_shipto ASSIGNING <lse_cll_shipto>.
          loe_cll_shipto = <lse_cll_shipto>-set_element.
          loe_cll_shipto->get_static_attributes( IMPORTING rv_attributes = ls_shipto_cll ).
    Map ui-structure to pdo-structure
          MOVE-CORRESPONDING ls_shipto_cll TO ls_pdo_partnerdetails.
          IF LS_SHIPTO_CLL-PARTNER_FCT =  mv_part_func.
            LS_PDO_PARTNERDETAILS-PARTNER_FCT = ''.
          ELSE.
            LS_PDO_PARTNERDETAILS-PARTNER_FCT = LS_SHIPTO_CLL-PARTNER_FCT.
          ENDIF.
          IF ls_pdo_partnerdetails-del_ind NE 'X'.
            CALL FUNCTION 'GUID_CREATE'
              IMPORTING
                ev_guid_16 = ls_pdo_partnerdetails-p_guid.
           mv_acc_guid_split = ls_pdo_shipto-guid .
            IF mo_scope = 1.
              ls_pdo_partnerdetails-p_guid = mon_cll_set_facade->get_bo_guid( ).
            ELSE.
              ls_pdo_partnerdetails-p_guid = mo_parent_bo_mapper->items_get_lead_selection( ).
            ENDIF.
            APPEND ls_pdo_partnerdetails TO lt_pdo_partnerdetails.
          ENDIF.
          CLEAR : ls_pdo_partnerdetails, ls_shipto_cll.
        ENDLOOP.
    Add New items to PDO
        IF NOT lt_pdo_partnerdetails[] IS INITIAL.
          TRY.
              LO_PDO_SHIPTO->update_item_partners( EXPORTING it_partner = lt_pdo_partnerdetails
                                                               iv_item_guid       = lv_item_guid
                                                   CHANGING co_message_handler = mo_pdo_message_consumer ).
            CATCH /sapsrm/cx_pdo_abort INTO lx_pdo_abort.
              mo_cll_message_handler->set_abort( io_pdo_abort_exception = lx_pdo_abort ).
            CATCH /sapsrm/cx_pdo_error INTO lx_pdo_error.
              mo_cll_message_handler->add_exception( io_pdo_error_exception = lx_pdo_error ).
          ENDTRY.
    Update PDO with the changed data.
          TRY.
              mo_pdo->submit_update( ).
            CATCH /sapsrm/cx_pdo_abort INTO lx_pdo_abort.
              mo_cll_message_handler->set_abort( io_pdo_abort_exception = lx_pdo_abort ).
            CATCH /sapsrm/cx_pdo_error INTO lx_pdo_error.
              mo_cll_message_handler->add_exception( io_pdo_error_exception = lx_pdo_error ).
          ENDTRY.
    Fire refresh of DO Mappers registered for refresh since the item table has acc related data.
          mo_parent_bo_mapper->fire_event_refresh( iv_perform_updates = abap_false ).
        ENDIF.
      ENDIF.
    Thanks,
    Aarthi.

  • Copy Delivery Address from SO to PR

    In our third party shipment process for legal reasons we have to "receive" the material in our plant althought the material should be ship directly to customer from supplier, so we set up an individual purchase process.
    But one thing its missing its that the purchase requisition genereted does not copy the sales order delivery address.
    I have tried in VOV6 to change item category to third party but it wont allow it to be relevant for delivery.
    I went to: spro -->mm -->purchasing >pur req>texts for purchase requisition , but I am kind of lost.
    If someone has an idea where this can be changed I will appreciate it.
    Thank You,
    Carlos
    Edited by: Carlos Salazar on Sep 10, 2010 7:14 PM

    Carlos, ensure that in your sales document that the schedule line category is properly set up.  Go to this SPRO path:
    IMG --> Sales and Distribution --> Sales --> Sales Documents --> Schedule Lines --> Define Schedule Line Categories
    Ensure the schedule line category has the order type NB - Purchase Requisition; and incompletion procedure of 31.
    Also make sure that the schedule line category is assigned to the item category you're using in your sales order.  Hope this helps you out!
    Also check out this link:  [http://wiki.sdn.sap.com/wiki/display/ERPLO/Fielddescriptionofscheduleline+category] for more information on the schedule line category.

  • Activate Customer field in delivery address in PO item screen

    Dear Experts ,
    In PO Item details ,delivery address tab , I want to activate the customer field ( between the address & Vendor tabs ) .
    Please tell me where can this be done ?
    Regards
    Anis

    Hello Jurgen ,
    Thanks for the response .
    Our basic requirement to have a  customer number tagged with a PO item is to have a retrospective analysis report to know what services /material & amount  have been spent in order to facilitate a customer. These are freebies that the company provided the customer, but its analysis would help the us to understant customer wise freebies / facilities provided.
    It would be great if you could tell us the way to activate the customer number field in the PO item details . Using address does not serve the said purpose .
    Thanks & regards ,
    Anis

  • Customer Field in Delivery Address(Reference data, item)tab under Ite in PO

    Dear experts,
    While creating a PO in line item level, under the "Delivery Address" tab, we are able to see the Vendor option and the Address option for selecting the delivery address in the PO. We are unable to view the Customer Option even though we have maintained the optional entry in table T162(Reference data, item).
    We are only able to see the Customer option in the display mode, but unable to see in the create or change mode.
    Please advise is there any other setting is required for getting the customer field  under billing address tab under line item in create and change mode so as to be able to select customer code directly.
    Regards
    Sai

    no answer

  • BAPI_PO_CREATE1: same delivery address on several items?

    Using BAPI_PO_CREATE1 I create a PO with - let's say - two items. I want to set one custom delivery address (no address number already available in SAP) for both, so I fill table param POADDRDELIVERY. Currently I would add two rows, one for item 10 and one for item 20. Both rows get filled with the same address data.
    Unfortunately SAP then creates two address numbers, which leads to a printout of the PO where the same address is printed below each of the two items.
    I would like to achieve that both items really are set up with the identical address (number). How could I do this?
    I thought of using BAPI_ADDRESSORG_CHANGE to create the address before creating the PO and then using the address number, but it seems I can only change existing addresses with that.
    Thanks for your help, Florian

    Hi Guys,
                 can anybody respond to my Q'n?Atleast hints like that if u didnot understand just let me know i will tell u in detaiul about my requirement
    Thanks,
    Gopi.

  • Delivery address appearing at Item level and not at Header level in PO

    Hello Experts,
    We are facing an issue as described below:-
    We are in SRM 7.0 using classic scenario.
    After approval of multi line Shopping Cart in SRM ,PR's are getting
    automatically created in backend R/3 system.After converting PR's into
    POs in backend R/3,we are observing that the delivery address for these
    PO'are getting printed at Item level and not at the Header Level
    inspite of the delivery address being same for all the Item level.
    As desired,the delivery address in the PO's should have the delivery
    address at the header level if the the delivery address is identical
    for all the Item Levels.
    However,if we create a PR directly in R/3 system and then convert these
    PR's into PO's in the backend R/3 system,we find that the deliver
    address are getting printed at the Header Level if the delivery address
    is same for all the item level(which is as desired)
    Any pointers will be highly appreciated.
    Thanks & Regards,
    RKS

    HI Paul,
    Thank you for your response.In our case even if all the Line/items level have same Plant and storage location still the delivery address is getting printed at Item level and not at Header Level and this is happening only for PO's created from PR's orginating from SRM7.0.
    However if we create PR's directly in R/3 and then convert them into PO's,the delivery address is getting printed at the Header level if the delivery address is same for all the Item level.
    Can you plz some insite into this?
    Your help will be highly appreciated.
    Regards,
    RKS

  • Delivery address in PO item level

    Hi,
    in PO item level there is a tab "Delivery address". Under this tab there is a Field "Address" having data for eg. 22706.
    1.Please tell me from where this "address" comes. where is the customization for this "address".
    2.Delivery address, is it related to storage location in the line item.

    kunalc13 ,
    The address number used will be maintained on PO item table EKPO. The address number it uses is determined as follows (assuming standard SAP without user exits):
    Default address;
    - Storage Location Address, if maintained,
    - Plant Address, if maintained AND If Storage Address is not maintained,
    - Company Code Address, if maintained AND if the Plant & storage location addresses are not maintained
    - Blank, if none of the above have been maintained
    - If you look in table ADRC, this address will be assigned to address group CA01 (Customizing address)
    - Maintenance of these addresses are performed in configuration.
    The user has the option to change the default address, or add a vendor number,
        custom number, or address number in the fields on the right. They can only do
        one of these, not a combination of them
    - Manual change of an address on the address tab:
         - If the address is physically changed on the screen, SAP will generate a new
           address number that applies to this PO only and cannot be reused on future POs.
         - In table ADRC, this address group is ME03 - One time vendor address.
      - If they choose a vendor, the vendor number appears on the address tab, the address
         number for that vendor will be in table EKPO, in ADRC, it will account group BP
         (Business Partner)
       - Maintenance of this address is performed in the Vendor Master
      - If they choose a customer, the customer number appears on the address tab, the
        address number for that customer will be in table EKPO, in ADRC, it will account
        group BP (Business Partner)
       - Maintenance of this address is performed in the Customer master
       - If they choose an address number, that number appears on the address tab, and
         that address number will be listed in ADRC as address group ME01 (Delivery Address)
       - maintenance of these addresses are performed in transaction code MEAN

  • Delivery address in PO item level with no addressnr

    Hello,
    I have to print the delivery address in a form. This goes correct if the addrnumber is filled in the tab PO-item/delivery.
    However if this addressnumber is not filled it is not printed.
    Searching in adrc i have found the correct addressnumber (which is not shown in ME23N). But i cannot found the link between this po-item delvery address and this addressnumber.
    does anyone could me tell the link between this.

    In the received IT_EKPO table, look for address til found
    - ADRN2
    - ADRNR
    - If KUNNR is not initial, look for a customer address (select from KNA1)
    - If EMLIF is not initial, look for a vendor address (select from LFA1 or use FM VENDOR_MASTER_DATA_SELECT_00)
    - If WERKS is not initial, look for a plant address (FM MM_ADDRESS_GET)
    Look at the standard forms delvered by SAP (*) to get more information and coding samples)
    Regards,
    Raymond
    (*) You can also look at best practices forms for your country or industry

  • Regarding delivery address in pr item details

    Hi,
    My Client has 11 plants in India out of those 2 plants purchase is done by other plants.eg Mumbai plant purchase material for pune plant, now when i make pr i insert plant of Mumbai in item overview. but the delivery of the material should happen in pune plant, so what is the procedure,
    if in item details in delivery tab i maintain pune address is it ok ?
    regards

    Hi,
    Ya what ever address yu mention in that delivery address the material goes to that address.
    Thanks.

  • Copy manual delivery address

    Hi. We have a requirement where users want to manually change a delivery address in a shopping cart on 1 item and have the option to copy it to all other items.
    We could use BBP_DOC_CHANGE_BADI to check for partner type 00000027 and insert it in the other lines, but how do we provide the option to copy?
    The do not want it to always change all the other lines.
    Is there any way of getting a yes/no pop up box when the user changes the address?
    Or does anyone else have a better idea?
    Thanks a lot for your help.
    Regards,
    Dave.

    Hi David,
    Probably you can give a try to User Status. Take for instance you have a status using which the user can say that the address needs to be copied (by activating it). Then using the BBP_DOC_CHANGE_BADI, you can check for this status and change the delivery address in all items appropiately.
    Please have look at this article I submitted below.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/2047466a-fb48-2b10-33ba-d3243b2f6723
    Your requirment is a bit tricky, but please explore this option. This has worked out very well for quite a few of my requirements (Bids and Invoices) as there is flexibility to switch off and switch on this just using standard customizations.
    Regards
    Kathirvel

  • How to fetch PO item delivery address from ME23n

    Dear Experts,
           From ME23n, I have to fetch the delivery address for the po items ( at item level). This is mentioned in the 'Delivery Address' tab at item level details.
    I think this is the plant address, but if the user goes to ME22n and deliberately changes the address,  I have to select this modified address.
    How to do this?
    Thanks in advance

    Hi Shweta,
    If Address is not changed, then extract address information as below.
    Select <adrnr> from t001w where werks = <ekpo-werks>.
    Select <required columns> from adrc where adrnr = <t001w-adrnr>.
    If address is changed, then extract information as below.
    Select <required columns> from adrc where adrnr = <ekpo-adrnr>.
    Column adrnr in EKPO will be blank if no changes has been made to the address, and if address is changed this column will have the value of new address number
    Regards
    Vinod

  • Changing line item delivery address in shopping cart need to reflect same in all line items

    Hi All,
    Need help on below,
    I have a requirement that when we change the shopping cart line item delivery address same needs to reflect all line items.
    Suppose a shopping cart having 3 line items 1, 2 and 3. if i change the delivery address of line item 1, the same needs to reflect the line item 2 and 3 as well.
    In my case  if we change the 1's delivery address, after processing its genrating the IDOC on line item wise not in the header wise. And same having the different delivery address.
    Thanks in advance.
    regards:
    Ramesh

    Hello Ramesh,
    we can do this changes in BBP_DOC_CHANGE_BADI . Create a Implementation for the above BADI and Inside that Implementation BADI method just call the function module BBP_PD_SC_GETDETAIL for SC item details by passing the Header GUID.
    Once you get the Partner table(E_PARTNER) details.. Keeping a loop on SC item(E_ITEM) and change address number(ADDR_NO) in Partner table when Partner function eq X( X is an partner function values which you define in SPRO.).
    pseudo logic:
      CALL FUNCTION 'BBP_PD_SC_GETDETAIL'
        EXPORTING
          i_guid    = l_guid
        TABLES
          e_item    = lt_item
          e_partner = lt_partner.
    * Check for all the line items if vendor is assigned
      LOOP AT lt_item INTO lwa_item.
        READ TABLE lt_partner INTO lwa_partner
                          WITH KEY partner_fct = '00000019'
                                   del_ind     = space
                                   p_guid      = lwa_item-guid.
        IF sy-subrc eq 0 .
       * modification of address number logic here in partner table
        ENDIF.
      ENDLOOP.
    All the best.
    Regards,
    Sankarbabu

  • Delivery Address in Purchase order

    Hello Expert
    Delivery address on purchase order.
    I am trying to make changes in Delivery address tab at item level  for Intercompany purchase order but the changes are not reflected in print preiview.
    But the same changes I am trying to make in delivery address for standard purchase order and Servie order
    Changes are refelect in print preiview.
    Can you please guide us what must the settings which are not affecting changes in Intercompany purchase order.
    Thanks in advance
    Abhi

    The print preview (or the print itself) is generated via a program assigned to an output type. If you have a custom format, it is possible that the program does not pick up the delivery address from the PO item, but from somewhere else (probably plant address).
    You will have to check the smartform and its driver program for this purpose.
    You can get the program name / smartform name from the output type configuration (check the output type that gets triggered by clicking the messages tab).
    IMG > Materials Management > Purchasing > Messages > Output Control > Message Types > Define Message Types for Purchase Order
    Regards,
    Aroop

  • What SAP table keep data delivery address in PO document ?

    Hello everyone,
    in ME23N display PO document.
    i want to know SAP table that keep data in tab Delivery address such as Street/House number , Postal code/City
    please help.

    the delivery address in PO item is
    - the storage location address  in case the storage location is maintained in PO item AND if storage location has an address maintained in cusotmizing.
    - the plant address if no storage location is provided
    in both cases SAP knows the address number from reading the customizing, and does not need to store the number in PO item.
    - you entered a delivery  address manually in PO item. In this case an address number is stored directly in EKPO.

Maybe you are looking for

  • Maximum number of line items in PO/SA....

    Hi, 1. What is the limitation on maximum number of line items in a PO/schedulling agreement/Contract. 2. Also what is the maximum permissible number of lines in a single accounting document possible.As far as I know there is a limitation of counter 9

  • Getting the HTTP server name, port and context name inside the init()

    I have a servlet which is initialized when the Web server comes up. Is there any way I can print the complete URL from this servlet? I am aware that this can be done by using request object. But note that in this case, there is no request object. All

  • DNG support in Photoshop Element

    I want to catalog my RAW files in PSE. To day I catalog the resulting JPEGs after RAW conversion but I'm not happy with this workflow. The DNG format opens up the possibility to write tags to the XMP part of the DNG file. When I try to write my tags

  • CS4/G5/Tiger/OpenGL

    It all started when I tried to use the feature in CS4 for changing the brush head size. Instead of using the bracket keys, one is able to hold down Control+Alt and slide the mouse/pen. What then happens is the brush head size alters accordingly and i

  • What happened to rss feeds?

    I have lost all rss feeds that used to show up in the mail app. any idea what happened