SAP GLO_PTRM_WEB_COST_CAT_SH Function Module for Input Help for Cost Category with Search Help
GLO_PTRM_WEB_COST_CAT_SH is a standard glo ptrm web cost cat sh SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Input Help for Cost Category with Search Help 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 glo ptrm web cost cat sh FM, simply by entering the name GLO_PTRM_WEB_COST_CAT_SH into the relevant SAP transaction such as SE37 or SE38.
Function Group: GLO_PTRM_WEB_COST_CAT_VR
Program Name: SAPLGLO_PTRM_WEB_COST_CAT_VR
Main Program: SAPLGLO_PTRM_WEB_COST_CAT_VR
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function GLO_PTRM_WEB_COST_CAT_SH 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 'GLO_PTRM_WEB_COST_CAT_SH'"Input Help for Cost Category with Search Help.
EXPORTING
I_COST_CAT = "Input Help for Cost Categories with Search Help
* I_LANGUAGE = SY-LANGU "Language Key
* I_MAXROW = 50 "Maximum Number of Lines in Results List of Input Help
IMPORTING
ET_VALUE_LIST = "Input Help for Cost Category with Search Help
ET_RETURN = "Table with BAPI Return Information
IMPORTING Parameters details for GLO_PTRM_WEB_COST_CAT_SH
I_COST_CAT - Input Help for Cost Categories with Search Help
Data type: GLO_PTRV_WEB_COST_CATOptional: No
Call by Reference: No ( called with pass by value option)
I_LANGUAGE - Language Key
Data type: SPRASDefault: SY-LANGU
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_MAXROW - Maximum Number of Lines in Results List of Input Help
Data type: PTRV_WEB_MAXROWDefault: 50
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for GLO_PTRM_WEB_COST_CAT_SH
ET_VALUE_LIST - Input Help for Cost Category with Search Help
Data type: GLO_PTRV_WEB_COST_CAT_TOptional: No
Call by Reference: No ( called with pass by value option)
ET_RETURN - Table with BAPI Return Information
Data type: BAPIRETTABOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for GLO_PTRM_WEB_COST_CAT_SH 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_cost_cat | TYPE GLO_PTRV_WEB_COST_CAT, " | |||
| lv_et_value_list | TYPE GLO_PTRV_WEB_COST_CAT_T, " | |||
| lv_et_return | TYPE BAPIRETTAB, " | |||
| lv_i_language | TYPE SPRAS, " SY-LANGU | |||
| lv_i_maxrow | TYPE PTRV_WEB_MAXROW. " 50 |
|   CALL FUNCTION 'GLO_PTRM_WEB_COST_CAT_SH' "Input Help for Cost Category with Search Help |
| EXPORTING | ||
| I_COST_CAT | = lv_i_cost_cat | |
| I_LANGUAGE | = lv_i_language | |
| I_MAXROW | = lv_i_maxrow | |
| IMPORTING | ||
| ET_VALUE_LIST | = lv_et_value_list | |
| ET_RETURN | = lv_et_return | |
| . " GLO_PTRM_WEB_COST_CAT_SH | ||
ABAP code using 7.40 inline data declarations to call FM GLO_PTRM_WEB_COST_CAT_SH
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_language) | = SY-LANGU. | |||
| DATA(ld_i_maxrow) | = 50. | |||
Search for further information about these or an SAP related objects