cancel
Showing results for 
Search instead for 
Did you mean: 

Pre-defined condition in PO Flexible WF

0 Kudos

Hello Dears,

These BADIs are implemented to define custom predefined condition referenced to 2767845 note:

BADi - SWF_WORKFLOW_CONDITION_DEF, Method : GET_CONDITIONS

Badi - SWF_WORKFLOW_CONDITION_EVAL, Method: EVALUATE_CONDITION

However, we are facing this error "Database error '4' reading table 'SWDSHEADER' while creating PO"!!

0 Kudos

Hi Mustafa,

I have a similar issue with PO flexible workflow- custom step conditions.

Please let me know how you resolved this issue.

Thanks,

Subha

Accepted Solutions (0)

Answers (3)

Answers (3)

keohanster
Active Contributor
0 Kudos

Hi Mustafa,

Since you know that this error is occurring in your custom call to the BADIs, then I can't offer any more advice. I don't have any experience with these BADIs.

I wish you good luck, and I hope that you'll return here to post whatever the solution is!

Sue

keohanster
Active Contributor
0 Kudos

Hi Mustafa,

If this is happening in Dev, have you tried removing the custom step condition and seeing if the error goes away? That would be a pretty clear indicator that the error is being caused by your custom step condition.

Sue

0 Kudos

Hi Susan,

yeah, we removed custom precondition and the error goes away, the error definitely related to custom pre-condition. however we implemented the same in PR and no error displayed.

keohanster
Active Contributor
0 Kudos

I've seen similar questions here where one answer seems to be to check your bindings and also run transaction SWU_OBUF if you do change them.
(I did a google search on 'site:sap.com Database error '4' reading table 'SWDSHEADER' )

Sue

0 Kudos

Dear Susan,

The bindings, activation, and configuration for WF are correct and FWF is working fine for standard step-conditions. but when I am adding custom step condition via BADi - SWF_WORKFLOW_CONDITION_DEF, then we are getting that error while creating PO. your support is highly appreciated. thanks