SAP MCS_PFSTATUS_SET Function Module for NOTRANSL: Setzt den GUI-Status bzw. -Titel für generierte LIS-Programme









MCS_PFSTATUS_SET is a standard mcs pfstatus set SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Setzt den GUI-Status bzw. -Titel für generierte LIS-Programme 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 mcs pfstatus set FM, simply by entering the name MCS_PFSTATUS_SET into the relevant SAP transaction such as SE37 or SE38.

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



Function MCS_PFSTATUS_SET 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 'MCS_PFSTATUS_SET'"NOTRANSL: Setzt den GUI-Status bzw. -Titel für generierte LIS-Programme
EXPORTING
* I_MCAPP = '00' "Application
* I_STATUS = ' ' "Status indentification
* I_TYPE = 'S' "Type indicator
* I_TITLEBAR = "Number of title
* I_STRING_FOR_TITLE = ' ' "String shown in title line
* I_ANALYSIS_MENU_TEXT = "Analysis menu text
* I_PERIOD_TEXT = "Text for period drill-down function

TABLES
* T_EXCL_FCODES = "Function code to be excluded
* T_DRILLDOWN = "
.



IMPORTING Parameters details for MCS_PFSTATUS_SET

I_MCAPP - Application

Data type: TMCAP-MCAPP
Default: '00'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_STATUS - Status indentification

Data type: SY-PFKEY
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_TYPE - Type indicator

Data type: SY-DATAR
Default: 'S'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_TITLEBAR - Number of title

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

I_STRING_FOR_TITLE - String shown in title line

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

I_ANALYSIS_MENU_TEXT - Analysis menu text

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

I_PERIOD_TEXT - Text for period drill-down function

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

TABLES Parameters details for MCS_PFSTATUS_SET

T_EXCL_FCODES - Function code to be excluded

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

T_DRILLDOWN -

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

Copy and paste ABAP code example for MCS_PFSTATUS_SET 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_mcapp  TYPE TMCAP-MCAPP, "   '00'
lt_t_excl_fcodes  TYPE STANDARD TABLE OF RSEXFCODE, "   
lv_i_status  TYPE SY-PFKEY, "   SPACE
lt_t_drilldown  TYPE STANDARD TABLE OF MCS04, "   
lv_i_type  TYPE SY-DATAR, "   'S'
lv_i_titlebar  TYPE RSEU1-TIT_CODE, "   
lv_i_string_for_title  TYPE RSEU1, "   SPACE
lv_i_analysis_menu_text  TYPE SMP_DYNTXT-TEXT, "   
lv_i_period_text  TYPE RSEU1-MENU. "   

  CALL FUNCTION 'MCS_PFSTATUS_SET'  "NOTRANSL: Setzt den GUI-Status bzw. -Titel für generierte LIS-Programme
    EXPORTING
         I_MCAPP = lv_i_mcapp
         I_STATUS = lv_i_status
         I_TYPE = lv_i_type
         I_TITLEBAR = lv_i_titlebar
         I_STRING_FOR_TITLE = lv_i_string_for_title
         I_ANALYSIS_MENU_TEXT = lv_i_analysis_menu_text
         I_PERIOD_TEXT = lv_i_period_text
    TABLES
         T_EXCL_FCODES = lt_t_excl_fcodes
         T_DRILLDOWN = lt_t_drilldown
. " MCS_PFSTATUS_SET




ABAP code using 7.40 inline data declarations to call FM MCS_PFSTATUS_SET

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 MCAPP FROM TMCAP INTO @DATA(ld_i_mcapp).
DATA(ld_i_mcapp) = '00'.
 
 
"SELECT single PFKEY FROM SY INTO @DATA(ld_i_status).
DATA(ld_i_status) = ' '.
 
 
"SELECT single DATAR FROM SY INTO @DATA(ld_i_type).
DATA(ld_i_type) = 'S'.
 
"SELECT single TIT_CODE FROM RSEU1 INTO @DATA(ld_i_titlebar).
 
DATA(ld_i_string_for_title) = ' '.
 
"SELECT single TEXT FROM SMP_DYNTXT INTO @DATA(ld_i_analysis_menu_text).
 
"SELECT single MENU FROM RSEU1 INTO @DATA(ld_i_period_text).
 


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!