SAP SO_ADDRESS_GET Function Module for SAPoffice: Read one CAM address









SO_ADDRESS_GET is a standard so address get SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for SAPoffice: Read one CAM address processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for so address get FM, simply by entering the name SO_ADDRESS_GET into the relevant SAP transaction such as SE37 or SE38.

Function Group: SOE1
Program Name: SAPLSOE1
Main Program: SAPLSOE1
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function SO_ADDRESS_GET pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'SO_ADDRESS_GET'"SAPoffice: Read one CAM address
EXPORTING
ADRNR = "
* SNDART = ' ' "
* LFDNR = ' ' "
* NO_ADDRESS = ' ' "
* NO_NAME = ' ' "
* GET_DATA = ' ' "
* USE_HOME_ADDRESS = ' ' "

IMPORTING
ADDRESS = "
ADDRESS_STRING = "
SNDART = "
LFDNR = "
NAME = "
DATA = "
TITLE_TEXT = "

EXCEPTIONS
ADDRESS_NOT_EXIST = 1 X_ERROR = 2
.



IMPORTING Parameters details for SO_ADDRESS_GET

ADRNR -

Data type: ADCP-SO_KEY
Optional: No
Call by Reference: No ( called with pass by value option)

SNDART -

Data type: SOES-SNDART
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

LFDNR -

Data type: SOES-LFDNR
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

NO_ADDRESS -

Data type: SONV-FLAG
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

NO_NAME -

Data type: SONV-FLAG
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

GET_DATA -

Data type: SONV-FLAG
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

USE_HOME_ADDRESS -

Data type: SONV-FLAG
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for SO_ADDRESS_GET

ADDRESS -

Data type: SOXDA-ADDRESS
Optional: No
Call by Reference: No ( called with pass by value option)

ADDRESS_STRING -

Data type: SOOS1-ADR_NAME
Optional: No
Call by Reference: No ( called with pass by value option)

SNDART -

Data type: SOES-SNDART
Optional: No
Call by Reference: No ( called with pass by value option)

LFDNR -

Data type: SOES-LFDNR
Optional: No
Call by Reference: No ( called with pass by value option)

NAME -

Data type: SADR-NAME1
Optional: No
Call by Reference: No ( called with pass by value option)

DATA -

Data type: ADDR3_VAL
Optional: No
Call by Reference: No ( called with pass by value option)

TITLE_TEXT -

Data type: ADDR3_TEXT
Optional: No
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

ADDRESS_NOT_EXIST -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

X_ERROR -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for SO_ADDRESS_GET Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.

DATA:
lv_adrnr  TYPE ADCP-SO_KEY, "   
lv_address  TYPE SOXDA-ADDRESS, "   
lv_address_not_exist  TYPE SOXDA, "   
lv_sndart  TYPE SOES-SNDART, "   SPACE
lv_x_error  TYPE SOES, "   
lv_address_string  TYPE SOOS1-ADR_NAME, "   
lv_lfdnr  TYPE SOES-LFDNR, "   SPACE
lv_sndart  TYPE SOES-SNDART, "   
lv_lfdnr  TYPE SOES-LFDNR, "   
lv_no_address  TYPE SONV-FLAG, "   SPACE
lv_name  TYPE SADR-NAME1, "   
lv_no_name  TYPE SONV-FLAG, "   SPACE
lv_data  TYPE ADDR3_VAL, "   
lv_get_data  TYPE SONV-FLAG, "   SPACE
lv_title_text  TYPE ADDR3_TEXT, "   
lv_use_home_address  TYPE SONV-FLAG. "   SPACE

  CALL FUNCTION 'SO_ADDRESS_GET'  "SAPoffice: Read one CAM address
    EXPORTING
         ADRNR = lv_adrnr
         SNDART = lv_sndart
         LFDNR = lv_lfdnr
         NO_ADDRESS = lv_no_address
         NO_NAME = lv_no_name
         GET_DATA = lv_get_data
         USE_HOME_ADDRESS = lv_use_home_address
    IMPORTING
         ADDRESS = lv_address
         ADDRESS_STRING = lv_address_string
         SNDART = lv_sndart
         LFDNR = lv_lfdnr
         NAME = lv_name
         DATA = lv_data
         TITLE_TEXT = lv_title_text
    EXCEPTIONS
        ADDRESS_NOT_EXIST = 1
        X_ERROR = 2
. " SO_ADDRESS_GET




ABAP code using 7.40 inline data declarations to call FM SO_ADDRESS_GET

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

"SELECT single SO_KEY FROM ADCP INTO @DATA(ld_adrnr).
 
"SELECT single ADDRESS FROM SOXDA INTO @DATA(ld_address).
 
 
"SELECT single SNDART FROM SOES INTO @DATA(ld_sndart).
DATA(ld_sndart) = ' '.
 
 
"SELECT single ADR_NAME FROM SOOS1 INTO @DATA(ld_address_string).
 
"SELECT single LFDNR FROM SOES INTO @DATA(ld_lfdnr).
DATA(ld_lfdnr) = ' '.
 
"SELECT single SNDART FROM SOES INTO @DATA(ld_sndart).
 
"SELECT single LFDNR FROM SOES INTO @DATA(ld_lfdnr).
 
"SELECT single FLAG FROM SONV INTO @DATA(ld_no_address).
DATA(ld_no_address) = ' '.
 
"SELECT single NAME1 FROM SADR INTO @DATA(ld_name).
 
"SELECT single FLAG FROM SONV INTO @DATA(ld_no_name).
DATA(ld_no_name) = ' '.
 
 
"SELECT single FLAG FROM SONV INTO @DATA(ld_get_data).
DATA(ld_get_data) = ' '.
 
 
"SELECT single FLAG FROM SONV INTO @DATA(ld_use_home_address).
DATA(ld_use_home_address) = ' '.
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!