Hello,
we want to define conditions in a decision table using context from a custom specific structure. The content of the structure is pass to the function successfully, via event 315 ( BRF+ used in Collection Management) as the custom specific structure is part of the function signature.
The custom specific fields are defined as colunms on the decision table, the values to define conditions are set up as set up as Direct Values Inputs.
While the dunning is executed, the decision table is not able to interpret the conditions setted using this Direct value Inputs so a Collection Step is not determine. As soon as i remove the colunm that refects to the condition set up using the custom specific field, a collection step is determined.
Could you please let me know how how i could use this Customs Specific Structure to defin conditions?
Thank you in advance
Regards
Carlos
Did you try to compare result from Simulation of Function and actual processing of Function (using report).
Check the Display Processing Steps in Simulation..It will give you explanation of returned result..
Rahul,
thanks for your reply. I have simulated the fuction and the decission table is able to determine a result.
Looks like my issue is that the content from my custom specific structure "ZACCOUNTINFO" that is moved to the BRF+ Function from event 315 is not been recognized as context values.
The logic we have in event 315 to set the context looks accurate to me:
MOVE: 'ZACCOUNTINFO' TO ls_name_value-name,
'S' TO ls_name_value-kind.
GET REFERENCE OF zaccountinfo INTO ls_name_value-value.
INSERT ls_name_value INTO TABLE lt_name_value.
Any ideas in how i need to define the context in the function to get this values recognized by the conditions in the decission tree?
Thank you in advance
Regards
Carlos
Hi,
I am not expert in Collection Strategy but according to document http://scn.sap.com/docs/DOC-23175 and sap note 1466868 mentioned in the page 7..look like you are missing some piece of code.
Please check note 1466868.
Thanks,
Rahul
We based the definition of our collection strategy referring to note 14666868.
We have modify the code to move context to the function using
MOVE: 'ZACCOUNTINFO' TO ls_name_value-name.
GET REFERENCE OF i_fkkmagrp INTO lr_data.
TRY.
CALL METHOD cl_fdt_function_process=>move_data_to_data_object
EXPORTING
ir_data = lr_data
iv_function_id = lv_function_id
iv_data_object = 'ZACCOUNTINFO'
iv_timestamp = lv_timestamp
iv_trace_generation = i_para_0300-actbrftrace
IMPORTING
er_data = ls_name_value-value.
CATCH cx_fdt_input .
ENDTRY.
INSERT ls_name_value INTO TABLE lt_name_value.
But looks like this doesn't works either,
So far we're able to move standard content related to Standard Structures or Tables to the context using
MOVE: 'I_FKKMAGRP' TO ls_name_value-name,
'S' TO ls_name_value-kind.
GET REFERENCE OF zaccountinfo INTO ls_name_value-value.
INSERT ls_name_value INTO TABLE lt_name_value.
But unfortunately not working for our customer structure for BRFplus
Should my issue be related to the Define Data Binding for my custom structure?
Thanks
Regards
Carlos
Hi Corlos,
I am not sure but try this,
----------------------------------------------------------------------------
MOVE: 'ZACCOUNTINFO' TO ls_name_value-name.
GET REFERENCE OF zaccountinfo INTO lr_data.
TRY.
CALL METHOD cl_fdt_function_process=>move_data_to_data_object
EXPORTING
ir_data = lr_data
iv_function_id = lv_function_id
iv_data_object = 'ZACCOUNTINFO'
iv_timestamp = lv_timestamp
iv_trace_generation = i_para_0300-actbrftrace
IMPORTING
er_data = ls_name_value-value.
CATCH cx_fdt_input .
ENDTRY.
INSERT ls_name_value INTO TABLE lt_name_value.
----------------------------------------------------------------------------
or may be you can put the break point just before calling method cl_fdt_function_process=>process and check the contents of table lt_name_value is as expected or not ?
If you still have issue & if possible try to paste the complete code of function module.
regards, Rahul
Hi Carlos,
Instead of manually coding the whole BRFplus call, did you try using program 'FDT_TEMPLATE_FUNCTION_PROCESS' to generate the function call code? It will generate the entire BRFplus call for you.
Thanks,
Lee
Thank you Lee,
I generated the function call code for the function, and the codes gets generated considering every structure that I have defined on the function's signature, including the customer specific structure ZACCOUNTINFO.
We're putting the code in event 315 and test soon.
Thank you very much for your help.
Regards
Carlos
How did I miss it..![]()
Thanks, Lee