Delivery Address in ME23n

Hi Friends,
I need to find the table where the delivery address gets stored, when delivery address is entered manually in the delivery address field while creating the PO.
Thanks in advance.
Regards,
Prabhu

Hi
In this code you will get the address no. for the manually entered address in PO.
With that address no. fetch the data from ADRC table..
DATA ls_cmmda TYPE cmmda.
  DATA ls_cmmda2 TYPE cmmda.
  DATA ls_ekpo  TYPE ekpo.
  data im_ebeln like ekpo-ebeln value '4500000005'.
  data im_ebelp like ekpo-ebelp value 00010.
  DATA lt_cmmda TYPE TABLE OF cmmda.
  REFRESH lt_cmmda.
Select the PO Item data (all fields need to be selected here!)
  CLEAR ls_ekpo.
  SELECT SINGLE * INTO ls_ekpo FROM ekpo
  WHERE ebeln = im_ebeln
  AND   ebelp = im_ebelp.
Populate the relevant global parameters from the
function group MMDA
  REFRESH lt_cmmda.
  CLEAR ls_cmmda.
  MOVE-CORRESPONDING ls_ekpo TO ls_cmmda.
  APPEND ls_cmmda TO lt_cmmda.
  CALL FUNCTION 'MM_DELIVERY_ADDRESS_INIT'
EXPORTING
  IM_NO_REFRESH       = ' '
    TABLES
      it_cmmda            = lt_cmmda
Get the address number and/or more details required to
determine the delivery address
  CALL FUNCTION 'MM_DELIVERY_ADDRESS_FOR_BAPI'
    EXPORTING
      im_ebeln = im_ebeln
      im_ebelp = im_ebelp
    IMPORTING
      ex_cmmda = ls_cmmda2.
write: ls_cmmda2-adrnr,
        ls_cmmda2-werks,
        ls_cmmda2-emlif.
Thanks your replies...
Regards
Prabhu

