Database table for Workflow Container values

hi,
I am on SAP ECC 6.0
I am trying to find workflow id number starting from document number
I try to find database table which has containe values of the workflow instances so that I can get workflow/workitem instance numbers for the document
this is custom workflow and it is not based on business object type. so checking container values is the onlyway I can get the workflows
but I am not able to find any table for it
I have checked following
SWW_CONT
SWW_CONTOB
SWWVCONTWI
SWXML_CONT
SWJ_CONT
SWJPCONT
SWJSCONT
SWPCMPCONT
SWU_CONT1
SWUOCONT1
almost all the SWCONT tables
Morever I put St05 trace to see all the tables in database operations while triggering the workflow
but the only tables seen here are
SWWHRINDEX
SWD_CONT  
SWWWIHEAD
SWWCNTP0  
SWWLOGHIST
SWWWIRET  
SWWCNTP0  is Workflow Container: XML Database (P0)
but it is XML structure data. so its of new use to query container fields.
is this reason because of any workflow design or system config ?
how to read container values from database tables in such case?
thanks
bhakti

Hi,
>i need to display an ALV list with list of invoices and whether the workflow is awaiting / approved / rejected for review / approval. and who did the approval / rejection action
This you should be able to read from container now, if you have FIPP instance.
>the workflow has two steps - review and approve and so i would query table swwwihead for the parent id of workflow and then based on task number see which is ready status task and find if its awaiting approval or rejection
Don't do any selects to SWWWIHEAD unless you have some really specific reason. Just use SAP_WAPI* functions. You should be able to get each depended work item etc. easily with the standard functions.
>apart from this, several data like amount values, reference document, creation date and whole lot of invoice item and header level data is required which needs to be taken from workflow container
Why would you read this data from container? This data is in the SAP tables VBKPF, etc. There should be even functions to get all data related to an invoice - try to search for example with READPRELIMINARY* (read preliminary invoice).
In general:
1) if you have invoice number, get all related work items with a SAP_WAPI* function
2) if you have only the top WI ID, use SAP_WAPIDEPEND function to get the depended work items
3) with above function you probably will get also the status of the tasks / work items, so you don't need select in SWWWIHEAD
4) Now you have the "status" and the workflow data for the invoice
5) read the invoice data from standard FI tables (unless there is some specific reason to get it from WF container, and if there is, then I think that you might be having some fundamental problems in your design)
Regards,
Karri

