SAP PIA_CSO_CUSTOMER_GET_DATA Function Module for Check Whether Customer Exists and Read Address Data
PIA_CSO_CUSTOMER_GET_DATA is a standard pia cso customer get data SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Check Whether Customer Exists and Read Address Data 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 pia cso customer get data FM, simply by entering the name PIA_CSO_CUSTOMER_GET_DATA into the relevant SAP transaction such as SE37 or SE38.
Function Group: WSSD
Program Name: SAPLWSSD
Main Program: SAPLWSSD
Appliation area: W
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function PIA_CSO_CUSTOMER_GET_DATA 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 'PIA_CSO_CUSTOMER_GET_DATA'"Check Whether Customer Exists and Read Address Data.
EXPORTING
PI_KUNNR = "
* PI_READ_COUNTRY_DESCR = ' ' "Checkbox
IMPORTING
PE_CUST = "
PE_RETURN1 = "
PE_KNA1 = "General Data in Customer Master
IMPORTING Parameters details for PIA_CSO_CUSTOMER_GET_DATA
PI_KUNNR -
Data type: WISO_CUST-SOLD_TOOptional: No
Call by Reference: No ( called with pass by value option)
PI_READ_COUNTRY_DESCR - Checkbox
Data type: WISO_HNDL-XFIELDDefault: SPACE
Optional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for PIA_CSO_CUSTOMER_GET_DATA
PE_CUST -
Data type: WISO_CUSTOptional: No
Call by Reference: No ( called with pass by value option)
PE_RETURN1 -
Data type: BAPIRETURN1Optional: No
Call by Reference: No ( called with pass by value option)
PE_KNA1 - General Data in Customer Master
Data type: KNA1Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for PIA_CSO_CUSTOMER_GET_DATA 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_pe_cust | TYPE WISO_CUST, " | |||
| lv_pi_kunnr | TYPE WISO_CUST-SOLD_TO, " | |||
| lv_pe_return1 | TYPE BAPIRETURN1, " | |||
| lv_pi_read_country_descr | TYPE WISO_HNDL-XFIELD, " SPACE | |||
| lv_pe_kna1 | TYPE KNA1. " |
|   CALL FUNCTION 'PIA_CSO_CUSTOMER_GET_DATA' "Check Whether Customer Exists and Read Address Data |
| EXPORTING | ||
| PI_KUNNR | = lv_pi_kunnr | |
| PI_READ_COUNTRY_DESCR | = lv_pi_read_country_descr | |
| IMPORTING | ||
| PE_CUST | = lv_pe_cust | |
| PE_RETURN1 | = lv_pe_return1 | |
| PE_KNA1 | = lv_pe_kna1 | |
| . " PIA_CSO_CUSTOMER_GET_DATA | ||
ABAP code using 7.40 inline data declarations to call FM PIA_CSO_CUSTOMER_GET_DATA
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 SOLD_TO FROM WISO_CUST INTO @DATA(ld_pi_kunnr). | ||||
| "SELECT single XFIELD FROM WISO_HNDL INTO @DATA(ld_pi_read_country_descr). | ||||
| DATA(ld_pi_read_country_descr) | = ' '. | |||
Search for further information about these or an SAP related objects