Delivery Address in Purchase order Create ME21N

Hello all,
     I am trying to capture the value in the Country field on the Delivery Address tab when creating a PO (ME21N).  We only want to write a certain condition if the Vendor is non-US and the Delivery country is US. 
     The initial value is populated in KOMK but it doesn't change if the Delivery address is changed manually. 
We are using subroutine KOBEV_600 in Include RV61A600.  I tried using GET PARAMETER ID 'LND' but it never worked.  It always came back blank. 
Thanks for any help.
Kind regards,
Chris Mowl

Thank you for the responses although they didn't quite address my issue. 
The solution we are testing at the moment is using the following code in User Exit ZXM06U14:
DATA: lv_country TYPE land1.
IF i_ekpo-adrn2 IS NOT INITIAL.
  SELECT SINGLE country FROM adrc
  INTO lv_country
  WHERE addrnumber = i_ekpo-adrn2.
  IF sy-subrc = 0.
    EXPORT lv_country TO MEMORY ID 'adrn2'.
  ENDIF.
ELSEIF i_ekpo-kunnr IS NOT INITIAL.
  SELECT SINGLE land1 FROM kna1
  INTO lv_country
  WHERE kunnr = i_ekpo-kunnr.
  IF sy-subrc = 0.
    EXPORT lv_country TO MEMORY ID 'adrn2'.
  ENDIF.
ELSE.
  CLEAR lv_country.
  EXPORT lv_country TO MEMORY ID 'adrn2'.
ENDIF.
When an Address number or Customer number are filled in on the "Delivery Address" tab for the item, they are filled in the i_ekpo-adrn2 or i_ekpo-kunnr fields respectively.  I then export the country value to memory and import it in RV61A600 where we check that value.

