SAP OII_SCP_DIALOG_CU Function Module for Maintain/Display site control parameters for a Customer









OII_SCP_DIALOG_CU is a standard oii scp dialog cu SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Maintain/Display site control parameters for a Customer 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 scp dialog cu FM, simply by entering the name OII_SCP_DIALOG_CU into the relevant SAP transaction such as SE37 or SE38.

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



Function OII_SCP_DIALOG_CU 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_SCP_DIALOG_CU'"Maintain/Display site control parameters for a Customer
EXPORTING
I_KNA1 = "Customer A-segment
* I_TRTYP = 'A' "Calling transaction mode
I_TABSTRIP = "
* I_SH_POSITION = 2 "
* I_LT_POSITION = 3 "
* I_OTWS_POSITION = 4 "
* I_CONLOC_POSITION = 1 "

IMPORTING
E_FCODE = "Function code
E_EXITCOMMAND = "Exit command indicator

CHANGING
E_DATALOSS = "Dataloss indicator

TABLES
* T_ROIIXCUAEX = "BDRP CUA excluded funtion table

EXCEPTIONS
DATA_ACCESS_ERROR_CU = 1 DATA_ACCESS_ERROR_BL = 2
.




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_SAPLOIIP_110 Site control parameters - transfer data to customer exit work area
EXIT_SAPLOIIP_111 Site control (TPS control) - transfer data to customer exit work area
EXIT_SAPLOIIP_120 Site control parameters - transfer data from customer exit work area
EXIT_SAPLOIIP_121 Site control (TPS control) - transfer data from customer exit work area

IMPORTING Parameters details for OII_SCP_DIALOG_CU

I_KNA1 - Customer A-segment

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

I_TRTYP - Calling transaction mode

Data type: T180-TRTYP
Default: 'A'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_TABSTRIP -

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

I_SH_POSITION -

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

I_LT_POSITION -

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

I_OTWS_POSITION -

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

I_CONLOC_POSITION -

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

EXPORTING Parameters details for OII_SCP_DIALOG_CU

E_FCODE - Function code

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

E_EXITCOMMAND - Exit command indicator

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

CHANGING Parameters details for OII_SCP_DIALOG_CU

E_DATALOSS - Dataloss indicator

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

TABLES Parameters details for OII_SCP_DIALOG_CU

T_ROIIXCUAEX - BDRP CUA excluded funtion table

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

EXCEPTIONS details

DATA_ACCESS_ERROR_CU - Error when accessing Customer SCP segment

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

DATA_ACCESS_ERROR_BL - Error when accessing Location SCP segment

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

Copy and paste ABAP code example for OII_SCP_DIALOG_CU 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_i_kna1  TYPE ROIIKNA1, "   
lv_e_fcode  TYPE T185-FCODE, "   
lv_e_dataloss  TYPE R185D-DATALOSS, "   
lt_t_roiixcuaex  TYPE STANDARD TABLE OF ROIIXCUAEX, "   
lv_data_access_error_cu  TYPE ROIIXCUAEX, "   
lv_i_trtyp  TYPE T180-TRTYP, "   'A'
lv_e_exitcommand  TYPE T180, "   
lv_data_access_error_bl  TYPE T180, "   
lv_i_tabstrip  TYPE T180, "   
lv_i_sh_position  TYPE T180, "   2
lv_i_lt_position  TYPE T180, "   3
lv_i_otws_position  TYPE T180, "   4
lv_i_conloc_position  TYPE T180. "   1

  CALL FUNCTION 'OII_SCP_DIALOG_CU'  "Maintain/Display site control parameters for a Customer
    EXPORTING
         I_KNA1 = lv_i_kna1
         I_TRTYP = lv_i_trtyp
         I_TABSTRIP = lv_i_tabstrip
         I_SH_POSITION = lv_i_sh_position
         I_LT_POSITION = lv_i_lt_position
         I_OTWS_POSITION = lv_i_otws_position
         I_CONLOC_POSITION = lv_i_conloc_position
    IMPORTING
         E_FCODE = lv_e_fcode
         E_EXITCOMMAND = lv_e_exitcommand
    CHANGING
         E_DATALOSS = lv_e_dataloss
    TABLES
         T_ROIIXCUAEX = lt_t_roiixcuaex
    EXCEPTIONS
        DATA_ACCESS_ERROR_CU = 1
        DATA_ACCESS_ERROR_BL = 2
. " OII_SCP_DIALOG_CU




ABAP code using 7.40 inline data declarations to call FM OII_SCP_DIALOG_CU

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 FCODE FROM T185 INTO @DATA(ld_e_fcode).
 
"SELECT single DATALOSS FROM R185D INTO @DATA(ld_e_dataloss).
 
 
 
"SELECT single TRTYP FROM T180 INTO @DATA(ld_i_trtyp).
DATA(ld_i_trtyp) = 'A'.
 
 
 
 
DATA(ld_i_sh_position) = 2.
 
DATA(ld_i_lt_position) = 3.
 
DATA(ld_i_otws_position) = 4.
 
DATA(ld_i_conloc_position) = 1.
 


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!