Read Workflow Description in ABAP

Hi All,
can anyone tell me the right SAP-Table for the Workflow-Description? I cant find it.
Kind regards
Andreas

Hello,
You can use this functionmodule to get the description just pass WS and number.
SWF_TASK_DETAILS_GET
Hope it helps.
Any more queries do let me know.
Regards,
Nabheet Madan

Similar Messages

  • Trigerring workflows in an ABAP program

    Can somebody please tell me the best way to trigger a workflow in an ABAP program. And if possible please send me some sample code how it can be done. I need it urgently so if possible please reply to this ASAP.
    Thanks in advance,
    Mohsin

    Check the following Code to trigger the Workflow form custom program.
    Data for workflow trigger
      DATA: objtype    LIKE  swetypecou-objtype,
            objkey     LIKE  sweinstcou-objkey,
            event      LIKE  swetypecou-event,
            event_container LIKE  swcont OCCURS 0 WITH HEADER LINE.
      objtype = 'ZBUS1001'. "Material [sub object of BUS1001]
      MOVE v_wfmatnr TO objkey. "V_WFMATNR is material number
      event = 'CreatePLMMaterial'."Custom Event defined in
    ZBUS1001 [Tcode SWO1]
      REFRESH event_container.
    *Following are the Event parameters required in the *Workflow
      swc_set_element event_container 'Attachment' v_wfattachment.
       swc_set_element event_container 'Material' v_wfmatnr.
      swc_set_element event_container 'TisGroup' v_wftisgroup.
      swc_set_element event_container 'SchDate' v_schdate.
      CALL FUNCTION 'SWE_EVENT_CREATE'
           EXPORTING
                objtype           = objtype
                objkey            = objkey
                event             = event
           TABLES
                event_container   = event_container
           EXCEPTIONS
                objtype_not_found = 1
                OTHERS            = 2.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
      COMMIT WORK.
    In TCode SWETYPV Create entry for Object type Event and Workflow ID.
    In my case Object type is ZBUS1001
    Event CreatePLMMaterial
    Rec type = <Workflow ID>

  • What is font book used for? I read the description but still unsure. Does it contain fonts that are not already on the computer

    What can I use font book for? I read the description but still don't get it. Does it contain fonts that are not already installed on my new Mac? Thanks.

    Disabling (turning off) a font will make it unavailable for use in any font menu. You can alwasy enable the font(s) again - they're not gone permanantly. DON'T disable System fonts, though -> that's just asking for trouble.
    Here's -> https://www.youtube.com/watch?v=JdR6-4lnF5A - a good video tutorial about using Font Book.
    Clinton

  • Is it possible to read the description of videos that you can see in iTunes on your iPod Touch 4th Gen or 5th Gen?

    I was wondering if it's at all possible to read the description of videos that you have on your iPod Touch 4th or 5th Generation. It's available on iTunes, but I was wondering if there was a way to see it on your actual device.
    Any answer would be a great help! Thanks

    You can omit the title altogether in the URL (together with the succeeding slash, of course). For example, my own podcast URL in the Store is
    https://itunes.apple.com/gb/podcast/the-sound-of-78s/id166389425?mt=2
    but this works perfectly well:
    https://itunes.apple.com/podcast/id166389425
    Indeed you can even put your own title:
    https://itunes.apple.com/podcast/any_old_title/id166389425
    So it's as simple as that!

  • Reading URL parameters in ABAP webdynpro

    I have a requirements to run my ABAP Webdynpro application view based on two parameters passed to it from portal. How can I read the parameters in ABAP webdynpro and use them to write my condition in the run time. I would appreciate it if someone has any code that would help me also.
    Again your help and support is highly appreciated.
    Lily

    Hi Lily,
    To read the URL parameters, you need to right the following code in the HANDLEDEFAULT method
    of the your default window controller.
    DATA : it_parameter TYPE tihttpnvp,
             wa_parameter  TYPE ihttpnvp.
      DATA lo_nd_url_param TYPE REF TO if_wd_context_node.
      DATA ls_url_param TYPE wd_this->element_url_param.
      " Get all URL parameters
      CALL METHOD wdevent->get_data
        EXPORTING
          name  = if_wd_application=>all_url_parameters
        IMPORTING
          value = it_parameter.
      " Get parameter values
      CLEAR wa_parameter.
      READ TABLE it_parameter WITH KEY name = 'PERNR' INTO wa_parameter.
      IF sy-subrc EQ 0.
        ls_url_param-pernr = wa_parameter-value.
      ENDIF.
      CLEAR wa_parameter.
      READ TABLE it_parameter WITH KEY name = 'SUBTY' INTO wa_parameter.
      IF sy-subrc EQ 0.
        ls_url_param-subty = wa_parameter-value.
      ENDIF.
      CLEAR wa_parameter.
      READ TABLE it_parameter WITH KEY name = 'BEGDA' INTO wa_parameter.
      IF sy-subrc EQ 0.
        ls_url_param-begda = wa_parameter-value.
      ENDIF.
      CLEAR wa_parameter.
      READ TABLE it_parameter WITH KEY name = 'ZZPRNTOPT' INTO wa_parameter.
      IF sy-subrc EQ 0.
        ls_url_param-zzprntopt = wa_parameter-value.
      ENDIF.
      " Save URL parameter to context
      lo_nd_url_param = wd_context->get_child_node( name = wd_this->wdctx_url_param ).
      lo_nd_url_param->set_static_attributes(
         static_attributes = ls_url_param ).
    Regards,
    Vikrant

  • Procedure to Call Workflow Object from ABAP program in Se38

    Hi All,
    I have one scenario like i have to call one Workflow object from ABAP program in SE38.The scenario is like below.....
    I have to select some records from database table.For example there are 100 records in the internal table.
    For all that records i have to invoke Workflow for getting approval from the authorized persons. Once Approval has come to program, It will post one document in SAP and process ends.
    Please suggest me how to move forward with this scenario.
    Regards
    Manas Ranjan Panda

    Hi,
    So you want to start a workflow from an ABAP, if an event exists for that particular workflow then the best way is to use fm SAP_WAPI_CREATE_EVENT,
    to start a workflow from an ABAP you can use fm SAP_WAPI_START_WORKFLOW.
    Kind regards, Rob Dielemans

  • Function module to read XML file in ABAP

    Hey guys
    is there any function module which can read an XML file into an ABAP code?
    we are getting some file on the application server in XML format and we need to read this file in ABAP code,how can i achieve this ?
    thanz
    ahmad

    Hi Ahmad,
      These are few functions to work with XML in ABAP.
      SDIXML_DATA_TO_DOM: Convert SAP data (elementary/structured/table types) into DOM (XML)       
    SDIXML_DOM_TO_XML: Convert DOM (XML) into string of bytes that can be downloaded to PC or application server
    SDIXML_DOM_TO_SCREEN: Display DOM (XML)
    SDIXML_DOM_TO_DATA
    Example of using these:
    eport z.
    data: it_table like t001 occurs 0.
    data: l_dom      TYPE REF TO IF_IXML_ELEMENT,
          m_document TYPE REF TO IF_IXML_DOCUMENT,
          g_ixml     TYPE REF TO IF_IXML,
          w_string   TYPE XSTRING,
          w_size     TYPE I,
          w_result   TYPE I,
          w_line     TYPE STRING,
          it_xml     TYPE DCXMLLINES,
          s_xml      like line of it_xml,
          w_rc       like sy-subrc.
    start-of-selection.
      select * from t001 into table it_table.
    end-of-selection.
    initialize iXML-Framework          ****
      write: / 'initialiazing iXML:'.
      class cl_ixml definition load.
      g_ixml = cl_ixml=>create( ).
      check not g_ixml is initial.
      write: 'ok'.
    create DOM from SAP data           ****
      write: / 'creating iXML doc:'.
      m_document = g_ixml->create_document( ).
      check not m_document is initial.
      write: 'ok'.
      write: / 'converting DATA TO DOM 1:'.
      CALL FUNCTION 'SDIXML_DATA_TO_DOM'
        EXPORTING
          NAME               = 'IT_TABLE'
          DATAOBJECT         = it_table[]
        IMPORTING
          DATA_AS_DOM        = l_dom
        CHANGING
          DOCUMENT           = m_document
        EXCEPTIONS
          ILLEGAL_NAME       = 1
          OTHERS             = 2.
      if sy-subrc = 0.  write  'ok'.
      else.             write: 'Err =', sy-subrc.
      endif.
      check not l_dom is initial.
      write: / 'appending DOM to iXML doc:'.
      w_rc = m_document->append_child( new_child = l_dom ).
      if w_rc is initial.  write  'ok'.
      else.                write: 'Err =', w_rc.
      endif.
    visualize iXML (DOM)               ****
      write: / 'displaying DOM:'.
      CALL FUNCTION 'SDIXML_DOM_TO_SCREEN'
        EXPORTING
          DOCUMENT          = m_document
        EXCEPTIONS
          NO_DOCUMENT       = 1
          OTHERS            = 2.
      if sy-subrc = 0.  write  'ok'.
      else.             write: 'Err =', sy-subrc.
      endif.
    convert DOM to XML doc (table)     ****
      write: / 'converting DOM TO XML:'.
      CALL FUNCTION 'SDIXML_DOM_TO_XML'
        EXPORTING
          DOCUMENT            = m_document
        PRETTY_PRINT        = ' '
        IMPORTING
          XML_AS_STRING       = w_string
          SIZE                = w_size
        TABLES
          XML_AS_TABLE        = it_xml
        EXCEPTIONS
          NO_DOCUMENT         = 1
          OTHERS              = 2.
      if sy-subrc = 0.   write  'ok'.
      else.              write: 'Err =', sy-subrc.
      endif.
      write: / 'XML as string of size:', w_size, / w_string.
      describe table it_xml lines w_result.
      write: / 'XML as table of', w_result, 'lines:'..
      loop at it_xml into s_xml.
        write s_xml.
      endloop.
      write: / 'end of processing'.
    end of code
    Let me know if you have further questions..
    BR
    Rakesh

  • Workflow Description Field truncation

    I was wondering if there was a work around to display more than 256 characters in the Approval workflow history list for column description? If, so how do you do it? I deployed a custom Approval workflow using SharePoint Designer 2010 and InfoPath. It
    is working really well just that when a user rejects an item they have to put a comment. In most cases it is below the 255 limit however, in some instances it is above. Any help is appreciated!

    Hi ams015,
    According  to your description, my understanding is that you want to change the limitation of the Description field in workflow history.
    The description field of a workflow history list is truncated when the number of characters used goes beyond 255. This behavior is a by-design limitation, SharePoint 2010 implements a restriction on the number of characters that can be used in a multiline
    text box. The reason is that the OLE property stream doesn't support more than 255 characters. Having more than 255 characters would cause problems demoting properties into documents.
    More information, please refer to the link below:
    http://social.technet.microsoft.com/Forums/en-US/c786a00e-29cb-49d6-8f7a-383ba7dcc560/workflow-description-field-truncation?forum=sharepointcustomizat
    Here is a similar post for you to take a look at:
    http://social.msdn.microsoft.com/Forums/en-US/05cb0f9f-c115-480a-8ef5-65c354f53504/workflow-history-truncated-description?forum=sharepointcustomizationlegacy
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • Trigger an workflow from webdynpro abap.

    hai
    gurus!
        iam new to webdynpro.iam femilier with workflow . can anybody explain me with an clear example, how to trigger an workflow from webdynpro abap.
    regards
    rose

    Hi Rose
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/using%20web%20dynpro%20java%20and%20web%20dynpro%20abap%20applications%20in%20universal%20work%20list.pdf">Click</a> Here, to know the step by step procedure of using Webdynpro in Workflows
    Use SAP_WAPI_START_WORKFLOW RFC
    Regards
    Abhimanyu L
    Message was edited by:
            Abhimanyu Lagishetti

  • Script to read IPTC description

    Hi,
    i need a script so that i can read the description field of the IPTC core of a selected file (and also preferabely the ability for selection of files) in bridge (in my case CS4)
    and also please introduce some string manipulation functions to apply to the read field.
    Thanks in advance.

    This will write the selected documents description field to the console in the ExtendScript Toolkit.
    You will have to be more precise on what you want to do with the string to be able to give an example.
    #target bridge
    loadXMPLibrary();
    for(var a in app.document.selections){
    var thumb = app.document.selections[a];
    if(thumb.hasMetadata){
            var selectedFile = thumb.spec;
      var myXmpFile = new XMPFile( selectedFile.fsName, XMPConst.UNKNOWN, XMPConst.OPEN_FOR_READ);
      var myXmp = myXmpFile.getXMP();           
       for(var i = 1;i <= items;i++){
    var Desc = ArrayItems(XMPConst.NS_DC, "description");
                $.writeln(Desc);
         unloadXMPLibrary();
    function loadXMPLibrary(){
       if ( !ExternalObject.AdobeXMPScript ){
          try{
             ExternalObject.AdobeXMPScript = new ExternalObject
                                        ( 'lib:AdobeXMPScript' );
          }catch (e){
             alert( ErrStrs.XMPLIB );
             return false;
       return true;
    function unloadXMPLibrary(){
       if( ExternalObject.AdobeXMPScript ) {
          try{
             ExternalObject.AdobeXMPScript.unload();
             ExternalObject.AdobeXMPScript = undefined;
          }catch (e){
             alert( ErrStrs.XMPLIB );
    function ArrayItems(ns, prop){
    arrItem='';
      var items = myXmp.countArrayItems(ns, prop);
      if(items > 0){ 
       for(var i = 1;i <= items;i++){
         arrItem += myXmp.getArrayItem(XMPConst.NS_DC, prop, i);
        return arrItem;

  • Where can I read the description?

    Hello,
    when I synchronize a E61 with 6.86.9.3 with outlook and have a look in the Synch protocol, I see that the description of a task ("Aufgabe" in German version) will transferred to and from my mobile.
    But where can I read the description in the phone? I didn't find any menu entry wich does show me it.
    Regards,
    Kurt

    Hi
    Which handset you are using? Have you checked this ( for example if it is today) you can check the same in calender or have checked in any notes on your phone ( Menu - Office - Notes) .... I am not sure is it the same u r expecting ? No clues w/o phone model ?

  • Reading workflow container

    Hi,
    I want to read workflow container using workflow number, not using task or work item id.
    Most of the function modules or class-methods which returns container does it based on work item id.
    Let me know if you have any solution.
    Thanks,
    Aravind

    I didnt have a look into the FM browser.
    But logically speaking, by specifying the WF number you cannot read the container.
    Evry wf will be asscociated with an instance which is nothing but workitem id.
    hence you have to use workitem id to read the particular container.
    Eg :SAP_WAPI_READ_CONTAINER

  • Reading Component Type in ABAP

    hi
    Given a table name, is it possible to identify its 'Component type' <b>programmatically</b>
    for example VBAK has the following Application/Component hierarchy:
    SD - Sales and Distribution
           SD-SLS - Sales
                 VA -  Application development R/3 Sales
                        <b>VBAK</b> - Sales Document: Header Data
    So, is it possible to read this hierarchy in an ABAP program?

    Hi
    From the table description and the Dev class attached to it, and from the fields description we will come to know the component types of that table
    all these are stored in different tables with respect to that table
    check the tables
    TADIR,DD03L, TDEVC etc to get all the above linked things of a table
    Reward points for useful Answers
    Regards
    Anji

  • How to read Blueprint Structure using ABAP

    Hello All,
    We are creating a report for which we need to read the projects blueprint structures (from ABAP).
    Anyone any ideas what tables to read from, or what bapi calls we can make for this?
    Thanks,
    Jurjen

    Hi Jurjen
    sorry for my late response, I was two days offsite at a customer ...
    If you follow the description above you will get a list of entries of TTREE with different TTREE-TYPES. These types are giving you at least some information about their positions in the structure:
    BMBS0 is a business scenario
    BMPG1 is a business process
    BMPS1 is a business process step
    REFH0 is  the top node of your structure
    Unfortunately I didn't get the real structure hierarchy up to now to understand who is which parent or brother or child. Nevertheless you will have in the field TTREE-TEXT the description of the nodes in transaction SOLAR01.
    Best regards, Alexander

  • Read DB2 tables from ABAP program

    Hi All,
    I have a requirement to read a DB2 table(in our landscape) from the ABAP program.  I appreciate any pointers.
    Thanks,
    Kiran.

    Connecting to an External database from SAP
    Step 1: Create an entry for the External database in DBCON table using Trxn: DBCA.
    Table: DBCON (Description of Database Connections)
    Field Name Description Value (For: E.g.:)
    CON_NAME Logical name for a database RAJ
    DBMS Database system MSS
    USER_NAME Database user <username>
    PASSWORD Password for setting up the connection to the database <pwd>/<pwd>
    CON_ENV Database-specific information for a database connection MSSQL_SERVER=depotserver MSSQL_DBNAME=HOF_INDORE
    DB_RECO Availability type for an open database connect
    Step 2: Now you can write code to connect to the external database…
    Your Sample code can be something like this……
    FUNCTION-POOL z_houston. "MESSAGE-ID ..
    DATA: BEGIN OF wa,
    c_locid(3),
    c_locname(50),
    c_locstate(5),
    END OF wa.
    FUNCTION z_houston_connect.
    ""Local interface:
    EXEC SQL.
    CONNECT TO 'RAJ' AS 'V'
    ENDEXEC.
    EXEC SQL.
    SET CONNECTION 'V'
    ENDEXEC.
    *- Get the data from MS-SQL Server
    EXEC SQL.
    open C1 for
    select
    loc_id,
    loc_name,
    loc_state
    from ho_loc_mast
    ENDEXEC.
    DO.
    EXEC SQL.
    FETCH NEXT C1 into :wa-c_locid, :wa-c_locname, :wa-c_locstate
    ENDEXEC.
    IF sy-subrc = 0.
    PERFORM loop_output.
    ELSE.
    EXIT.
    ENDIF.
    ENDDO.
    EXEC SQL.
    CLOSE C1
    ENDEXEC.
    ENDFUNCTION.
    *& Form LOOP_OUTPUT
    Output
    FORM loop_output .
    WRITE: /5 wa-c_locid, 10 wa-c_locname, 65 wa-c_locstate.
    CLEAR wa.
    ENDFORM. " LOOP_OUTPUT

Maybe you are looking for

  • Is there any way to edit the pdf text field design?

    I dont want a black frame around text frames when a form is printed... In Livecycle you could define various properties (like sunken box etc.), but not in FormsCentral?

  • Not enough memory - when there actually is!

    Hi I'm getting confused with my new Nokia 5200. I've managed to transfer some tracks from my pc to my phone, but it says that I don't have room to transfer everything that I'm asking it to. The music manager says that all the tracks are about 450mb a

  • ACNS Upgrade Fails

    I get the following error message upgrading the CE510 systemimage, the flash upgraded fine, any ideas? install ACNS-5.1.9.5-K9.bin Reclaiming unused flash safe state sectors ... /ruby/bin/ruby_upgrade: /local/local1/ACNS-5.1.9.5-K9.bin: checksums on

  • 11-May security patch trouble

    I applied the 8.0.1 security patch to CF version 8,0,1,195765 Standard. All data sources verify OK when checked through the CF Administrator, but when running any application, all database connections fail.Pages that do not involve a data connection

  • How to Mark join as left outer join in Info set

    Hi Folks, I have 2 info cubes in Info set, I need to mark the join as Left outer join. I have read some blogs where is says that it cant be joined, but one of my colleagues has made left outer join using two cubes. I want to replicate the same thing