`
evangxli
  • 浏览: 223673 次
  • 性别: Icon_minigender_1
  • 来自: 大连
社区版块
存档分类
最新评论

转 Forward a work item to your own currently logged in SAP ID

阅读更多

Forward a work item to your own currently logged in SAP ID

By Anirban Bhattacharjee, KPIT Cummins and Infosystems from Link

Purpose: The purpose of this document is to demonstrate how you can forward a work item to your own ID. This is not possible via the standard transaction SWIA. For example, if your SAP ID is XYZZ and you are logged into SAP via this ID, you would try to forward the work item to this same ID by running SWIA. This transaction you are executing from this ID itself. But SWIA will give you the prompt “You cannot choose yourself as an agent” and not allow this forward.

 

Business Scenario: Many times when testing various workflow developments, we need to forward a work item to our own ID for testing purposes. Sometimes it becomes difficult to maintain our own ID in the Agent / Approver tables as they might need Customizing Transport Requests or other business constraints. Standard T-Code SWIA does not allow forwarding the work items to your own ID. On such situations we either need to forward the work item to some other test IDs or ask someone else to do it for us.

Not any more, as with this technique you can even forward any work item to yourself while you are logged in via that same SAP ID and be able to do your testing.

Process: The steps are very simple

·         We will take a work item and first try to forward it to the current logged in SAP ID (self ID) via T-Code SWIA. This will not work.

·         We will then use a special function module to forward this work item to our own logged in SAP ID.

Looking at a work item in the workflow log

Here the following foreground work item currently does not have any agents assigned to it.

We check the work item ID from the technical log

The work item ID for the user decision step is 2733499. We will now run transaction SWIA and enter this work item ID

Now we will select this row and try to forward it to the logged in ID via which this workflow is been tested and this transaction is being executed

 

SWIA gives the following prompt when I try to forward the work item to the current logged in ID via which SWIA is being executed and workflow being tested

The transaction SWIA prompts; “You cannot choose yourself as an agent” and does not allow the Administrator Forward.

Process to forward this work item to self:

Now to make this possible, we need to run the function module:

SWW_WI_FORWARD

This highly useful function module allows you to skip any previous checks and forward to any desired Agent / Approver, including self.

We need to enter the same work item ID for the user decision step 2733499. This we had entered previously in SWIA.

Pass the importing parameter PRECONDITIONS_CHECKED as “X”. This will ensure no conditions are checked!!!

In the TABLES parameter NEW_AGENTS, pass your own logged in SAP ID, like US-XXYYZZ.

This should be the same agent to whom you tried to forward via SWIA but it failed. So this will be the self logged in ID.

The function module screen will look as shown

Now execute the function module. We will see the function module returns the work item status as READY with the selected new agent

To verify that the WI forward worked as expected, we look at the workflow log – agents again

We can see now that the log does not say “No selected agents”, but is showing our own ID to which we forwarded the work item to.

Also note the e-mail like icon, indicates that the work item came as a forward.

In technical log, the step details also confirms that the Forward was a success

Checking in business work place SBWP, to verify with certainty that the work item did get forwarded successfully to own logged in ID

Conclusion: Thus we have successfully forwarded a dialog / foreground work item to own logged in ID even when standard transaction SWIA did not allow the administrator forward to self.

分享到:
评论

相关推荐

    google api php client

    The Google API Client Library enables you to work with Google APIs such as Google+, Drive, or YouTube on your server. These client libraries are officially supported by Google. However, the libraries...

    WordPress异地IP登录自动禁封用户插件Erphp loggedin

    WordPress异地IP登录自动禁封用户插件,Erphp loggedin是一款基于异地IP登录自动禁封用户的WordPress插件,插件主要功能就是基于同时在线IP数、固定时间段内的登录IP数这两个值来自动禁封用户,有效防止账号共享。...

    UE(官方下载)

    The benefit of a column maker is that it can help you to format your text/code, or in some cases to make it easier to read in complex nested logic. Quick Open UltraEdit and UEStudio provide multiple ...

    Practical Protocols XMPP(PACKT,2016)

    Build a simple server-side application that will respond to messages from our logged in desktop client Install and run XMPP-FTW, connect to the server from the browser, and handle incoming/outgoing ...

    Practical.XMPP.1785287982

    Build a simple server-side application that will respond to messages from our logged in desktop client Install and run XMPP-FTW, connect to the server from the browser, and handle incoming/outgoing ...

    Login_System_v.2.0 from US

    to see if they are logged in use the code at the bottom of my script When a user registers, it will update the lastmember.php page, so you can include it in your home page by using and it shows the ...

    S7A驱动720版本

    - The passing of invalid OPC Item IDs caused a memory leak in the driver's global memory. After the global memory was exhausted, the driver crashed. - The writing of strings failed when using ...

    NewSID(光学习一下代码就可以了,没看清楚介绍别运行)

    You must have permissions to change the security settings of the target computer‘s Registry keys, which typically means that you must be logged in as a domain administrator to use this feature.Note ...

    appfuse.tar.gz

    Developer notes on setting up your IDE to work with AppFuse are contained below. Instructions currently existing for Eclipse and IDEA. Netbeans is on the roadmap; you're more than welcome to create ...

    ramin 2.2 for xp

    screen in a resizable window on your own monitor or as the full screen. Your mouse and keyboard control the remote computer so you can work on the remote computer just as if you were sitting right ...

    BURNINTEST--硬件检测工具

    - Updated license management, in an attempt to remove a rare crash on startup. Release 5.3 build 1012.0002 WIN32 release 31 October 2007 - New build of Rebooter (64-bit Windows correction). - ...

    解决OUTLOOK“无法发送此邮件。请在帐户属性中验证电子邮件地址 响应服务器Sender address rejected: not logged in”

    NULL 博文链接:https://jyao.iteye.com/blog/1061512

    addin

    The Security Wizard is a tool that will allow you to setup your own security mechanism in your Access application without having to implement Jet security. Running the wizard from Tools/Add-ins/...

    drupal 6.12

    Drupal requires access to a database in order to be installed. Your database user will need sufficient privileges to run Drupal. Additional information about privileges, and instructions to create ...

    PHP and MySQL Web Devepopment 4th Edition.pdf

    Unless you are logged on as an administrator of the domain that you are testing, you will have to supply the DCDIAG command with a set of administrative credentials that it can use. As you no doubt ...

    Softros LAN Messenger 7.3.4

    just install and run our intranet messenger on each computer on your network and it's ready to work. Import and export your LAN settings Configure network settings on one computer, export it to a ...

    BUS Hound

    regardless of bus type  Fits on a diskette for easy transportability and quick downloads  Drag and drop captured data to other products in html format<br> Save captured data to a text ...

    VB编程资源大全(英文源码 网络)

    Source code + tutorial.<END><br>26 , chat.zip This code shows you how to creat a local network chat room so that you and your friends can have a chat room which nowone else can enter<END><br>27 , ...

    Proficy Change Mangement

    It stores those files on a secure server, meaning that you have up-to-date backups for all your applications. Proficy Change Management then prevents unauthorised access to those backups and ...

Global site tag (gtag.js) - Google Analytics