Table SWWUSERWI empty

Hi Colleagues,
I'm trying to implement a basic travel workflow approval process. I've created a basic organizational plan, as attached (organizational_plan.PNG). The user Maria and Manuel are both linked with valid system users.
When I execute transaction TRIP with user Manuel, I'm able to create the trip as expected, but the problem is that, after saving the trip, table SWWUSERWI is not filled with the approval task for user Maria (that I expect to be the approver, following the organizational plan defined.
Do you know which step I'm missing here? One additional info is that user Manuel is able to approve his own trip, which is also unexpected.
Thanks and regards,
Roberto Falk

Hi Vignesh,
I've activated the workflow WS20000050, and the log looks different now:
Obejct Type
Event 
Curr Date
Time
Name of...
Handler/Action
Trace ON
21.03.2014
14:34:03
F_EMPLOYEE
BUS2089
CHANGED 
21.03.2014
14:34:09
No receiver entered
BUS2089
REQUESTCREATED
21.03.2014
14:34:09 
WS20000050
SWW_WI_CREATE_VIA_EVENT_IBF
Trace OFF
21.03.2014
14:34:14
F_EMPLOYEE
How can I check which user was assigned as approver? (if was any) ?
Thanks and regards,
Roberto Falk

Similar Messages

  • I need to add check whether 21 fields of a internal table are empty or not.

    Hello,
    I need to add check whether 21 fields of a internal table are empty or not.How can we write a code for the same wand what would be the correct syntax for it.
    I tried entering all the fields in the IF loop with AND condition but its giving syntax error.Perhaps this is because the lenght of the IF condition would be more than the allowed one.

    Hi,
    After the select quiery.
    If not itab is initial.
    Message 'Table is not empty'    type 'I'.
    Endif.
    Regards,
    Jagadish.

  • How to find out that the database table is empty

    Hello all,
    How to find out in ABAP in the best performant way, that the database table is empty. The table could have several milions of records or be empty. SELECT count( * )  looks to me as not the best way.
    Kind regards
    Radim Benek
    Moderator message: FAQ, please search for previous discussions of similar topics.
    example: "SELECT SINGLE" vs. "SELECT UP TO 1 ROWS"
    Moderator message: Please Read before Posting in the Performance and Tuning Forum
    Edited by: Thomas Zloch on Aug 11, 2011 5:06 PM

    Hi,
    One approach is:
    check lt_mytable is initial.
    This will be true if there are no lines.
    Another:
    describe table lt_mytable lines lv_count
    if lv_count = 0.
    "Empty
    Thanks.
    Anitha a

  • Moving data between tables (how to find out if the 2nd table is empty)

    Hi,
    I have 2 tables, and I'm copying records from one table to another.
    I've followed the Wiki: [https://www.sdn.sap.com/irj/sdn/wiki?path=/display/vc/movingdatabetween+tables]
    So far, everything works ok.
    Here is my question: how do I get the number of records passed?
    I mean, how do I know the number of rows in the 2nd table? (Remember that this number is variable, because it depends on how many rows I've inserted and deleted on the 2nd table).
    I've tried to achieve that using a data store with a numeric field, but I couldn't find the way to increment/decrement the numeric field on data store, and insert/delete the row on table at the same time .
    All I want is to find out if the 2nd table is empty or not.
    Any ideas to solve this?
    Thanks in advance!
    Help will be point-rewarded.
    Marcelo

    Hi Ahmed
    thanks for your reply, it was very helpful!! (I've assigned points to you)
    However the user can add twice or more times the same row... so the counter doesn't reflect the real number of rows in the 2nd table.
    I've partially solved this also using a data store with a parameter called key_list, where I add (I mean, concatenate) the key field for the selected row.
    So, if I have a table with 4 rows with key fields "key1", "key2", "key3", the parameter key_list would get "key1;key2;key3".
    So far, it's ok. But when I remove a row previosly added.... I can't remove the key from the key_list parameter. (I mean, from 2nd table I choose to remove the "key2" row, but I don't know how also remove the key name from the key_list)
    I hope be clearly enough.
    Any help will be really appreciated and point-rewarded.
    Thanks again.
    Best Regards
    PS: is there any way of "mark" a row that has been added to the 2nd table? I mean, using (for example) a hidden boolean field named "added", that becomes true when the selected row is added to the 2nd table.

  • Consuming Webservice in ABAP - ComplexType table is empty

    Hello,
    I've the following problem:
    I consume a webservice, which has two parameters as response-result. The first parameter is a simple type. The second parameter is a table type described as follows in the WSDL:
    - <element name="getVarListResponse">
    - <complexType>
    - <sequence>
    <element name="getVarListReturn" type="impl:ServiceResult" />
    </sequence>
    </complexType>
    </element>
    - <complexType name="ArrayOf_xsd_string">
    - <sequence>
    <element maxOccurs="unbounded" minOccurs="0" name="item" type="xsd:string" />
    </sequence>
    </complexType>
    - <complexType name="ServiceResult">
    - <sequence>
    <element name="_errorMessage" nillable="true" type="xsd:string" />
    <element name="_resultList" nillable="true" type="impl:ArrayOf_xsd_string" />
    <element name="_successfull_processed" type="xsd:int" />
    </sequence>
    </complexType>
    - <element name="getVarListFromDWDocument">
    - <complexType>
    - <sequence>
    <element name="dwdocumentID" type="xsd:long" />
    </sequence>
    </complexType>
    </element>
    - <element name="getVarListFromDWDocumentResponse">
    - <complexType>
    - <sequence>
    <element name="getVarListFromDWDocumentReturn" type="impl:ServiceResult" />
    </sequence>
    </complexType>
    </element>
    I created a proxy to consume this service. When I test the proxy directly I get the correct result displayed as XML (the response). When I try to call the service over ABAP code (use the proxy in a report), I've the problem that the complex-type table is empty. The simple type value is correctly filled.
    Does anyone have an idea which could be the problem? I guess the mapping of the XML response in the DDIC-types isn't working correctly, but I've no idea why.
    Thanks in advance
    Cunanan1980

    I solved the problem "accidentally": The name of the Webservice was to long! Changing the name from "EdilogUserManagementWebservice" to "UserManagement" did the trick.
    This is probably due to the restricted fieldlength of ABAP-programnames.
    Regards
    Jan Hempel

  • Function module table returning empty rows but export data is getting

    Hi,
    I am executing function module through JCO after setting importing parameter and when i retrieve the table i get table with empty data 0 rows but i am able get export parameter data . when execute the same function module in abap through sap gui i get table containing 5 rows. what may be the problem. please find below code 
          function = getDefaultJCoConnection().getJCoFunction("ZCRM_ICSS_PROJ_CUST_USR");
                function.getImportParameterList().getField("USER_ID").setValue("MLDL010");
                getDefaultJCoConnection().execute(function);
                exportTable = function.getTableParameterList().getTable("PROJCUSTLIST");
                int rowsNumber = exportTable.getNumRows(); // companies table number of rows
                log.error("rowsNumber----"+String.valueOf(rowsNumber));
      try
         if (rowsNumber > 0)
         int i = 0;
         do
         tempString="table valuesZCOMP_ID"(String)exportTable.getValue("ZCOMP_ID")"ZCOMP_SPC-"+(String)exportTable.getValue("ZCOMP_SPC")
                     + "table valuesZCOMP_DESC"(String)exportTable.getValue("ZCOMP_DESC")"ZPRICE-"(String)exportTable.getValue("ZPRICE")"---" ;
         log.error(tempString);
         while (exportTable.nextRow());
         catch (Exception th)
         log.error("The following error occured: while retrieving table values ", th);
    Do you have any idea where may be the problem
    Regards,
    Pavan
    Edited by: Pavan Reddy on Apr 10, 2010 4:46 PM

    Hi Pavan,
    This could be the case. The function module might be expecting a value converted into its format.
    By this, I mean that the function module might be expecting 0012345678 for 12345678 (Where data element of the ID is of type CHAR 10 ).
    Please check if it is so.
    Best Regards,
    Kris.

  • Table BWFI_AEDAT empty?

    Hi Guru's,
    I am loading DS 0FI_AP_4 into our BI7 system.  However, I notice that even after running an init load and then a delta the next day, that the BWFI_AEDAT table is empty.
    I perhaps do not understand the purpose of entries in this table?  I thought it was to store all rows already transferred via the delta load (for use in a repeat delta if required) if the corresponding date was still available in the BWOM2_TIMEST table for this DS?  And also for failed rows requested on a prior delta request?
    If not, is there any config I need to do to enable entries to get written into this table?  Our BI system is fairly new and perhaps not fully set up, so maybe we still need to do some config settings?...
    Thanks!
    Darryl

    Hi there,
    Both 0FI_AP_4 and 0FI_AR_4 need to be run only after running 0FI_GL_4.
    Did you run 0FI_GL_4 first?
    Check in here:
    [http://help.sap.com/saphelp_bw33/helpdata/en/3f/fbf83a0dfa5102e10000000a114084/content.htm]
    In particular it says this:
    Features of the Extractor
    As the strict connectoin of DataSources has been abolished as of PlugIn2002.2, you can now load 0FI_GL_4, 0FI_AR_4, 0FI_AP_4 and 0FI_TX_4 in any order you like. You can also use DataSources 0FI_AR_4, 0FI_AP_4 and 0FI_TX_4 separately without 0FI_GL_4. The DataSources can then be used independently of one another (see note 551044).
    Note
    As soon as DataSource 0FI_GL_4 has been loaded, it is the leading DataSource with regard to accruals, such as the time and date (CPU date) by which extraction should be carried out.
    From the transition of the data requirements in Delta-Init-Modus to Delta operation therefore, the data requirement in Delta mode 0FI_GL_4 should take place first.
    Connecting the DataSources in delta operation helps to ensure consistent extraction of FI data. Consistency must be ensured using the Init selection criteria.
    Diogo.
    Edited by: Diogo Ferreira on May 27, 2009 4:05 PM

  • Blank User in table SWWUSERWI - Large Volume

    Hi All,
    I have a problem when user clicks on his inbox in SAP it times out.
    There are large number of General tasks used in our system. The table SWWUSERWI has many entries with user name as Blank which are picked up and displayed in the user inbox. These are unwanted entries for the user. So I decided to delete these entries from the DB level (as a quick fix). After deleting these entries the inbox opened quickly. But to my surprise all the millions of entries reappeared in the table again. I am not sure what is happening in the system which is bringing back these entries. All these are very old WI in READY status.
    I know we can run the report and delete them permanently but more interested in knowing why the user was blank in the table.
    Regards,
    Vijay V

    Hi Vijay,
    I'm also facing some problem with the inbox. Due to huge volume of work items, it is going to dump.
    Please suggest me the program so as to permanently delete these unnecessary work items...
    Look forward for your suggestion on this.
    Thanks,
    Naveen

  • Regarding table SWWUSERWI

    Hi All,
    I have a doubt related to workflow table.
    When Workflow triggers, a Workitem goes to the Sap Inbox of first Approver suppose.
    But he has not Clicked that Work item.
    At this point of time the status of the Work item is Ready.
    But for this Work item no user_ID is there in table SWWUSERWI.
    But when the Workitem is clicked by the user, but did not taken any action on that workitem, now the status is STARTED.
    Now there will be user_ID is table SWWUSERWI corresponds to that Work Item.
    My problem is that whenever a mail in sent in the SAP Inbox of the user,
    I need to inform him about the SAP inbox mail by sending a mail to him in Outlook.
    So pls guide me how shall I take the User_ID for the work item, if the status of the work item is READY.
    Is there a problem in Workflow design?
    Rishi

    Hi,
    You can configure Extended Notification for this. 
    Just specify the description for the task.
    and it will be sent to the user automatically.
    user's email id should be maintained in user maintenance and make sure that extended notification has been configured in your system.
    check scot settings and execute the report SWN_SELSEN.
    How to get Work items @ your Outlook Inbox
    check out this blog.
    Regards
    SM Nizamudeen

  • How to disply the input text box when the data in the table is empty

    Hi,
    I m using JDeveloper 11g 5.1.1.1 : How to display the Input text box when the data in the table is empty or by using the dual table.
    Since there is no record in the table, screen is displying only the lable. not displying the Input text box.? Any property is there to enable?.
    One more case i tried by using dual (eg Select '0' as name from dual) created one view object and dragged in the JSF screen as input combo box with list of values.
    In this case also it is not displaying the combo box.Just displaying the Lable name and 0 only.
    Regards
    Bijesh K

    Hi,
    I didn,t get you.Could you please explain. I am not choosing the ADF table. Selecting and dragging ADF form only.
    Regards
    Bijesh K

  • Internal error occured when table is empty

    I got a internal error when I have a master/detail
    page without a search page and the master table and detail table are empty
    If i insert 1 record in master table everything goes fine
    Is this a know bug

    Edwin,
    Yes, this scenario will result in an internal error because we try to retrieve the child rows for a "null" master datasource.
    We will look into this how it best can be fixed for the next release.
    Work around is to change the layout style of the master-group to "select-form", or add a find page.
    Steven Davelaar,
    JHeadstart Team.

  • Global temporary Table-Table becomes empty

    Hi,
    I have used global temp table on commit preserve rows.
    During initialization of the screen i'm creating temp tables and all the manipulation done on
    screen has been stored on temp table ,
    at the end of all the insert and delete operation i'm retrieving it from temp table and displaying
    it in the screen,at some point of time the temp table value is lost.So nothing is been displayed in
    screen.
    I tried to find out the problem according to me the session got expires coz of that the value in
    the temp table becomes empty and last value inserted is stored.
    can anyone help me out to solve this problem it will be great to get a help.

    What is your application architecture?
    Are you using session-pooling. If so that would explain it: very likely the request that finds the empty temp-table, is being serviced by a different database session, than the one that originally created the contents of the temp-table.
    Temp-tables are database-session specific: db-session X cannot see the contents of some temp table in db-session Y. db-session X has it's own copy of that temp-table.
    Toon

  • Requests are green in the infocube but the E- and F-table are empty???

    Hallo Experts,
    we made an upgrade from 3.5 to 7.0 and have therefore a testsystem (after systemcopy we made the upgrade technical).
    So it looks good. But one InfoCube looks bad. The dim-tables are alright but the E- and F-tables are empty. So the administrator and the user doesn´t´t get data from this cube. Can someone help? You can see the copied requests and the data and we already load data but you just got the new data (after system copy).
    Thanks Santra

    You have two ways to nail this issue
    1. Use transaction SE38 to run the "SAP_FACTVIEWS_RECREATE" ABAP report.This report creates "factviews" for all InfoCubes in the system, in case these are not available.This is the fastest method.
    2. Reactivate the affected InfoCube.This may take a long time if the InfoCubes have already been filled.In this case, you should switch to option 1.
    Hope it Helps
    Chetan
    @CP..

  • HOST ROUTING TABLE IS EMPTY please HELP

    HELLO THERE PLEASE HELP ME , MY HOST ROUTING TABLE IS EMPTY
    WHAT DO I DO NOW?

    Hi and Welcome to the Community!!
    With a strong carrier network signal (not WiFi), I suggest the following steps, in order, even if they seem redundant to what you have already tried (steps 1 and 2 each should result in a message coming to your BB...please wait for that before proceeding to the next step):
    1) Register HRT
    KB00510 How to register a BlackBerry smartphone with the wireless network
    Please wait for one "registration" message to arrive to your Messages app
    2) Resend Service Books
    KB02830 Send the service books for the BlackBerry Internet Service
    Please wait for "Activation" Messages, one per already configured email account, to arrive in your Messages. If you have no already configured email accounts, please wait 1 hour.
    3) Batt Pull Reboot
    With power ON, remove the back cover and pull out the battery. Wait about a minute then replace the battery and cover. Power up and wait patiently through the long reboot -- ~5 minutes. See if things have returned to good operation. Like all computing devices, BB's suffer from memory leaks and such...with a hard reboot being the best cure.
    Hopefully that will get things going again for you! If not, then you should contact your mobile service provider for formal support...it is, after all, your carrier network that must populate these items to your BB.
    Good luck!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Best way to check if table is empty or not

    Hi. I had to check if a table was empty or not, and found different solutions.
    One of them called my atention, I readed it was the best way to do it (some 'dual' trick from Steven Feuerstein, they say) :
    SELECT 1 FROM DUAL WHERE EXISTS (SELECT 'X' FROM TABLE);
    Plan
    SELECT STATEMENT ALL_ROWSCost: 4 Cardinality: 1           
         3 FILTER      
              1 FAST DUAL Cost: 2 Cardinality: 1
              2 INDEX FAST FULL SCAN INDEX (UNIQUE) TABLE.UB_PK Cost: 2 Cardinality: 1
    But doing some tests I found this query to have lower cost:
    SELECT 1 FROM TABLE WHERE ROWNUM=1;
    Plan
    SELECT STATEMENT ALL_ROWSCost: 2 Cardinality: 1           
         2 COUNT STOPKEY      
              1 INDEX FAST FULL SCAN INDEX (UNIQUE) TABLE.UB_PK Cost: 2 Cardinality: 1
    So, what about that dual table trick? Should I keep the 'select 1 where rownum=1' as best possible way?
    I know it shouldn't matter much, but just wanna know what method works best for checking empty tables :)
    Thanks.

    As already mentioned, you cannot just base it on cost, as the cost is not specifically a good indicator of the amount of work that will need to be done, it's just an internal figure calculated for that query and isn't really that comparible across different queries.
    If you're intending to see if there is data in a table because you want to know whether to query it or not, you are actually better to just try and query the data and capture the NO_DATA_FOUND exception and handle that.  In that case it requires no effort or cost up front.

Maybe you are looking for