SAP PSCM_CMACBPSTCA_CHECK Function Module for Obsolete: Check if the relationship exists between ST and SP(RFC)









PSCM_CMACBPSTCA_CHECK is a standard pscm cmacbpstca check SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Obsolete: Check if the relationship exists between ST and SP(RFC) 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 pscm cmacbpstca check FM, simply by entering the name PSCM_CMACBPSTCA_CHECK into the relevant SAP transaction such as SE37 or SE38.

Function Group: PMIQ_BUPA_SELECT
Program Name: SAPLPMIQ_BUPA_SELECT
Main Program: SAPLPMIQ_BUPA_SELECT
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function PSCM_CMACBPSTCA_CHECK 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 'PSCM_CMACBPSTCA_CHECK'"Obsolete: Check if the relationship exists between ST and SP(RFC)
EXPORTING
IV_PARTNER = "Business partner number
IV_CMAC_GRANT = "Grant
IV_ACAD_YEAR = "Academic Year
IV_ACAD_PERIOD = "Academic Session

IMPORTING
EV_XEXIST = "'X' = the relationship exists; ' ' = the relationship does not exist
.



IMPORTING Parameters details for PSCM_CMACBPSTCA_CHECK

IV_PARTNER - Business partner number

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

IV_CMAC_GRANT - Grant

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

IV_ACAD_YEAR - Academic Year

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

IV_ACAD_PERIOD - Academic Session

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

EXPORTING Parameters details for PSCM_CMACBPSTCA_CHECK

EV_XEXIST - 'X' = the relationship exists; ' ' = the relationship does not exist

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

Copy and paste ABAP code example for PSCM_CMACBPSTCA_CHECK 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_ev_xexist  TYPE BOOLE-BOOLE, "   
lv_iv_partner  TYPE CMACBPSTCA-PARTNER, "   
lv_iv_cmac_grant  TYPE CMACBPSTCA-CMAC_GRANT, "   
lv_iv_acad_year  TYPE CMACBPSTCA-ACAD_YEAR, "   
lv_iv_acad_period  TYPE CMACBPSTCA-ACAD_PERIOD. "   

  CALL FUNCTION 'PSCM_CMACBPSTCA_CHECK'  "Obsolete: Check if the relationship exists between ST and SP(RFC)
    EXPORTING
         IV_PARTNER = lv_iv_partner
         IV_CMAC_GRANT = lv_iv_cmac_grant
         IV_ACAD_YEAR = lv_iv_acad_year
         IV_ACAD_PERIOD = lv_iv_acad_period
    IMPORTING
         EV_XEXIST = lv_ev_xexist
. " PSCM_CMACBPSTCA_CHECK




ABAP code using 7.40 inline data declarations to call FM PSCM_CMACBPSTCA_CHECK

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 BOOLE FROM BOOLE INTO @DATA(ld_ev_xexist).
 
"SELECT single PARTNER FROM CMACBPSTCA INTO @DATA(ld_iv_partner).
 
"SELECT single CMAC_GRANT FROM CMACBPSTCA INTO @DATA(ld_iv_cmac_grant).
 
"SELECT single ACAD_YEAR FROM CMACBPSTCA INTO @DATA(ld_iv_acad_year).
 
"SELECT single ACAD_PERIOD FROM CMACBPSTCA INTO @DATA(ld_iv_acad_period).
 


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!