SAP PRGN_CHECK_PROFILE_STATUS Function Module for









PRGN_CHECK_PROFILE_STATUS is a standard prgn check profile status 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 prgn check profile status FM, simply by entering the name PRGN_CHECK_PROFILE_STATUS into the relevant SAP transaction such as SE37 or SE38.

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



Function PRGN_CHECK_PROFILE_STATUS 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 'PRGN_CHECK_PROFILE_STATUS'"
EXPORTING
ACTIVITY_GROUP = "
* TRANSACTIONS_CHANGED = ' ' "

IMPORTING
MESSAGE_TEXT = "
AUTOUSERPROF = "
RECOMMENDED_ACTION = "
LED_COLOR = "
PROFILE_GENERATION_NECESSARY = "
NO_TRANSACTIONS_AVAILABLE = "
INVALID_ACTIVITY_GROUP = "
NO_AUTHORIZATION_DATA = "
PROFILE_TEXT = "
PROFILE_NAME = "
.



IMPORTING Parameters details for PRGN_CHECK_PROFILE_STATUS

ACTIVITY_GROUP -

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

TRANSACTIONS_CHANGED -

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

EXPORTING Parameters details for PRGN_CHECK_PROFILE_STATUS

MESSAGE_TEXT -

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

AUTOUSERPROF -

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

RECOMMENDED_ACTION -

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

LED_COLOR -

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

PROFILE_GENERATION_NECESSARY -

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

NO_TRANSACTIONS_AVAILABLE -

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

INVALID_ACTIVITY_GROUP -

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

NO_AUTHORIZATION_DATA -

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

PROFILE_TEXT -

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

PROFILE_NAME -

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

Copy and paste ABAP code example for PRGN_CHECK_PROFILE_STATUS 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_message_text  TYPE C, "   
lv_activity_group  TYPE AGR_DEFINE-AGR_NAME, "   
lv_autouserprof  TYPE SMENSAPNEW-CUSTOMIZED, "   
lv_recommended_action  TYPE SMENSAPNEW-CUSTOMIZED, "   
lv_transactions_changed  TYPE SMENSAPNEW-CUSTOMIZED, "   SPACE
lv_led_color  TYPE C, "   
lv_profile_generation_necessary  TYPE SMENSAPNEW-CUSTOMIZED, "   
lv_no_transactions_available  TYPE SMENSAPNEW-CUSTOMIZED, "   
lv_invalid_activity_group  TYPE SMENSAPNEW-CUSTOMIZED, "   
lv_no_authorization_data  TYPE SMENSAPNEW-CUSTOMIZED, "   
lv_profile_text  TYPE AGR_PROF-PTEXT, "   
lv_profile_name  TYPE AGR_1016-PROFILE. "   

  CALL FUNCTION 'PRGN_CHECK_PROFILE_STATUS'  "
    EXPORTING
         ACTIVITY_GROUP = lv_activity_group
         TRANSACTIONS_CHANGED = lv_transactions_changed
    IMPORTING
         MESSAGE_TEXT = lv_message_text
         AUTOUSERPROF = lv_autouserprof
         RECOMMENDED_ACTION = lv_recommended_action
         LED_COLOR = lv_led_color
         PROFILE_GENERATION_NECESSARY = lv_profile_generation_necessary
         NO_TRANSACTIONS_AVAILABLE = lv_no_transactions_available
         INVALID_ACTIVITY_GROUP = lv_invalid_activity_group
         NO_AUTHORIZATION_DATA = lv_no_authorization_data
         PROFILE_TEXT = lv_profile_text
         PROFILE_NAME = lv_profile_name
. " PRGN_CHECK_PROFILE_STATUS




ABAP code using 7.40 inline data declarations to call FM PRGN_CHECK_PROFILE_STATUS

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 AGR_NAME FROM AGR_DEFINE INTO @DATA(ld_activity_group).
 
"SELECT single CUSTOMIZED FROM SMENSAPNEW INTO @DATA(ld_autouserprof).
 
"SELECT single CUSTOMIZED FROM SMENSAPNEW INTO @DATA(ld_recommended_action).
 
"SELECT single CUSTOMIZED FROM SMENSAPNEW INTO @DATA(ld_transactions_changed).
DATA(ld_transactions_changed) = ' '.
 
 
"SELECT single CUSTOMIZED FROM SMENSAPNEW INTO @DATA(ld_profile_generation_necessary).
 
"SELECT single CUSTOMIZED FROM SMENSAPNEW INTO @DATA(ld_no_transactions_available).
 
"SELECT single CUSTOMIZED FROM SMENSAPNEW INTO @DATA(ld_invalid_activity_group).
 
"SELECT single CUSTOMIZED FROM SMENSAPNEW INTO @DATA(ld_no_authorization_data).
 
"SELECT single PTEXT FROM AGR_PROF INTO @DATA(ld_profile_text).
 
"SELECT single PROFILE FROM AGR_1016 INTO @DATA(ld_profile_name).
 


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!