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 last published in March 2005

Dig Deeper on SAP workflow development

PRO+

Content

Find more PRO+ content and other member only offers, here.

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.

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.

-ADS BY GOOGLE

SearchManufacturingERP

SearchOracle

SearchDataManagement

SearchAWS

SearchBusinessAnalytics

SearchCRM

SearchContentManagement

SearchFinancialApplications

Close