SAP C102_STATE_SET Function Module for









C102_STATE_SET is a standard c102 state set SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 c102 state set FM, simply by entering the name C102_STATE_SET into the relevant SAP transaction such as SE37 or SE38.

Function Group: C102
Program Name: SAPLC102
Main Program: SAPLC102
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function C102_STATE_SET 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 'C102_STATE_SET'"
EXPORTING
* I_ADDINF = "Additional Information
* I_OBJTYPE = "
* I_RCGDIALCTR = "
* I_FLG_HITLIST_REFRESH = "
* I_FLG_FILL_DELTAB = ESP1_FALSE "
* I_FLG_NUM_OF_HITS = ESP1_FALSE "

TABLES
* I_IOTAB = "EHS: IOTAB for substance header (ESTRH)
* I_IOTAB_DEL = "EHS: IOTAB for substance header (ESTRH)
.




Customer Function user exits

Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.
EXIT_SAPLC102_001 DE-EN-LANG-SWITCH-NO-TRANSLATION
EXIT_SAPLC102_002 DE-EN-LANG-SWITCH-NO-TRANSLATION
EXIT_SAPLC102_003 DE-EN-LANG-SWITCH-NO-TRANSLATION
EXIT_SAPLC102_004 DE-EN-LANG-SWITCH-NO-TRANSLATION

IMPORTING Parameters details for C102_STATE_SET

I_ADDINF - Additional Information

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

I_OBJTYPE -

Data type: RCGKPATH-OBJTYPE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_RCGDIALCTR -

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

I_FLG_HITLIST_REFRESH -

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

I_FLG_FILL_DELTAB -

Data type: ESP1_BOOLEAN
Default: ESP1_FALSE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_FLG_NUM_OF_HITS -

Data type: ESP1_BOOLEAN
Default: ESP1_FALSE
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for C102_STATE_SET

I_IOTAB - EHS: IOTAB for substance header (ESTRH)

Data type: RCGRHIOT
Optional: Yes
Call by Reference: Yes

I_IOTAB_DEL - EHS: IOTAB for substance header (ESTRH)

Data type: RCGRHIOT
Optional: Yes
Call by Reference: Yes

Copy and paste ABAP code example for C102_STATE_SET 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:
lt_i_iotab  TYPE STANDARD TABLE OF RCGRHIOT, "   
lv_i_addinf  TYPE RCGADDINF, "   
lv_i_objtype  TYPE RCGKPATH-OBJTYPE, "   
lt_i_iotab_del  TYPE STANDARD TABLE OF RCGRHIOT, "   
lv_i_rcgdialctr  TYPE RCGDIALCTR, "   
lv_i_flg_hitlist_refresh  TYPE ESP1_BOOLEAN, "   
lv_i_flg_fill_deltab  TYPE ESP1_BOOLEAN, "   ESP1_FALSE
lv_i_flg_num_of_hits  TYPE ESP1_BOOLEAN. "   ESP1_FALSE

  CALL FUNCTION 'C102_STATE_SET'  "
    EXPORTING
         I_ADDINF = lv_i_addinf
         I_OBJTYPE = lv_i_objtype
         I_RCGDIALCTR = lv_i_rcgdialctr
         I_FLG_HITLIST_REFRESH = lv_i_flg_hitlist_refresh
         I_FLG_FILL_DELTAB = lv_i_flg_fill_deltab
         I_FLG_NUM_OF_HITS = lv_i_flg_num_of_hits
    TABLES
         I_IOTAB = lt_i_iotab
         I_IOTAB_DEL = lt_i_iotab_del
. " C102_STATE_SET




ABAP code using 7.40 inline data declarations to call FM C102_STATE_SET

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 OBJTYPE FROM RCGKPATH INTO @DATA(ld_i_objtype).
 
 
 
 
DATA(ld_i_flg_fill_deltab) = ESP1_FALSE.
 
DATA(ld_i_flg_num_of_hits) = ESP1_FALSE.
 


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!