Not Able to Pass the Values to WorkFlow Container

Hi All,
    Iam calling a WF from a BSP application by using the FM       
EWW_WORKFLOW_START
for this fucntion module iam passing a table  to the parameter
X_CONATINER = t_values
but I am a bit confused that how this table is assigned to the workflow conatiner.
what I want to know is I need to assign the values of t_values to the WF conatiner elements .
Thanks In Advance.
Regards
Pavan

Pavan,
try this code and include this in your corresponding include.
Make sure that your workflow has a multiline import element with the same name as of the internal table. Here, WERKS.
REPORT yh_sample.
DATA : t_container TYPE TABLE OF swcont WITH HEADER LINE,
        wf_id TYPE swwwihead-wi_id.
DATA: werks TYPE STANDARD TABLE OF werks_d WITH HEADER LINE.
DEFINE swc_set_element.
  call function 'SWC_TABLE_SET'
    exporting
      element       = &2
    tables
      container     = &1
      table         = &3
    exceptions
      type_conflict = 1.
END-OF-DEFINITION.
werks = '1000'.
APPEND werks.
werks = '1003'.
APPEND werks.
werks = '1056'.
APPEND werks.
swc_set_element t_container  'WERKS' werks.
CALL FUNCTION 'EWW_WORKFLOW_START'
  EXPORTING
    x_task          = 'WS99901222'
  IMPORTING
    y_workflow_id   = wf_id
  TABLES
    x_container     = t_container
  EXCEPTIONS
    invalid_task    = 1
    no_active_plvar = 2
    start_failed    = 3
    general_error   = 4.
IF sy-subrc = 0.
  COMMIT WORK.
  MESSAGE 'success' TYPE 'S'.
  WRITE:/ wf_id.
ELSE.
  MESSAGE 'Error' TYPE 'S'.
ENDIF.
Regards
Indu.

