SAP PRGN_STRU_IMPORT_NODES_BY_RFC Function Module for









PRGN_STRU_IMPORT_NODES_BY_RFC is a standard prgn stru import nodes by rfc 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 stru import nodes by rfc FM, simply by entering the name PRGN_STRU_IMPORT_NODES_BY_RFC into the relevant SAP transaction such as SE37 or SE38.

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



Function PRGN_STRU_IMPORT_NODES_BY_RFC 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_STRU_IMPORT_NODES_BY_RFC'"
EXPORTING
* TARGET_SYSTEM = ' ' "Logical Destination (Specified in Function Call)
* ONLY_SINGLE_ACTGROUPS = 'X' "Customized ('C') or standard menu ('S') flag
* ONLY_COLLECTIVE_ACTGROUPS = ' ' "Customized ('C') or standard menu ('S') flag

IMPORTING
SINGLE_SELECTED_AGR = "Role Name
NUMBER_OF_AGRS = "Internal Tables, Current Row Index

EXCEPTIONS
ACTION_CANCELLED = 1 NOT_AUTHORIZED = 2
.



IMPORTING Parameters details for PRGN_STRU_IMPORT_NODES_BY_RFC

TARGET_SYSTEM - Logical Destination (Specified in Function Call)

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

ONLY_SINGLE_ACTGROUPS - Customized ('C') or standard menu ('S') flag

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

ONLY_COLLECTIVE_ACTGROUPS - Customized ('C') or standard menu ('S') flag

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

EXPORTING Parameters details for PRGN_STRU_IMPORT_NODES_BY_RFC

SINGLE_SELECTED_AGR - Role Name

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

NUMBER_OF_AGRS - Internal Tables, Current Row Index

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

EXCEPTIONS details

ACTION_CANCELLED -

Data type:
Optional: No
Call by Reference: Yes

NOT_AUTHORIZED -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for PRGN_STRU_IMPORT_NODES_BY_RFC 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_target_system  TYPE AGR_HIER-TARGET_SYS, "   SPACE
lv_action_cancelled  TYPE AGR_HIER, "   
lv_single_selected_agr  TYPE AGR_DEFINE-AGR_NAME, "   
lv_not_authorized  TYPE AGR_DEFINE, "   
lv_number_of_agrs  TYPE SY-TABIX, "   
lv_only_single_actgroups  TYPE SMENSAPNEW-CUSTOMIZED, "   'X'
lv_only_collective_actgroups  TYPE SMENSAPNEW-CUSTOMIZED. "   SPACE

  CALL FUNCTION 'PRGN_STRU_IMPORT_NODES_BY_RFC'  "
    EXPORTING
         TARGET_SYSTEM = lv_target_system
         ONLY_SINGLE_ACTGROUPS = lv_only_single_actgroups
         ONLY_COLLECTIVE_ACTGROUPS = lv_only_collective_actgroups
    IMPORTING
         SINGLE_SELECTED_AGR = lv_single_selected_agr
         NUMBER_OF_AGRS = lv_number_of_agrs
    EXCEPTIONS
        ACTION_CANCELLED = 1
        NOT_AUTHORIZED = 2
. " PRGN_STRU_IMPORT_NODES_BY_RFC




ABAP code using 7.40 inline data declarations to call FM PRGN_STRU_IMPORT_NODES_BY_RFC

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 TARGET_SYS FROM AGR_HIER INTO @DATA(ld_target_system).
DATA(ld_target_system) = ' '.
 
 
"SELECT single AGR_NAME FROM AGR_DEFINE INTO @DATA(ld_single_selected_agr).
 
 
"SELECT single TABIX FROM SY INTO @DATA(ld_number_of_agrs).
 
"SELECT single CUSTOMIZED FROM SMENSAPNEW INTO @DATA(ld_only_single_actgroups).
DATA(ld_only_single_actgroups) = 'X'.
 
"SELECT single CUSTOMIZED FROM SMENSAPNEW INTO @DATA(ld_only_collective_actgroups).
DATA(ld_only_collective_actgroups) = ' '.
 


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!