Q

Determine the transaction code for a workflow

Is it possible to determine a transaction code inside the workflow that triggered it?

Is it possible to determine a transaction code inside the workflow that triggered it?

Example: For mrbp and mir6 transactions, object used is BUS2081, but I want to differentiate the logic basis of

transaction code inside the workflow itself.

If you look at the table SWFREVTLOG you will see the program name that triggered the event. In your case, MIR6 will have the entry 'SAPMM08N' and MRBP will have RMBABG00. The field is SWFREVTLOGP-PROGNAME.

As a general comment I would warn against this approach. Hinging the logic of your workflow against a name of a program (or T-Code) is not really robust as your workflow will break if SAP changes their code (they may move the event raising code to another Function Group). I understand it's not always possible, but isn't there another application level field you could use which determines which logic you should execute?

This was first published in March 2005

Dig deeper on SAP workflow development

Pro+

Features

Enjoy the benefits of Pro+ membership, learn more and join.

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

SearchManufacturingERP

SearchOracle

SearchDataManagement

SearchAWS

SearchBusinessAnalytics

SearchCRM

SearchContentManagement

SearchFinancialApplications

Close