Help in workflow container vairable

Hi
I have a requirement to create a container variable which is of size char4096.But its not allowing to create for such a long size. Can you suggest what I can do?

Hi,
You can use below field as reference field .
Table Name :- CPETASKLOG
Field Name :-   URL
Rgds
Anversha

Similar Messages

  • Help required: Workflow container block missing

    Dear All,
    My workflow builder strangely doesnt show the container elements block.
    How do I add container elements now?
    Any idea of the required settings to see and add the container elements?
    Please help me out.
    Thanks,
    nsp

    Depends on your version (hint, hint), but my guess is that in the builder you are instead seing the "Step types that can be inserted". Look just at the top of the area. If I am right about your version you will find a line with a text describing what you are seing, and a menu arrow at the right edge. Click the menu arrow to display the list of available 'views'.
    The workflow container view is still there in ECC 6.0.

  • Upload file in Web Dynpro and add to Workflow container as SOFM object

    Hi!
    I have a Web Dynpro for ABAP application that should send attachments of uploaded files to a workflow container. I have already managed to do this, and it works fine for TXT files, but when I try to attach a WORD (.DOC) file the file looks corrput when I open it from the SAP inbox.
    When uploading files in Web Dynpro it is as an XSTRING. I have tried out the following alternatives regarding convertion of the XSTRING before it is inserted in the SOFM object:
    1) Convert from XSTRING to STRING using codepage 4110.
    Then it is split into a string table of 255 chars
    2) Convert from XSTRING to STRING using codepage 4102
    Then it is split into a string table of 255 chars
    3) Convert from XSTRING to BINARY format
    I use function module 'SWL_SOFM_CREATE_WITH_TABLE'
    and then swf_create_object lr_sofm 'SOFM' ls_sofm_key.
    before I call some macros to fill the container.
    Anyone else who have tried to do this with success? I'm greatful for any help.
    Regards, Tine

    Hi,
    I had the same problem in the last days and finally I got a quite simple solution:
    I had a look at the FM SWL_SOFM_CREATE_WITH_TABLE an noticed that it calls another FM (SO_DOCUMENT_INSERT_API1) which has a tables parameter for HEX data and is actually able to  create a SOFM object from HEX data.
    I simply copied SWL_SOFM_CREATE_WITH_TABLE as a customer FM and applied a few changes to make it accept HEX data:
    First I added a new table parameter in the interface which gets the HEX data from the calling application (uploaded data using BIN format):
    OBJECT_CONTENT_HEX     LIKE     SOLIX
    Here is the code of the FM (I marked all additional and changed lines with a comment):
    function z_test_sofm_create_with_table .
    *"*"Lokale Schnittstelle:
    *"  IMPORTING
    *"     VALUE(NOTE_TITLE) LIKE  SODOCCHGI1-OBJ_DESCR OPTIONAL
    *"     VALUE(DOCUMENT_TYPE) LIKE  SOODK-OBJTP DEFAULT SPACE
    *"  EXPORTING
    *"     VALUE(SOFM_KEY) LIKE  SWOTOBJID-OBJKEY
    *"  TABLES
    *"      NOTE_TEXT STRUCTURE  SOLISTI1 OPTIONAL
    *"      OBJECT_CONTENT_HEX STRUCTURE  SOLIX OPTIONAL
    *"  EXCEPTIONS
    *"      ERROR_SOFM_CREATION
      data: region like sofd-folrg.
      data: folder_id like soodk.
      data: l_folder_id like soobjinfi1-object_id.
      data: document_data like sodocchgi1.
      data: document_info like sofolenti1.
      data: object_content like solisti1 occurs 0 with header line.
      data: lines like sy-tabix.
    *- set default
      if document_type is initial.
        document_type = 'RAW'.
      endif.
    *- create office object
    *-- get dark folder
      region = 'B'.
      call function 'SO_FOLDER_ROOT_ID_GET'
        exporting
          region                = region
        importing
          folder_id             = folder_id
        exceptions
          communication_failure = 1
          owner_not_exist       = 2
          system_failure        = 3
          x_error               = 4
          others                = 5.
      if sy-subrc ne 0.
        message e696(wl)                       "<== Add message class
                raising error_sofm_creation.
      endif.
    *- get description
      if note_title is initial.
        read table note_text index 1.
        note_title = note_text.
      endif.
    *-- create office document
      document_data-obj_name = 'ATTACHMENT'.
      document_data-obj_descr = note_title.
      document_data-obj_langu = sy-langu.
      object_content[] = note_text[].
      describe table object_content lines lines.
      document_data-doc_size = ( lines - 1 ) * 255 + strlen( object_content ).
      if object_content[] is initial.                     "<== insert
        describe table object_content_hex lines lines.    "<== insert
        document_data-doc_size = lines * 255.             "<== insert
      endif.                                              "<== insert
      l_folder_id = folder_id.
      call function 'SO_DOCUMENT_INSERT_API1'
        exporting
          folder_id                  = l_folder_id
          document_data              = document_data
          document_type              = document_type
        importing
          document_info              = document_info
        tables
          object_content             = object_content
          contents_hex               = object_content_hex   " <== Insert line
        exceptions
          folder_not_exist           = 1
          document_type_not_exist    = 2
          operation_no_authorization = 3
          parameter_error            = 4
          x_error                    = 5
          enqueue_error              = 6
          others                     = 7.
      if sy-subrc ne 0.
        message e696(wl)                              "<== Add message class
                raising error_sofm_creation.
      endif.
    *- set export parameter
      sofm_key = document_info-doc_id.
    endfunction.
    The returned  SOFM key I added to a container element. The element refers to event parameter of type OBJ_RECORD in my ABAP OO Class
    Using this function I was able to raise an event by using Method cl_swf_evt_event=>raise
    that invoked a workitem containing an Excel-File i had uploaded as binary file and passed to the FM z_test_sofm_create_with_table as document type 'XLS'.
    In the woritem preview when clicking on the attachment the file was opened directly in Excel.
    Actually the new lines for calculation the file size is not yet quite correct. At first glance it does not seem to cause any trouble, but I will stll check that. In FM SO_OBJECT_INSERT the size is again checked and calculated if initial, so leaving size initial might also be an option.
    I hope this helps anyone having a similar issue.
    Greetings,
    Michael Gulitz

  • Adding Word attachment to a SOFM object and then to Workflow container

    Hi!
    I have a Web Dynpro for ABAP application that should send attachments of uploaded files to a workflow container. I have already managed to do this, and it works fine for TXT files, but when I try to attach a WORD (.DOC) file the file looks corrput when I open it from the SAP inbox.
    When uploading files in Web Dynpro it is as an XSTRING.  I have tried out the following alternatives regarding convertion of the XSTRING before it is inserted in the SOFM object:
    1) Convert from XSTRING to STRING using codepage 4110.
    Then it is split into a string table of 255 chars
    2) Convert from XSTRING to STRING using codepage 4102
    Then it is split into a string table of 255 chars
    3) Convert from XSTRING to BINARY format
    I use function module 'SWL_SOFM_CREATE_WITH_TABLE'
    and then  swf_create_object lr_sofm 'SOFM' ls_sofm_key.
    before I call some macros to fill the container.
    Anyone else who have tried to do this with success? I'm greatful for any help.
    Regards, Tine

    Hello there.
    This is probably an usability question that you should ask Microsoft, not us. In any case, you probably need to open the document (it's probably a document that can't be open inside Firefox, so use the appropriate software) and copy it from there.
    I'm sorry I can't be of more help.

  • Rule Result not returned back to Workflow container

    Hi ,
    We have a workflow where the approver for a Process is Manager of  any Orgunit .
    Now the manager is determined using a Rule with Category u201CFunction To be executedu201D .
    The Business requirement is so that If the immediate manager for any Orgunit is not maintained it will traverse through the entire Org structure unless the Manager is determined.  So the Level of the First approver could be of any value starting from 01.
    We also have Deadline  monitoring active .
    Incase the first approver  doesnu2019t act within 7 days  the Work item should go to the next level Manager ( second  approver ).
    The level of the second  approver depends on the level of the First approver .
    Example : If  the level of the First approver   is 3 then the level of the second approver  would be 4 or more.
                  : If  the level of the First approver   is 2 then the level of the second approver  would be 3 or more.
    Hence to achieve the Level dynamically we need to pass the Level of the first  approver  from the Rule to the Workflow  so that it can be used for determining  the next level manager in the next task.
    In the Function Module which determines the first approver  I have got the Value for the Level .
    I also have assigned that value to the Rule Container (_WI_RESULT , this is the only parameter which can be used for the Export )  using the Macro SWC_SET_ELEMENT  .
    I also have done the  binding from the Rule to the Workflow. But the value is not populated in the Workflow container .
    Could any one please help me  on solving this ??  Any other idea to achieve this is functionality is welcome too.
    Regards,
    Raka

    Hi  Arghadip,
    First of all thanks for the reply .
    We alreday have some logic  like this in place .
    But we want to imporve the system performance .
    We get the agent in one task from the Rule .
    Now again if we try to get the same agent in a method ,won't it be doing the same task twice.
    So we are trying to return the manager Counter value from the Rule container itself to the Workflow container so that it can be used to get the escalation manager.
    Regards,
    Raka

  • 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>

  • How to trigger workflow from WDA and read workflow container into WDAscreen

    Dear Expert,
      Please suggest the solution for the following requirement:
       1. Create 1 leave request from WDA and submit for approval
       2. When User press "submit" button in WDA screen, workflow will be triggered for processing approval  .
       3. When 1 request is sent to approver, he logon into portal and access to UWL to process task himself.
       4. After he press approval link, the system will call WDA screen to process approval ( this screen will contain full information of requester.)
       5. After finishing process, the result will return workflow and end of process.
    Please send simple example for step 1 and one for get data from workflow into WDA screen at step4
    Any help would be appreciated
    Thanks and best regards,
    DucTV.

    Hi,
      I am not sure for what reasons you are developing a application but SAP has its own standard workflow process for applying leave from ESS portal..
    1. AS soon as you click on the submit button of the applicaiton then you need to trigger a workflow right in that case you make sure that you need to pass some data to the workflow container I hope you might be using either SAP_WAPI_CREATE_EVENT or SAP_WAPI_START_WORKFLOW to start the workflow  in both the function module you have to fill this table in Order to pass the values from ABAP    program to workflow container.
      The answer to your question is it depends on the type of the work item ID you are passing to the SAP_WAPI_READ_CONTAINER if you are passing a top work item ID  then you will have workflow container in LT_CONTAINER if you are passing any of the child or dependent work item ids of the top work item id then you have that respective task container value.
    2. You can make use of the any foreground activity or a decision step, it depends on how you want to get back the result, if you use a foreground activity step then in that case you have to populate the result back to the task container and if let say you are using a decision step then in that case you do not have to populate the result there will be standard  container element _RESULT in the decision step it will be filled.
    Make sure if you are expecting some work item in UWL and as soon as you click on the work item your application should open then configure in SWFVISU transaction and maintain DTD in UWL any portal consultant can perform this steps in few seconds.
    3. When the workflow is started then the work item which you are able to get back is the one which helps to identify dependent work item ids it is the TOP or PARENT work item ID.
    Regards
    Pavan

  • PASS DATA FROM ABAP PROGRAM TO WORKFLOW CONTAINER

    Hello Everybody,
    I am a workflow beginner and I want to pass a data from my ABAP code to a workflow container. This workflow container is used in the Send Mail step.
    The ABAP  Program is:
    REPORT  zdb_work_flow.
    tables : vbak.
    DATA : k TYPE sweinstcou-objkey,
                e TYPE swetypecou-event.
    DATA : st TYPE swcont,
                itab TYPE STANDARD TABLE OF swcont.
    PARAMETERS : vbeln TYPE vbak-vbeln.
    start-of-selection.
      st-element = 'VBELN'.   "This is my WORKFLOW CONTAINER
      st-tab_index = 1.
      st-elemlength = 10.
      st-type = 'C'.
      st-value = vbeln.
      append st to itab.
      k = vbeln.
      e = 'TRIGGER'               "This is an event in my BUS OBJ ZDB_WFLOW
      CALL FUNCTION 'SWE_EVENT_CREATE'
        EXPORTING
          objtype                               = 'ZDB_WFLOW'   "My BUS OBJ
          objkey                                 = k
          event                                  = e    "Event TRIGGER in ZDB_WFLOW
        tables
          event_container               = itab
        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.
    Now I have created a workflow in SWDD as ZDB_WF_SW.
    In this WF I have created a container as VBELN.
    In the SEND MAIL I have given a header as "Worflow Triggered for &VBELN&"
    PROBLEM.
    The Workflow is getting triggered. I am also getting a mail "Workflow Triggered for" in my mailbox but the &VBELN& is missing from the header.
    I have set the IMPORT EXPORT flag of the WF CONTAINER "VBELN"
    Please Help.
    Edited by: Deepankar.B on Feb 22, 2011 4:08 PM
    Edited by: Deepankar.B on Feb 22, 2011 4:10 PM

    You wouldn't use a SMA as an assistance class - but refer to one within it.
    I would use Shared Memory Area classes - but I'd also build a SMA that could talk across multiple application servers.
    Thomas Jung proposed this in a forum reply some time ago.
    It shouldn't be too difficult to use RFC's to access the content of SMA's in multiple app servers - ensuring synchronisation across multi app servers. I've not yet had the need, so haven't attempted.
    The long polling in 7.02 apparently uses this approach, so in a 7.02 system there may even be standard components/ SMAs that you could use.
    I do not think global areas in FM's are available across sessions - I don't think you could use that as a data transport.

  • Adding two characters to all the element of workflow container

    Hi All,
    I want to prefix two character to all the elements of a particular "multiline" workflow container.
    How can i do this?
    Please help me in this regard.
    Thanks,
    Ritesh

    you will have to use a custom method as step and pass the multiline attribute and loop at it, add and modify the multiline variable of the container. No other way possible, within workflow builder.
    regards,
    Sandeep Josyula
    *Mark if helpful

  • Workflow containing impersonation step is producing error

    Hi,
    i have a workflow containing Impersonation step. i have 2 users as site collection admin. one is service account and another is normal user account.
    when i publish the workflow containing impersonation step with the user who is a site collection Admin. the workflow is working perfectly.
    but when i publish the workflow containing impersonation step with the service account who is also the  site collection Admin. the workflow is not working. it is throwing "Error Occurred".
    what could be the error. pls help me.
    Thanks.

    If I publish my workflow with impersonation steps as a site owner my workflow is still run as System Account. - why is that and can I avoid that? I would
    like my workflow impersonation step to run as the site owner who publish the workflow. I do not understand what prevents me from doing what all references I can find cite: ‘that my impersonation step should be running under the account who published it’.
    student

  • Creating Workflow Container Elements

    Hi,
                   I am looking to create two new workflow container elements of lenght 80char for 'WS92000027'  inorder to hold the required name to be outputted in the workflow . Could you please let me know setp by step procedure to achive this as am new to workflows .
    Thanks,
    Kumar.

    Hi,
    Create an element in the workflow container with the ABAP Dictionary data type "CHAR_80". Bind the variable accordingly from the task container or the event container and use it.
    Hope this will help.
    Thanks,
    Samson

  • How to set the following workflow container element

    In the below example i have created the following  field chgdocdat fieldnam in the workflow container in the initial value it is showing as <notset>
    but i want the value for initial value for field chgdocdat as 00.00.0000
    fieldnam as
    can any body help me

    hi koto,
    when u create a work flow element container.
    u have tye option to give the data type.
    there u u choose from dictonary, ie some date field from the data dictonory.
    after that in the 3rd tab it is initial value.
    click it and give 00.00.0000
    since it is date type no problem here.
    save it.
    thats all
    clarifiactions are welcome.
    pls reward points, if this helped u.
    regards,
    anversha.
    [email protected]

  • Task container to workflow container binding

    Hi all,
    I have a requirement to send mail to department responsible of a quality notification as soon as it is created from defects recording.
    I am using sendmail step for this but since it doesnt have agent determination using rule, I am forced to create a background step which captures the value of department responsible (IHPA-PARNR) and passes on to a element in workflow container. The idea was I could later use the value of this container element in my send mail step which follows.
    For this, I have defined a background step in my workflow template. The method in the standard task of this step refers to a function module.
    The function module takes quality notification number as input (QMEL-QMNUM) and outputs the partner number (data type IHPA-PARNR).
    I want to capture this partner number into my workflow at runtime. For this I defined a workflow container element refering to IHPA-PARNR so that it can bind to the export parameter of the task, which gets the value from method.
    when I test my function module it works fine. BUt when I try to bind the task to my workflow, the binding between the elements refering to IHPA-PARNR gives error this error message:
    " incompatible data type reference"
    whereas the data type reference is same for both container elements.
    Please help.
    Thanks
    kiran

    Hi Ramki,
    This is the binding from workflow to task container.
    X                 => &EXPRESS&
    G                 => &TYPEID&
    &DEPTRESPONSIBLE& => &ADDRESSSTRINGS&
    Here the DEPTRESPONSIBLE is the WF container element which gets the value of department (basically a org structure IHPA-PARNR) via a background task in the previous step.
    And in the recepients list, I have given
    recepient type : organizational object
    expression     : &DEPTRESPONSIBLE&
    I think this is where the problem is. Because when I give workflow initiator as recepient, it works fine. But when I give the department responsible as expression as shown above it errors out.
    It also works fine when I hardcode the value of department responsible in the recepients list (say 50001930)and give recepient type as Organizational object.
    So the problem is it is not taking the value stored in the container element &DEPTRESPONSIBLE& as the recepient.
    Any ideas.
    Thanks a million.
    kiran

  • How to retrieve data from workflow container ?

    Hi ,
    I  have to retrieve workflow container ID (not sure , may be it is workitem ID). Using that ID I have to fetch data from workflow container . If anyone is aware of it , help me out . It would be better if u can provide some code snippets.
    Thanks in Advance.
    Regards,
    Vishesh

    Thanks Vishal!!!
    I  am  not  aware about workflow. I don't know anything about it so I had posted it in this forum.
    Regards,
    Vishesh

  • Question on how to retrieve elements in workflow container using WAPI

    Hi all, I need your great help. I have started a workflow and during it running I want get element in workflow container. First I use SAP_WAPI_READ_CONTAINER to get a workflow container which called "simple_container", but I can not get element using SWC_GET_ELEMENT because the container type I got does not match the type TABLE SWCONT. 
    I have loop the container and could see the elements in the container, but I am not quit sure that I can get the element with its own type. For example, I have an internal table in container, when I loop to it and get its value, it can not be assigned to my local internal table variable for the type incomptible.
    Could any one give me some advice? Thank you very much!

    Thanks for your advice. I think I have found the way to do that by inside into the source code sap provide. The steps are as follows:
    1 If the element you want get in container is char-based, just get container use 'SAP_WAPI_READ_CONTAINER' and loop into it to retrieve what you want.
    2 If you want get element in other types, eg, internal table, then use:
    lv_wi_handle TYPE REF TO if_swf_run_wim_internal,
    cnt TYPE REF TO if_swf_cnt_container.
    CALL METHOD cl_swf_run_wim_factory=>find_by_wiid
            EXPORTING
              im_wiid     = wi_id
            RECEIVING
              re_instance = lv_wi_handle.
          cnt = lv_wi_handle->get_wi_container( ).
    CALL METHOD cnt->IF_SWF_CNT_ELEMENT_ACCESS_1~ELEMENT_GET_VALUE
           EXPORTING NAME = 'element_name'
           IMPORTING VALUE = element_value.
    The variable element_value is just in your own type~.
    Hope it useful to you, the reader.

Maybe you are looking for

  • How do i have an ipod touch and an ipad sync to the same pc?

    how do i have an ipad and an ipod touch sync on the same computer but they have different apps on them? i knopw it is possible but i just dont no how to do it. as my ipod touch is only 8gb and my ipad is 16gb so everything off the ipad is making the

  • How to check the resolution of a pdf file using Acrobat 9 pro?

    How to check the resolution of a pdf file using Acrobat 9 pro?

  • Rendering-Sometimes I get a window sometimes not?

    Ok, I am having an issue with Rendering command.  I need it to play the video back smoothly, but sometimes when I hit the Render button on the workspace the video just starts playing from the beginning by itself, but the playback is not smooth...it i

  • My Computer is full!

    I need to delete saved music from my computer and iTunes without it being deleted when I synch my iPod Classic. Any tips on how to do this? All help is gratefully recieved.

  • Display dates in sales order via CIC0

    Dear experts, In SAP CRM 5.0, we've configured sales orders and dates. Via CRMD_ORDER transaction, dates are correctly displayed. But we're using interaction center (CIC0) and the screen with dates is not displayed. We've tried screen sequence contro