SAP DEALDATA_READ_ALL_PRODCATS Function Module for Read Deal data for all product categories
DEALDATA_READ_ALL_PRODCATS is a standard dealdata read all prodcats SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Read Deal data for all product categories 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 dealdata read all prodcats FM, simply by entering the name DEALDATA_READ_ALL_PRODCATS into the relevant SAP transaction such as SE37 or SE38.
Function Group: TB05
Program Name: SAPLTB05
Main Program: SAPLTB05
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function DEALDATA_READ_ALL_PRODCATS 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 'DEALDATA_READ_ALL_PRODCATS'"Read Deal data for all product categories.
EXPORTING
* IM_RANTYP = "Contract Type
* IM_SANLF = "Financial Product Category
IM_BUKRS = "Company Code
IM_RFHA = "Financial Transaction
IMPORTING
ES_VTBFHA = "Transaction
ES_VTBFHAZU = "Transaction Activity
ET_VTBFHAPO = "Table of flows
ET_VTBFINKO = "Table of conditions
EXCEPTIONS
INVALID = 1 DEAL_NOT_FOUND = 2
IMPORTING Parameters details for DEALDATA_READ_ALL_PRODCATS
IM_RANTYP - Contract Type
Data type: RANTYPOptional: Yes
Call by Reference: Yes
IM_SANLF - Financial Product Category
Data type: TB_SANLFOptional: Yes
Call by Reference: Yes
IM_BUKRS - Company Code
Data type: BUKRSOptional: No
Call by Reference: Yes
IM_RFHA - Financial Transaction
Data type: TB_RFHAOptional: No
Call by Reference: Yes
EXPORTING Parameters details for DEALDATA_READ_ALL_PRODCATS
ES_VTBFHA - Transaction
Data type: VTBFHAOptional: No
Call by Reference: Yes
ES_VTBFHAZU - Transaction Activity
Data type: VTBFHAZUOptional: No
Call by Reference: Yes
ET_VTBFHAPO - Table of flows
Data type: FTR_FHAPOOptional: No
Call by Reference: Yes
ET_VTBFINKO - Table of conditions
Data type: TBFINKOOptional: No
Call by Reference: Yes
EXCEPTIONS details
INVALID - Invalid call
Data type:Optional: No
Call by Reference: Yes
DEAL_NOT_FOUND - No data for deal found on DB
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for DEALDATA_READ_ALL_PRODCATS 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_invalid | TYPE STRING, " | |||
| lv_es_vtbfha | TYPE VTBFHA, " | |||
| lv_im_rantyp | TYPE RANTYP, " | |||
| lv_im_sanlf | TYPE TB_SANLF, " | |||
| lv_es_vtbfhazu | TYPE VTBFHAZU, " | |||
| lv_deal_not_found | TYPE VTBFHAZU, " | |||
| lv_im_bukrs | TYPE BUKRS, " | |||
| lv_et_vtbfhapo | TYPE FTR_FHAPO, " | |||
| lv_im_rfha | TYPE TB_RFHA, " | |||
| lv_et_vtbfinko | TYPE TBFINKO. " |
|   CALL FUNCTION 'DEALDATA_READ_ALL_PRODCATS' "Read Deal data for all product categories |
| EXPORTING | ||
| IM_RANTYP | = lv_im_rantyp | |
| IM_SANLF | = lv_im_sanlf | |
| IM_BUKRS | = lv_im_bukrs | |
| IM_RFHA | = lv_im_rfha | |
| IMPORTING | ||
| ES_VTBFHA | = lv_es_vtbfha | |
| ES_VTBFHAZU | = lv_es_vtbfhazu | |
| ET_VTBFHAPO | = lv_et_vtbfhapo | |
| ET_VTBFINKO | = lv_et_vtbfinko | |
| EXCEPTIONS | ||
| INVALID = 1 | ||
| DEAL_NOT_FOUND = 2 | ||
| . " DEALDATA_READ_ALL_PRODCATS | ||
ABAP code using 7.40 inline data declarations to call FM DEALDATA_READ_ALL_PRODCATS
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.Search for further information about these or an SAP related objects