Delivery address update on Purchase Req Exit MMDA0001

Functionality : I'm creating the PR from Sales order. this is achieved through the item category configurations on Sales order.
Requirement: During PR Creation, I need to change the delivery address on the PR from default plant address. Sap provided the User exit MMDA0001 Function Exit : EXIT_SAPLMMDA_001 for this purpose.
Problem: I'm passing Address number on this exporting parameter of this Exit, But SAP is not populating this delivery address on the PR. I couldn't find any article on this issue. Below is my code
Data Declarations
  DATA   : lv_partner TYPE char30,
                 lv_kunnr   TYPE kunnr.
  TYPES : tt_vbpavb TYPE STANDARD TABLE OF vbpavb.
  FIELD-SYMBOLS : <lt_xvbpa> TYPE tt_vbpavb,
                               <ls_xvbpa> TYPE vbpavb.
  lv_partner =  '(SAPMV45A)XVBPA[]'.
  ASSIGN (lv_partner) TO <lt_xvbpa>.
  IF <lt_xvbpa> IS ASSIGNED.
    SORT <lt_xvbpa> BY parvw.
Get the Ship-to-party information
    READ TABLE <lt_xvbpa> ASSIGNING <ls_xvbpa>
          WITH KEY parvw = 'WE' BINARY SEARCH.
    IF sy-subrc = 0.
Assign the Ship-to-party address information to the PR Address
      lv_kunnr = <ls_xvbpa>-kunnr .
      SHIFT lv_kunnr LEFT DELETING LEADING '0'.
      SELECT SINGLE addrnumber FROM adrc INTO e_adrnr
          WHERE sort1 = <ls_xvbpa>-kunnr AND
                addr_group = 'ME01'.
    ENDIF.
  ENDIF.
Please help on this issue and suggest me if i need to raise any SAP service ticket on this issue.
Thanks,
Selvaraj

Hi
Are you able to get the address no from the query? Place a break point on this and check when the value of adrnr gets changed and analyze it.
Regards
Shiva

