SAP SPROJECT_HEADER_DISPLAY_MAINT Function Module for









SPROJECT_HEADER_DISPLAY_MAINT is a standard sproject header display maint 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 sproject header display maint FM, simply by entering the name SPROJECT_HEADER_DISPLAY_MAINT into the relevant SAP transaction such as SE37 or SE38.

Function Group: PROJECT_ADMINISTRATION
Program Name: SAPLPROJECT_ADMINISTRATION
Main Program: SAPLPROJECT_ADMINISTRATION
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function SPROJECT_HEADER_DISPLAY_MAINT 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 'SPROJECT_HEADER_DISPLAY_MAINT'"
EXPORTING
CUA_STATUS = "
* NO_LANDSCAPE_AUTH = "Single-Character Flag
* NO_TRANSPORT_AUTH = "Single-Character Flag
* WB_MANAGER = "Interface for Workbench Manager
* HIDE_PROJECTSTRUCTURE = "General Flag
* HIDE_TRANSPORT_TAB = "General Flag
* INPUT_ON_POPUP = "General Flag
* HIDE_STATUS_TAB = "Status Management Use Flag
* HIDE_NOTETYPE_TAB = "Documents Used Flag
* ACTIVE_TAB = "
* CREATE_MODE = "
CUA_TITLE = "
DISPLAY = "
* LANGUAGE = SY-LANGU "
* JUMP_TO_STRUCTURE = 'X' "
* TREE_VIEW = "
* MAINTAIN_VIEW = "Single-Character Flag
* MAINTAIN_LANDSCAPE = "Single-Character Flag
* MAINTAIN_TRANSPORTS = "Single-Character Flag

IMPORTING
MESSAGE = "
CHANGE_FLAGS = "

CHANGING
HEADER = "
ACTION = "
* MILESTONES = "Project Milestones
* PARTNER = "Partner Company Data
* ORGUNITS = "Organizational Units Affected in a Project
* SOLARTABS = "
* KW_STATUS = "

TABLES
* STATUS = "
* ALL_NOTETYPE = "
* OBJECTLIST = "
* DEVOBJECTS = "Restriction List for Development Objects in a Project
* PRIORITY = "
* RESOURCE = "
* KEYWORDS = "
* NOTETYPE = "
* ALL_STATUS = "
* ALL_PRIORITY = "
* ALL_RESOURCE = "
* ALL_KEYWORDS = "
.



IMPORTING Parameters details for SPROJECT_HEADER_DISPLAY_MAINT

CUA_STATUS -

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

NO_LANDSCAPE_AUTH - Single-Character Flag

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

NO_TRANSPORT_AUTH - Single-Character Flag

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

WB_MANAGER - Interface for Workbench Manager

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

HIDE_PROJECTSTRUCTURE - General Flag

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

HIDE_TRANSPORT_TAB - General Flag

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

INPUT_ON_POPUP - General Flag

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

HIDE_STATUS_TAB - Status Management Use Flag

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

HIDE_NOTETYPE_TAB - Documents Used Flag

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

ACTIVE_TAB -

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

CREATE_MODE -

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

CUA_TITLE -

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

DISPLAY -

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

LANGUAGE -

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

JUMP_TO_STRUCTURE -

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

TREE_VIEW -

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

MAINTAIN_VIEW - Single-Character Flag

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

MAINTAIN_LANDSCAPE - Single-Character Flag

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

MAINTAIN_TRANSPORTS - Single-Character Flag

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

EXPORTING Parameters details for SPROJECT_HEADER_DISPLAY_MAINT

MESSAGE -

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

CHANGE_FLAGS -

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

CHANGING Parameters details for SPROJECT_HEADER_DISPLAY_MAINT

HEADER -

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

ACTION -

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

MILESTONES - Project Milestones

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

PARTNER - Partner Company Data

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

ORGUNITS - Organizational Units Affected in a Project

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

SOLARTABS -

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

KW_STATUS -

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

TABLES Parameters details for SPROJECT_HEADER_DISPLAY_MAINT

STATUS -

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

ALL_NOTETYPE -

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

OBJECTLIST -

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

DEVOBJECTS - Restriction List for Development Objects in a Project

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

PRIORITY -

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

RESOURCE -

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

KEYWORDS -

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

NOTETYPE -

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

ALL_STATUS -

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

ALL_PRIORITY -

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

ALL_RESOURCE -

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

ALL_KEYWORDS -

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

