SAP RSBB_WORKBOOK_COMP_ID_GET Function Module for Extraction of Workbook ID from RSBB_NODES_TREE GUID









RSBB_WORKBOOK_COMP_ID_GET is a standard rsbb workbook comp id get SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Extraction of Workbook ID from RSBB_NODES_TREE GUID 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 rsbb workbook comp id get FM, simply by entering the name RSBB_WORKBOOK_COMP_ID_GET into the relevant SAP transaction such as SE37 or SE38.

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



Function RSBB_WORKBOOK_COMP_ID_GET 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 'RSBB_WORKBOOK_COMP_ID_GET'"Extraction of Workbook ID from RSBB_NODES_TREE GUID
EXPORTING
I_GUID = "GUID for RSBB_NODES_TREE (AGR_NAME, ORIGIN_ID, SAP_GUID)

IMPORTING
E_AGR_NAME = "Role Name
E_ORIGIN_ID = "Counter for Menu ID
E_WORKBOOKID = "Unique ID - 32 Characters
E_ITEMID = "Short Description
E_VIEWID = "Medium-Length Description
E_PAGEID = "Short Description
E_SUBRC = "Return Value, Return Value After ABAP Statements

TABLES
E_T_COMP_ID = "Query String for WWW Server
.



IMPORTING Parameters details for RSBB_WORKBOOK_COMP_ID_GET

I_GUID - GUID for RSBB_NODES_TREE (AGR_NAME, ORIGIN_ID, SAP_GUID)

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

EXPORTING Parameters details for RSBB_WORKBOOK_COMP_ID_GET

E_AGR_NAME - Role Name

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

E_ORIGIN_ID - Counter for Menu ID

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

E_WORKBOOKID - Unique ID - 32 Characters

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

E_ITEMID - Short Description

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

E_VIEWID - Medium-Length Description

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

E_PAGEID - Short Description

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

E_SUBRC - Return Value, Return Value After ABAP Statements

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

TABLES Parameters details for RSBB_WORKBOOK_COMP_ID_GET

E_T_COMP_ID - Query String for WWW Server

Data type: RRX_S_W3QUERY
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for RSBB_WORKBOOK_COMP_ID_GET 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_i_guid  TYPE RSBB_NODES_TREE-GUID, "   
lv_e_agr_name  TYPE RSBB_NODES-AGR_NAME, "   
lt_e_t_comp_id  TYPE STANDARD TABLE OF RRX_S_W3QUERY, "   
lv_e_origin_id  TYPE RSBB_NODES-ORIGIN_ID, "   
lv_e_workbookid  TYPE RSBB_NODES-SAP_GUID, "   
lv_e_itemid  TYPE RSRWBITEMS-ITEMID, "   
lv_e_viewid  TYPE RSRWBITEMS-VIEWID, "   
lv_e_pageid  TYPE RSRWBPAGES-PAGEID, "   
lv_e_subrc  TYPE SY-SUBRC. "   

  CALL FUNCTION 'RSBB_WORKBOOK_COMP_ID_GET'  "Extraction of Workbook ID from RSBB_NODES_TREE GUID
    EXPORTING
         I_GUID = lv_i_guid
    IMPORTING
         E_AGR_NAME = lv_e_agr_name
         E_ORIGIN_ID = lv_e_origin_id
         E_WORKBOOKID = lv_e_workbookid
         E_ITEMID = lv_e_itemid
         E_VIEWID = lv_e_viewid
         E_PAGEID = lv_e_pageid
         E_SUBRC = lv_e_subrc
    TABLES
         E_T_COMP_ID = lt_e_t_comp_id
. " RSBB_WORKBOOK_COMP_ID_GET




ABAP code using 7.40 inline data declarations to call FM RSBB_WORKBOOK_COMP_ID_GET

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 GUID FROM RSBB_NODES_TREE INTO @DATA(ld_i_guid).
 
"SELECT single AGR_NAME FROM RSBB_NODES INTO @DATA(ld_e_agr_name).
 
 
"SELECT single ORIGIN_ID FROM RSBB_NODES INTO @DATA(ld_e_origin_id).
 
"SELECT single SAP_GUID FROM RSBB_NODES INTO @DATA(ld_e_workbookid).
 
"SELECT single ITEMID FROM RSRWBITEMS INTO @DATA(ld_e_itemid).
 
"SELECT single VIEWID FROM RSRWBITEMS INTO @DATA(ld_e_viewid).
 
"SELECT single PAGEID FROM RSRWBPAGES INTO @DATA(ld_e_pageid).
 
"SELECT single SUBRC FROM SY INTO @DATA(ld_e_subrc).
 


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!