Skip to Content
author's profile photo Former Member
Former Member

Start Process Chain with RSPC_API_CHAIN_START

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jul 18, 2016 at 07:59 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.