cancel
Showing results for 
Search instead for 
Did you mean: 

Start Process Chain with RSPC_API_CHAIN_START

Former Member
0 Kudos

  Hello,

   I'm using the function module  RSPC_API_CHAIN_START to start a process chain from ABAP code. In the process chain I have "Complete Deletion of Data Target Contents" - the target is Write-Optimized DSO.

If I call the FM only with chain name :

CALL FUNCTION 'RSPC_API_CHAIN_START'

       EXPORTING

         i_chain       = lc_chain_dso

       IMPORTING

         e_logid       = l_logid.


Then when program is executed, pop for chain priority appears.


If the FM is called with parameter i_synchronous = 'X'


CALL FUNCTION 'RSPC_API_CHAIN_START'

       EXPORTING

         i_chain       = lc_chain_dso

         i_synchronous = 'X'

       IMPORTING

         e_logid       = l_logid.

Then pop up with the message " Do you want to delete the contents of data target .." appears.

Do you know if there is a way to skip all (both)  popups?

BR, Aylin

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello Aylin,

Usually i would not recommend starting a process chain with RSPC_API_CHAIN_START with i_synchronous = 'X'. Do you need to handle return code of the process chain ?

I_synchronous checks user's  authorization and triggers popups if source code contains confirmations needed at steps. So you can't avoid popups using synchronous mode.;

From that point you have two possibilities :

  • trigger the process chain in asynchronous mode with i_synchronous = ' ' and check the return code using the logid and log tables
  • replace the process chain calling by pieces of abap code if your process chain is simple. for example, if you only have a selective deletion, then go for a Zprogram which deletes contents of target

Hope it helps,

Regards,

Christian

Former Member
0 Kudos

Hello Christian,

  Thanks for the advice. I already have tried to execute the process chain in asynchronous mode but then popup for chain priority appears when the FM is executed. My process chain is not so simple ...

BR, Aylin

Former Member
0 Kudos

Hello Aylin,

Maybe you could try to encapsulate the triggering of RPSC_API_CHAIN_START in a job (batch mode) to avoid triggering of popups.

You can refer to following post :

RSPC_API_CHAIN_START unfortunately end user get... | SCN

Regards,

Christian CABRITA

Former Member
0 Kudos

Thank you very much Christian! It works when the FM is called in background.

BR, Aylin

Answers (0)