Skip to Content
0
Apr 06, 2021 at 03:15 PM

Starting workflow using convenience API .

739 Views Last edit Apr 06, 2021 at 03:16 PM 2 rev

Hello.

I create a Change Request ( from ABAP ) . It shows on the list , but while trying to open it ( with double click) I get the following message MDG_BS_BP010 "In this process the navigation was not allowed". It is probably because the workflow is not started . The question is how to start workflow using convenience API .

While searching, I've foud this: "To start workflow (SUBMIT) from convenience API, call method SET_ACTION.

lo_conv_gov_api->set_action( iv_crequest_action = 'OS' ).

However "iv_crequest_action" refers to actions avaliable on each step – so it somehow doesn’t fit.

Or maybe there is a way to start workflow from governance API although the CR was created with convenience API.

So far (trying tou use lo_gov_api->start_workflow( iv_crequest_id = lv_new_cr_id ) from governace API) I got this dump : " programming error: gov api must not be instanciated after / used from outside convenience '"

Thank You.