SAP ISH_OLE2_SBG_GROUPER_OUT Function Module for
ISH_OLE2_SBG_GROUPER_OUT is a standard ish ole2 sbg grouper out 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 ish ole2 sbg grouper out FM, simply by entering the name ISH_OLE2_SBG_GROUPER_OUT into the relevant SAP transaction such as SE37 or SE38.
Function Group: NGROUPEROLE2
Program Name: SAPLNGROUPEROLE2
Main Program: SAPLNGROUPEROLE2
Appliation area: N
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function ISH_OLE2_SBG_GROUPER_OUT 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 'ISH_OLE2_SBG_GROUPER_OUT'".
EXPORTING
SS_PATIENT_DATA = "IS-H BAPI Patient Return Data
SS_CASE_DATA = "IS-H BAPI Case Data
* SS_BIRTH_DATA = "IS-H: Birth Data of Newborns
* SS_ADMIN_DATA = "IS-H: Administration Data for DRG Grouper Interface
SS_CONNECTION_DATA = "IS-H: DRG Grouper
SS_FILE_NAME = "IS-HCM: EDI File Name with Complete Path, 225 Chars Max.
* SS_USER_NAME = "System, Logon Name of User
* SS_COLLECT_AND_WAIT = ' ' "IS-H: Flag Indicating Whether Further Cases to Come
IMPORTING
SS_RETURN_CODE = "Return Value, Return Value after ABAP Statements
TABLES
* SS_MOVEMENT_TAB = "IS-H BAPI Movement Data
* SS_DRG_TAB = "IS-H: Table Containing Case-Related DRGs
* SS_DIA_TAB = "IS-H BAPI Case Diagnosis Data
* SS_ICP_TAB = "IS-H: DRG-Relevant Surgical Procedure Codes
* SS_RETURN_TAB = "Return Parameter(s)
EXCEPTIONS
OLE_FAILED = 1
IMPORTING Parameters details for ISH_OLE2_SBG_GROUPER_OUT
SS_PATIENT_DATA - IS-H BAPI Patient Return Data
Data type: BAPI1084OUTOptional: No
Call by Reference: No ( called with pass by value option)
SS_CASE_DATA - IS-H BAPI Case Data
Data type: BAPI2097CASEOptional: No
Call by Reference: No ( called with pass by value option)
SS_BIRTH_DATA - IS-H: Birth Data of Newborns
Data type: NGEBOptional: Yes
Call by Reference: No ( called with pass by value option)
SS_ADMIN_DATA - IS-H: Administration Data for DRG Grouper Interface
Data type: ISH_DRG_ADMIN_DATAOptional: Yes
Call by Reference: No ( called with pass by value option)
SS_CONNECTION_DATA - IS-H: DRG Grouper
Data type: TNGRP2Optional: No
Call by Reference: No ( called with pass by value option)
SS_FILE_NAME - IS-HCM: EDI File Name with Complete Path, 225 Chars Max.
Data type: RNCFNAME-FNAMEOptional: No
Call by Reference: No ( called with pass by value option)
SS_USER_NAME - System, Logon Name of User
Data type: SY-UNAMEOptional: Yes
Call by Reference: No ( called with pass by value option)
SS_COLLECT_AND_WAIT - IS-H: Flag Indicating Whether Further Cases to Come
Data type: ISH_ON_OFFDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for ISH_OLE2_SBG_GROUPER_OUT
SS_RETURN_CODE - Return Value, Return Value after ABAP Statements
Data type: SY-SUBRCOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for ISH_OLE2_SBG_GROUPER_OUT
SS_MOVEMENT_TAB - IS-H BAPI Movement Data
Data type: BAPI2097MOVEOptional: Yes
Call by Reference: Yes
SS_DRG_TAB - IS-H: Table Containing Case-Related DRGs
Data type: NDRGOptional: Yes
Call by Reference: No ( called with pass by value option)
SS_DIA_TAB - IS-H BAPI Case Diagnosis Data
Data type: BAPI2098DATAOptional: Yes
Call by Reference: No ( called with pass by value option)
SS_ICP_TAB - IS-H: DRG-Relevant Surgical Procedure Codes
Data type: NICPOptional: Yes
Call by Reference: No ( called with pass by value option)
SS_RETURN_TAB - Return Parameter(s)
Data type: BAPIRET2Optional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
OLE_FAILED -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for ISH_OLE2_SBG_GROUPER_OUT 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_ole_failed | TYPE STRING, " | |||
| lv_ss_return_code | TYPE SY-SUBRC, " | |||
| lt_ss_movement_tab | TYPE STANDARD TABLE OF BAPI2097MOVE, " | |||
| lv_ss_patient_data | TYPE BAPI1084OUT, " | |||
| lt_ss_drg_tab | TYPE STANDARD TABLE OF NDRG, " | |||
| lv_ss_case_data | TYPE BAPI2097CASE, " | |||
| lt_ss_dia_tab | TYPE STANDARD TABLE OF BAPI2098DATA, " | |||
| lv_ss_birth_data | TYPE NGEB, " | |||
| lt_ss_icp_tab | TYPE STANDARD TABLE OF NICP, " | |||
| lv_ss_admin_data | TYPE ISH_DRG_ADMIN_DATA, " | |||
| lt_ss_return_tab | TYPE STANDARD TABLE OF BAPIRET2, " | |||
| lv_ss_connection_data | TYPE TNGRP2, " | |||
| lv_ss_file_name | TYPE RNCFNAME-FNAME, " | |||
| lv_ss_user_name | TYPE SY-UNAME, " | |||
| lv_ss_collect_and_wait | TYPE ISH_ON_OFF. " ' ' |
|   CALL FUNCTION 'ISH_OLE2_SBG_GROUPER_OUT' " |
| EXPORTING | ||
| SS_PATIENT_DATA | = lv_ss_patient_data | |
| SS_CASE_DATA | = lv_ss_case_data | |
| SS_BIRTH_DATA | = lv_ss_birth_data | |
| SS_ADMIN_DATA | = lv_ss_admin_data | |
| SS_CONNECTION_DATA | = lv_ss_connection_data | |
| SS_FILE_NAME | = lv_ss_file_name | |
| SS_USER_NAME | = lv_ss_user_name | |
| SS_COLLECT_AND_WAIT | = lv_ss_collect_and_wait | |
| IMPORTING | ||
| SS_RETURN_CODE | = lv_ss_return_code | |
| TABLES | ||
| SS_MOVEMENT_TAB | = lt_ss_movement_tab | |
| SS_DRG_TAB | = lt_ss_drg_tab | |
| SS_DIA_TAB | = lt_ss_dia_tab | |
| SS_ICP_TAB | = lt_ss_icp_tab | |
| SS_RETURN_TAB | = lt_ss_return_tab | |
| EXCEPTIONS | ||
| OLE_FAILED = 1 | ||
| . " ISH_OLE2_SBG_GROUPER_OUT | ||
ABAP code using 7.40 inline data declarations to call FM ISH_OLE2_SBG_GROUPER_OUT
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 SUBRC FROM SY INTO @DATA(ld_ss_return_code). | ||||
| "SELECT single FNAME FROM RNCFNAME INTO @DATA(ld_ss_file_name). | ||||
| "SELECT single UNAME FROM SY INTO @DATA(ld_ss_user_name). | ||||
| DATA(ld_ss_collect_and_wait) | = ' '. | |||
Search for further information about these or an SAP related objects