Similar Messages

  • 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

  • Delivery Address in ME23n (PO)

    Hi Friends,
    I need to find the table where the delivery address gets stored, when delivery address is entered manually in the delivery address field while creating the PO.
    Thanks in advance.
    Regards,
    Prabhu

    Hi
    In this code you will get the address no. for the manually entered address in PO.
    With that address no. fetch the data from ADRC table..
    DATA ls_cmmda TYPE cmmda.
      DATA ls_cmmda2 TYPE cmmda.
      DATA ls_ekpo  TYPE ekpo.
      data im_ebeln like ekpo-ebeln value '4500000005'.
      data im_ebelp like ekpo-ebelp value 00010.
      DATA lt_cmmda TYPE TABLE OF cmmda.
      REFRESH lt_cmmda.
    Select the PO Item data (all fields need to be selected here!)
      CLEAR ls_ekpo.
      SELECT SINGLE * INTO ls_ekpo FROM ekpo
      WHERE ebeln = im_ebeln
      AND   ebelp = im_ebelp.
    Populate the relevant global parameters from the
    function group MMDA
      REFRESH lt_cmmda.
      CLEAR ls_cmmda.
      MOVE-CORRESPONDING ls_ekpo TO ls_cmmda.
      APPEND ls_cmmda TO lt_cmmda.
      CALL FUNCTION 'MM_DELIVERY_ADDRESS_INIT'
    EXPORTING
      IM_NO_REFRESH       = ' '
        TABLES
          it_cmmda            = lt_cmmda
    Get the address number and/or more details required to
    determine the delivery address
      CALL FUNCTION 'MM_DELIVERY_ADDRESS_FOR_BAPI'
        EXPORTING
          im_ebeln = im_ebeln
          im_ebelp = im_ebelp
        IMPORTING
          ex_cmmda = ls_cmmda2.
    write: ls_cmmda2-adrnr,
            ls_cmmda2-werks,
            ls_cmmda2-emlif.
    Thanks your replies...
    Regards
    Prabhu

  • Plant name missing in PO line item details (Delivery address tab)

    Hi
    We are facing issue with ECC PO migration to SRM SUS client due to missing line item delivery address field name. We have PI integration. Name exist in PO XML on ECC interface but not copied on to PO line delivery address details (ME23n)
    Impact:
    We have 3 way channel between SRM client --> ECC ---> to SRM SUS client.
    When we create PO in SRM it flows from SRM to ECC using Purchase order request_V1 sevice request. This part works PO get replicated successfully. But when this PO is pushed to SUS client we are facing error message : "Name details missing for the partner address" found from proxy debugging. Second part of PO migration from ECC to SUS is not working due to missing plant name details in ECC
    When I copy PO (with missing details) to new PO and manually enter the details, scenario works with out any issue.
    Please comment.
    Regards
    Prashanth K Saralaya

    Hi Prashant
      Did SRM--> ECC PO have address details updated properly. It seems the address did not get updated when the PO is coming from SRM to ECC and when you manually update it, it goes to SUS Perfectly.
    For Delivery address , Name field is mandatory and ECC PO has to have the Name updated in Delivery Address.....
    If ECC PO has Name field updated in delivery address tab, then check the XMLs between ECC and SUS whether XML has carried Name field to SUS or not
    Regards
    Virender Singh

  • ME23n delivery address

    Hi Experts,
    I have a case where in if I change my delivery address field in ME23n more than once on the same day then I get a 'No data changed' message and consequently the data remains unchanged. Precisely, it allows me to change that field once in a day. However, if I change some other detail along with it then the changes get saved.
    Please suggest what might be causing the problem.
    Thanks and Regards,
    Puja

    Hi Experts,
    I have a case where in if I change my delivery address field in ME23n more than once on the same day then I get a 'No data changed' message and consequently the data remains unchanged. Precisely, it allows me to change that field once in a day. However, if I change some other detail along with it then the changes get saved.
    Please suggest what might be causing the problem.
    Thanks and Regards,
    Puja

  • User exit/BADI for Return PO item delivery Address

    Hi Guyz,
    We have a requirement where in when a PO item is marked as return PO item(In ME21n/ME22n/ME23n We have check box at item level) and click on enter/Check/Save, In delivery address of item details we have to populate Vendor address. By default SAP populates Plant address. If we manually give Vendor number in item details=>Delivery address tab then it populates vendor address. We want to automate this functionality.
    Is there any Exit/BADI which serve this purpose.
    Note: We need this functionality for few doc types(i.e PO doc type should also be available in the exit).
    Any ideas could be really helpfull.
    Thanks,
    Vinod.

    Hi,
    there are some user-exit & enhancements....
    MEQUERY1                                Enhancement to Document Overview ME21N/ME51N
    MEVME001                                WE default quantity calc. and over/ underdelivery tolerance
    MM06E001                                User exits for EDI inbound and outbound purchasing documents
    MM06E003                                Number range and document number
    MM06E004                                Control import data screens in purchase order
    MM06E005                                Customer fields in purchasing document
    MM06E007                                Change document for requisitions upon conversion into PO
    MM06E008                                Monitoring of contr. target value in case of release orders
    MM06E009                                Relevant texts for "Texts exist" indicator
    MM06E010                                Field selection for vendor address
    MMAL0001                                ALE source list distribution: Outbound processing
    MMAL0002                                ALE source list distribution: Inbound processing
    MMAL0003                                ALE purcasing info record distribution: Outbound processing
    MMAL0004                                ALE purchasing info record distribution: Inbound processing
    MMDA0001                                Default delivery addresses
    MMFAB001                                User exit for generation of release order
    MRFLB001                                Control Items for Contract Release Order
    MELAB001                                Gen. forecast delivery schedules: Transfer schedule implem.
    AMPL0001                                User subscreen for additional data on AMPL
    LMEDR001                                Enhancements to print program
    LMELA002                                Adopt batch no. from shipping notification when posting a GR
    LMELA010                                Inbound shipping notification: Transfer item data from IDOC
    LMEQR001                                User exit for source determination
    LMEXF001                                Conditions in Purchasing Documents Without Invoice Receipt
    LWSUS001                                Customer-Specific Source Determination in Retail
    M06B0001                                Role determination for purchase requisition release
    M06B0002                                Changes to comm. structure for purchase requisition release
    MEFLD004                                Determine earliest delivery date f. check w. GR (only PO)
    MEETA001                                Define schedule line type (backlog, immed. req., preview)
    ME590001                                Grouping of requsitions for PO split in ME59
    M06E0005                                Role determination for release of purchasing documents
    M06E0004                                Changes to communication structure for release purch. doc.
    M06B0005                                Changes to comm. structure for overall release of requisn.
    M06B0004                                Number range and document number
    M06B0003                                Number range and document number
    Some BADI s:
    ME_PROCESS_PO                           Enhancements for Processing Enjoy Purchase Order: Intern.
    ME_PROCESS_COMP                         Processing of Component Default Data at Time of GR: Customer
    ME_PO_SC_SRV                            BAdI: Service Tab Page for Subcontracting
    ME_PO_PRICING_CUST                      Enhancements to Price Determination: Customer
    ME_PO_PRICING                           Enhancements to Price Determination: Internal
    ME_INFOREC_SEND                         Capture/Send Purchase Info Record Changes - Internal Use
    ME_HOLD_PO                              Hold Enjoy Purchase Orders: Activation/Deactivation
    ME_GUI_PO_CUST                          Customer's Own Screens in Enjoy Purchase Order
    ME_FIELDSTATUS_STOCK                    FM Account Assignment Behavior for Stock PR/PO
    ME_DP_CLEARING                          Clearing (Offsetting) of Down Payments and Payment Requests
    ME_DEFINE_CALCTYPE                      Control of Pricing Type: Additional Fields
    ME_COMMTMNT_REQ_RE_C                    Check of Commitment Relevance of Purchase Requisitions
    ME_COMMTMNT_REQ_RELE                    Check of Commitment Relevance of Purchase Requisitions
    ME_PROCESS_PO_CUST                      Enhancements for Processing Enjoy Purchase Order: Customer
    SMOD_MRFLB001                           Control Items for Contract Release Order
    MM_EDI_DESADV_IN                        Supplementation of Delivery Interface from Purchase Order
    MM_DELIVERY_ADDR_SAP                    Determination of Delivery Address
    ME_WRF_STD_DNG                          PO Controlling Reminder: Extension to Standard Reminder
    ME_TRIGGER_ATP                          Triggers New ATP for Changes in EKKO, EKPO, EKPV
    ME_TRF_RULE_CUST_OFF                    BADI for Deactivation of Field T161V-REVFE
    ME_TAX_FROM_ADDRESS                     Tax jurisdiction code taken from address
    ME_REQ_POSTED                           Purchase Requisition Posted
    ME_REQ_OI_EXT                           Commitment Update in the Case of External Requisitions
    ME_RELEASE_CREATE                       BAdI: Release Creation for Sched.Agrmts with Release Docu.
    ME_PURCHDOC_POSTED                      Purchasing Document Posted
    ME_PROCESS_REQ_CUST                     Enhancements for Processing Enjoy PReqs: Customer
    ME_PROCESS_REQ                          Enhancements for Processing Enjoy PReqs: Internal
    ME_COMMTMNT_PO_REL_C                    Check for Commitment-Relevance of Purchase Orders
    ME_CCP_BESWK_AUTH_CH                    BAdI for authorization checks for procuring plant
    ME_CCP_ACTIVE_CHECK                     BAdI to check whether CCP process is active
    ME_BSART_DET                            Change document type for automatically generated POs
    ME_BAPI_PR_CREATE_02
    ME_BAPI_PR_CREATE_01
    ME_BAPI_PO_CREATE_02
    ME_BAPI_PO_CREATE_01
    ME_BADI_DISPLAY_DOC                     BAdI for Internal Control of Transaction to be Invoked
    ME_ACTV_CANCEL_PO                       BAdI for Activating the Cancel Function at Header Level
    MEGUI_LAYOUT                            BAdI for Enjoy Purchasing GUI
    EXTENSION_US_TAXES                      Extended Tax Calculation with Additional Data
    ARC_MM_EKKO_WRITE                       BAdI: Enhancement of Scope of Archiving (MM_EKKO)
    ARC_MM_EKKO_CHECK                       BAdI: Enhancement of Archivability Check (MM_EKKO)
    ME_CCP_DEL_DURATION                     Calc. of Delivery Duration in CCP Process (Not in Standard)
    ME_COMMTMNT_PO_RELEV                    Check for Commitment-Relevance of Purchase Orders
    ME_COMMITMENT_STO_CH                    BadI for checking if commitments for STOs are active
    ME_COMMITMENT_RETURN                    Commitment for return item
    ME_CIP_REF_CHAR                         Enables Reference Characteristics in Purchasing
    ME_CIP_ALLOW_CHANGE                     Configuration in Purchasing: Changeability Control
    ME_CIN_MM06EFKO                         Copy PO data for use by Country version India
    ME_CIN_LEINRF2V                         BADI for LEINRF03 excise_invoice_details
    ME_CIN_LEINRF2R                         BADI for CIN India - Delivery charges
    ME_CHECK_SOURCES                        Additional Checks in Source Determination/Checking
    ME_CHECK_OA                             Check BAdI for Contracts
    ME_CHECK_ALL_ITEMS                      Run Through Items Again in the Event of Changes in EKKO
    ME_CHANGE_OUTTAB                        Enrich ALV Output Table in Purchasing
    ME_CHANGE_CHARACTER                     Customer-Specific Characteristics for Product Allocation
    No.of Exits:         35
    No.of BADis:         55
    Arunima

  • How to get the Delivery address for PO

    I have a problem.
    I am working on a SAP Script , which is for PO(Zmedruck_po) , which is a copy of
    MEDRUCK.
    I am asked to print the delivery adress in a window .
    The scenario is like this .
    In ME23N , under item details , there is a tab called DELIVERY ADDRESS
    this has option to enter the adress details or a delivery number in the  address text box .
    If the address number is present i have to print that address , else i have to print the address which is entered in the delivery address tab.
    If the delivey address number is there i have no problem in printing it ,But if address number is not there ,I need to know how to get the delivery address,
    is it the plant address, company code address ... ?
    I debuged ,but could not find out.
    Can anyone help please .

    Hi,
    try using the below method:
    Goto TWLAD table with storage location (EKPO-LGORT) as key to get address number (ADDRNUMBER).  then goto ADRC table to get the address of the delivery
    Regards
    Shiva

  • How to get delivery address for PO

    I have a problem.
    I am working on a SAP Script , which is for PO(Zmedruck_po) , which is a copy of
    MEDRUCK.
    I am asked to print the delivery adress in a window .
    The scenario is like this .
    In ME23N , under item details , there is a tab called DELIVERY ADDRESS
    this has option to enter the adress details or a delivery number in the  address text box .
    If the address number is present i have to print that address , else i have to print the address which is entered in the delivery address tab.
    If the delivey address number is there i have no problem in printing it ,But if address number is not there ,I need to know how to get the delivery address,
    is it the plant address, company code address ... ?
    I debuged ,but could not find out.
    Can anyone help please .

    Hi,
    I don't know the table that is used to store the manual address on the PO but if you get your ABAPer to checkl the code in ME21N they should be able to tell you.
    Or better still, if one of the other experts here know the table that is used they will post the solution.
    Steve B

  • 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

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

  • Incorrect Delivery address in PO

    Hi,
    A strange delivery address has been coming up on all our PO that we are raising. It has changed address on everything, even orders that we have already on the system has been changed. It seem that the address is from an order that we put on the system but we don’t understand why it has used the suppliers address as a delivery address?
    The effected orders are the one's raised manually (A/c assigned consumable items) as well as those generated automatically from the Pur req's.
    At the moment, we have to manually change the address code in every PO line item that we place which is getting quite annoying. Before this error, the address details were already set up, so no manually input was necessary.
    Can anyone pls help urgently as we will have 100's of orders to be placing in the next few days.
    Thanks for your help.
    Kelly

    Hi,
    The delivery address will only come from a limited number of places.
    It will be the Plant address, or the storage location address (if the storage location has been specified on the PO).
    It could be a manually entered address (not applicable here).
    Also if you reference the vendor number on the address screen the system will use the vendor address as the delivery address.
    Or it could be something wrong in the PO print program that has been used?
    Check the PO in ME23n and if the address is OK there but wrong in the PO print, then the print program is the cause.
    Steve B

  • How to populate VENDOR in Delivery ADDRESS tab durinG PO creation/Change

    Hi Expert,
                     which structure is used to populate VENDOR in Delivery Address TAB in PO creation /Change  using BAPI (BAPI_PO_CREATE1/BAPI_PO_CHANGE).
      VENDOR SCREEN FIELD NAME IS CMMDA-EMLIF. Actually  this field is available in EKPO and I have been asked to modify this filed only corresponding to PO. But direct modification of EKPO is not good practice . what I'm trying is, using BAPI_PO_Change to make this change. can we do this at time of PO creation using BAPI_PO_Create1?
    Thanks in advance

    Hi,
    You can use the above BAPI's and fill the structure -POITEM  with the field : SUPP_VENDOR{Vendor to be supplied/who is to receive delivery}
    Simultaneously you need to update the field SUPP_VENDOR  to X of the BAPI structure POITEMX
    Hope this helps
    Regards
    Shiva

  • Delivery address in Third party process.

    Dear All,
    I have one query in third party process.
    Created third part sales order,where PR is generated automatically.Based on PR (purchase requisation) created Purchase order.
    When I select item category S-Third party,system will pick the delivery address from the sales order.
    But when I change the item category to L-Subcontracting the delivery address is not picking from sales order.It is taking the delivery address of the plant. I need system to pick delivery address from the sales order.
    Please let me know if I need to do any customisation for the above process.
    Thanks in advance,
    Awaiting for your early reply.
    Babu

    Hi,
    In standrad application it is not possible. however, there is a user exit here, EXIT_SAPLMMDA_001, in which you can implement your own logic to select the address.
    Regards,
    S Anand

  • Delivery address of PO is not geting disp in print o/p when it is changed

    Hello,
    When delivery address is changed at PO line item it is not getting displayed in print output.
    Before change it is getting displayed.
    Note - system is 4.6C.
    Thanks - aadil

    Hi,
    Why you want delivery address should change once you change storage location in your purchase order?
    Universally purchase order considered as committed document by business which provides to vendor with defined delivery conditions such as price, delivery date and delivery condition etc.
    Now you need to check/understand – how delivery address designed for your purchase order layout where some times delivery address hard coded in your PO Smartform( refer NACE t.code wwith EF application and find your  purchase order  ouput type assigned to Smartform ) or delivery address picks from plant address which is available in t.code:OX10
    Regards,
    Biju K

  • Subcontract Purchase Order with delivery address from Sales Order Ship-to?

    Hi
    My client has a Sales order for a subcontracted product.  The subcontractor should send the product directly to the customer that is on the sales order.  Currently, the delivery address on the PO is the home address of the client.
    My first option is to create a vendor address matching the ship-to and enter that manually in the Delivery Address field in the PO. But, i would like this to populate automatically.  Is this possible?
    thanks for your suggestions.
    Oll

    >
    Oll wrote:
    > Hi
    >
    > My client has a Sales order for a subcontracted product.  The subcontractor should send the product directly to the customer that is on the sales order.  Currently, the delivery address on the PO is the home address of the client.
    >
    > My first option is to create a vendor address matching the ship-to and enter that manually in the Delivery Address field in the PO. But, i would like this to populate automatically.  Is this possible?
    >
    > thanks for your suggestions.
    >
    > Oll
    a mixture of third party order (vendor ships directly to customer) and subcontract is not possible. third party order would need a S as item category in the PO, while subcontract order needs a L at the very same field.
    We created a storage location and a shipping point for the subcontractor. The sales order is created as a standard sales order that makes use of this storage location and shipping point.
    MRP run then creates a request to produce that material, based on the special procurement indicator in material master it is known that the material is to be procured via subcontract order.
    We then receive the finished good into this storage location that represents the subcontractor.
    Then we create a delivery in VL01N to ship this material to the customer.

