cancel
Showing results for 
Search instead for 
Did you mean: 

Question about work flow

Former Member
0 Kudos

Hi Experts,

Now my requirement is to enhance a existing custom workflow, according to track original program, I found a related workflow FM in original program like below. So I use SWDD to search this object 'TS97000065', but system told me 'Single-step tasks cannot be inserted with this function'. so I guess maybe this object 'TS97000065' is a task id. but I still can't found anything in PFTC. So I have two questions on this.

1. Who can tell me how to found this object 'TS97000065' in SAP? What's it?

2. Whether a single-step can be trigger in a service without workflow? If yes, whether we still can see a workflow item in our workflow Inbox?

task = 'TS97000065'.

call function 'SWW_WI_START'

exporting

creator = creator1

task = task

importing

wi_id = wi_id

tables

agents = agents

deadline_agents = deadline_agents

excluded_agents = notification_agents

notification_agents = excluded_agents

secondary_methods = secondary_methods

wi_container = wi_container

comp_events = comp_events

exceptions

id_not_created = 1

read_failed = 2

immediate_start_not_possible = 3

execution_failed = 4

invalid_status = 5

others = 6.

Thanks in advance!

Accepted Solutions (0)

Answers (2)

Answers (2)

bpawanchand
Active Contributor
0 Kudos
I guess maybe this object 'TS97000065' is a task id.

As you have metnioned , this is a object of type standard task. see you can directly identify whether the object task is a workflow template or standard task by simply looking at the task number.

to make you understand more clearly, even the workflow developments fall under orgnaizational structure here OBJECT ID is TS and object key is 97000065

as we have for user object id as US and object id can be any SAP user name. so when ever there is TS it means you are trying to refer a standard task, when ever you come across any taskid starting with WS the it means your are reffering to workflow template. in org structure the workflow template is identified by the object id WS...

Former Member
0 Kudos

Thanks for your clearly explain.

former_member554978
Active Contributor
0 Kudos

In PFTC..you have to select standard task...

Then Enter 97000065 and click display...

for your 2nd question....

click the trigeering event tab and check the events if any...

Former Member
0 Kudos

Sir Swaminathan PJ ,

If this single-steps task not in a exist workflow and the trigeering event tab is nothing, Whether that mean we can't directly trigger this single-steps task in a exist SAP web service? Is it correct?

What's the use for Work item text in the Basic Data tab? It should to implement the description of work flow item in workflow inbox. I don't know whether my understand is correct. If you can give me any idea, I will appreciate it.

Thanks.

former_member554978
Active Contributor
0 Kudos

If this single-steps task not in a exist workflow and the trigeering event tab is nothing, Whether that mean we can't directly trigger this single-steps task in a exist SAP web service? Is it correct?

If you dont have anything metntioned in triggering events...then these tasks might be started programatically using below FM's

SWE_EVENT_CREATE

SAP_WAPI_CREATE_EVENT

What's the use for Work item text in the Basic Data tab? It should to implement the description of work flow item in workflow inbox. I don't know whether my understand is correct. If you can give me any idea, I will appreciate it.

what you are seeing in Inbox(SBWP) as a subject line is nothing but workitem text defined in basic data tab.

Former Member
0 Kudos

If this single-steps task not in a exist workflow and the trigeering event tab is nothing, Whether that mean we can't directly trigger this single-steps task in a exist SAP web service? Is it correct?

If you dont have anything metntioned in triggering events...then these tasks might be started programatically using below FM's

SWE_EVENT_CREATE

SAP_WAPI_CREATE_EVENT

Then how about this FM SWW_WI_START? If we use 'TS97000065' as a TASK parameter into this FM, What's will be happened?

former_member554978
Active Contributor
0 Kudos

Using this FM SWW_WI_START also you can start the workflow....

Former Member
0 Kudos

Thank you so much. You give me a lot of help.