<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: A sample code to reterieve fields from ADDR1_DATA using fun. ADDR_GET in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-sample-code-to-reterieve-fields-from-addr1-data-using-fun-addr-get/m-p/1076785#M96533</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or try fm ADDR_GET_COMPLETE:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TYPE-POOLS: szadr.
DATA adr_kompl TYPE szadr_addr1_complete.
DATA adr1 TYPE szadr_addr1_line.
DATA adtel TYPE szadr_adtel_line.
DATA admail TYPE szadr_adsmtp_line.
DATA adfax TYPE szadr_adfax_line.
...

  CALL FUNCTION 'ADDR_GET_COMPLETE'
       EXPORTING
            addrnumber              = AUFK-ADRNRA
       IMPORTING
            addr1_complete          = adr_kompl
       EXCEPTIONS
            parameter_error         = 1
            address_not_exist       = 2
            internal_error          = 3
            wrong_access_to_archive = 4
            OTHERS                  = 5.

*read Adress
  READ TABLE adr_kompl-addr1_tab INTO adr1
             WITH KEY data-date_to = '99991231'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andreas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Dec 2005 07:36:46 GMT</pubDate>
    <dc:creator>andreas_mann3</dc:creator>
    <dc:date>2005-12-05T07:36:46Z</dc:date>
    <item>
      <title>A sample code to reterieve fields from ADDR1_DATA using fun. ADDR_GET</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-sample-code-to-reterieve-fields-from-addr1-data-using-fun-addr-get/m-p/1076782#M96530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to reterieve the fields like BUILDING, CITY, REGION, NAME1, NAME2, NAME3 from the structure ADDR1_DATA, using a function module ADDR_GET with address number from the table AUFK(AUFK-ADRNRA).I would be helpful if u provide me with a sample coding.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2005 06:28:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/a-sample-code-to-reterieve-fields-from-addr1-data-using-fun-addr-get/m-p/1076782#M96530</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-05T06:28:45Z</dc:date>
    </item>
    <item>
      <title>Re: A sample code to reterieve fields from ADDR1_DATA using fun. ADDR_GET</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-sample-code-to-reterieve-fields-from-addr1-data-using-fun-addr-get/m-p/1076783#M96531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can try out RFITEMAP.&lt;/P&gt;&lt;P&gt;This is a SAp standard report which uses the same function.Also you can put the function name in SE37 and then check the where-used List. This function is used quite often for the same.&lt;/P&gt;&lt;P&gt;Hope it may be of your use.&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2005 06:33:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/a-sample-code-to-reterieve-fields-from-addr1-data-using-fun-addr-get/m-p/1076783#M96531</guid>
      <dc:creator>amit_khare</dc:creator>
      <dc:date>2005-12-05T06:33:23Z</dc:date>
    </item>
    <item>
      <title>Re: A sample code to reterieve fields from ADDR1_DATA using fun. ADDR_GET</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-sample-code-to-reterieve-fields-from-addr1-data-using-fun-addr-get/m-p/1076784#M96532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pass the parameters to ADDR_GET &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  DATA:
    lf_addr1_sel     TYPE addr1_sel,
    lf_addr1_val     TYPE addr1_val.
data: x_addr1_data type addr1_data.
    lf_addr1_sel-addrnumber = id_addrnumber.
    CALL FUNCTION 'ADDR_GET'
      EXPORTING
        address_selection             = lf_addr1_sel
*       ADDRESS_GROUP                 =
*       READ_SADR_ONLY                = ' '
*       READ_TEXTS                    = ' '
      IMPORTING
        address_value                 = lf_addr1_val
*       ADDRESS_ADDITIONAL_INFO       =
*       RETURNCODE                    =
*       ADDRESS_TEXT                  =
*       SADR                          =
*     TABLES
*       ADDRESS_GROUPS                =
*       ERROR_TABLE                   =
*       VERSIONS                      =
      EXCEPTIONS
*       PARAMETER_ERROR               = 1
*       ADDRESS_NOT_EXIST             = 2
*       VERSION_NOT_EXIST             = 3
*       INTERNAL_ERROR                = 4
        OTHERS                        = 5.
    IF sy-subrc = 0.
      MOVE-CORRESPONDING lf_addr1_val TO x_addr1_data.
    ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;from x_addr1_data retrieve the info.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2005 06:37:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/a-sample-code-to-reterieve-fields-from-addr1-data-using-fun-addr-get/m-p/1076784#M96532</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-05T06:37:26Z</dc:date>
    </item>
    <item>
      <title>Re: A sample code to reterieve fields from ADDR1_DATA using fun. ADDR_GET</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-sample-code-to-reterieve-fields-from-addr1-data-using-fun-addr-get/m-p/1076785#M96533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or try fm ADDR_GET_COMPLETE:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TYPE-POOLS: szadr.
DATA adr_kompl TYPE szadr_addr1_complete.
DATA adr1 TYPE szadr_addr1_line.
DATA adtel TYPE szadr_adtel_line.
DATA admail TYPE szadr_adsmtp_line.
DATA adfax TYPE szadr_adfax_line.
...

  CALL FUNCTION 'ADDR_GET_COMPLETE'
       EXPORTING
            addrnumber              = AUFK-ADRNRA
       IMPORTING
            addr1_complete          = adr_kompl
       EXCEPTIONS
            parameter_error         = 1
            address_not_exist       = 2
            internal_error          = 3
            wrong_access_to_archive = 4
            OTHERS                  = 5.

