SAP EW_OPS_CUST_CONDITIONS Function Module for
EW_OPS_CUST_CONDITIONS is a standard ew ops cust conditions 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 ew ops cust conditions FM, simply by entering the name EW_OPS_CUST_CONDITIONS into the relevant SAP transaction such as SE37 or SE38.
Function Group: EWOPS2
Program Name: SAPLEWOPS2
Main Program: SAPLEWOPS2
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function EW_OPS_CUST_CONDITIONS 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 'EW_OPS_CUST_CONDITIONS'".
EXPORTING
IM_WMODE = "
IM_PRESFLD = "
IM_USAGETYPE = "
IM_USAGETYPETXT = "
IM_PRESFLDTXT = "
IM_CLASS = "
TABLES
T_COND = "
T_LDCONST = "
EXCEPTIONS
CANCELED = 1 NOT_CHANGED = 2
IMPORTING Parameters details for EW_OPS_CUST_CONDITIONS
IM_WMODE -
Data type: FLAGOptional: No
Call by Reference: Yes
IM_PRESFLD -
Data type: EW_OPSPRESFLDOptional: No
Call by Reference: Yes
IM_USAGETYPE -
Data type: EW_OPSUSAGETYPEOptional: No
Call by Reference: Yes
IM_USAGETYPETXT -
Data type: EW_OPSUSAGETYPETXTOptional: No
Call by Reference: Yes
IM_PRESFLDTXT -
Data type: EW_OPSPRESFLD_TXTOptional: No
Call by Reference: Yes
IM_CLASS -
Data type: CCM_OP_CLASSIDOptional: No
Call by Reference: Yes
TABLES Parameters details for EW_OPS_CUST_CONDITIONS
T_COND -
Data type: EWOPSCOND_PF_TOptional: No
Call by Reference: Yes
T_LDCONST -
Data type: EWOPSLDCONST_PF_TOptional: No
Call by Reference: Yes
EXCEPTIONS details
CANCELED -
Data type:Optional: No
Call by Reference: Yes
NOT_CHANGED -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for EW_OPS_CUST_CONDITIONS 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_t_cond | TYPE STANDARD TABLE OF EWOPSCOND_PF_T, " | |||
lv_canceled | TYPE EWOPSCOND_PF_T, " | |||
lv_im_wmode | TYPE FLAG, " | |||
lt_t_ldconst | TYPE STANDARD TABLE OF EWOPSLDCONST_PF_T, " | |||
lv_im_presfld | TYPE EW_OPSPRESFLD, " | |||
lv_not_changed | TYPE EW_OPSPRESFLD, " | |||
lv_im_usagetype | TYPE EW_OPSUSAGETYPE, " | |||
lv_im_usagetypetxt | TYPE EW_OPSUSAGETYPETXT, " | |||
lv_im_presfldtxt | TYPE EW_OPSPRESFLD_TXT, " | |||
lv_im_class | TYPE CCM_OP_CLASSID. " |
  CALL FUNCTION 'EW_OPS_CUST_CONDITIONS' " |
EXPORTING | ||
IM_WMODE | = lv_im_wmode | |
IM_PRESFLD | = lv_im_presfld | |
IM_USAGETYPE | = lv_im_usagetype | |
IM_USAGETYPETXT | = lv_im_usagetypetxt | |
IM_PRESFLDTXT | = lv_im_presfldtxt | |
IM_CLASS | = lv_im_class | |
TABLES | ||
T_COND | = lt_t_cond | |
T_LDCONST | = lt_t_ldconst | |
EXCEPTIONS | ||
CANCELED = 1 | ||
NOT_CHANGED = 2 | ||
. " EW_OPS_CUST_CONDITIONS |
ABAP code using 7.40 inline data declarations to call FM EW_OPS_CUST_CONDITIONS
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.Search for further information about these or an SAP related objects