Similar Messages

  • RE: UNABLE TO FIND DATABASE TABLE FOR CHECK NO, IN ISU

    HI,
    CAN ANY BODY TELL ME DATABASE TABLE FOR CHECK NO IN ISU.
    THANKS,
    SARANG

    hey sarang
      i will tell u  a short  cut  to  know vat is the table for all ur desired fields,
    just  enter  a worng  value in the particular  filed.. and then u can  see a error message displayed like the follwing  example
    entry  01 not  found in  table erro1
    just  try  giving  wrong  values for check number..and just  enter
    then u  will get a error message with the table information..
    check wthere this trick  works in ur system
    kr
    prince

  • Table for po effective value

    Hi,
    I need to develop a purchase order report, so I need the following
    gross price  : 100
    fright        : 10
    insurance : 10
    my net value is : 100 rs
    Effective value : 120 rs
    Where can I find ( table) for this effective value
    fright and insurance I can find from KONV table, But I need effective value or total value
    Thanks
    Srinivas

    PO Header: EKKO
               field: EKKO-KNUMV (number of condition document)
    PO Item: EKPO
               field: EKPO-NETWR (net value in PO currency)
    Conditions: KONV
               field: KONV-KNUMV = EKKO-KNUMV
               for PO item conditions, item number of condition document = item number of PO
               for PO header conditions, item number of condition document = 0000
    Subtotals in the pricing procedure are calculated and not stored in any KONV.
    PO header Net Price = sum of all EKPO-NETWR for all the items.
    Hope this helps.

  • How to trace the database table for a structure

    hi
    am trying to find the database table for a structure unfortunately am failing to use the sql tracer any one know howelse i can do that the structure name is 'busbankcheck' and 'bus000flds'.
    thanx in advance

    Hi florence,
      1)      U can go to tcode sldb and give ur structure name or if u can find which logical database it is from u can get the tables of the structure....
    Suppose it is of HR it may be like pnp logical database and then to sldb and give pnp and u can get all the table of that....
    2)If u know which fields u want from the stucture....then go to table DD03L and give ur fields name and it iwll bring where all tables this field is avaialble and u can find them......
    3) the st05 sql trace can help u.....
    I hope any one of the three will definetely help uuu
    Regards
    vamsi
    Edited by: vamsi talluri on Jan 22, 2009 1:24 PM

  • Can we pass Internal tables to workflow container?

    workflow container has a size limitation, we need to pass any infotype to the workflow container, so can we pass internal tables to workflow container or is there any alternate solution?
    Thanks in Advance
    Hari

    Hi,
    Check the <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/a6/9bac935f2c11d194a40000e82dec10/frameset.htm">Multiline Container Element Definition.</a>
    Regards
    <i><b>Raja Sekhar</b></i>

  • No data in Portal Database tables for Activity Report

    Hi experts,
    I've developed an Activity Report application in SAP Portal 7.0, which went live but the report shows no data.
    We are pulling data from 2 portal database tables: WCR_WEBCONTENTSTAT and WCR_USERPAGEUSAGE
    In non production environment there is data in the report but there is no data in the production environment.
    The Activity Report service is already activated/started and set to true.
    What could have caused this? And what should we check now?
    What other configurations/setup should be done?
    Regards,
    Greg

    Hi Greg,
    Those are the aggregated tables. If they are not filled with data although the Portal Activity Report is activated, you should check whether the aggregation finished successfully.
    In the older SPs there were some problems that were fixed in later SPs of 7.0.
    In order to have the latest version of Portal Activity report, you can check SAP note 1084379 - Portal Activity Report - Latest Version (SDA file).
    You can compare the SP via the MANIFAST file, as it contains the version and SP number.
    In order to troubleshoot problems in Activity Report, you can follow SAP note: 1690023 - Portal Activity Report - Component-specific Note
    Some basic checks that you can do:
    Run query on the raw data tables to check since when there is data in those tables:
    select min(timestamphour) from SAP<SystemID>DB.WCR_WEBCNODESTAT;
    If there is too much data from long time ago, then you should delete the old data, and leave only the new data (there is anyways retention time for the data to be kept).
    If there is no data, then it means that the Portal Activity Report does not collect data, and not really activated (usually this is not the case).
    The aggregation runs every top of the hour, so you can check in the default traces for an error during that time.
    In most of the cases something went wrong while aggregating the data.
    As a result the aggregation is not finished, so the transaction is not being committed, and the aggregated tables stay empty.
    If there is a DuplicateKeyException in the trace, you can follow SAP note 1054145 - Duplicate Key Exception.
    If you have any more questions, please don't hesitate to ask.
    I hope this information helps,
    Thanks & regards,
    Michal Zilcha-Lang

  • Remove direct update of database table for VBUk and VBRK

    hello,
    we are updating  database table only for thse two single fields VBRK-FKDAT_RL and VBUK-RELIK using direct UPDATE statements.
    Could you please suggest some function modules or BAPI ?
    BDC is not possible as some fields are not editable.
    Awaiting your responses.
    I have tried RV_INVOICE_DOCUMENT_READ, RV_INVOICE_DOCUMENT_UPDATE, RV_INVOICE_DOCUMENT_ADD.

    The fields aren't editable for a reason.  If you explain the reason for the requirement and what is the trigger for changing the values, you might get a better response.  Why isn't this handled via configuration for instance?

  • Tables for workflow process

    Hi ACE,
    Can you please provide me table where we can find about the workflow, gives following information
    1. Workflow need to determine where exactly is the request pending.
    2. On what date and time were the workflow requests submitted / Approved / Maintained.
    3. Whether the workflow request is Completed or In-Progress.
    Thank you so much for helping me in advance.
    K@$TURI

    Hi,
    Using the FM You can get the Agent & Workflow Details SAP_WAPI_GET_WORKITEM_DETAIL and SAP_WAPI_WORKITEM_RECIPIENTS.
    Check this Tables 
    SWWORGTASK - Assignment of WIs to Org.Units and Tasks
    SWWUSERWI - Current Work Items Assigned to a User
    Other Tables for Workfow
    SWWWIHEAD - Header Table for all Work Item Types
    SWW_OUTBOX - Lists Workflows in outbox together with status
    SWW_CONT - Container Contents for Work Item Data Container
    SWW_CONTOB - Container Cont. for Work Item Data Container (Only Objects)
    SWWLOGHIST - History of a work item
    Regards,
    Surjith

  • Database table for Pricing Condition

    Hi,
    Can some one pls help me in finding the database table where I can fetch all the Access Sequences ('A' tables) associated for a particular Pricing Condition.
    Regards,
    Pankaj.

    Hi,
    Goto T685 and fetch KOZGF for your condition type(KSCHL) and KVEWE = 'A'.
    Goto T682I and fetch KOTABNR vaues for all entries in above selected table based on KVEWE = 'A', KAPPL and KOZGF.
    Prefix 'A' to above selected KOTABNR values to get the 'A' tables.
    Hope this helps you!!!
    Regards,
    Ganga

  • Best method to update database table for 3 to 4 million rows

    Hi All,
    I have 3 to 4 million rows are there in my excel file and we have to load to Z-Table.
    The intent is to load and keep 18 months of history in this table. 
    so what should be best way for huge volume of data to Z-Table from excel file.
    If is from the program, is that the best way use the FM 'GUI_DOWNLOAD' and down load those entries into the internal table and directly do as below
    INSERT Z_TABLE from IT_DOWNLOAD.
    I think for the huge amount of data it goes to dump.
    please suggest me the best possible way or any psudo code  to insert those huge entries into that Z_TABLE.
    Thanks in advance..

    Hi,
    You get the dump because of uploading that much records into itnernal table from excel file...
    in this case, do the follwowing.
    data : w_int type i,
             w_int1 type i value 1.
    data itab type standard table of ALSMEX_TABLINE with header line.
    do.
       refresh itab.
       w_int = w_int1..
       w_int1 = w_int + 25000.
       CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
      EXPORTING
        FILENAME                      = <filename>
        I_BEGIN_COL                   = 1
        I_BEGIN_ROW                   = w_int
        I_END_COL                     = 10
        I_END_ROW                     = w_int1
      TABLES
        INTERN                        = itab
    * EXCEPTIONS
    *   INCONSISTENT_PARAMETERS       = 1
    *   UPLOAD_OLE                    = 2
    *   OTHERS                        = 3
    IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    if itab is not initial.
    write logic to segregate the data from itab to the main internal table and then
    insert records from the main internal table to database table.
    else.
    exit.
    endif.
    enddo.
    Regards,
    Siddarth

  • Reg:Tables for Workflow

    Hi All,
    My requirement is as follows...
    I need to create one new program based on contract number when I executed that program it should show the status of approval where itu2019s pending whether rejected or approved and comment of approved / rejected . If he regenerated same contract   we have to pick current status with comments and old status with comments.
    Workflow is full developed from Scratch.I can say it is zworkflow.
    This is very urgent plz help me.

    OK, with function SAP_WAPI_WORKITEMS_TO_OBJECT and BUS2032 you can get the work items that are connected to the contract. That is the first step. Now you have the work items.
    Now you can read the container values of the work items with SAP_WAPI_READ_CONTAINER.
    The status of the contract you will hopefully get from the contract table (if the contracts have this kind of information). If not, then you probably need to read it from the container.
    Just take a look into a technical workflow log of one contract workflow instance and check the container values there. Then play around with SAP_WAPI_READ_CONTAINER in SE37 and see what it returns. You should get pretty good idea how the function work. Also check other SAP_WAPI* functions - there are plenty of useful stuff.
    It is impossible to give detailed instructions since we don't see your custom workflow and you don't provide too much information.
    Regards,
    Karri

  • Updating database table for 'CHANGE' and 'ADD' buttons.

    Hi,
    I am working on module pool program. Here i am using table control.Below is my requirement:
    1) I have designed a selection - screen with 'CHANGE' and 'DISPLAY' buttons and in screen 100 i have 'ADD' and 'SAVE' buttons.
    2) when i click on 'CHANGE' , it will move to screen 200 here i need to change quantity field for that particular record which is in table control.once i change the field value and click on 'SAVE'  a message should be populated that "RECORD IS SAVED' and  this record should be updated in database table with new quantity field value and it should return back to my selection screen.
    3) When i click on 'ADD' , it should display already existing records in disable mode and a new line should be added inorder to enter new records. Once i enter the data and click on SAVE, this new record should be saved in the database table along with existing records.
    Kindly suggest me a sample code for this as am new to table control in module pool programming.

    Hi Gaurav,
    I've a similar problem!! any solutions to your problem!!

  • How to find the database table for this screen field

    hi in XD02
    There is a scrren field customer
    name1 (firt line under name)
    and email id fields
    i wnat to know where the data stores goes w hen user eners in this screen i mean in which table and how to find it
    for kunnr name1 i suppose it goes to kna1 but how to find it?
    and f or email id whre it gots which table
    regards
    Arora

    Hi,
    when you press F1 it will give the necessary information
    but some times it may give the structure names also
    those structures are being used by the back end module pool
    programm
    so every time we can get the exact information about the
    data type or length
    but not sure that every time we get the exact database table name
    and field name
    according to me, if i dont know where some field are getting stored in
    database ( if the field name and table is structure )
    then i will ask my functional consultant ...
    thanks & regards,
    Venkatesh

  • Table for CO-PA-Value Field Texts

    Hi together,
    does anybody know the table where the texts for the CO-PA-Value-fields are stored?
    Kind regards
    Udo

    Hello,
    both tables do not match my expectations.
    Table V_TKEVG3 is for assignment of value field groups, table TKCTK is for key figures.
    Kind regards
    Udo

  • Number of entries in the internal table for perticular field value

    hi All,
    Is this possible to get the count of records from the internal table for a perticular field value.
    currently my requirement is to get the entries from the internal table which does not have two records for perticular field value (say a = 123) whose status is active (say b = 'X').
    also suggets should use LOOP or DELETE or DESCRIBE for a internal table to ful fill this requirement.
    Thanks in advance.
    Pradeep

    Try like this..
    Create another table itab2 with same structure as itab1 & move the contents of itab1 to itab2
    ITAB2[] = ITAB1[].
    Then delete entries from itab2
    Delete itab2 whete a = '123' and b = 'X'
    Then use Describe statement to get the no of entries
    Describe table itab2 lines v_lines.
    Hope this helps...

