How to capture workitem number

Hi Experts,
We have custom workflow for creating material master. The main workflow contains different sub workflows and tasks. The workflow has 4 levels approvals and it has been triggering from Z transaction using event.
We have the requirement for report to know the Overview of all material requests currently open; (at which specific step are they pending?), Daily Overview  of  all requests currently open for more than 24 hours at a specific department: including assigned user.
But this data we are not capturing in the Z-tables. We can get it from workflow standard tables like SWWWHEAD. For all these standard table required workitem id which is unique and will dynamically generates the number.
My question is how to capture workitem number. Is there any function modules/reports/process to get the workitem number specific to object type/object key?
Thanks in advance.
Cheers,

Hi ,
You can use the standard WAPI for getting the workitemids for specific material nos . But when you are going to  develop report for multiple material nos then you need to call the SAP WAPI in side LOOP and END LOOP , which will affect the performance  of the report .If the no of entries is less to be displayed in the report then you can use the SAP WAPI . Other wise you can try the below code for better performances -
Get all your material nos in one internal table  say ITAB1 .
IF ITAB1 IS NOT INITIAL .
    SELECT   top_wi_id wi_rh_task instid FROM sww_wi2obj INTO TABLE
    itab2  FOR ALL ENTRIES IN ITAB1
      WHERE instid = ITAB1-instid
                  AND catid = 'BO'
                  AND typeid = 'BUS1001006'
                  AND wi_release = '700'
                  AND wi_reltype = '99'
                  AND removed = '   ' .
ENDIF .
You will get the  workitemid of workflow specifc to all  materials in the internal table ITAB2 - The field is - top_wi_id
Just try this out . Hope it may help you .
Regards
Prabhudutta
Edited by: Prabhudutta Behera on Mar 13, 2009 12:20 PM

