8 Replies Latest reply: Apr 6, 2012 7:50 AM by Rahul Tiwari RSS

Using Custom Structure as context : ( BRF+ in Collection Management)

FICA CEDARS
Currently Being Moderated

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

  • Re: Using Custom Structure as context : ( BRF+ in Collection Management)
    Rahul Tiwari
    Currently Being Moderated

    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..

  • Using Custom Structure as context : ( BRF+ in Collection Management)
    FICA CEDARS
    Currently Being Moderated

    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

    • Re: Using Custom Structure as context : ( BRF+ in Collection Management)
      Rahul Tiwari
      Currently Being Moderated

      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

  • Re: Using Custom Structure as context : ( BRF+ in Collection Management)
    Lee Chisholm
    Currently Being Moderated

    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

Actions