*read Adress
  READ TABLE adr_kompl-addr1_tab INTO adr1
             WITH KEY data-date_to = '99991231'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andreas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2005 07:36:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/a-sample-code-to-reterieve-fields-from-addr1-data-using-fun-addr-get/m-p/1076785#M96533</guid>
      <dc:creator>andreas_mann3</dc:creator>
      <dc:date>2005-12-05T07:36:46Z</dc:date>
    </item>
    <item>
      <title>Re: A sample code to reterieve fields from ADDR1_DATA using fun. ADDR_GET</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-sample-code-to-reterieve-fields-from-addr1-data-using-fun-addr-get/m-p/1076786#M96534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can u provide the same addr_get function module using subroutine perform and form.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Dec 2005 10:33:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/a-sample-code-to-reterieve-fields-from-addr1-data-using-fun-addr-get/m-p/1076786#M96534</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-10T10:33:54Z</dc:date>
    </item>
    <item>
      <title>Re: A sample code to reterieve fields from ADDR1_DATA using fun. ADDR_GET</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-sample-code-to-reterieve-fields-from-addr1-data-using-fun-addr-get/m-p/1076787#M96535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt; DATA:
    lf_addr1_sel     TYPE addr1_sel,
    lf_addr1_val     TYPE addr1_val.
data: x_addr1_data type addr1_data.
    lf_addr1_sel-addrnumber = id_addrnumber.


perform addr_get using lf_addr1_sel.


form addr_get isong p_addr1_sel type addr1_sel.

    CALL FUNCTION 'ADDR_GET'
      EXPORTING
        address_selection             = p_addr1_sel
*       ADDRESS_GROUP                 =
*       READ_SADR_ONLY                = ' '
*       READ_TEXTS                    = ' '
      IMPORTING
        address_value                 = lf_addr1_val
*       ADDRESS_ADDITIONAL_INFO       =
*       RETURNCODE                    =
*       ADDRESS_TEXT                  =
*       SADR                          =
*     TABLES
*       ADDRESS_GROUPS                =
*       ERROR_TABLE                   =
*       VERSIONS                      =
      EXCEPTIONS
*       PARAMETER_ERROR               = 1
*       ADDRESS_NOT_EXIST             = 2
*       VERSION_NOT_EXIST             = 3
*       INTERNAL_ERROR                = 4
        OTHERS                        = 5.
    IF sy-subrc = 0.
      MOVE-CORRESPONDING lf_addr1_val TO x_addr1_data.
    ENDIF.


endform.&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Dec 2005 10:40:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/a-sample-code-to-reterieve-fields-from-addr1-data-using-fun-addr-get/m-p/1076787#M96535</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-10T10:40:58Z</dc:date>
    </item>
    <item>
      <title>Re: A sample code to reterieve fields from ADDR1_DATA using fun. ADDR_GET</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-sample-code-to-reterieve-fields-from-addr1-data-using-fun-addr-get/m-p/1076788#M96536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I NEED MORE CLARIFICATION.&lt;/P&gt;&lt;P&gt;THIS IS OK BUT I NEED TO USE THE IF_ADDR1_VAL FOLLOWING THE PERFORM STATEMENT, I ORDER TO ACHIEVE IT THEN HOW SHOULD THE PARAMETERS OF THE SUBROUTINE PERFORM BE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM ADDR_GET USING lf_addr1_sel.&lt;/P&gt;&lt;P&gt;MOVE-CORRESPONDING lf_addr1_val TO x_addr1_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM ADDR_GET USING lf_addr1_sel&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Dec 2005 10:49:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/a-sample-code-to-reterieve-fields-from-addr1-data-using-fun-addr-get/m-p/1076788#M96536</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-10T10:49:12Z</dc:date>
    </item>
    <item>
      <title>Re: A sample code to reterieve fields from ADDR1_DATA using fun. ADDR_GET</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-sample-code-to-reterieve-fields-from-addr1-data-using-fun-addr-get/m-p/1076789#M96537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;perform addr_get using lf_addr1_sel
                 changing lf_addr1_val.
MOVE-CORRESPONDING lf_addr1_val TO x_addr1_data. 

form addr_get using p_addr1_sel type addr1_sel
                 changing p_addr1_val type addr1_val.


endform.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see this...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Dec 2005 10:56:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/a-sample-code-to-reterieve-fields-from-addr1-data-using-fun-addr-get/m-p/1076789#M96537</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-10T10:56:38Z</dc:date>
    </item>
    <item>
      <title>Re: A sample code to reterieve fields from ADDR1_DATA using fun. ADDR_GET</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-sample-code-to-reterieve-fields-from-addr1-data-using-fun-addr-get/m-p/1076790#M96538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please don't forget to reward ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and in other posts too..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Dec 2005 10:57:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/a-sample-code-to-reterieve-fields-from-addr1-data-using-fun-addr-get/m-p/1076790#M96538</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-10T10:57:13Z</dc:date>
    </item>
  </channel>
</rss>

