cancel
Showing results for 
Search instead for 
Did you mean: 

execute_action with mass CONFIRM in gateway

jerome_lim
Participant
0 Kudos

Hello,

I am trying to implement mass creation of so order in gateway.

can you anyone provide me some snippets code on this?

I have defined in model

  lo_action = model->create_action( 'CONFIRM' ).

   lo_action->set_return_entity_set( 'SOHdr' ).

   lo_action->set_http_method( 'POST' ).

   lo_action->set_return_multiplicity( '1').   " what should we put here ??

   lo_parameter = lo_action->create_input_parameter( iv_parameter_name = 'WiId'

                                                     iv_abap_fieldname = 'WI_ID' ).

   lo_parameter->/IWBEP/IF_MGW_ODATA_PROPERTY~set_type_edm_string( ).  "What should we put here ?

can we define the type of parameter as a range of a table?

Thank you.

Benjamin

Accepted Solutions (0)

Answers (1)

Answers (1)

AshwinDutt
Active Contributor
0 Kudos

Hello Benjamin,

I can see that you have mentioned ' I am trying to implement mass creation of so order in gateway ' and also talking about  ' confirming orders using Execute_Action method '.

Not sure what is the exact scenario in your case.

Can you please share your exact scenario ?

Regards,

Ashwin

jerome_lim
Participant
0 Kudos

confirmation.

AshwinDutt
Active Contributor
0 Kudos

You can use batch operation to confirm all those Orders by implementing Execute_Action.

Please have a look at the below in Function Import section ->

Please have a look at the below for wrapping all those multiple operations inside a single batch request.