cancel
Showing results for 
Search instead for 
Did you mean: 

job in workflow raising issue

Former Member
0 Kudos

Hi in india job SWWCOND running every day. this job has std ABAP program RSWWCOND.created by WF-BATCH

can anybody explain me about this job and program why they r using ?

issue is: this job run is blocking some sales documents in other country ,so that they could not post some idocs in which so s are involved...

failure idocs are giving the status:

'application document not posted

sales document XXXXXXXXXX is currently beeing processed (by user WF-BATCH)'..

pls update me atleast some extend:)

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

hi kat,

this is the msg i got it from china guyz.

****

Below screen and the attached file shows a lot of WF-BATCH (workflow jobs) running which locked the Sales Documents and the idoc of Shunde cannot be processed. Seems it is only India using workflow, do you have idea what these job are doing to the Sales Documents? Seems this job is running every 3-4 minutes... Do we need to run it so frequent? Please suggest.

******

is it necessary to run this job b4 any workflow triggering???

martin_nooteboom
Active Contributor
0 Kudos

Hi,

Just to add some more information. The program doesn't check the starting conditions, but wait for event steps in the workflow which are modeled to wait for a condition. Also it checks conditions for work item start and work item end.

But it is strange that the job should do something outside of workflow. If they don't use workflow in that system, the job doesn't have to run at all I think. The frequency of the job would depend on urgency of tasks and the checking of the conditions.

Regards,

Martin

Former Member
0 Kudos

thanks martin,

what would be the parameters for the program?

i can see the variant is like this &00000000000 in the job

is it necessary to run this program in workflow configured system, every day?

i am really not clear about the role and importance of the program.

somebody will configure this job for batch or it's standard configured one?

martin_nooteboom
Active Contributor
0 Kudos

Normally it is scheduled when automatic workflow configuration is done (SWU3). Probably this is the case. When you use conditions in workflows which run in your system you need to run the program at a regular basis. Maybe each hour or so. Depending on how critical your workflows are and how fast they need to be completed. If you don't use conditions (the ones I mentioned before) you don't need to run the program, but you have to be absolutely sure because otherwise workflows could get stuck.

Regards,

Martin

Former Member
0 Kudos

thanks martin,

i think am in track!

actually recently i have worked with one wwork flow issue, in that i have modified 'check function module' with some conditions,

i think this WF does not need THE program..right?

you r telling about some CONDITIONS, where we will mention them in WF..so tht i can search for such work flows..

what is the real meaning of ur conditions? can u give some example senario?

martin_nooteboom
Active Contributor
0 Kudos

I think you are talking about the start conditions and the FM which checks these. The program doesn't check this.

The conditions I am talking about are the following:

A wait for event step in the workflow. From WAS6.40 (I think) you can use this step not only for waiting for events, but also to wait for conditions. When the workflow arrives at this step the condition will be checked. If it satisfies the workflow will continue, if not the workflow will wait and the program will check if the condition is fulfilled.

Then you have the tab called 'conditions' in a task. The program will check these conditions also to see if the work item should be started or completed.

Regards,

Martin

Former Member
0 Kudos

hi

Can we say that..instead of workflow to check those conditions, this program is checking conditions for workflow....for better performance..right?

The issue which i mentioned previously, getting in other country when they are sending idocs in between 5 to 6 pm (example)..can we stop the background job, the ABAP program, in that period, for temporary solution.

so that they can post them successfully.

will the program can hold something(like SOs, POs..), while checking condition or waiting for an event step...anything just related to this??

martin_nooteboom
Active Contributor
0 Kudos

Yeah, sort of..

You can stop the job for a short period, that's no problem. And when the program is not running it couldn't lock anything.

Regards,

Martin

Former Member
0 Kudos

hi martin,

in the program, RSWWCOND, Enque deque are used. I think probably it is blocking some data relating to SO (absolutely no idea!), while waiting for an event step or condition..etc.

do u think so?

where can i get documentation for such programs.?

and also we r thinking about some other jobs to like swwdhex and swwerre.

can we stop all these jobs for some time?

it could be very helpful if u provide me some documentation about these jobs:)

martin_nooteboom
Active Contributor
0 Kudos

Hi,

I don't know why the program would lock anything, unless the program will then execute the step or other parts of the workflow. I saw a post here which would indicate this happens, but I am not sure if it did.

I wouldn't recommend stopping these programs. I don't have documentation, try searching in the SAPHelp. And maybe there is some program documentation. But if you are sure the program locks the SO's and PO's I would raise an OSS message, because I don't think it is normal behavior..

Regards,

Martin

Former Member
0 Kudos

This job is responsible for the Transaction Code SWB_COND. This transaction Code filters for which Criteria a triggering event should trigger a Workflow. Please check the TCODE: SWB_COND. This will be very useful. Here you need to find a Workflow that is created for Sales Order(BUS2032). Most probably the criteria of your Sales order is failing the start condition maintained in this Transcation for a Workflow.

<b>Please reward points if useful</b>

Thanks

Arghadip

Former Member
0 Kudos

hi Arghadip,

thanks a lot for ur fast responce. as it is very critical issue. am very much new to workflow. but i understood ur answer.

one thing buddy. Actually in india (company) only we are using workflow.

how this job effecting the idoc transper in china(company)?

have ever used that ABAP program which i gave it in my fisrt post??

any update answer is helpful!

Former Member
0 Kudos

idoc error is coming in other country...