SAP H99B_GET_DEFAULT_GROUP_TYPE Function Module for Returns the output form type - Group level









H99B_GET_DEFAULT_GROUP_TYPE is a standard h99b get default group type SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Returns the output form type - Group level 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 h99b get default group type FM, simply by entering the name H99B_GET_DEFAULT_GROUP_TYPE into the relevant SAP transaction such as SE37 or SE38.

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



Function H99B_GET_DEFAULT_GROUP_TYPE 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 'H99B_GET_DEFAULT_GROUP_TYPE'"Returns the output form type - Group level
EXPORTING
I_MOLGA = "Country Grouping
I_FOGROUP = "Output Form Group
* I_DATE = SY-DATUM "Date

IMPORTING
E_FTGROUPEX = "Form Type Group Exception
E_FOTYPE = "Output Form Type

EXCEPTIONS
GROUP_NAME_NOT_FOUND = 1 NO_GROUP_TYPE_FOUND = 2
.



IMPORTING Parameters details for H99B_GET_DEFAULT_GROUP_TYPE

I_MOLGA - Country Grouping

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

I_FOGROUP - Output Form Group

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

I_DATE - Date

Data type: DATUM
Default: SY-DATUM
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for H99B_GET_DEFAULT_GROUP_TYPE

E_FTGROUPEX - Form Type Group Exception

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

E_FOTYPE - Output Form Type

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

EXCEPTIONS details

GROUP_NAME_NOT_FOUND - Group does not exist

Data type:
Optional: No
Call by Reference: Yes

NO_GROUP_TYPE_FOUND - Form output type not defined in the group level

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for H99B_GET_DEFAULT_GROUP_TYPE 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_molga  TYPE MOLGA, "   
lv_e_ftgroupex  TYPE P_99B_FTGROUPEX, "   
lv_group_name_not_found  TYPE P_99B_FTGROUPEX, "   
lv_e_fotype  TYPE P_99B_FOTYPE, "   
lv_i_fogroup  TYPE P_99B_FOGROUP, "   
lv_no_group_type_found  TYPE P_99B_FOGROUP, "   
lv_i_date  TYPE DATUM. "   SY-DATUM

  CALL FUNCTION 'H99B_GET_DEFAULT_GROUP_TYPE'  "Returns the output form type - Group level
    EXPORTING
         I_MOLGA = lv_i_molga
         I_FOGROUP = lv_i_fogroup
         I_DATE = lv_i_date
    IMPORTING
         E_FTGROUPEX = lv_e_ftgroupex
         E_FOTYPE = lv_e_fotype
    EXCEPTIONS
        GROUP_NAME_NOT_FOUND = 1
        NO_GROUP_TYPE_FOUND = 2
. " H99B_GET_DEFAULT_GROUP_TYPE




ABAP code using 7.40 inline data declarations to call FM H99B_GET_DEFAULT_GROUP_TYPE

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.

 
 
 
 
 
 
DATA(ld_i_date) = SY-DATUM.
 


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!