cancel
Showing results for 
Search instead for 
Did you mean: 

BSP OnInputProcessing Table Page Attribute

merveguel
Participant
0 Kudos

Hi,


I am trying to pass the 'SD_DOCUMENT_FLOW_GET' function's table result to the html layout.

But when I try to activate my OnInputProcessing code it gets error : ' The result type of the function method cannot be converted into the type of LT_DOCFLOW. '



LT_DOCFLOW and ET_DOCFLOW are same type why am I getting this error? Any help would be appreciated.



In Page Attributes;

bnumberTYPEVBELN
et_docflowTYPETDT_DOCFLOW




In OnInputProcessing Event Handler;

* event handler for checking and processing user input and

* for defining navigation

DATA : IV_DOCNUM  TYPE VBELN,

        Lt_docflow TYPE REF TO TDS_DOCFLOW.

navigation->set_parameter( name  = 'bnumber' ).

iv_docnum = navigation->get_parameter( name = 'bnumber' ).

case event_id.

   when 'Detail'.


     CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'

       EXPORTING

         INPUT  = iv_docnum

       IMPORTING

         OUTPUT = iv_docnum.

     CALL FUNCTION 'SD_DOCUMENT_FLOW_GET'

       EXPORTING

         IV_DOCNUM  = iv_docnum

       IMPORTING

         ET_DOCFLOW = et_docflow.

navigation->set_parameter( name  = 'et_docflow').

lt_docflow = navigation->get_parameter( name = 'et_docflow' ).

ENDCASE.

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member191569
Active Participant
0 Kudos

Are you sure that LT_DOCFLOW and ET_DOCFLOW are same types? As i Can see in your code, the types are:

et_docflow TYPE tdt_docflow.

lt_docflow TYPE REF TO TDS_DOCFLOW.

These are different types. The first one (ET_DOCFLOW) is table type while the second (LT_DOCFLOW) is a reference variable to structure TDS_DOCFLOW.

merveguel
Participant
0 Kudos

I tried all combinations for lt_docflow to match et_docflow's type. But error is not change. I solved the issue with define a custom type.

former_member191569
Active Participant
0 Kudos

Merve,

you don't need to try "all combinations". Did you understand that your previous code uses two different types that are not compatible for assignment? Can you post your final code to make this post more valuable to others?

Thank you