Ask the Expert

Determine the transaction code for a workflow

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.

    Requires Free Membership to View

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

There are Comments. Add yours.

TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
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
Sort by: OldestNewest

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: