SAP RPM_DISPLAY_RESOURCE_ALLOC Function Module for RPM Display resource alocation to project roles









RPM_DISPLAY_RESOURCE_ALLOC is a standard rpm display resource alloc SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for RPM Display resource alocation to project roles 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 rpm display resource alloc FM, simply by entering the name RPM_DISPLAY_RESOURCE_ALLOC into the relevant SAP transaction such as SE37 or SE38.

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



Function RPM_DISPLAY_RESOURCE_ALLOC 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 'RPM_DISPLAY_RESOURCE_ALLOC'"RPM Display resource alocation to project roles
EXPORTING
IT_RESOURCE_ID = "List of external ID's
* IV_PROJECT_ID = "External ID
* IV_ROLE_ID = "External ID
* IV_START_PERIOD = "RPM Data Element: Time period
* IV_SCROLL_DIRECT = "Scroll direction 'P' or 'F'
* IV_PERIODS = "Number of periods to display
* IV_NEW_RESOURCE = "Create initial Breakdown table
* IV_LANGUAGE = SY-LANGU "Language according to ISO 639

IMPORTING
ET_RESOURCE_DATA = "RPM Structure: Resource attributes exposed to the outside
ET_RESOURCE_CUST = "RPM Resource customer fields for relate resource & bupa
EV_RC = "
EV_MSG = "
ET_MSG = "Table type for messages
.



IMPORTING Parameters details for RPM_DISPLAY_RESOURCE_ALLOC

IT_RESOURCE_ID - List of external ID's

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

IV_PROJECT_ID - External ID

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

IV_ROLE_ID - External ID

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

IV_START_PERIOD - RPM Data Element: Time period

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

IV_SCROLL_DIRECT - Scroll direction 'P' or 'F'

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

IV_PERIODS - Number of periods to display

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

IV_NEW_RESOURCE - Create initial Breakdown table

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

IV_LANGUAGE - Language according to ISO 639

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

EXPORTING Parameters details for RPM_DISPLAY_RESOURCE_ALLOC

ET_RESOURCE_DATA - RPM Structure: Resource attributes exposed to the outside

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

ET_RESOURCE_CUST - RPM Resource customer fields for relate resource & bupa

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

EV_RC -

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

EV_MSG -

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

ET_MSG - Table type for messages

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

Copy and paste ABAP code example for RPM_DISPLAY_RESOURCE_ALLOC 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_it_resource_id  TYPE RPM_TT_EXTIDS, "   
lv_et_resource_data  TYPE RPM_TT_RESOURCE_API, "   
lv_iv_project_id  TYPE RPM_TV_EXTID, "   
lv_et_resource_cust  TYPE RPM_TT_RESOURCE_CUST_ALL, "   
lv_ev_rc  TYPE I, "   
lv_iv_role_id  TYPE RPM_TV_EXTID, "   
lv_ev_msg  TYPE STRING, "   
lv_iv_start_period  TYPE RPM_TV_PERIOD, "   
lv_et_msg  TYPE RPM_TT_MESSAGES, "   
lv_iv_scroll_direct  TYPE RPM_TV_SCROLL, "   
lv_iv_periods  TYPE I, "   
lv_iv_new_resource  TYPE XFELD, "   
lv_iv_language  TYPE LAISO. "   SY-LANGU

  CALL FUNCTION 'RPM_DISPLAY_RESOURCE_ALLOC'  "RPM Display resource alocation to project roles
    EXPORTING
         IT_RESOURCE_ID = lv_it_resource_id
         IV_PROJECT_ID = lv_iv_project_id
         IV_ROLE_ID = lv_iv_role_id
         IV_START_PERIOD = lv_iv_start_period
         IV_SCROLL_DIRECT = lv_iv_scroll_direct
         IV_PERIODS = lv_iv_periods
         IV_NEW_RESOURCE = lv_iv_new_resource
         IV_LANGUAGE = lv_iv_language
    IMPORTING
         ET_RESOURCE_DATA = lv_et_resource_data
         ET_RESOURCE_CUST = lv_et_resource_cust
         EV_RC = lv_ev_rc
         EV_MSG = lv_ev_msg
         ET_MSG = lv_et_msg
. " RPM_DISPLAY_RESOURCE_ALLOC




ABAP code using 7.40 inline data declarations to call FM RPM_DISPLAY_RESOURCE_ALLOC

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.

 
 
 
 
 
 
 
 
 
 
 
 
DATA(ld_iv_language) = SY-LANGU.
 


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!