SAP RHPS_SCALE_NEXT_VALID_PROFCY Function Module for
RHPS_SCALE_NEXT_VALID_PROFCY is a standard rhps scale next valid profcy 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 rhps scale next valid profcy FM, simply by entering the name RHPS_SCALE_NEXT_VALID_PROFCY into the relevant SAP transaction such as SE37 or SE38.
Function Group: RHPS
Program Name: SAPLRHPS
Main Program: SAPLRHPS
Appliation area: H
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function RHPS_SCALE_NEXT_VALID_PROFCY 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 'RHPS_SCALE_NEXT_VALID_PROFCY'".
EXPORTING
SCALE_ID = "Scale ID
RATING = "
* NOT_RATED = ' ' "
IMPORTING
NEXT_RATING = "
NEW_NOT_RATED = "
STEXT = "
RATING_CORRECTED = "
EXCEPTIONS
SCALE_NOT_FOUND = 1
IMPORTING Parameters details for RHPS_SCALE_NEXT_VALID_PROFCY
SCALE_ID - Scale ID
Data type: T77SK-SCALE_IDOptional: No
Call by Reference: No ( called with pass by value option)
RATING -
Data type: PT1045-RATINGOptional: No
Call by Reference: No ( called with pass by value option)
NOT_RATED -
Data type: PT1045-NOT_RATEDDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for RHPS_SCALE_NEXT_VALID_PROFCY
NEXT_RATING -
Data type: PT1045-RATINGOptional: No
Call by Reference: No ( called with pass by value option)
NEW_NOT_RATED -
Data type: PT1045-NOT_RATEDOptional: No
Call by Reference: No ( called with pass by value option)
STEXT -
Data type: T77TN-RAT_TEXTOptional: No
Call by Reference: No ( called with pass by value option)
RATING_CORRECTED -
Data type: CHAR1Optional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
SCALE_NOT_FOUND - Scale does not exist
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for RHPS_SCALE_NEXT_VALID_PROFCY 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_scale_id | TYPE T77SK-SCALE_ID, " | |||
| lv_next_rating | TYPE PT1045-RATING, " | |||
| lv_scale_not_found | TYPE PT1045, " | |||
| lv_rating | TYPE PT1045-RATING, " | |||
| lv_new_not_rated | TYPE PT1045-NOT_RATED, " | |||
| lv_stext | TYPE T77TN-RAT_TEXT, " | |||
| lv_not_rated | TYPE PT1045-NOT_RATED, " ' ' | |||
| lv_rating_corrected | TYPE CHAR1. " |
|   CALL FUNCTION 'RHPS_SCALE_NEXT_VALID_PROFCY' " |
| EXPORTING | ||
| SCALE_ID | = lv_scale_id | |
| RATING | = lv_rating | |
| NOT_RATED | = lv_not_rated | |
| IMPORTING | ||
| NEXT_RATING | = lv_next_rating | |
| NEW_NOT_RATED | = lv_new_not_rated | |
| STEXT | = lv_stext | |
| RATING_CORRECTED | = lv_rating_corrected | |
| EXCEPTIONS | ||
| SCALE_NOT_FOUND = 1 | ||
| . " RHPS_SCALE_NEXT_VALID_PROFCY | ||
ABAP code using 7.40 inline data declarations to call FM RHPS_SCALE_NEXT_VALID_PROFCY
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 SCALE_ID FROM T77SK INTO @DATA(ld_scale_id). | ||||
| "SELECT single RATING FROM PT1045 INTO @DATA(ld_next_rating). | ||||
| "SELECT single RATING FROM PT1045 INTO @DATA(ld_rating). | ||||
| "SELECT single NOT_RATED FROM PT1045 INTO @DATA(ld_new_not_rated). | ||||
| "SELECT single RAT_TEXT FROM T77TN INTO @DATA(ld_stext). | ||||
| "SELECT single NOT_RATED FROM PT1045 INTO @DATA(ld_not_rated). | ||||
| DATA(ld_not_rated) | = ' '. | |||
Search for further information about these or an SAP related objects