Similar Messages

  • 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

  • Query to get Salesorder Delivery Address in Purchase Order (ODLN Address2)

    This case looks a bit like a dropshipment situation:
    Our customer orders some products (salesorder = ORDR / RDR1).
    At the order-moment the salesdepartment cannot decide yet which businesspartner is going to deliver.
    At the purchase- and delivery-moment we create a purchase-order for the goods (OPOR / POR1).
    At that moment we want to lookup the customer's delivery address (name, street, zipcode,city and country) and put it as ONE field in the OPOR-Address2-field.
    We think it is at best when we can select this address2 field from the open orders ORDR.
    Who can help us to create the proper Query ? Thanks in advance !
    Jos Dielemans - www.dielemans.biz
    Edited by: J. Dielemans on May 25, 2009 3:26 PM
    I have already found this Query:
    SELECT DISTINCT T0.DocNum,T0.DocDate, T0.CardName, T0.Address2 FROM ORDR T0 INNER JOIN RDR1 T1 ON T0.DocEntry = T1.DocEntry WHERE T1.LineStatus ='o' or T1.Quantity > T1.OpenQty and T0.DocStatus ='o' ORDER BY T0.DocNum
    Now I want to select the ORDR-Address2-Field and copy it together with the customer's name to the OPOR-Address2 Field.
    I realize that we can at best use this Query as a Formatted Search on the OPOR-Address2-Field
    Jos Dielemans
    Edited by: J. Dielemans on May 25, 2009 3:26 PM

    We do not link Purchase Order to Sales Order.
    We want to copy the shipaddress from the Customer to the Purchase Order so that the Supplier can ship the goods directly to the right address.
    I thought it would be appropriate to select the right Customer from the Open Orders and then copy his CardName and Shipment Address to the Purchase Order.
    Can you help me with that Query ?
    Otherwise we should select the customer's Cardname and Shipment Address from the Business Partner's Masterdata.
    Jos Dielemans

  • Delivery address in Purchase order ME22N

    hi,
    i am working on medruck smartform from scratch .i am unable to find the delivery address for a particuler material.
    can anyone explain where the delivery address value comes from.i want the tables or else any othere way we can find that.
    it is urgent.............
    with regards
    Ajith
    Message was edited by:
            ajith saxena

    Hi
    The table should be ADRC, so
    SELECT * FROM ADRC WHERE ADDRNUMBER = EKPO-ADRN2
      EXIT.
    ENDSELECT.
    Max

  • Update was terminated while creating purchase order from ME21N

    Hi Experts,
    We are getting this dump when try to create purchase order from ME21N;
    Our system ECC 6.0 and IS-AFS (Apparel & Footwear Solution) V600 component has installed,
    How can we prevent this error,
    Regards
    Here is the dump and sm21 log,
    Runtime Errors         LOAD_PROGRAM_NOT_FOUND
    Exception              CX_SY_PROGRAM_NOT_FOUND
    Date and Time          10.10.2008 10:22:03
    Short text
         Program "RMCMS431 " not found.
    What happened?
         There are several possibilities:
         Error in the ABAP Application Program
         The current ABAP program "SAPLMCS4" had to be terminated because it has
         come across a statement that unfortunately cannot be executed.
         or
         Error in the SAP kernel.
         The current ABAP "SAPLMCS4" program had to be terminated because the
         ABAP processor detected an internal system error.
    What can you do?
         Note down which actions and inputs caused the error.
         To process the problem further, contact you SAP system
         administrator.
        Using Transaction ST22 for ABAP Dump Analysis, you can look
        at and manage termination messages, and you can also
        keep them for a long time.
    Error analysis
        An exception occurred that is explained in detail below.
        The exception, which is assigned to class 'CX_SY_PROGRAM_NOT_FOUND', was not
         caught in
        procedure "TMC2F_FROUT_CALL" "(FORM)", nor was it propagated by a RAISING
         clause.
        Since the caller of the procedure could not have anticipated that the
        exception would occur, the current program is terminated.
        The reason for the exception is:
        On account of a branch in the program
        (CALL FUNCTION/DIALOG, external PERFORM, SUBMIT)
        or a transaction call, another ABAP/4 program
        is to be loaded, namely "RMCMS431 ".
        However, program "RMCMS431 " does not exist in the library.
        Possible reasons:
        a) Wrong program name specified in an external PERFORM or
           SUBMIT or, when defining a new transaction, a new
           dialog module or a new function module.
        b) Transport error
    How to correct the error
        Check the last transports to the R/3 System.
        Are changes currently being made to the program "SAPLMCS4"?
        Has the correct program been entered in table TSTC for Transaction "ME21N "?
        If the error occures in a non-modified SAP program, you may be able to
        find an interim solution in an SAP Note.
        If you have access to SAP Notes, carry out a search with the following
        keywords:
        "LOAD_PROGRAM_NOT_FOUND" "CX_SY_PROGRAM_NOT_FOUND"
        "SAPLMCS4" or "LMCS4F10"
        "TMC2F_FROUT_CALL"
        If you cannot solve the problem yourself and want to send an error
        notification to SAP, include the following information:
        1. The description of the current problem (short dump)
           To save the description, choose "System->List->Save->Local File
        (Unconverted)".
        2. Corresponding system log
           Display the system log by calling transaction SM21.
           Restrict the time interval to 10 minutes before and five minutes
        after the short dump. Then choose "System->List->Save->Local File
        (Unconverted)".
        3. If the problem occurs in a problem of your own or a modified SAP
        program: The source code of the program
           In the editor, choose "Utilities->More
        Utilities->Upload/Download->Download".
        4. Details about the conditions under which the error occurred or which
        actions and input led to the error.
        The exception must either be prevented, caught within proedure
        "TMC2F_FROUT_CALL" "(FORM)", or its possible occurrence must be declared in the
        RAISING clause of the procedure.
        To prevent the exception, note the following:
    sm21 log ;
    Transaction Canceled 00 671 ( LOAD_PROGRAM_NOT_FOUND 20081010102203saptest_TET_00 EYUCE 100
    Update terminated
    > Update key: F39796DD5421F1509233001E0BD601E0
    > Update module: MCE_STATISTICS_UPD_V2
    Run-time error "LOAD_PROGRAM_NOT_FOUND" occurred

    Please follow the oss note 800335
    V2 Update terminations in Purchasing transactions after upgrading or installing AFS 5.0 release.
    Other terms
    AFS, LIS, MIGO, ME22N, OLI3, S433, S431
    Reason and Prerequisites
    AFS Purchasing infostructure S431 is no longer used. S433 is the valid infostructure for the release AFS 5.0.
    Solution
    Please do the following.
    For customers upgrading to AFS 5.0 only:
    > Rebuild Infostructure S433.
    - Goto transaction: OLI3 (Statistical Set up of Infostructures)
    - Info structure to be compile: S433
    - Specify the 'Name of run'.
    - Execute.
    > Please also follow the instructions given below.
    For both Upgrade and Non-upgrade Customers:
    > Create the report 'ZDELS431'.
    - Transaction: SE38
    - Give Program name as ZDELS431.
    - Create (F5).
    - Title : 'Program to delete S431'.
    - Type  : 1 (Executable Program).
    - Status: T (Test Program).
    > Copy the program text from the note and paste in the program.
    > Save and activate the program.
    > Execute the report for all clients in Update mode.
      (Two check-boxes will appear: P_ALL_CL, P_UPDATE.
       Please check both of them).
    This report will delete all the references to infostructure S431.

  • Creating inbound delivery for the purchase order line items

    Hi Experts,
    Please let me know how can I create inbound delivery for the purchase order line items?  Say, I have a purchase order with 5 line items in it.  I wanted to create an inbound delivery for only 2 line items at this point of time.  Which SAP Standard transaction I have to use and what all  data I need to populate?  I would appreciate any help on this and will reward the right answer.  Please let me know.
    Thank you in advance.
    with regards,
    Muthu Ganapathy.

    Hi,
    While creating the inbound delivery (VL31N), intially all the items will be shown, see the advance shipping notfication - from the vendor for which he has send confirmation & rest items you can delete simply & save. & next time when the vendor sends rest advance shipping notifcation (confirmation), you can receive them.
    Hope this answers your query.
    Regards
    Irfan.

  • Error delivery address in PO automatically created trigged by saved SO

    Dear all,
    I find delivery address in PO automatically created via PR trigged by SO, it is not crorrect.
    At present, delivery address in PO is the address of Plant not the ship to party address existing in SO.
    Because of third party sales, vendor will send goods to customer directly according to the delivery address that is from ship to party.
    I wish ship to party address will be copied to delivery address in PO
    How can I do?
    Thank you.

    HI,
    First thing to Ask is this this is a third party Scenario, the Item category should be "S"
    Third Party.
    So the Document type of the PO you are Using shoud have this Item category allowance.
    KOnw at the item level you can enter your customer code (that is Ship to party code)
    It also triggers automatically ,If there is a Sales order that triggers a Purchase req and that triggers a PO
    the customer number follows automaticaly.
    The linkage of creation of PR doc type  from Sales order has to be made in that respect. ( T code VOV6)
    For your Information
    the Delivey address comes from four ways
    Plant
    EKPO -Pass PO NUmber - collect the plant and pass in table T001W to get the address number
    and pass the address number to ADRC table
    Customer (third party)
    IN table EKPO -collect the customer Number-KUNNR and pass that value to KNA1 table and then get the address number and then get the address from ADRC table.
    Direct address number ( created by t code MEAN- Type ME01)
    This adress number-ADRNR can be taken from EKPO table and pass this value to adrc table to get the address.
    Vendor ( subcontracting)
    In this IN EKPO we will have the vendor field -LIFNR and this field collect the vendor number and pass in LFA1 and get the address number and then pass the address number to ADRC table
    If in EKPO,the address number and customer vendor field are blank then it picked from the plant and we have to default the Plant Address
    hope so it helps
    Regards
    Anjanna

  • How to enter a specific vendor for  the delivery costs in purchasing order?

    Now I want to create a purchasing order including planned deliver costs such as Freight, Coustoms ect, as the vendor of such planned deliver costs is different from the goods supplier, then How to enter a specific vendor for  the delivery costs in purchasing order? That means the partner for invoice partner will be two vendors at least in one purchasing order. thanks very much.
    <i>
    <b>No one would like to answer this question?</b></i>
    Message was edited by:
            King Qi

    hi, 
    You can have vendor at each condition record level.
    try it out.
    cheers
    Rav

  • Email Sending of Purchase Order Created versus Print Output

    Dear All,
    I have been successful in sending the Purchase Order created as a PDF Attachment in email.
    The problem i am facing is in the formatting of the attached output.
    The attachment has different bold characters as compared to the print output of the PO , though both the outputs are using the same sapscript.
    I am not able to find the reason for the difference.
    Only because of this reason, my delivery is on hold.
    Please guide me on how to find where the difference could be and how to rectify it.
    Thanks & Regards,
    Bhavika

    Could you tell us which fonts you tried?
    What device type did you choose? (SPAD transaction, select your output device to determine the device type)
    Could you upload TrueType fonts (one normal, one bold) with RSTXPDF2 program (do not tick "do not embed font in PDF" option so that the font is embedded in the PDF file)?
    Did you make sure that your font is not converted to another one? (SE73, printer font, choose your device type, click conversion button, and check what is the converted font)

  • Purchase order in Me21N, Me59N, MEMASSPO

    I need to insert an authority check when user try to create a purchase order in Me21N, Me59N, MEMASSPO. Does any one know an exit, bapi ... that involves all those transactions? Please help me.
    Thanks,

    Use the following auth objects in a role and test:
    M_BEST_EKO  ACTVT=01;EKORG= Purchasing Organization for which you want to give authorization
    M_BANF_BSA   ACTVT=01;BSART= Document type for which you want to give authorization
    Have a look at this note:
    751129 - Authorizations in Enjoy Transactions in Purchasing

  • Help Required in Ship To Address in Purchase Order

    Hi all,
    Is it not possible to have multiple ship to address made available as drop down list in Logistics tab of Purchase order.. It is possible in Sales order. I require the same as i need to ship the product from different location...
    In business partner it does allow the vendor to have multiple ship to address so would it not be possible to select any ship to address in purchase order...?
    Regards,
    Jona

    Hi Jona,
    The system does not provide this functionality. You could create an add-on that adds this drop-down list and populates the address field based on the address that the user chooses. However, you could use a formatted search to achieve the same kind of function.
    The following query could be set up as a formatted search on the address field:
    select
         case
              when Street = '' then ''
              when Street is not null then Street + char(13)
         end +
         case
              when Block = '' then ''
              when Block is not null then Block + char(13)
         end +
         case
              when City = '' then ''
              when City is not null then City + char(13)
         end +
                  case
              when County = '' then ''
              when County is not null then County + char(13)
         end +
                  case
              when Country = '' then ''
              when Country is not null then Country
         end +
                  case
              when ZipCode = '' then ''
              when ZipCode is not null then '  ' + ZipCode
         end
    from
         CRD1
    where
         AdresType = 'S'
                 and CardCode = $[$4.0.0]
    You should modify the script to fit your own address format requirements.
    Hope this helps,
    Owen

  • Source inspection before 365 days of delivery date of purchase order

    Hi Experts,
    Business wants to create source inspection lot well in advance before 365 days of delivery date of purchase order. this lot is required to record results.
    In SAP, transaction code QA51 allows only two digit characters for 'number of days for opening period' so system is not creating inspection lot for more than 99 days delivery date from current date.
    Please advise.

    Hi Patel, I really got interested on this particular issue because we have been using source inspection in our company for a while. After some investigation on ABAP code of report I will share with you my fact findings:
    1) System calculates the start date of source inspection (delivery date from PO - Leadtime from q-info record). For example, in my test case it was 14.08.2015 - 0 days. So field g_datum below will be 14.08.2015:
    2) System then checks if you are running the report in background (highlighted in yellow above). If so then it will check if the start date of inspection (g_datum) falls on opening horizon (g_datum_eroff). The opening horizon is calculated as per formula below (system login date + opening period). As an example: 14.08.2014 + 30 days = 13.09.2014.
    Default opening period (p_eroff) is 30 days:
    3) So all-in-all, when you are running QI07 online you´ll get a yellow traffic light on the long leadtime PO but you will be able to process it (on-line). However if you run the report in background (job scheduling) system will only create inspection lot to the relevant POs if the PO's delivery date falls on the 30 days window based upon the current date.

  • Delivery document from Purchase Order

    Hi Experts,
    How can I create a delivery document from Purchase order type NB?
    I have created a delivery from po type UB, and there is a shipping tab at the item. Do I need also a shipping tab in NB to create a delivery? If yes, how can I customize it?
    Thanks.

    Hi
    I think you are talking about NB for intercompnay stock transport order. For that you need to customization in below link
    spro>MM>purchasing>Purchase order>setup stock transport order
    Apart from STO there is no ther delivery for PO. Because for PO you can do only inbound delivery. For that you need to have confirmation control key defined in customization and then you need to give it in PO. Then you can create a inbound delivery for PO and gainst inbound delivery you can make GR.
    Regards
    Antony

  • Purchase Order created from different client machine with same login ID

    Hi,
    Purchase Order created from different machine using same Login ID. How to trace IP address of that Machines.
    Thanks
    Hemanth

    Hi;
    Please review:
    Re: sql to get Machine IP
    Regard
    Helios

  • Partrial Delivery Indicator in Purchase Order

    Dear Sir,
    I have been told that in Purchase Order Creation (ME21n / Me22n) we can mark the Partial Delivery Indicator at Item Level under the "DELIVERY Tab" .
    On Clicking the Delivery Tab , I am not finding any field for Partial Delivery Indicator .
    Kindly help me , as what steps need to be followed so that this Field start appearing .
    With Thanks and Rgds
    Sonia

    Dear Mr Vivek
    We want to mention in the Purchase Order , whether Partial Delivery is acceptable or Not .
    As per following sap help literature , it is possible to mention such requirement.
    http://help.sap.com/saphelp_crm40/helpdata/en/dd/5607f4545a11d1a7020000e829fd11/content.htm
    Rgds
    Sonia

