Accessing Address from ADRC table

Hi,
When inputting a delivery address in a PR the three options are to search by customer, vendor, or input an address.  My questions is how do you access inputted addresses?  These inputted addresses are saved in the ADRC table, but when creating a new PR how can I search and retrieve these addresses for use? 
Thanks for your help!

Hi,
Please try this piece of code
data: wa_addr1_sel like addr1_sel,
wa_addr1_val like addr1_val.
clear : wa_addr1_sel, wa_addr1_val.
wa_addr1_sel-addrnumber = it_adrnr-adrnr.
call function 'ADDR_GET'
exporting
address_selection = wa_addr1_sel
importing
address_value = wa_addr1_val
exceptions
parameter_error = 1
address_not_exist = 2
version_not_exist = 3
internal_error = 4
others = 5.
if sy-subrc eq 0.
it_addr-adrnr = wa_addr1_val-addrnumber.
it_addr-name1 = wa_addr1_val-name1.
it_addr-street = wa_addr1_val-street.
it_addr-city = wa_addr1_val-city1.
it_addr-region = wa_addr1_val-region.
append it_addr.
clear it_addr.
endif.
Regards
Hiren k.Chitalia

Similar Messages

  • Function Module to get address from adrc table

    Hi,
    Is there any Function module which is retrieving data from ADRC table by passing address number.
    I tried in SDN and I got address_read but its obsolete.

    Hi,
    Please try this piece of code
    data: wa_addr1_sel like addr1_sel,
    wa_addr1_val like addr1_val.
    clear : wa_addr1_sel, wa_addr1_val.
    wa_addr1_sel-addrnumber = it_adrnr-adrnr.
    call function 'ADDR_GET'
    exporting
    address_selection = wa_addr1_sel
    importing
    address_value = wa_addr1_val
    exceptions
    parameter_error = 1
    address_not_exist = 2
    version_not_exist = 3
    internal_error = 4
    others = 5.
    if sy-subrc eq 0.
    it_addr-adrnr = wa_addr1_val-addrnumber.
    it_addr-name1 = wa_addr1_val-name1.
    it_addr-street = wa_addr1_val-street.
    it_addr-city = wa_addr1_val-city1.
    it_addr-region = wa_addr1_val-region.
    append it_addr.
    clear it_addr.
    endif.
    Regards
    Hiren k.Chitalia

  • POWL accessing data from multiple tables/objects

    Hello,
    I have a query on the POWL applications.
    If the powl application has to access data from multiple tables/objects, then the solution would be creating a data structure of those tables/objects and referring to that structure in GET_OBJECT_DEF methods.
    Is there any other soln? or I am right here?
    The queries which are saved for a particular user are transportable? if not, how can they be made transportable?
    Thanks & regards,
    Ravish

    you are right, you can do in get_objects method.
    POWL_QUERIES are transportab;e, you can save them in POWL_QUERY transaction.
    Best regards,
    Rohit
    http://wiki.sdn.sap.com/wiki/display/WDABAP/POWL

  • Function Module to retrieve Address from the table ADRC

    Is there any function module available to retrieve data from ADRC by using the ADDRNUMBER as input

    Try using FM: ADDR_GET
    This has import parameter ADDRESS_SELECTION which contains ADDRNUMBER.
    Hope this helps.
    Please reward if it works.
    Vallabh.

  • Field selection from adrc table

    HI all,
            Actually selecting some fields into say table t_likp based value entered for vbeln.
          by takin t_likp-vbeln i can go to vbpa and select adrnr from vbpa for parvw eq 'sh'. my question is can i take this vbpa-adrnr
    and go to adrc directly for detailed address or
    is it necessary for me to go to kna1  from vbpa-kunnr and get the adrnr number form kna1 to go to adrc?
    plz help.
    thnks n regards,
    Ahmita

    Hi,
    try this way..
    *        Fetching Sales order number
              SELECT SINGLE * FROM ekkn INTO w_ekkn
              WHERE ebeln = xekko-ebeln
              AND   ebelp = xekpo-ebelp.
    *         If sales order number exist for PO and PO item then looking
    *         for Address number to get the details and modifying
    *         (Overwriting)the Existing Address Details in segment 'E1EDKA1'
              IF sy-subrc = 0 AND w_ekkn-vbeln IS NOT INITIAL.
                SELECT SINGLE *
                  FROM vbpa
                  WHERE vbeln = w_ekkn-vbeln
                    AND posnr = '000000'
                    AND parvw = 'WE'.
                IF sy-subrc = 0.
                  SELECT SINGLE * FROM adrc WHERE addrnumber = vbpa-adrnr.
               ENDIF.
           ENDIF.
    Prabhudas

  • Accessing data from db table on another client on a separate server

    Hi
    We are trying to access data from a db table on client 400 NSQ with a program running on client 200 NSD. We are also trying to find the name of the table in which the connection configuration should be maintained. The two clients are on separate servers.
    Regards
    B.Garlipp
    Edited by: B.Garlipp on May 31, 2010 9:22 AM

    Create an RFC destination for NSQ system client 400 into your system where program is running (in this case NSD Client 200)
    Now in your program you can call function module RFC_READ_TABLE (with reference to this destination) to read entries from the other system.
    If you know ABAP, In fact you can create a Z RFC FM specific for this tables, so that you get the data in exact structure. This is because RFC_READ_TABLE returns data in text format with a delimiter.
    Cheers.
    Edited by: Rashid Javed on May 31, 2010 10:36 AM

  • Seperating Shipping address from Invoice Table

    Ship Address gets stored in one field address in OINV or ORDR Table
    any way to link that to master Address table to get address separated by address1,address2,city,state and zip
    or any other thoughts

    This query will pull the address components from crd1 as they exists at the time the query is run, not when the order/invoice was posted. Just a warning.
    Since there is nothing to stop a user from editing an existing address, this query could returned a parsed address that is different in every respect except address name and address type from the address that was actually used for the order or invoice on the logistics tab.
    If what you really need is the parsed out address from the logistics tab, you have some work ahead of you. I've got a rudimentary parser that I have written, and it works fairly well for US addresses, but for international addresses, due to differences in logistics tab address formats, it breaks down.

  • How to access data from Cluster table....?

    Hi Experts,
    Can You plz tell How to import/read data from cluster table? Plz give me the syntaxes also..
    Thanx in advance.

    Types of TABLES and the differences
    Transparent tables
    Pool tables
    Cluster Tables
         From the user point of view, all tables are used to store data and there is no difference in behavior or operation of these tables. All of them can be managed by using the standard OPEN SQL. However from the administrator point of view, transparent tables do exists with the same structure both in the directory as well as the database, exactly with the same data and fields. While other two are not transparent in the sense that they are not manageable directly using database system tools. We cannot use Native SQL statements on these tables. These are logical tables, which are arranged as records of transparent tables.

  • How to access data from SAP Tables from a Webi report

    hi all,
    I have a webi report for financial data and from a Bex query which is build on a Cube (this has data from 2 SAP ECC systems)
    i want to build a functionality where in i can call some SAP Table data from this webi report. i should be able to pass information or some hard code where it can understand the source system it has to pick data from.
    in SAP BI, we have this ption wherein we can achieve this through RRI..
    is this possible in Webi ?
    Thanks
    SKS

    Hi.
    Create a universe on top of SAP Tables and create a webi report.
    Using hyper link /open doc we can call  this report from the webi report created on top of your Cube .
    @Sri

  • Is there any easy way to compare LIKE Addresses from one table, which contains 3rd party data, to another table, our database source

    We have a 3rd party that is supplying us data and we need to compare the addressing between the 3rd party data to our source database addressing. I'd like to make it somewhat flexible meaning I'd like to somehow use the LIKE comparison rather than comparing
    the exact address values. (I have noticed that the 3rd party addressing sometime has a leading <space> at the beginning of the address...why I'd prefer to use LIKE)
    Is there any easy way to do this? Or does this dictate using a CURSOR and processing through the CURSOR of 3rd party data and plugging in the address LIKE as dynamic SQL?
    Please let me know your thoughts on this and I appreciate your review and am hopeful for a reply.

    Yes, it's possible and there are a variety of options but it's may not be for the faint of heart.
    The last time I did it, I ended up taking several passes at the data.
    1st pass was a straight up comparison with no modifications or functions.
    2nd pass was the same but with all special characters removed.
    3rd pass involved splitting the numeric portion of address and comparing just the street numbers and used a double meta-phone function (kind of like a soundex on steroids) to compare the street names.
    Jason Long

  • How to access records from two tables which have no relation

    Hi,
    I trying to generate a report where i need to print the company details at the top of the page and invoice details of that down the page.There is no relation between these two tables.I am not able to write two queries for one report.Pls some one assist me in getting this thing done.
    Regards,
    Tulacenath.

    Hi Tulacenath
    So your invoice table does not have a reference to the customers (companys) that the invoices belong to?
    Tim

  • Entries in ADRC table

    Dear All ,
    we are printing a Tax invoice , and our Z program is picking our plant address from ADRC table .
    can Anybody pl guide me from which master or Configuration data this ADRC table is getting the data .
    Pl guide , i have tried with changing the address of Plant in SPRO enterprise structure but not replicated to ADRC table.
    regards

    Hello,
    This is SAP Standard, there is no config involved.
    Every Address of a Object (Customer, Vendor or Plant) is assigned a Address Number. In case of Customer it is KNA1 - ADRNR, for Vendor it is LFA1 - ADRNR, similarly for Plant & other Organizational objects.
    Now the actual address is stored in ADRC table & it can be pulled by using the Address Number (ADRNR) of the object, i.e. Customer / Vendoer etc...
    Hope this helps...
    Thanks,
    Jignesh Mehta

  • Is there a single FM / BAPI to fetch address form ADRC ?

    Can anyone inform if there is a Single FM/ BAPI which take customer number as input the fetch address from ADRC table ? I know about the function module ADDR_GET but in that you need to pass on the address number to get the address I am lookign for one function which get the address for a given customer number or name.

    Hi Rajey,
    Welcome to SDN.
    You can use FM V_KNA1_GET_ADDRESS_NUMBER.
    The address data you find in KNA1 and ADRC are always the same, the central addresses administration is active only from last releases (I think > 4.0A).
    Hope this will help.
    Regards,
    Ferry Lianto

  • Delivery address by po table

    Hello all,
    Can anyone help me create a report in sqvi by using a table if it exists or maybe a logical data base?
    I need a report that will show me the address (ADDR1_DATA table) for a certain PO number.
    Thanks

    HI,
    The First Question is regarding the PO Conditions.
    For Extracting the same. we have to Go to The Table EKKI and in this table pass the PO Number and after entering the PO NUmber ,at each item level we will have a condition record number KNUMV created,
    collect the condition record number and pass the value in KONV table ,in that table we will get all the conditions and its values maintained.
    The second question is the delivery Address
    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.

  • Craeting data fiel for data from KNA1 and ADRC table...

    Hi,
    I want to create a data file (tab delimited) which will have data from two tables, KNA1 and ADRC. The customer number, Name1 and Name2 fields data will come from KNA1 but the Street field data will
    come from ADRC table. The ADRNR number will be a linkage between two tables KNA1 and ADRC.
    I don't want to write a reprot for this. Can someone tell me if I can use SQVI for this and then go to options download in excel sheet directly from the menu.
    Is there any other smarter way to do it ?
    Regards,
    Tushar.

    Use an inner join between KNA1 and ADRC...The use <b>GUI_DOWNLOAD</b> FM to download the file...
    Greetings,
    Blag.

Maybe you are looking for

  • No Data Found Exception in bulk updates

    I am trying to catch no data found exception in bulk updates when it does not find a record to update in the forall loop. OPEN casualty; LOOP FETCH casulaty BULK COLLECT INTO v_cas,v_adj,v_nbr LIMIT 10000; FORALL i IN 1..v_cas.count UPDATE tpl_casual

  • Simple caching in singleton DAO

    Suppose I was to use a DAO like this in a web application. Different threads would be concurrently accessing this code from different servlets, struts actions, JSP pages, whatever. import java.util.Map; import java.util.HashMap; public class CacheSin

  • Reinstalling PSE 8

    I uninstalled PSE 8 from my pc because I was having issues.  Now I'm trying to reinstall it and keep recieving the following msg.  "Error opening installation log file.  Verify that the specified log file location exists and is writable"

  • Create alias to folder on internet...

    I have a computer on the internet that I can log onto using ssh. Is it possible to create a folder icon for this computer that will allow me to access the computer easily? So far the only way I know how to access it from Mac OS X is using the termina

  • Satellite P305-S8832 - Media buttons don't work with Win7

    Hello Wise Friends, Recently I installed two brand new hard drives (500GB 7200 rpm OS/ 500GB 5400 rpm DATA) and I did a clean installation of Windows 7 Home Premium 32 bits on my 3 1/2 Toshiba Satellite P305-S8832. Everything but the media buttons is