Similar Messages

  • Print delivery address in a Purchase Order

    Hello,
    Could you please tell me, what I should to do for print delivery address in a purchase order?
    I need to configure or activate these fields: Name y Street/House number in the PO printed
    Thanks!!
    Best Regards,
    Mariela

    the delivery adress is storage location address, if storage location has an address and is entered in the PO.
    the delivery adress is plant address, if no storage location is entered in the PO or the storage location does not have an address.
    or the delivery address is taken directly from POs delivery adress at item detail  if maintained manually there.
    If it does not print, then you may use a customized form which is not prepared to print the address.
    If that is the case, then contact the developer of the form.

  • Address no. in delivery address tab of purchase order

    I want to know where is delivery address maintained. I am creating a po with item category K.
    I want to change the delivery address. When I save po. it gives address no. in delivery address tab of purchase order.
    I want to know what is the tcode for maintaing address.
    Is this customisation or master data maintenance.

    Hi,
    I am working on CR in which I need to change the delivery address.
    The purchase order I am referrring is having account assignment category K, without material no. & storage location.
    Plants and storage locations have addresses in the system.
    With what respect we will maintain address in tcode MEAN.For example plant. ?????
    Because in MEAN I create address and save but how this address will pick up in PO.
    Edited by: KiranCG on Dec 8, 2011 7:41 AM

  • How I can find the  Delivery address changes in purchase order

    Hi Friends,
    How I can find the  Delivery address changes in purchase order
    item details.And how i can find who did ths changes.

    Hi,
    Go to ME22N, here select the line item and click on menu "Environment > Item Changes" to track the changes.
    For multiple POs, go to ME2N, here enter Selection Parameter as "ALLES" and execute the report to check all the changes.

  • Delivery address in the Purchase Requistion

    Hi SRM gurus
    we are implementing SRM 4.0 and classic scenarios.
    When a shoppping cart is created in SRM there is tab at item level Ship to address where in the user enter the address where items has to be delivered.
    Now when the SC is approved and a Purchase Req is created in the item level at the delivery address tab the address which can be viewed is that of the plant address and not the address which the users had typed in the SC - Ship to address .
    How do I get the ship to address of SRM SC to the delivery address at itemlevel in the Purchase requistion.
    regards,
    Nimish Sheth

    Hi Nimish,
    In standard, the delivery address is not transfered.
    Please have a look here
    Ship-To Address not trasferred to backend
    Kind regards,
    Yann

  • Required Delivery address in a Purchase Order

    Hi All,
    In purchase order at item level "DELIVERY ADDRESS" is mandatory. We do  this in the customizing : SPRO ->MM->Purchasing->Purchase Order->Define Scree Layout at Document Level .
    But during the creation of a PO when we enter an address  the system generates an error : ME 083 : Please enter an address
    We don't find OSS notes.
    Thanks for your reply
    Sam

    Thanks for your answer.
    I followed your explanation, but I always have the same message.
    We use ECC 6.0.
    Thanks a lot.
    Sam

  • Use of Address field in Delivery Address tab of Purchase Order

    Hi,
    In Purchase Order, there is field Address in Delivery Address tab.
    How can we maintain Address in SAP.
    Also in what scenario we use the Address.
    My understanding is:
    We have marinated the Plant Address as Sec-59, Gurgaon and while creating the Purchase Order, the System picks up the same address as mentioned in the Plant Configuration. Now we to deliver the Material in , say, Sec 69 in Gurgaon,  in this case the concept of Address is used.
    Please correct/ confirm my understanding
    Regards,

    Hi,
    Thanks for the reply.
    I have created the address and is working fine.
    Here we have got some confusing scenario:
    We have created a Company Code 1000 & Plants 1001 (in Delhi) & 1002 (in Mumbai) under Company Code 1000.
    We (our client) want to create purchase Order from Plant 1001 (Delhi) but we the Material to be delivered to Plant 1002 (Mumbai).  Is this possible? To be my knowledge, the Material is received in the Plant from where the Purchase Order is being generated. Also there will a Tax related problems.
    What can we suggest to convince the Client?
    Regards,

  • Delivery address updating based on Plant in ME21N

    Dear All,
    My requirement: I have a plant consider 0900, we have updated the plant address in MEAN Tcode.
    I can see an entry in ADRC table, but while creating the PO in ME21N by giving the plant as 0900, system is fetching
    the old address, not the new address.
    Please suggest me the solution and if any code.
    Thanks in Advance
    Sandeep.

    Hi Felipe,
    I have done the coding like this, please let me know if i am wrong.
      DATA: ls_mepoitem    TYPE mepoitem,
            ls_mepoitemx   TYPE mepoitemx,
            ls_mepoheader  TYPE REF TO if_purchase_order_mm,
            ls_mepoheader2 TYPE mepoheader,
            header         TYPE ekko,
            lv_adrnr       TYPE adrnr,
            ls_ekpo        TYPE ekpo,
            ls_adrc        TYPE adrc,
            ls_cmmda       TYPE cmmda.
      ls_mepoheader  =  im_item->get_header( ).
      ls_mepoheader2 =  ls_mepoheader->get_data( ).
      ls_mepoitem    =  im_item->get_data( ).
      IF ls_mepoitem-adrn2 IS INITIAL AND
         ls_mepoitem-lgort IS NOT INITIAL AND
         ls_mepoitem-werks = '0900'.
        SELECT SINGLE *
         FROM ekpo
         INTO ls_ekpo
          WHERE werks = ls_mepoitem-werks
    *      AND ekgrp = ls_mepoheader2-ekgrp
          AND wepos = ls_mepoitem-wepos.
    *      and adrn2 = ls_mepoitem-adrn2.
        ls_ekpo-adrn2 = '00091647'.
        IF sy-subrc = 0.
          ls_mepoitem-adrn2 = ls_ekpo-adrn2.
          CALL METHOD im_item->set_data
            EXPORTING
              im_data = ls_mepoitem.
        ENDIF.

  • Delivery address in Purchase Requisition

    Hi
    While creating a PR (where a contract has been assigned as a source of supply), the Delivery Address in the PR should be picked up directly from the contract.
    Here in this scenario, I have maintained the delivery address in the contract as different from the plant address, however, the address being picked up during PR creation is that of plant and not of the contract. (If i am correct, the search sequence of the address should first check with contract followed by the plant)
    Why is the contract address not getting updated here ?
    Best Regards
    Abhishek Srivastava

    you cannot maintain/change a delivery address in a purchase requisition/purchase order in case of third-party orders, the delivery address is taken from the ship-to partner of the sales order.

  • Purchase Order Output delivery address

    Hi, All,
    I have issue on the delivery address in the Purchase Order. I need to a PO with multiple items, and each item there is different plant. In the item details, there is delivery address tab, showed up all plants address for each item.
    Then I need to print out the PO. But all the 'delivery to' address for each item is printed out.
    The issue is that I won't get that plant delivery address print out. I want to only 1 ship to address in this Purchase Order. This address maybe I can maintain manully somewhere? Or I need to setup somewhere?
    How to solve this issue?
    Thanks in advance

    Hi
    As has been suggested by Kl you can achieve that  by modifying your PO script or Smart form. Which one you are using? Please tel your ABAPer to hide the delivery addresses which you do not want to be pinted and tell him to bring the the delivery address in the output which you want to be printed. It should not  difficult at all for.
    Best regards

  • 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

  • Delivery Address changes in third Party Scenario

    Hi All,
    System is not allowing to make changes in delivery address (At PR/ PO Level) for Third party Scenario (Sales Order based).
    I had checked the Field Groups of PO/ PR Knowm to me and try to make delivery address field editable. but didnt get any success. Is it Possible to get the dellivery address field in change mode for third party Scenario. If yes, how?
    pls. Note: I'm not talking about the Manual third party order processing.
    Regards,
    S Anand

    Why dont you want to make a change at SO level?
    From OSS note 550192 - FAQ: Changing third-party and individual PO items
    Question: What do I have to consider when I change the ship-to party for the entire sales order or for a third-party item?
    Answer: In the third-party scenario, the ship-to party of the third-party item in the sales order is identical with the delivery address of the respective purchase order item. Up to and including Release 4.5, there is no automatic function for a synchronous change so that this must be done manually in both documents. As of Release 4.6, the system automatically updates the delivery addresses from the purchase order items if the ship-to party of the third-party item changes. The change of the delivery address in the purchase order is therefore no longer possible; thus the 'Delivery address' is only displayed in the display mode in the purchasing transaction.
    For additional information, refer to Note 204190.

  • Logic for determining the delivery address in PO

    Hi,
    We have a requirement (for a enhancment ) to get the country updated in the delivery address of a purchase order.  Would be highly helpful if someone provide me the logic for getting the country key from the delivery address tab.
    Our landscape involves SRM PO & ECC PO's and hence getting the details from Plant & s.loc will be o.k for ECC PO's , but for SRM PO's the details are updated from ship tp address.
    Regards
    Sudhakar

    Hi,
    U can get the country key ( LAND1)  in T001W table, by giving plant code, which u can get in EKPO ( WERKS) by giving PO no.
    Also u can get in ADRC table, thr u need to input ADRNR no. which u will get from T001W table by giving plant code.

  • How to create an address code for PO delivery address?

    Hi Guys,
    How to create an address code for the delivery address in the purchase order? Please explain me with details.....
    Thanks
    Raja

    delivery adress records can be created with transaction MEAN.
    the number is purely internal.
    In ME21N you can then search by name (you will certainly not know the number)

  • Billing and delivery address to be displayed in PO

    Dear Gurus,
                          Here client requirement is as follows : There are three plants in three different places- Chennai, Bangalore and Hyderabad. Client is creating PO from Chennai plant and they want the material to be delivered in Bangalore plant. They want this to be displayed( billing and delivery address) in the purchase order. Kindly suggest me how to map this scenario.Thank you.

    Hi,
    For delivery adress you can use the subscreen for delivery adress in the item of the PO.
    Por billing adress, if it's not the same that the adress for the center, you can do a subroutine for the form (Z)MEDRUCK for the company of these center, of you can create a partner 'Billing adress' and write it in form with a subroutine (Z)MEDRUCK.
    I hope this helps you
    Regards,
    Eduardo

