cancel
Showing results for 
Search instead for 
Did you mean: 

How do I pass BAPI Wrapper input values set in java to handler class?

Former Member
0 Kudos

     I am trying to pass a table of work order numbers I brought up from the device which are only connected to WorkorderReferences to the handler class where I would then try and set them into ME->GT_AUFNR_DELTA before the call is made to get the assignment type and the corresponding work orders selection queries.  Right now my numbers are only getting as far as the BAPI input values.  How do I get them to my class???

     I've tried setting and attribute in my class handler with an initial value of my input table value from the BAPI_WRAPPER but it says table can't be set.

HELP!

Accepted Solutions (1)

Accepted Solutions (1)

i834235
Product and Topic Expert
Product and Topic Expert
0 Kudos

when u say class i'm assuming your referring to ABAP class handler. In the class handler method you need to declare your  BAPI input parameter or table table parameter under  " ls_mdo_input_vals," and initialize these variables .  Once that is done code provided by Syclo framwork will read  values from BAPI and assign to your internal tables within the class handler.

      me->oref_mdo_data->map_local_mobile_filter(

         CHANGING cs_filters = ls_mdo_input_vals ).

Look at any standard BAPI and class handlers  to understand the flow and try to  mimic the logic on your end.

Thanks

Manju  SAP RIG

Former Member
0 Kudos

Thanks Manju!  Actually managed to figure this out before your answer came.  What you explain does make sense and pretty much sums up what I did. 

Answers (0)