Copy and paste ABAP code example for SPROJECT_HEADER_DISPLAY_MAINT 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_header  TYPE SPRO_HEAD, "   
lt_status  TYPE STANDARD TABLE OF SPRO_STATUS_TAB, "   
lv_message  TYPE SPRO_MESSAGE, "   
lv_cua_status  TYPE SY-PFKEY, "   
lt_all_notetype  TYPE STANDARD TABLE OF SPRO_ALL_NOTETYPE_TAB, "   
lv_no_landscape_auth  TYPE CHAR1, "   
lt_objectlist  TYPE STANDARD TABLE OF SPRO_OBJECTLIST_TAB, "   
lv_no_transport_auth  TYPE CHAR1, "   
lt_devobjects  TYPE STANDARD TABLE OF IOBJSTRUC, "   
lv_wb_manager  TYPE IF_WB_MANAGER, "   
lv_hide_projectstructure  TYPE FLAG, "   
lv_hide_transport_tab  TYPE FLAG, "   
lv_input_on_popup  TYPE FLAG, "   
lv_hide_status_tab  TYPE STA_FLAG, "   
lv_hide_notetype_tab  TYPE DOC_FLAG, "   
lv_active_tab  TYPE CHAR100, "   
lv_create_mode  TYPE FLAG, "   
lv_action  TYPE SY-UCOMM, "   
lt_priority  TYPE STANDARD TABLE OF SPRO_PRIORITY_TAB, "   
lv_cua_title  TYPE SY-TITLE, "   
lv_change_flags  TYPE SPRO_CHANGE_FLAGS, "   
lv_display  TYPE CHAR1, "   
lt_resource  TYPE STANDARD TABLE OF SPRO_RESOURCE_TAB, "   
lv_milestones  TYPE PRMILESTONET, "   
lv_partner  TYPE PRCOMPANYT, "   
lt_keywords  TYPE STANDARD TABLE OF SPRO_KEYWORD_TAB, "   
lv_language  TYPE SY-LANGU, "   SY-LANGU
lt_notetype  TYPE STANDARD TABLE OF SPRO_NOTETYPE_TAB, "   
lv_orgunits  TYPE PRORGUNITST, "   
lv_jump_to_structure  TYPE CHAR1, "   'X'
lv_solartabs  TYPE PROJTABSTRIPST, "   
lv_tree_view  TYPE CHAR1, "   
lt_all_status  TYPE STANDARD TABLE OF SPRO_ALL_STATUS_TAB, "   
lv_kw_status  TYPE PRKWSTATUST, "   
lt_all_priority  TYPE STANDARD TABLE OF SPRO_ALL_PRIORITY_TAB, "   
lv_maintain_view  TYPE CHAR1, "   
lt_all_resource  TYPE STANDARD TABLE OF SPRO_ALL_RESOURCE_TAB, "   
lv_maintain_landscape  TYPE CHAR1, "   
lt_all_keywords  TYPE STANDARD TABLE OF SPRO_ALL_KEYWORD_TAB, "   
lv_maintain_transports  TYPE CHAR1. "   

  CALL FUNCTION 'SPROJECT_HEADER_DISPLAY_MAINT'  "
    EXPORTING
         CUA_STATUS = lv_cua_status
         NO_LANDSCAPE_AUTH = lv_no_landscape_auth
         NO_TRANSPORT_AUTH = lv_no_transport_auth
         WB_MANAGER = lv_wb_manager
         HIDE_PROJECTSTRUCTURE = lv_hide_projectstructure
         HIDE_TRANSPORT_TAB = lv_hide_transport_tab
         INPUT_ON_POPUP = lv_input_on_popup
         HIDE_STATUS_TAB = lv_hide_status_tab
         HIDE_NOTETYPE_TAB = lv_hide_notetype_tab
         ACTIVE_TAB = lv_active_tab
         CREATE_MODE = lv_create_mode
         CUA_TITLE = lv_cua_title
         DISPLAY = lv_display
         LANGUAGE = lv_language
         JUMP_TO_STRUCTURE = lv_jump_to_structure
         TREE_VIEW = lv_tree_view
         MAINTAIN_VIEW = lv_maintain_view
         MAINTAIN_LANDSCAPE = lv_maintain_landscape
         MAINTAIN_TRANSPORTS = lv_maintain_transports
    IMPORTING
         MESSAGE = lv_message
         CHANGE_FLAGS = lv_change_flags
    CHANGING
         HEADER = lv_header
         ACTION = lv_action
         MILESTONES = lv_milestones
         PARTNER = lv_partner
         ORGUNITS = lv_orgunits
         SOLARTABS = lv_solartabs
         KW_STATUS = lv_kw_status
    TABLES
         STATUS = lt_status
         ALL_NOTETYPE = lt_all_notetype
         OBJECTLIST = lt_objectlist
         DEVOBJECTS = lt_devobjects
         PRIORITY = lt_priority
         RESOURCE = lt_resource
         KEYWORDS = lt_keywords
         NOTETYPE = lt_notetype
         ALL_STATUS = lt_all_status
         ALL_PRIORITY = lt_all_priority
         ALL_RESOURCE = lt_all_resource
         ALL_KEYWORDS = lt_all_keywords
. " SPROJECT_HEADER_DISPLAY_MAINT




ABAP code using 7.40 inline data declarations to call FM SPROJECT_HEADER_DISPLAY_MAINT

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 PFKEY FROM SY INTO @DATA(ld_cua_status).
 
 
 
 
 
 
 
 
 
 
 
 
 
 
"SELECT single UCOMM FROM SY INTO @DATA(ld_action).
 
 
"SELECT single TITLE FROM SY INTO @DATA(ld_cua_title).
 
 
 
 
 
 
 
"SELECT single LANGU FROM SY INTO @DATA(ld_language).
DATA(ld_language) = SY-LANGU.
 
 
 
DATA(ld_jump_to_structure) = 'X'.
 
 
 
 
 
 
 
 
 
 
 


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!