Maybe you are looking for

  • Radeon driver on HD7770: Direct rendering disabled

    Hi, i have strange issue here. DRI is just not working. I am trying to fix this shit already a week, or maybe even more. Help someone. pls. Installed pkgs linux-firmware amd-ucode xf86-video-ati ati-dri lib32-ati-dri glu libegl libgbm libgl libglapi

  • How to go to a particular object in drill down detail pdf report?

    In drill down html reports I could directly go to a particular object in the detail report from the summary report by using hyperlink destination property in the detail report and hyperlink property in the summary report. How can I do the same thing

  • ITunes music files in my Temp folder

    So I have a full list of my music in c:\temp (cannot figure out how they got there) and the ones in My Documents\My Music\iTunes... Where would I see where iTunes actually sees the files so I can delete the set in c:\temp. And if it is using the c:\t

  • Character conversion and NLS parameter

    Hi forms gurus, After deploy forms on IAS/Linux, i'm encountring the following situations: - Conversion of some characters: (é) becomes (e), (°) becomes (?).As i'm a french speaker, these subsitution are not interesting for me. - NLS Parameter: Err

  • Helix will not connect with keyboard and touch pad

    This is kind of wierd.  It's been doing this since I've owned it.  I have a Thinkpad USB 3.0 port replicator.  When I get to work, I used to turn the screen around backwards on the keyboard and plug it into the PR.  That way all you could see was the