SAP CATALOGUE_SELECTION Function Module for Selektion von Katalog und Codegruppe
CATALOGUE_SELECTION is a standard catalogue selection SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Selektion von Katalog und Codegruppe 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 catalogue selection FM, simply by entering the name CATALOGUE_SELECTION into the relevant SAP transaction such as SE37 or SE38.
Function Group: IWO0
Program Name: SAPLIWO0
Main Program: SAPLIWO0
Appliation area: I
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function CATALOGUE_SELECTION 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 'CATALOGUE_SELECTION'"Selektion von Katalog und Codegruppe.
EXPORTING
RBNR = "Tabelle Berichtsschema
QMART = "
* YXX = ' ' "
IMPORTING
CDGRP = "
KATART = "
E_RIWO02 = "
TABLES
* T_RIWO020TAB = "
EXCEPTIONS
CDGRP_NOT_VALID_PATTERN = 1
IMPORTING Parameters details for CATALOGUE_SELECTION
RBNR - Tabelle Berichtsschema
Data type: T352B-RBNROptional: No
Call by Reference: No ( called with pass by value option)
QMART -
Data type: TQ80-QMARTOptional: No
Call by Reference: No ( called with pass by value option)
YXX -
Data type: SY-MSGIDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for CATALOGUE_SELECTION
CDGRP -
Data type: QKAT-CODEGRUPPEOptional: No
Call by Reference: No ( called with pass by value option)
KATART -
Data type: QKAT-KATALOGARTOptional: No
Call by Reference: No ( called with pass by value option)
E_RIWO02 -
Data type: RIWO02Optional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for CATALOGUE_SELECTION
T_RIWO020TAB -
Data type: RIWO020Optional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
CDGRP_NOT_VALID_PATTERN - Invalid pattern
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CATALOGUE_SELECTION 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_rbnr | TYPE T352B-RBNR, " | |||
lv_cdgrp | TYPE QKAT-CODEGRUPPE, " | |||
lt_t_riwo020tab | TYPE STANDARD TABLE OF RIWO020, " | |||
lv_cdgrp_not_valid_pattern | TYPE RIWO020, " | |||
lv_qmart | TYPE TQ80-QMART, " | |||
lv_katart | TYPE QKAT-KATALOGART, " | |||
lv_yxx | TYPE SY-MSGID, " SPACE | |||
lv_e_riwo02 | TYPE RIWO02. " |
  CALL FUNCTION 'CATALOGUE_SELECTION' "Selektion von Katalog und Codegruppe |
EXPORTING | ||
RBNR | = lv_rbnr | |
QMART | = lv_qmart | |
YXX | = lv_yxx | |
IMPORTING | ||
CDGRP | = lv_cdgrp | |
KATART | = lv_katart | |
E_RIWO02 | = lv_e_riwo02 | |
TABLES | ||
T_RIWO020TAB | = lt_t_riwo020tab | |
EXCEPTIONS | ||
CDGRP_NOT_VALID_PATTERN = 1 | ||
. " CATALOGUE_SELECTION |
ABAP code using 7.40 inline data declarations to call FM CATALOGUE_SELECTION
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 RBNR FROM T352B INTO @DATA(ld_rbnr). | ||||
"SELECT single CODEGRUPPE FROM QKAT INTO @DATA(ld_cdgrp). | ||||
"SELECT single QMART FROM TQ80 INTO @DATA(ld_qmart). | ||||
"SELECT single KATALOGART FROM QKAT INTO @DATA(ld_katart). | ||||
"SELECT single MSGID FROM SY INTO @DATA(ld_yxx). | ||||
DATA(ld_yxx) | = ' '. | |||
Search for further information about these or an SAP related objects