Maybe you are looking for

  • Is the G3 worth giving up my unlimited data plan?

    I have a Samsung Galaxy Nexus with unlimited data (grandfathered in when I replaced my original Motorola Droid).  I've been waiting for the "perfect" phone to replace it, and it looks like the G3 might be it.   The Nexus was a great phone in its time

  • How to create an Input Ready Query in Bex Excel with no transact data

    Hi We created a query where we want the user to put in NEW LINES. This query has in general no data when user starts planning. We have 2 front-ends for this, Bex Web and Excel. Both shows initial 'no data available BexWeb': Implementing the command s

  • Dual Displays Getting Used To Mouse Settings

    Hi Gang Just started using Dual Displays for Final Cut. Was wondering if anyone had some tips for maximizing mouse settings? Its taking some time getting used to. Screen Shots: http://www.locationstudio.net/Left.jpg http://www.locationstudio.net/Righ

  • Black Line on Content Viewer

    I have noticed this before the new update, but seems to be bugging me now. Using the content viewer when previewing articles, there seems to be a small black bar, maybe 2px on the right hand side of the app. This happens only when viewing folios and

  • Regarding problem with updating usage decision in QA11

    Hi Experts, I am trying to use the Bapi "BAPI_INSPLOT_SETUSAGEDECISION" to update the usage decision in QA11 in a proxy. I am not being able to understand what parameters to be used and how. CALL FUNCTION 'BAPI_INSPLOT_SETUSAGEDECISION'   EXPORTING