SAP CUPS_CSTRC_ENTER_PMS Function Module for









CUPS_CSTRC_ENTER_PMS is a standard cups cstrc enter pms 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 cups cstrc enter pms FM, simply by entering the name CUPS_CSTRC_ENTER_PMS into the relevant SAP transaction such as SE37 or SE38.

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



Function CUPS_CSTRC_ENTER_PMS 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 'CUPS_CSTRC_ENTER_PMS'"
EXPORTING
CONSTRAINT_ID = "Constraint ID (KNNUM)
CONSTRAINT_CUCOUNT = "
EXPRESSION_TYPE = "Dependency Type
* GRAMMAR = 'SAPLCUPS' "Name of include containing grammar
VALID_FROM = "Valid-from date
* DARK_MODE = "Suppresses detailed error messages

IMPORTING
RESULT = "Result ('T' = OK, 'F' = error)
COL = "Positioning of cursor in the event of error (column)
ROW = "Position of cursor in case of error (line)
MSG_ID = "Message Class
MSG_NUMBER = "Message number in T100
MSG_ARG1 = "Additional argument for message
MSG_ARG2 = "Additional argument for message
MSG_ARG3 = "Additional argument for message
MSG_ARG4 = "Additional argument for message

TABLES
PARSD_SOURCE = "Editor buffer

EXCEPTIONS
INTERNAL_ERROR = 1
.



IMPORTING Parameters details for CUPS_CSTRC_ENTER_PMS

CONSTRAINT_ID - Constraint ID (KNNUM)

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

CONSTRAINT_CUCOUNT -

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

EXPRESSION_TYPE - Dependency Type

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

GRAMMAR - Name of include containing grammar

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

VALID_FROM - Valid-from date

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

DARK_MODE - Suppresses detailed error messages

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

EXPORTING Parameters details for CUPS_CSTRC_ENTER_PMS

RESULT - Result ('T' = OK, 'F' = error)

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

COL - Positioning of cursor in the event of error (column)

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

ROW - Position of cursor in case of error (line)

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

MSG_ID - Message Class

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

MSG_NUMBER - Message number in T100

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

MSG_ARG1 - Additional argument for message

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

MSG_ARG2 - Additional argument for message

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

MSG_ARG3 - Additional argument for message

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

MSG_ARG4 - Additional argument for message

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

TABLES Parameters details for CUPS_CSTRC_ENTER_PMS

PARSD_SOURCE - Editor buffer

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

EXCEPTIONS details

INTERNAL_ERROR -

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

Copy and paste ABAP code example for CUPS_CSTRC_ENTER_PMS 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_result  TYPE PMST_RESULT, "   
lt_parsd_source  TYPE STANDARD TABLE OF PARS_TEXT, "   
lv_constraint_id  TYPE PMST_INT_KEY, "   
lv_internal_error  TYPE PMST_INT_KEY, "   
lv_col  TYPE PARS_TOKEN-COL, "   
lv_constraint_cucount  TYPE PMST_CUCOUNT, "   
lv_row  TYPE PARS_TOKEN-ROW, "   
lv_expression_type  TYPE PMST_KEY, "   
lv_msg_id  TYPE PMST_KEY, "   
lv_grammar  TYPE PMST_KEY, "   'SAPLCUPS'
lv_msg_number  TYPE PMST_KEY, "   
lv_valid_from  TYPE SY-DATUM, "   
lv_msg_arg1  TYPE SY, "   
lv_dark_mode  TYPE PMST_MARK, "   
lv_msg_arg2  TYPE PMST_MARK, "   
lv_msg_arg3  TYPE PMST_MARK, "   
lv_msg_arg4  TYPE PMST_MARK. "   

  CALL FUNCTION 'CUPS_CSTRC_ENTER_PMS'  "
    EXPORTING
         CONSTRAINT_ID = lv_constraint_id
         CONSTRAINT_CUCOUNT = lv_constraint_cucount
         EXPRESSION_TYPE = lv_expression_type
         GRAMMAR = lv_grammar
         VALID_FROM = lv_valid_from
         DARK_MODE = lv_dark_mode
    IMPORTING
         RESULT = lv_result
         COL = lv_col
         ROW = lv_row
         MSG_ID = lv_msg_id
         MSG_NUMBER = lv_msg_number
         MSG_ARG1 = lv_msg_arg1
         MSG_ARG2 = lv_msg_arg2
         MSG_ARG3 = lv_msg_arg3
         MSG_ARG4 = lv_msg_arg4
    TABLES
         PARSD_SOURCE = lt_parsd_source
    EXCEPTIONS
        INTERNAL_ERROR = 1
. " CUPS_CSTRC_ENTER_PMS




ABAP code using 7.40 inline data declarations to call FM CUPS_CSTRC_ENTER_PMS

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 COL FROM PARS_TOKEN INTO @DATA(ld_col).
 
 
"SELECT single ROW FROM PARS_TOKEN INTO @DATA(ld_row).
 
 
 
DATA(ld_grammar) = 'SAPLCUPS'.
 
 
"SELECT single DATUM FROM SY INTO @DATA(ld_valid_from).
 
 
 
 
 
 


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!