Similar Messages

  • How to capture oldmaterial number from R/3 to CRM

    Hi Experts
    we have   a requirement where in we need to capture the old material number in crm product master from R/3 material master and the user is trying to search the material with the old material number that has been replicated from the R/3 back end.
    We have downloaded the material from R/3 to CRM but the oldmaterial number field has not replicated any where in the product master of CRM.
    can any one throw some lights and give us your inputs to map this scenario.
    Quick response is highly apprecialble.
    Regards
    Suneel

    Dear Sudha,
    Thank you for quick  response ,can you kindly  elaborate that, how can I Map the new set type to the field  old material number in R/3 also  let me know how can I search my material using the search time "old material " once I  mapped the same in to CRM.
    Thanks,
    Suneel

  • How to retrieve reference number using workitem id in workflows

    I am trying to get the Process status from table T5ASRPROCESSES but I am not sure from where to get the reference number.
    I have the workitem detail. Can you please let me know how to link workitem id and reference number

    Hi,
    This can be taken from the table T5ASRPROCESSES field is REFERENCE_NUMBER.
    You pass this reference number in SCASE transaction and get details of WF container.
    Best Regards,
    IFF

  • How to capture number of tabular form rows in javascript

    Greetings All -
    I have a tabular form that I created manually.
    I am looking for a way in javascript to capture the number of rows that are displayed on the page.
    Is this possible?
    Regards,
    Mark

    Bill -
    Thank you for the reply.
    I had thought of your suggestion but I was unsure where I could execute the apex_application.g_fxx.count command without submitting the page.
    I cannot do this on a submit, because I need to now the number of rows displayed in order to do a calculation while entering a row on a manually created tabular form
    Suggestions appreciated
    Regards,
    Mark

  • How to capture first two digit in a number

    Hi,
    I have numbers with differeent lenth in a variable How to capture first two digit??
    Thanks.

    Hi,
    We can achieve that using the following methods:
    DATA : loc_1  type string,
                loc_2(2) type c.
    loc_1 = '123423428340923990'.
    loc_2 = loc_1+0(2).
    Here you will get only the first two digits.
    You can use move statement also.
    MOVE LOC_1(2) TO loc_2.
    If you are having mixed string with characters and digits mixed together i.e. like this 'test01test03sample01'.
    You can so that using this method.
    data : lv_length type I.
    loc_1 = 'test01test03sample0'.
    LV_LENGTH = STRLEN( loc_1 ).
      DO LV_LENGTH TIMES.
    *&-- Read from first string validing the numeric fields and move your first two digits to the required variable --&*
      ENDDO.
    Hope it will be useful.
    Regards,
    Sakthi
    Edited by: Sakthi Saravanan C on Oct 8, 2010 6:45 PM

  • How to capture the parameter in webdynpro application?

    Hi ,
    We have a requirement like this :
    the scenario is :
    user will get a mail to  inbox(here mail is coming from SAP Workflow) saying that :"proposal is waiting for your approval".for details please click on the below link:
    once user clicks on the link it has to open up the webdynpro application and has to display the details of the particular proposal no.
    how to pass the proposal no to the webdynpro application URL and how to capture the proposalno in webdynpro java?
    Thanks in advance.
    Regards,
    Pavani

    From the workflow when you create the link, also add the proposal number as an url parameter.
    For example if the url for requesting WD application is <WD_URL>, then URL with parameter would be
    <WD_URL>?PROPOSAL_NO=<actual_proposal_number>
    In the webdynpro, you can access this parameter with the following piece of code(ideally in wdDoInit of component controller).
    String proposalNo = WDProtocolAdapter.getProtocolAdapter().getRequestObject().getParameter("PROPOSAL_NO");
    Regards
    kk..

  • How to capture the row  value in Advanced Table on OAF ?

    Hi:
    I was wondering, if anyone has any idea as to how to capture a row value on an advanced table on a OAF Page.
    I am currently trying to capture the Expense Report Number ( first column) on the Track Expenses Reports table on the page /oracle/apps/ap/oie/webui/HomePG.
    Any idea would be helpful ?
    Thank You

    Hi,
    856070 wrote:
    This is what I am looking for :
    Default Functionality
    On the expenses home page there is a table for the Submitted expenses Table ( advanced table) with multiple Expense Number rows , which has a link associated with every expense number. When the user clicks the expense number link , EBS takes you to a more detail information page. ---As per default functionality :::whene ever user clicks on link it will takes u to details info page based expense no right.
    ---Check the property of the Destination URL of the ExpensionNumber column.
    ---In this property u can find the page path and paramam ex:pexpencenumber.
    Customized functionality
    I would like to capture the Expense number on the detailed page to call another application based on the expense number. The expense number on the
    detailed page is not available on the request-parameter or on the VO.
    I was thinking of capturing the ExpenseNumber when the user clicks it and save the expense number on a >transientvalue to retrieve it on the detaile dpage..but unable to do so.---Here get the paramereter pexpencenumber and pass it to another appilcation.
    Regards
    Meher Irk

  • How to capture the dynamic fields in the form...urgent...Please help me

    Hi Gurus,
    I'm working on Adobe Interactive form developed in WDP ABAP. I have a dynamic field called Roles. User can give n number of roles as Input. How can I capture them in my WDP. I know how to capture if there is a fixed field like name, age, email id etc.. Please give me the detail explaination on this.

    hi,
    when you create a form, the UI elements are created by either directlly dragging and dropping the context elements or map form elements with context elements.
    when pdf is online its contents are reflected in the Context Attributes.
    so if you change/modify the Context Attributes, the change is reflected in the corresponding form fields.
    regards,
    -amol gupta

  • How to get workitem id in ABAP-Webdynpro application

    Hai All,
    When a user clicks on a work item in universal worklist, a ABAP-Webdynpro screen is called. I want to pass the workitem number to this ABAP-Webdynpro application. 
    Please let me know how to pass this.
    Thanks & Regards,
    H.K.Hayath Basha.

    Hai Kari,
    Thanks for the link, i am looking into it.
    Hai Naresh,
    Where should I give this link,
    http://abc.com:8001/sap/bc/webdynpro/sap/ztest? param1= Val
    What I have done is,
    In SWFVISU transaction I maintained the following entry,
    Task = TS99000208
    Visualization Type = WD_ABAP
    Visualization Parameter  Visualization Parameter value
    APPLICATION            =  ZWD_OFFICIAL_012
    NAMESPACE            =  SAP
    and registered this task in in universal worklist.
    Where the specify the code you mentioned. 
    Thanks & Regards,
    H.K.Hayath Basha.

  • How to capture the date and time of  a background job

    Hi experts,
    How to capture the date and time of  a background job?
    How to find whether it is runned succesfully or not?
    If it is not successful how to put error message?
    ASAP
    Thanx in advance,
    Sudha

    To Display the STATUS of the JOB which is exectued in background
      CLEAR : wa_jobsteplist.
      REFRESH : i_jobsteplist.
      WRITE:/ 'DISPLAYING JOB STATUS'.
      CALL FUNCTION 'BP_JOB_READ'
        EXPORTING
          job_read_jobcount           = w_jobcount
          job_read_jobname            = w_jobname
          job_read_opcode             = '20'
        JOB_STEP_NUMBER             =
       IMPORTING
         job_read_jobhead            = wa_jobhead
       TABLES
         job_read_steplist           = i_jobsteplist
    CHANGING
       RET                         =
       EXCEPTIONS
         invalid_opcode              = 1
         job_doesnt_exist            = 2
         job_doesnt_have_steps       = 3
         OTHERS                      = 4
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    To Display the status text as per the status type
      CASE wa_jobhead-status.
        WHEN 'S'. WRITE: / 'Scheduled'.
        WHEN 'R'. WRITE: / 'Released'.
        WHEN 'F'. WRITE: / 'Completed'.
        WHEN 'A'. WRITE: / 'Cancelled'.
        WHEN OTHERS.
      ENDCASE.

  • How to capture the value ?

    Hello Everyone,
    I am running a BDC program using call transaction , and I am updating some records in FB01 , then  for each record a number is generated  called document number ( bkpf - belnr ),
    I want to capture the number generated for each record i process ?
    if i process 10 different records at a time, then how to find which document number is generated for which record ?
    will be rewarded ??

    declare the internal table of type structure BDCMSGCOLL.
    Use this itab in call transaction.
    ex:
    call transaction.......messages into itab.
    if sy-subrc = 0.
    endif.
    In debugging mode check if itab contains any document number for the success full record. Generally it contains the number.

  • How to Capture the parameter?

    Hi All,
    I am doing Level based reports which displays table in each level with link to url in specific column. 
    Ex:  1st level -  say business unit as link to url.  clicking on this will open a 2nd level explorer  window which displays table related to that particular business unit. 
    In this level 2 page I should make some different column as my link to url column.  For this I need to check whether it is a 2nd level or not. 
    How to capture this level number?  Can anyone explain ?
    Hope I am clear with my requirement.
    Regards,
    Subashini.

    Hi Subashini,
    As you are using link to url and opening in new window. so you can create a new view.
    means create a new view for each levels. on your
    link to url just make sure that your application will open that view.
    If you want to use just one view. then create diff tables for diff views. to distinguish between levels
    and if your application have too many levels then try tree element. and open corrsponding report in same window alongside of tree or below the tree.

  • How to capture all the values(occurrence) using Extraction Rules(correlation) in VSTS web test?

    Hi,
      I am using VSTS 2010 for performance testing and have a question about Extraction Rules functionality.  Requirement below.
    Example :
    Server Response
    <a>1</a>
    <a>2</a>
     <a>3</a>
    <a>...</a>
    we need to capture all the values with same left and right boundary. Along with the number of occurrence from the response. We need pass a random value in the
    index where the index value will be between 0 - count of values with same left and right boundary.
    How to find out the count of values with same left and right boundary.

    Thanks for Adrian's help.
    Hi PChav,
    Based on your issue, I think that the Adrian's suggestion is useful for you, so I suggest you could refer the Adrian's suggestion to check your issue.
    In addition, I suggest you could also try the rogeorge's suggestion to create a custom extraction rule to do this.
    Reference:
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/ccff9f7a-d5bc-45d5-80eb-c83f9fc0e103/how-to-capture-all-the-valuesoccurrence-using-extraction-rulescorrelation-in-web-test?forum=vstswebtest
    Hope it help you!
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to capture error message from standard function module

    Dear friends
    when i  execute standard function module in finance , i am getting error message , pls check the below screen shot,
    how to capture the below error message so that i have display in my webdynpro component
    Thanks
    Vijaya

    Hello Vijaya,
    Incase of BAPI's they have a return table parameter T_RETURN. Just read that return table to get the error message.
    Incase of normal function modules, there will be exceptions raised for the message used inside the function module. Just read the sy-subrc after the FM and based on the sy-subrc value find the respective exception raised.
    May be you can try like this, whenever the message is raised it will be stored in the system variable.
    CALL FM.
    check for the system variables.
    sy-msgid = Message ID of the latest message raised.
    sy-msgno = message number of the latest message raised.
    sy-msgty = message type of the latest message raised.
    sy-msgv1 = variable1 of the latest message raised.
    sy-msgv2 = variable2 of the latest message raised.
    sy-msgv3 = variable3 of the latest message raised.
    sy-msgv4 = variable4 of the latest message raised.
    Regards,
    TP

  • How to capture an address change for a sale order in user exit MV45AFZZ?

    Hi ,
    My requirement is to capture the address change in sale order .
    I have to write the code in my own z-include in MV45AFZZ of SAPMV45A.
    Here I have to use VBAP-KUNNR for PARVW = ‘AG’ or ‘WE’. And  ADDR1_DATA.
    Could you please give me idea , how to capture the address change?
    Thanks ,
    Suresh.

    Farshid,
    As I understand it it is the RCS software that replaces the $Revision$ with $Revision: 1.2$. Is that correct?
    There are two things that you need to be aware of if this is the case.
    First, the length of the text fields are saved as part of the SystemBuild model file. This means that when the revision control software replaces the tag the length is no longer correct, and SystemBuild will not be able to load the file correctly. You can still change the text as long as you make sure the the length of the tag stays the same. For example if the version number is a single digit decimal then single digit, then when you create the file you could store the revision as $Revision: x.x$. When the tag gets replaced by the revision control software you would get
    $Revision: 1.2$ which is the same length.
    Next you need to be aware of potential line breaks. When the SystemBuild model is saved as ASCII then line breaks are added at regular intervals, so the tag might be broken up on two lines. This could prevent the revision control software from recognizing the tag. To prevent this save the file as binary.
    In short make sure that the text the revision control software adds is the same length as the text that it replaced and save the files as binary files.
    Carl L
    National Instruments
    www.ni.com/matrixx

Maybe you are looking for

  • Standard SAP reporting

    I have a requirement to find a report that shows a breakdown of 3rd party costs, I have created in a condition record. I have created a BOM. The BOM at header level is relevant for pricing and billing. The sub-boms are just relevant for statistical p

  • The iWork not working on my iPad 2 after OS upgraded to 5.0 or 5.0.1

    Tried to redownload the iWork and install again, but no screen of all the software after tap it to work, after a while the screen close and back to original screen. It was working well with OS4. Appreciate anyone can help to solve it.

  • Apps not syncing

    Long story short, I am on my third iPhone 4 in three days. I had purchased some apps (on my phone) prior to my last backup (which was on March 19), so they should have been included in my backup data. However, when I restored my new phone(s) to the M

  • QM - Cert of Analysis - profile not found

    Folks, Can anyone help me out on this one? Have a problem whereby a cert of analysis profile we created is not printing out as expected. The print output error is - No certificate profile was found. I've checked using QC03 and we do have the certific

  • Beginner training resources

    Greetings RoboHelpers, I've recently downloaded a trial copy of RoboHelp 9 and am just trying to get oriented. My help production system is currently based on Frame 8 and Quadralay WebWorks, so at least I have some single-sourcing experience. I've be