Similar Messages

  • Not able to edit the value options in LKM

    Hi
    I have recently upgraded to ODI 11g .
    In that we are not able to edit the value options in LKM.
    (i.e.. editor window is not appearing, not able to edit the text.
    Please let me know the solution .
    Thanks

    We were using JDK1.6.0_29 and it was not supporting ODI 11.1.1.5, so we have uninstalled the JDK1.6.0_29 and reinstall the JDK1.6.0_11.This solves our issue.
    Thanks a lot!!

  • We are not able to pass the presentation variables(date & Date1) to the det

    Hi,
    We have followed the below link to use the date between prompt and passed the presentation variables in the filter condition of the report criteria.
    http://obiee101.blogspot.com/2009/03/obiee-between-dates-prompt.html
    But we are not able to pass the presentation variables(date & Date1) to the detail report.
    Any suggestions are highly appreciated.
    Thanks in Advance
    Siva.

    Yes,I think it wont pass the parameters from one parent report to child report.one thing you can do is put the detailed report on a page in the same dashboard as that of prompt.Put the same between condition on that report also.Give navigation link to this page instead of report.You can hide this page as well so that it will be available only on navigation.
    i have not tried it.Give it a try.
    Regards,
    Sandeep

  • Not able to get the value of ODI Variable when i pass thru Option

    Hi,
    I have ODI variable called prev_etl_run_date which will hold the last successful etl run date. I want to use the value of this variable in one of my KM step.
    But i don’t want to use directly in my KM. So I passed the variable name thru KM Option.
    I intend to use the variable’s value in the KM step, as shown below:
    <%=odiRef.getOption("MY_OPTION_1")%>
    Here I am expecting the value of the variable, but here I am only getting the variable name only.
    Is there any substitution method available in ODI KM , please help me to solve this issue.
    Thanks
    nidhi

    ODI options are not intended for run time parameters. They are like design choices or debugging flags or parameters that can be specified in code template. Previous ETL run time stamp is hardly a design choice.
    On the other hand, it is really a bad practice to put a variable inside KM directly. That creates a dependency that you can easily avoid by putting a filter using that variable in the interface.

  • Not able to get the value from type defined in other progarm

    Hi All,
    I have a create a type in one package spec(Globally), now i am using the same type in another package.Simply i am calling the first package and try to store the value in Type and use the same type in second package.
    But i am not able get the value
    Type declaration
    Declared in package Spec
    TYPE t_aa_derive_tbl_type IS TABLE OF xxxx%ROWTYPE;
       t_aa_derive t_aa_derive_tbl_type;
    Package 1
    Package1. PROCEDURE name(
    some parameters);
    is
    Cursor
    c1 is Select * from dual;
    begin
          OPEN c_aa_derive;
            FETCH c_aa_derive
            BULK COLLECT INTO t_aa_derive;
            CLOSE c_aa_derive;
         END get_aa_derive;
    In My second package
    I am calling
    Package1. PROCEDURE name(
    some parameters);
    and then i am trying to
    for i in 1 .. package1.t_aa_derive.COUNT
      LOOP
    end loop;
    I am not able entered the loop for some reason.
    Could some one guide me if anything i missed.
    Cheers,
    San

    I have a create a type in one package spec(Globally), now i am using the same type in another package.Simply i am calling the first package and try to store the value in Type and use the same type in second package.
    Why?
    1. Why aren't you just using SQL to do the work?
    2. Why don't you just open a CURSOR and pass that instead?
    BULK COLLECT INTO t_aa_derive; 
    3. Why aren't you using a LIMIT clause? Are you sure that only a very small number of rows will be queried?
    4. Why aren't you using a PIPELINED function instead of passing a collection?
    Using collections with potentially unlimited numbers of rows is not scalable. Also, using collections can be more difficult for 'data consumers' to work with than if you just use a CURSOR or PIPELINED function.
    Make sure you are using the proper architecture so that your code is both modular, scalable and easy to use.

  • Not able to get the value in the next page

    Hi,
    I am newbee for JSF and this question may sound silly. I tried to search through this
    forum, google....but did not find a solution....I hope some one here could please help
    me :-(
    I have Page1 and Page2. Page1 has a h:inputText field and a submit button.
    On click of the "Submit" button in Page1, I have to pass this text value entered by
    the user to Page2. In Page2, I have <h:inputText readonly="true" /> field,
    which will display the value that the user entered in Page1. Also, Page2 has a "Submit"
    button. On click of Page2.Submit button, the value displayed in the Page2.textfield
    is not getting populated to the Page2 bean attribute.
    Here are the code that I am using
    1. Page1:
    <f:view>
    <h:form id="Page1">
         <h:inputText id="primaryKey" required="true" value="#{Page1.primaryKey}" />
         <h:commandButton id="command" value="Submit" action="Page1"/>
    </h:form>
    </f:view>
    2. Page2:
    <f:view>
    <h:form id="Page2">
         // Yes, Value attribute points to Page1.primaryKey to display user entered value in this page.
         <h:inputText id="test" value="#{Page1.primaryKey}" readonly="true" />
         <h:commandButton id="command" value="Submit" action="#{Page2.save()}"/>
    </h:form>
    </f:view>
    3. faces-config.xml
    <navigation-rule>
    <from-view-id>/Page1.jsp</from-view-id>
    <navigation-case>
    <from-outcome>Page1</from-outcome>
    <to-view-id>/Page2.jsp</to-view-id>
    </navigation-case>
    </navigation-rule>
    <managed-bean>
    <managed-bean-name>Page1</managed-bean-name>
    <managed-bean-class>com.Page1Bean</managed-bean-class>
    <managed-bean-scope>request</managed-bean-scope>
    </managed-bean>
    <navigation-rule>
    <from-view-id>/Page2.jsp</from-view-id>
    <navigation-case>
    <from-outcome>success</from-outcome>
    <to-view-id>/success.jsp</to-view-id>
    </navigation-case>
    </navigation-rule>
    <managed-bean>
    <managed-bean-name>Page2</managed-bean-name>
    <managed-bean-class>com.Page2Bean</managed-bean-class>
    <managed-bean-scope>request</managed-bean-scope>
    </managed-bean>
    4. com.Page1Bean.java
    public class Page1Bean {
         private String primaryKey;
         //getter and setter method below
    5. com.Page2Bean.java
    public class Page2Bean {
         private String test;
         //getter and setter method below
         public String save() {
    Now let me explain my issue, I enter a value in Page1 -> click on submit -> I see this value in the text field of
    Page2. But when I click on submit button of Page2, test attribute is still null. Could you please suggest me what
    am I suppose to do inorder to get this value in Page2Bean when I click on save button?
    Hope to listen from one of you,
    Thank you,
    VinodRamu

    Go here
    http://jsffaq.com/
    Many of your questions will be answered

  • Not able to get the value in ADF taskflow on load

    Hi,
    I have created an ADF task flow. I have created a ViewObject in this ADF taskflow and I am setting the value of this ViewObject using the java API.
    The issue is that i need to show the data when this ADF task flow executes first time.
    Currently I am getting the blank table in jspx page when ADF task flow is run. Now when I click on a button then I can see the required data in the table.
    Please help me to solve this issue.

    Thanks for the reply.
    I have tried placing the code to get the set the data in table and display the same from table in bean constructor, but I am getting table value as null.
    Looks like it is not able initialize the table until the jsff page gets loaded.
    Does jsff page gets loaded after bean constructor method gets called ?

  • Not able to view the values on the report viewed using Query Report Viewer

    Hi all,
    There seems to be some unknown problem with the Report Template I have prepared and uploaded on PIA XML Publisher. When I run it with some ID set, it doesn't seem to show the values from the Data I give. For example if I have a field called ChartField in my report Template, It doesn't seem to get populated when I do SetID.
    Why is it so?

    Hi all,
      select bdmng from resb into corresponding fields of table it_stpo2
                for all entries in it_stpo
                 where matnr = it_stpo-idnrk
                 and xloek ne 'X'.
      loop at it_stpo2.
        move-corresponding it_stpo2 to it_stpo.
        append it_stpo.
      endloop.
    In the above code, m able to fetch the records in the table it_stpo2. but the data is not gettin populated in the final internal table it_stpo. Both the internal tables it_stpo & it_stpo2 are same.
    The data is gettin moved from it_stpo2 to it_stpo but only upto the header level. its not gettin appended in the table it_stpo even after using append stmt.
    Plz help me to resolve this issue. its urgent.
    Rgds,
    Purva

  • Not able to display the values on the alv report.

    Hi all,
      loop at it_stpo.
        indx = sy-tabix.
        select single bdmng from resb into it_resb-bdmng
                        where matnr = it_stpo-idnrk
                        and xloek ne 'X'.
    it_stpo-bdmng = it_resb-bdmng.
    modify it_stpo index indx.
      endloop.
    in the above code, m fetchin the values of bdmng and populating it in the it_stpo.
    the values get populated in the internal table.
    But the problem is only the first value of all the entries gets populated.
    For ex:
    it_stpo-idnrk = C0201AA0800N ** under this components der r three entries***
    i want to display all three values of these entries.
    1.A0201AD6750N                          990
    2.A0201AJ0960N                           1,578
    3.A0201AJ1140N                           2,996
    but the value 990 gets repeated thrice for the above three entries. n the value 1598 n 2996 is not gettin displayed.
    lll, for all other entries. only the first entry value gets displayed for their respective components.
    suggest modification in my code so dat i cn display all the values.
    thanks in advance.
    regards,
    purva.

    Hi all,
      select bdmng from resb into corresponding fields of table it_stpo2
                for all entries in it_stpo
                 where matnr = it_stpo-idnrk
                 and xloek ne 'X'.
      loop at it_stpo2.
        move-corresponding it_stpo2 to it_stpo.
        append it_stpo.
      endloop.
    In the above code, m able to fetch the records in the table it_stpo2. but the data is not gettin populated in the final internal table it_stpo. Both the internal tables it_stpo & it_stpo2 are same.
    The data is gettin moved from it_stpo2 to it_stpo but only upto the header level. its not gettin appended in the table it_stpo even after using append stmt.
    Plz help me to resolve this issue. its urgent.
    Rgds,
    Purva

  • Not able to get the values from screen field?

    hello
    i am using MIRO and there is a screen name withholding tax and from there i want to retreive the withholding tax code before saving so that i can do some validations on it but how can i retrieve the values.
    when i press f1 there it shows structure not the table and structure contains no value so please help me in this so that i can retreive that value during run time
    thank you

    Hi Vikas,
    you can use this badi MRM_WT_SPLIT_UPDATE, the method will be WHTAX_SPLIT_UPDATE
    in this badi please see the importing and exporting parameters, you will get the  values of withholding tax code  as TE_RBWS in export parameters.
    Please search in google or SCN you will get how to use it.

  • Hi There, I'm not able to Get the value for echo %cust_top% for custom dev

    Hi,
    Before doing any thing in dos usually i run envshell
    Which let me to switch to product specific location through Appl_top, au_top etc
    I'm Sending Out Put At cmd Prompt Please Check
    D:\oracle\visappl>echo %ar_top%
    d:\oracle\visappl\ar\11.5.0
    but not able to work for custom development.
    D:\oracle\visappl>echo %cust_top%
    %cust_top%
    D:\oracle\visappl>
    Why it's so?
    Bachan.

    Hi There,
    I got document, but not able to understand 2nd step i.e
    "2) Add the custom module into the environment
    Apply ADX.E.1 and add the entry to topfile.txt as a standard product top entry (follow the existing model in the file)
    Customised environment variables can be added to AutoConfig by using the filename specificed by s_custom_file, which is then called from the APPSORA.env file.
    If using Forms Listener Servlet, you may also need to add $CUSTOM_TOP to formsservlet.ini in $APACHE_TOP/Jserv/etc"
    1. What is ment by ADX.E.1 and topfile.txt ?
    2. And How can i add to "AutoConfig by using the filename specificed by s_custom_file, which is then called from the APPSORA.env file. " ?
    3. And agin What is ment by "If using Forms Listener Servlet, you may also need to add $CUSTOM_TOP to formsservlet.ini in $APACHE_TOP/Jserv/etc"
    Please Give a breaf note on this Question's.
    Thanks Bachan

  • Not able to set the value in marketing context node for BP_HEAD

    Hi,
    I am trying to set the value in marketing node of BP_HEAD from bp_addr component. i am calling the set_property method but it is not changing the value, when i debugg the code, it actually changing the value in bol structure but it is not calling the get/set method of bp head.
    i am working on BP corporate person  creation i.e. in bp_head component and account details view. I added the marketing attributes in UI configuration and also the address attributes.
    this is what i coded in get method of country in standardaddress context node of BP_ADDR
    lv_entity ?= current.
        IF lv_entity IS BOUND.
          lv_parent = lv_entity->get_parent( ).
          IF lv_parent IS BOUND.
            lv_entity_mkt = lv_parent->get_related_entity( iv_relation_name = 'BuilMarketingRel' ).
            IF lv_entity_mkt IS BOUND.
              CALL METHOD lv_entity_mkt->set_property
                EXPORTING
                  iv_attr_name = 'ATTRIBUTE'
                  iv_value     = attribute1.
    Can anyone please guide me on how to set the value cross component and can we call the get/set method of that attribute which is not in same component?
    Regards,
    Kamesh Bathla

    Sorry, what I said was rubbish, because the LSMW and the session run in different external sessions.
    I have searched forum for these terms: "company BUK parameter BDC background"
    These threads Is it possible to set default company code in SM35? and Release BDC in SM35 in background, How to set defaul company code? seem promising, but I'm not sure they really solve.
    In case these threads don't help you, I think you can create your own Z transaction which sets the BUK parameter id and then does a LEAVE TO TRANSACTION 'ABAON'. Then create again the recording on the Z transaction.
    If you are using ECC6, then you may also enhance the standard to reset BUK parameter id at the very beginning of ABAON, in case it's run in batch input (sy-binpt = 'X'). Be careful as sometimes SAP does batch input on some transactions, so that could make the standard fail.
    Last thing, you can contact SAP support, though it might probably be considered as consulting.

  • Not able to display the values in the input fields of the view

    Hi All.
    I am facing an unique issue.
    My custom element created in my custom node getting a null value
    from a Get Vendor Details RFC written in RFC.
    The values are getting populated in the custom element but not coming in the
    input field of the corresponding view.
    Then, I wrote this code
    wdContext.nodeCustom.setLeadSelection(1);
    and all the output came in the input field.
    Now, after a build it is not coming in the input fields of the view.
    All my custom nodes are Singleton and values are coming in the custom elements
    as I can print them by wdComponentApi.getMessageManager.reportSuccess(""+customnode.getField());
    All my nodes are Singleton.
    Please give your valuable inputs.
    Regards
    Kaushik Banerjee

    Hi
    Check the node property
    initializeLeadSelection     true
    if not make it true , I would suggest to make a value node of the same structure as in RFC after execuation of the RFC populate the value manually.Dont bind it directly to the UI element.
    BR
    Satish Kumar

  • Not able to trigger the Leave Request Workflow from EP

    Hi,
       There is a problem that I am getting as follows and I need an urgent help :
    I am using the Leave Request Workflow WS20000081 in R/3 4.7. The problem that I am getting when I login as "A" who is a boss of "B" and got the mail in inbox in corresponding workflow for Approve or Reject the Leave Request. Now when I "Approve" the Leave Request from R/3 Inbox, then the workflow move for the processing, but if the same Leave Request is to be "Approve" from EP having either the SAP Transaction iView or IAC iView, it doesn't process the Workflow further neither for Approval nor for Rejection. And the workitem remains as such in EP Inbox.
    Can someone tell me what to do so that it will trigger from EP too.
    Regards
    Deep

    Hi,
    If u have no authorization, even the job log finishes the request won't be deleted.
    Once chk the log step by step.....to have some more inf reg authoriations...
    Or once goto RSRQ and give the request no there and chk the status of the request whether it is deleted or not?
    Atlast try to log-off and refresh the session completely and try.
    rgds,

  • Not able to see the values properly

    Hi,,
    I am using Jdev 11.1.1.5.
    I see the value of “val.toString()” is correct and the Sql of the view is fine. Then what can be the reasons that no values come out in the popup?
    Why do I get “No data to display” within the popup once I clicked the link?
    Could any other people help pls?
    Edited by: Hua Min on Apr 4, 2012 5:02 PM

    Hua, you must be kidding...
    Do you expect us to read and somehow digest your other 30+ post long thread?
    You don't even bother to give the minimal needed information (which you should know by now!).
    Timo
    Edited by: Timo Hahn on 04.04.2012 09:18
    OK we are half there. You edited your original post. so let me do the same.
    I don't see a jdev version...
    No use case?
    What do you try to do?
    What does ExecuteWithParam execute?

Maybe you are looking for

  • Change of line item amount in miro

    hi, i have a doubt on the change of line item amount field value at PO reference tab in MIRO. 1) when vendor invoice price higher than PO, although knowing that the price is incorrectly quoted by vendor, we need to change the amount in PO reference t

  • ORA-39083,ORA-00959: tablespace 'TEST_LIVE' does not exist

    Hi, I am trying to import using impdp but i am facing the below mentioned error.. Connected to: Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production With the Partitioning, OLAP, Data Mining and Real Application Testing options Maste

  • How to create an editable List box

    Hi, Can any body help me out in creating an editable list box, I mean the options should be editable in the listbox. Thanks in advance.

  • After updating to 1.2 then restarted, I have seen only blue screen

    I have seen only blue screen after Apple logo startup, and now it is stuck like that. Nothing happen anymore. What a bad luck I am with this new iMac, I have to hand in my assignments in 2 days and I cannot even go to finder. If i can do that at leas

  • OS also needed to be upgraded ?

    We have ORACLE 8.1.7.4 running on redhat 7.1. This combination is certified. Now we have ORACLE 10g and would like to install it. Do we have to upgrade our OS first to Redhat AS/ES 3.0 before we can install 10g ? Thank you so much for answering.