SAP CMAC_PROGRAM_INFORMATION_READ Function Module for Read information about program of study









CMAC_PROGRAM_INFORMATION_READ is a standard cmac program information read SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Read information about program of study 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 cmac program information read FM, simply by entering the name CMAC_PROGRAM_INFORMATION_READ into the relevant SAP transaction such as SE37 or SE38.

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



Function CMAC_PROGRAM_INFORMATION_READ 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 'CMAC_PROGRAM_INFORMATION_READ'"Read information about program of study
EXPORTING
* IV_PLVAR = '01' "Plan version
IV_SCOBJID = "Program of Study ID for CM Student Accounting
IV_KEYDATE = "Key Date for Student Data
* IV_STOBJID = "Objekt-ID des Studenten

IMPORTING
ES_PROGRAM_OF_STUDY = "Interface structure ofr fee calculation(used for testing)

TABLES
ET_ERROR = "Return parameter for error message
.



IMPORTING Parameters details for CMAC_PROGRAM_INFORMATION_READ

IV_PLVAR - Plan version

Data type: P1000-PLVAR
Default: '01'
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_SCOBJID - Program of Study ID for CM Student Accounting

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

IV_KEYDATE - Key Date for Student Data

Data type: PIQ_PROGRAM_OF_STUDY-KEYDATE
Optional: No
Call by Reference: Yes

IV_STOBJID - Objekt-ID des Studenten

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

EXPORTING Parameters details for CMAC_PROGRAM_INFORMATION_READ

ES_PROGRAM_OF_STUDY - Interface structure ofr fee calculation(used for testing)

Data type: PIQ_PROGRAM_OF_STUDY
Optional: No
Call by Reference: Yes

TABLES Parameters details for CMAC_PROGRAM_INFORMATION_READ

ET_ERROR - Return parameter for error message

Data type: PIQ_ERROR_STRUCTURE
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for CMAC_PROGRAM_INFORMATION_READ 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_et_error  TYPE STANDARD TABLE OF PIQ_ERROR_STRUCTURE, "   
lv_iv_plvar  TYPE P1000-PLVAR, "   '01'
lv_es_program_of_study  TYPE PIQ_PROGRAM_OF_STUDY, "   
lv_iv_scobjid  TYPE PIQ_REG_PROGRAM_OF_STUDY-SCOBJID, "   
lv_iv_keydate  TYPE PIQ_PROGRAM_OF_STUDY-KEYDATE, "   
lv_iv_stobjid  TYPE PIQST_OBJID. "   

  CALL FUNCTION 'CMAC_PROGRAM_INFORMATION_READ'  "Read information about program of study
    EXPORTING
         IV_PLVAR = lv_iv_plvar
         IV_SCOBJID = lv_iv_scobjid
         IV_KEYDATE = lv_iv_keydate
         IV_STOBJID = lv_iv_stobjid
    IMPORTING
         ES_PROGRAM_OF_STUDY = lv_es_program_of_study
    TABLES
         ET_ERROR = lt_et_error
. " CMAC_PROGRAM_INFORMATION_READ




ABAP code using 7.40 inline data declarations to call FM CMAC_PROGRAM_INFORMATION_READ

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 PLVAR FROM P1000 INTO @DATA(ld_iv_plvar).
DATA(ld_iv_plvar) = '01'.
 
 
"SELECT single SCOBJID FROM PIQ_REG_PROGRAM_OF_STUDY INTO @DATA(ld_iv_scobjid).
 
"SELECT single KEYDATE FROM PIQ_PROGRAM_OF_STUDY INTO @DATA(ld_iv_keydate).
 
 


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!