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.

Similar Messages

  • Need Help in improving logic for determining the range

    Hi guys,
    I need some help in my program logic to determine the range of value. My purpose of this program is to find which combinations have the lowest amplitude.
    In the attachment is a set of number.
    e.g 10    0 is a combination.
    Each combination, I will need to draw a graph of data acquired using this combination VS gray level. There is 255 gray level. Every 5 gray level I will acquire a point so I will have 52 points.
    Next, I will get the maximum value - minimum value. And this is the amplitude for the combination. I can do all this function, however it is not practical for me to do it this way until 360 360. There is a round 1200+ combination. It requires a long time since I need to interface all this function with my hardware.
    The graph of each combination maybe a irregular shape. Do any of you have a logic to help me to shorten the process and find the range of values (combination) where the lowest amplitude may lies. Thanks!!
    Attachments:
    example.txt ‏11 KB

    Hi Johnsold,
    This is a example of my result. This is only a portion of it. The last column is the amplitude, I store all the 52 points into array and used Array Min and Max function. Then I use max - min to get the amplitude. From the amplitude I cannot see any pattern. Can you please advice me on it. Thanks!!!

  • Determine Default Delivery Addresses

    Hi
    I want to determine the delivery addresses at the time of creating PO. For this an user exit is there. Can any one explain the scenario?

    Hi,
    If u are creating PO from PR , System automatically picks Devlivery Address from PR , in the same way u can do for PO without PR , thru Config.
    so check in SPRO .
    Regards
    Prabhu

  • 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

  • Exch.Rate Type for Determining the Proposed Rate

    Dears,
    I defined, in the document type to be used for Goods Receipt, the field T003-KURST (Exch.Rate Type for Determining the Proposed Rate) equal to u2018Pu2019: exchange rate type used also for standard translation for cost planning.
    Then, I created a Purchase Order using a vendor in foreign currency, and in the header section within tab u2018Delivery/Invoiceu2019 in field "Exchange Rate" I filled in the exchange rate valid at the moment of the Purchase Order creation and I also put the flag in the indicator "Fixing of Exchange Rate".
    Afterwards, I posted  the Goods Receipt against the Purchase Order created at the previous step.
    My expectations were to find in FI accounting:
    - 1 line item for stock increase (transaction BSX) valuated using the exchange rate defined in the document type in field T003-KURST;
    - 1 line item for GR/IR increase (transaction WRX) valuated using the exchange rate defined in the Purchase Order and indicated as fixed;
    - 1 line item for difference (transaction PRD) between stock and GR/IR.
    but when I checked the accounting document, these my expectations were not met, because:
    - the line item for stock increase (transaction BSX) has not been valuated using the exchange rate defined in the document type in field T003-KURST, but a differet exchange rate that I didnu2019t find defined for this couple of currencies;
    - the line for GR/IR increase (transaction WRX) has been valuated as expected using the exchange rate defined in the Purchase Order and indicated as fixed;
    - the line item for difference (transaction PRD) between stock and GR/IR has been created.
    The help (F1) for field T003-KURST, show the following indication:
    Exch.Rate Type for Determining the Proposed Rate
        Rate type under which the proposed rate is defined for foreign currency documents.
    Use
        If no exchange rate is specified in the document header when entering documents in foreign currencies, the system will automatically select a rate from the currency translation rate table.  The system then converts all amounts in the document's line items using this exchange rate.
        The system uses the average rate as a default value as long as no other exchange rate type is entered here.
    Based on this message, my expectation is that all documentu2019s line items have to be converted at the exchange rate type defined in field T003-KURST. And in the case mentioned above, the line for stock (BSX) should be converted at exchange rate type defined in field T003-KURST.
    While, correctly, the line for GR/IR (WRX) has been converted at the exchanged rate fixed in the purchase order.
    Can you please let me know how can be fixed the problem for the line related to the stock allowing the conversion using the exchange rate type defined in field T003-KURST?
    Thanks and Regards,
    Jody

    Hello Jody,
    kindly consider the information contained under the attached note:
    191927 - Posting logic: GR for foreign currency PO.
    As stated in it:
    Postings to the material stock account (BSX):
    In order to be able to determine the value of the stock posting, the
    valuation methods which exist in the material master in local currency
    (standard price, total value of stock) must be converted into document
    currency. This translation is thus carried out on the posting date with
    the exchange rate type that is assigned to the FI document type used,
    that is, independent from the exchange rate defined in the purchase
    order!
    If no exchange rate type is assigned to an FI document type, the system
    uses exchange rate type M.
    Please, check in your system the settings stored in the customizing
    transaction OBF4 for the document type WE (Goods receipt). If the field
    'Exch.Rate Type for foreign currency documents' is empty, the exchange
    rate type M is used.
    The fixed conversion rate in the purchase order refers to the valuation
    approach in the purchase order and, therefore, to the costs for the
    purchased material. Therefore, the posting amount to the GR/IR clearing
    account (WRX) is converted according to the fixed conversion rate in the
    purchase order header.
    On the other side the fixed conversion rate in the purchase order is not
    designed for converting the posting values to the material stock account
    (BSX). This conversion reflects the situation of the valuation of the
    material stock and is therefore designed to be independent of the
    conversion rate defined in the purchase order. This is what note 191927
    outlines.
    In the note 191927 you will also locate relevant information about the
    postings to the KDM key:
    Exchange rate differences (KDM):
    As of Release 4.0A, exchange rate differences (KDM) can be posted to a
    separate account. The exchange rate differences result from the
    difference of the clearing value on the GR/IR clearing account (WRX) in
    document currency that is translated to the current exchange rate stored
    in the system in local currency from the clearing value in local
    currency that is determined with the conversion factor from the purchase
    order or the invoices.
    The offsetting entry for the exchange rate differences is settled with
    the price difference.
    (Price difference = GR/IR amount - stock value - exchange rate
    difference)
    KDM is only posted during the GR if the flag T169P-XPLCU is initial,
    therefore, KDM postings will not occur during incoming invoices.
    This is determined in the IMG path:
    Materials Management
    -> Logistics Invoice Verification
       -> Incoming Invoice
          -> Configure How Exchange Rate Differences Are Treated
    Here, you have the following options per Company Code:
    .- The exchange rate differences will be calculated from the difference
       between the exchange rate at the time of the goods receipt and the
       exchange rate at the time of the invoice receipt.
    .- The exchange rate differences will be calculated from the difference
       between the exchange rate at the time of the invoice receipt and an
       assumed exchange rate that is valid for a specific amount of time,
       such as a year or a season.
    .- No exchange rate differences will be calculated. Instead, differences
       from exchange rate variations will be considered as price differences
       and posted to a price difference account.
    The field T001A-CURDT for the company code will determine which date is
    relevant to calculate the exchange rate difference.
    This is set under the IMG path:
    Financial Accounting
    -> Financial Accounting Global Settings
       -> Company Code
          -> Multiple Currencies
             -> Define Additional Local Currencies
    So, finally, the value for KDM calculates as difference between
    GR/IR amount in local currency - GR/IR amount in foreign
    currency*exchange rate.
    I hope this information can be of help.
    cheers
    ray

  • Order as Direct Material Changes the Delivery Address

    Hello,
    We have encountered an odd behavior when the Order as Direct Material button is pressed. The delivery address that previously displayed is changed to the plant address.
    Is this normal? Can it be de-activated so that is does not changes the address?
    Regards, Dean

    Muthu,
    Thanks for the reply.. been busy...Is there a way to change this behavior with BADIs, etc? I think I can do it BBP_DOC_CHANGE_BADI. However, I thought there might be a more elegant way .
    Regards, Dean.

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

  • Check of field values from the delivery address in PO

    The customer likes to check a field from the delivery address (f.e. NAME1) before the PO is saved. I looked for Userexits but diddn't find any. The only way sees to be a modification. The question is where to modify...

    Name 1 fields is under Delivery Address tab for PO line item details.        -> This was not my question
    It can be maintained i n SPRO itself by defining Address for store locations .  -> This was not my question
    User have to put storage location in PO line Item itself then Name 1 field will displayed values in SPRO -> This was not my question
    It has to be CHECKED by the system if the content of field NAME1 (from wherever the system gets the address) equals to a special text. There must be a statement such as:
    if ADDR1_DATA-NAME1 eq '1234657678' ....
    The problem is to identify the right include where i can get the relevant fields.

  • I cannot order photo prints from iphoto. Error says that the delivery address is in an unsupported country. The address and my account are in the UK. Does anyone have any ideas?

    I cannot order photo prints from iphoto. Error says that the delivery address is in an unsupported country. The address and my account are in the UK. Does anyone have any ideas?

    I cannot order photo prints from iphoto.
    Are you trying to print from iPhoto on your Mac or iPad/iPhone? If you are trying to print form yor Mac, check, if the Print Products Store in the iPhoto Preferences > Advanced is set to U.K.
    Also the bimmling address, Delivery address, the country for your AppleID and Credit Card must all be in the same country. Check this document:
    http://store.apple.com/uk/help/print_products
    -- Léonie

  • SAP logic for calculating the replenishment requirement - IS Retail

    Hi All,
              Could you explain from where does the RPLRQ field is getting picked up from the WRPT table.And what is the SAP logic for calculating the replenishment requirement for a particular article.
    Regards,
    PSS

    Dear PSS,
    Field RPLRQ represents for the replenishment requirement determined in the previous replenishment run. This can be changed when follow-on documents are created if order optimizing is active (for example, if quantities are to be rounded off).
    Bye,
    Muralidhara

  • HT1349 how can I change an email for authorization, the email address we used years back, is no longer a valid email address

    how can I change an email for authorization, the email address we used years back, is no longer a valid email address

    SfromW wrote: ... how can I change an email for authorization, the email address we used years back, is no longer a valid email address
    How to change account here: http://support.apple.com/kb/PH1641
    If you need more help, start here: http://www.apple.com/support/itunes/
    SfromW wrote: ... we can't remember the password from the old email address (for authorization)...
    Help Retrieving and changing passwords here: http://support.apple.com/kb/HT1911
    If you need more help, from iTunes for Windows, click  iTunes > iTunes Store > Support
    SfromW wrote: ... apple should make it easier to transfer authorization authority....I would think anyways.
    You might want to rethink your thoughts about making transferring authority easier.  Making it too easy would certainly degrade your account's security.  If you still believe it should be easier, you can send feedback directly to Apple via http://www.apple.com/feedback/itunesapp.html
    You will not get a response, but you can be certain that the responsible Apple people will see your input for consideration in FaceTime product development.
    As a new user, please understand that you are NOT directly addressing Apple here.  For more info about Apple discussions, start here: http://discussions.apple.com/static/apple/tutorial/etiquette.html 
    Message was edited by: EZ Jim
    Mac OSX 10.7.4

  • Function Module for Posting the Delivery Doument

    Dear Experts,
            Could you please send me the Function Module for Posting the Delivery Doument.
    Thanks & Regards,
    Ashok.

    Hi,
    What do you mean by POSTING the delivery document?
    Are you mentioning the creation of Goods Issue?

  • Regarding configuration of "Parameters for determining the basic dates"

    Hi All,
    Can anyone give inputs in which scenario we need to use the configuration "Parameters for determining the basic dates".
    1)Do we have any restrictions for usage of above IMG configuration, 2) any pre-requisites to use the configuration of "Parameters for determining the basic dates" and 3)does configuration of this task is having any integration with any other modules, if yes what is the point of integration with other modules.
    Thanks in advance.

    Dear Aditya,
    Parameters for determining the basic dates in production order are used to calculate the Basic Start date & End date of Production order. It Determines if and how the basic dates or the dependent requirements dates are adjusted during lead time scheduling. You can customize this in OPU3 for planned order & OPU5 for Production Order.
    There are the following possibilities:
    1.The basic dates are adjusted and the dependent requirements are scheduled for the start dates of the relevant operations.
    2.The basic dates are not adjusted and the dependent requirements are scheduled for the start dates of the relevant operations.
    3.The basic dates are adjusted and the dependent requirements are scheduled for the order basic start date.
    4.The basic dates are not adjusted and the dependent requirements are scheduled for the order basic start date.
    1)Do we have any restrictions for usage of above IMG configuration
    For scheduling this has to be. If you want that start date should be calculated based on Inhouse production time & not on routing select opetion 2 or 4
    2) any pre-requisites to use the configuration of "Parameters for determining the basic dates"
    Not as such
    3)does configuration of this task is having any integration with any other modules
    Not directly but with MM to determine dependent requirement Proposal.
    Regards
    ABhijit Gautam.

  • Source deter. for MM sch agreement when the delivery address is a SC vendor

    HI Guys,
    I have one issue with the source determination while running MRP for a material.
    Material A-having MMSA and delivery address is  address of Sub contracting vendor(SC vendor check box checked)
    for the above case MRP is generating a P req instead of schedule lines in the MMSA.I have maitained the source list.
    When i deselect the check box SC vendro in the delievery address tab it is working fine i.e Schedule line are created automatically by MRP.
    Could you please help me to find out what is the reason behidn this/
    Thanks
    Bhadra

    its because of sub-contracting tick its not taking as schedule line

  • Logic of determination of delivery in subcontracting

    Subcontracting with delivery
    we can issue material to subcontractor via delivery also.
    how the delivery is determined by the system when there is no sales order.
    I know the customizing settings from MM and SD side , but am not able to find the logic how the system knows  this

    You can set a default delivery type by plant for subcontracting.  The default value is stored in table T161V (LB is the standard).  You can change the delivery type by using menu path Materials management - Purchasing - Purchase order - Setup subcontract order.
    Thanks,

Maybe you are looking for