on 11-13-2014 8:00 PM
Hi!
A report calls a method to process a BRF+ function using the code generated by FDT_TEMPLATE_FUNCTION_PROCESS.
This function calls the following rule:
Is it posible to get the values (KZ, ZP) from the abap program mentioned above so users can know which document types are used in this validation?
Thanks!
Cristian
Hi Cristian,
the code that you call in order to process the function usually returns only the result data object (usually because you have the option to return changed context parameters too). I guess that this information is not part of the result data object and, hence not accesable from the calling program.
You have several options depending on your requirements in general:
The difference between the second and the third option is that within the second option you can define which information concerning the rule processing is handed over to the caller/user while in the third option you have the complete information on the rules processing
Hope that helps
BR
Christian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Cristian,
yes there is an API to enable the interaction between ABAP coding and the BRF+.
The object you are searching for is the query object. Here is a coding example
In line 61 you fetch a refrence to a query object by specifiying the object type and the expression type id (for valid values see interface IF_FDT_CONSTANTS).
In line 65 you create the selection criteria namely the queryfields (for valid values see interface IF_FDT_ADMIN_DATA_QUERY).
In line 74 you fetch the data using the query object. Let us assume that only one result is possible.
In line 81 you create an object for the search result.
You find further examples in your system in the report FDT_DEMO_QUERY_OBJECTS.
Do not try to to fetch the data via direct SELECTs using the FDT DB tables. The only valid way is the usage of the API classes to deal with that data.
BR
Christian
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.