cancel
Showing results for 
Search instead for 
Did you mean: 

Return code from ABAP program in process chain?

Former Member
0 Kudos

Hi,

I have situation where I want to run some little part of my process chain only on mondays. So I am thinking of writing a little bit of ABAP that checks if is monday today. If it is, then return true, and if not return false. Then I want to branch on the outcome of my ABAP process...

...but how do I return that value?

...and what about the overall status if I use this trick to branch off?

I have looked at:

How to… Integrate an ABAP program in a process chain.pdf

How to… Implement custom-defined process type.pdf,

but those documents have not lead me to a solution yet...

Best regards,

Christian Frier

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Christian,

implement custom-defined process type: a new ABAP process, this ABAP creates a MESSAGE type I, or type E.

/manfred

Former Member
0 Kudos

Sorry I missed the code:

&----


*& Report ZBW_STATUS_RED_GREEN *

*& *

&----


*& sets Status at End on Red(default) or Green *

*& History: *

*& 02.11.2005 M.Schulze Author *

&----


REPORT zbw_status_red_green.

*

SELECTION-SCREEN BEGIN OF BLOCK eins WITH FRAME.

PARAMETERS: red RADIOBUTTON GROUP radi,

green RADIOBUTTON GROUP radi.

SELECTION-SCREEN END OF BLOCK eins.

*

IF NOT green IS INITIAL.

MESSAGE i162(00) WITH 'Status' 'Green'.

ELSE.

MESSAGE e162(00) WITH 'Status' 'Red'.

ENDIF.

Answers (3)

Answers (3)

Former Member

Hi,

I have got two ideas:

1) ABAP Prog

2) Meta Chain

3) Custom Defined Process

4) Decision process type

1) ABAP Program: You can check if today is monday or not.If no then generate Error message so that chain stops.

2) Meta chain: trigger chainchain based on event or call aprocess chain

3)Custom Defined Process type: implement this to trigger as you want.

4)Decision process type : I think this would be simplest: check if today is monday, based on this take decision. I hvent worked on this, but this can be implemented.

Let me know if any of above helps.

Thanks,

Sorabh

Former Member
0 Kudos

Hey

Christian,

m stuck up in d similar issue..

so. we need to implement the code as ABAP process type or in custom defined process type..

Can u pass on the code at ankur.sap@gmail.com

Regards

Ankur

Former Member
0 Kudos

Hey Ankur

I have sent a very usefl doc with the code to your gmail id.

Prakash

Assigning points is a way of sayin thanks on SDN!!

former_member188975
Active Contributor
0 Kudos

Hi Christian,

Is it possible for you to create that "little part" of the process chain as a separate chain? You can start this on Monday and let it run weekly then...just an idea...