SAP OII_SOCSEG_READ Function Module for Read reduced SOCSEG data (bulk/packaged)
OII_SOCSEG_READ is a standard oii socseg read SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Read reduced SOCSEG data (bulk/packaged) 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 oii socseg read FM, simply by entering the name OII_SOCSEG_READ into the relevant SAP transaction such as SE37 or SE38.
Function Group: OII_READ
Program Name: SAPLOII_READ
Main Program: SAPLOII_READ
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function OII_SOCSEG_READ 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 'OII_SOCSEG_READ'"Read reduced SOCSEG data (bulk/packaged).
EXPORTING
IV_SOCNR = "SOC: Storage object characteristic segment number
IMPORTING
ES_OIISOCK = "SOC: Storage object characteristic segment header
ES_OIISOCKL = "SOC: Storage object characteristic class
ES_OIISOCB1 = "SOC: Storage object characteristic segment: bulk
ES_OIISOCB2 = "SOC: Storage object characteristic segment: packaged
ES_OIISOCO1 = "SOC: Storage object characteristic segment: bulk
EV_OIISOCUSG = "SOC: Basic usage indicator
EXCEPTIONS
RECORD_NOT_FOUND = 1
IMPORTING Parameters details for OII_SOCSEG_READ
IV_SOCNR - SOC: Storage object characteristic segment number
Data type: OIISOCK-SOCNROptional: No
Call by Reference: Yes
EXPORTING Parameters details for OII_SOCSEG_READ
ES_OIISOCK - SOC: Storage object characteristic segment header
Data type: OIISOCKOptional: No
Call by Reference: Yes
ES_OIISOCKL - SOC: Storage object characteristic class
Data type: OIISOCKLOptional: No
Call by Reference: Yes
ES_OIISOCB1 - SOC: Storage object characteristic segment: bulk
Data type: OIISOCB1Optional: No
Call by Reference: Yes
ES_OIISOCB2 - SOC: Storage object characteristic segment: packaged
Data type: OIISOCB2Optional: No
Call by Reference: Yes
ES_OIISOCO1 - SOC: Storage object characteristic segment: bulk
Data type: OIISOCO1Optional: No
Call by Reference: Yes
EV_OIISOCUSG - SOC: Basic usage indicator
Data type: OII_SOCUSGOptional: No
Call by Reference: Yes
EXCEPTIONS details
RECORD_NOT_FOUND - Record not found
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for OII_SOCSEG_READ 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_iv_socnr | TYPE OIISOCK-SOCNR, " | |||
| lv_es_oiisock | TYPE OIISOCK, " | |||
| lv_record_not_found | TYPE OIISOCK, " | |||
| lv_es_oiisockl | TYPE OIISOCKL, " | |||
| lv_es_oiisocb1 | TYPE OIISOCB1, " | |||
| lv_es_oiisocb2 | TYPE OIISOCB2, " | |||
| lv_es_oiisoco1 | TYPE OIISOCO1, " | |||
| lv_ev_oiisocusg | TYPE OII_SOCUSG. " |
|   CALL FUNCTION 'OII_SOCSEG_READ' "Read reduced SOCSEG data (bulk/packaged) |
| EXPORTING | ||
| IV_SOCNR | = lv_iv_socnr | |
| IMPORTING | ||
| ES_OIISOCK | = lv_es_oiisock | |
| ES_OIISOCKL | = lv_es_oiisockl | |
| ES_OIISOCB1 | = lv_es_oiisocb1 | |
| ES_OIISOCB2 | = lv_es_oiisocb2 | |
| ES_OIISOCO1 | = lv_es_oiisoco1 | |
| EV_OIISOCUSG | = lv_ev_oiisocusg | |
| EXCEPTIONS | ||
| RECORD_NOT_FOUND = 1 | ||
| . " OII_SOCSEG_READ | ||
ABAP code using 7.40 inline data declarations to call FM OII_SOCSEG_READ
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 SOCNR FROM OIISOCK INTO @DATA(ld_iv_socnr). | ||||
Search for further information about these or an SAP related objects