Maybe you are looking for

  • Can't transfer iBooks pdfs from first gen iPad to new MacBook Pro

    I have a bunch of important pdf files on a first gen iPad (iOS 5.1.1) that I want to transfer to iBooks in a 13" MacBook Retina. In iTunes, choosing Devices >Transfer Purchases from My iPad isn't moving them over. I've been able to transfer all the n

  • Safari 4.0.4 Flash Player problem

    Hey, For some time now I am having problems with Flash - namely while videos on YouTube and some other websites work just fine, whenever I want to load specific videos or websites (like www.southparkstudios.com), my Flash Player plug-in crashes. I ha

  • Error VC018 - XP - IE8 - Silverlight 5.1

    Maybe somebody in here knows how to resolve this error ? I have just wasted an hour of my life on the telephone to what was supposed to be BT sports tech helpdesk, i say supposed to be because the person at the opther end tried to tell me you could n

  • What enhancements are in VMS 2.3

    Could someone on the list please tell me what the major enhancements are in VMS 2.3 other then bug fixes or at least give a URL where I could read the information? The version of 2.3 VMS server that can be downloaded from Cisco today contains the fol

  • VC 7.1 SP05 unspecified error - how to read the debug trace?

    Hello, I am trying to consume a enterprise service with VC 7.1 SP05. Beforehand, I have tested the parameters using WSADMIN, and I know what I have to pass. Unfortunately, when feeding the same parameters to my VC model, I get a error message, and I