Maybe you are looking for

  • Using MS Access to Pull Up the Report Viewer - Crystal Reports 2008

    We recently purchased Crystal Reports 2008 Developer so that we can create standardized and feature rich reporting solutions for our company. Many of our current applications are developed in MS Access XP. It has been quite some time since I have wor

  • Selection of  TCP/IP Or FILE Port

    Hi Experts, I have one Doubt While We are doinng IDOC To File Scenario. We have to Create Port In WE21 of Type TCP /IP. If We Select the Type As FILE Means What wil Happend. Please Explain me little bit on this. Regards Sesh

  • Having difficulty finding who to report a junk mail that supposedly came from Firefox.

    I received this in my junk mail today. The incoming address was: [email protected] Thanks for checking on it. Sir/Madam, Your E-mail Address has won (Seven Hundred and Fifty Thousand Great British Pounds only) GBP750,000 in the Mozilla Firefox this y

  • Iphone won't charge or connect to itunes

    My iphone 4 won't connect to itunes or charge anymore.  The last time it connect to itunes was before the ios 6.1 upgrade.  But, i was starting to have problems before that. Sometimes it would charge and other times not. Now, nothing...I've tried dif

  • Hiding MobileMe Button on toolbar?

    Is there anyway to hide the MobileMe button on my toolbar? There is no option in the preferences. I'll never use this service (nothing personal), and I'm a bit of a neat freak when it comes to the icons I see on my desktop. Any ideas?