Passing Value Dynamically in a string

hi All ,
i have a requirement in which i have to pass value of a parameter dynamically to a string
e.g.
param = 10.
data : txt type string .
txt = 'value of param'.
should give a result
value of 10.
here i need to have the value 10 of param in the string ,
how can this be done dynamically
thanks in advance
Abhishek

Hi Abhishek,
if you know where is the word 'param' in the sentence, you could play with the field symbols.
Good luck
Frédéric

Similar Messages

  • Passing values to form bean string array from dynamic added textboxes

    Hi,
    I am unable to pass values to form bean string array from a jsp in which I have incorporated dynamically adding of textboxes in javascript.
    I have given add/delete row option in the jsp. If there is single row, this is working fine. But after adding a row, I am not able to either do any validations on added textboxes or pass the values to the String array form bean variable.
    code snippet:
    var cell6 = row.insertCell(4);
    var element5 = document.createElement("input");
    element5.type = "text";
    element5.className = "formtext1";
    element5.size = "5";
    element5.value = "00.00";
    element5.name= "qty"; // this is a string array of the form bean.
    element5.onchange=function() {checkNumeric(this);};
    cell6.appendChild(element5);
    <html:text styleClass="formtext1" property="qty" value="" size="5" styleId="qty" onchange="checkNumeric(this)"/></td>
    form bean declaration
    private String[] qty; Please help.
    Edited by: j2eefresher on Jan 12, 2010 11:23 PM

    Shivanand,
    There's no need to post that much code when you could create a very short test case that demonstrates only the problem you are having.
    You're using &NAME. notation on something that isn't a page or application item. You can't reference PL/SQL variables that way (or any other way) outside the PL/SQL scope. For your situation, you could create a page item named P55_DOCID and assign it a value in the PL/SQL process (:P55_DOCID := DOCID;), then reference &P55_DOCID. in HTML areas like the success message.
    Scott

  • Pass values dynamically to the WHERE clause in SFAPI

    Hi there
    We have a requirement to pass values dynamically (in the run-time of the interface) to the WHERE condition to our SFAPI query.
    Eg -
    SELECT person, personal_information, address_information, phone_information, email_information, employment_information, job_information, compensation_information, paycompensation_recurring, paycompensation_non_recurring, job_relation, accompanying_dependent,         global_assignment_information, direct_deposit, national_id_card, person_relation
              FROM CompoundEmployee
              WHERE last_modified_on &gt;= to_date('LAST_RUN_DATE')  AND
                           last_modified_on &lt;= to_date('CURRENT_RUN_TIME') 
    LAST_RUN_DATE is stored in a custom entity for which we execute another OData query. The custom entity is updated with the CURRENT_RUN_TIME once the interface has been executed successfully. So the next time the interface is run it picks up the LAST_RUN_DATE from the custom OData entity.
    SAP PO has the functionality to run a dynamic query for OData adapters. Refer to Note 2051137 - PI Successfactors adapter : Dynamic odata query and single synchronous sfapi query
    Eg - select fields from position (this is what you state in OData query path in the comms channel; this is static); and you have an advanced tab in comms channel where you mention dynamicquery and set it to true (this points to a XSD which has the keyword TOP, SKIP & FILTER in it).
    This gets the filter values passed from the BPM from another query (from a OData cust_table).
    So the whole query is - select fields from position filter field a = x field b = y etc. Field a field b are fields in position that are you passing values x and y in run time of the interface.
    SAP PO also has the advanced tab feature for SFAPI for dynamic query.
    Question is -
    how to use it?
    has anyone implemented this before?
    What does XSD will look like?
    How do we pass values to the fields to the Where clause for SFAPI.
    Any ideas are welcome!
    Regards
    Arijit Das

    After you have added a new where clause on the detail VO, try re-executing VO's query by DetailVO.executeQuery()
    If it doesn't work try re-executing the MasterVO's query after you have added the where clause on the detail

  • Passing values dynamically Froman 'INLINE Query' to a 'SUB QUERY'

    If I am using an line query which uses a SELF JOIN subquery
    how can I pass the values from the Inline Query to Subquery ?
    Is this possible?
    SQL...Code
    and Inline Queries..
    (select count(*) 'PrimaryISIN'
    from instrument ins,
              instrument_xref insx
    where ins.id_inst = insx.id_inst
    and     insx.flg_active = 'Y'
    and     ins.id_source   ='MF'
    and     ins.flg_primary_listing = 'Y'
    and     ins.flg_active = 'Y'
    and     insx.id_inst_xref = (  select  DISTINCT  a.id_inst_xref
                                    from    instrument_xref a,
                                            instrument_xref  b
                                      where b.id_inst_xref ='B0DV8Y9'
                                            and     b.id_inst = a.id_inst
                                         and     b.id_inst_xref_type in ('SE','IS')
                                      and    a.id_inst_xref =  'GB00B03MLX29'
    )PISIN2
    I am hardcoding the id_inst_xref is the SELF JOIN? Can these be passed dynamically from
    the INLINE Query which is invoking the SUB QUERY?

    Hi, The hardcoded values entered in the SELF JOIN run fine.
    Now,I need to pass values dynamically from the INLINE query.
    How do I do that?
    Thanks

  • How to avoid popup & pass value dynamically in 'F4IF_FIELD_VALUE_REQUEST' ?

    Hello Experts,
    I am trying to test usage of f4 help function module.
    We want to dynamically pass values from remote machines into the given input parameters of a Given Search help and receive the output into a table (no dialogs required .. so no pop ups )
    I wrote a test program to just test if we can really do that at runtime ?
    This program pops up the window of search help First I want to surpress that window and Second I have no clue
    ( How to pass the input parameters as value eg. 20 to a given field as we pass manually )
    Can some one suggest something here ?
    REPORT  ZTEST_F4_TEST.
    data lt_return TYPE TABLE OF DDSHRETVAL.
    data ls_return TYPE DDSHRETVAL.
    data lt_return_ddic TYPE TABLE OF zDDSHRETVAL.
    data ls_return_ddic TYPE zDDSHRETVAL.
    PARAMETERS ptable type tabname.
    PARAMETERS pfield type fieldname.
    PARAMETERS pshelp type SHLPNAMe.
    CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
      EXPORTING
        tabname                   = ptable
        fieldname                 = pfield
        SEARCHHELP                = pshelp
    *   SHLPPARAM                 = ' '
    *   DYNPPROG                  = ' '
    *   DYNPNR                    = ' '
    *   DYNPROFIELD               = ' '
    *   STEPL                     = 0
    *    VALUE                     = ' '
        MULTIPLE_CHOICE           = 'X'
        DISPLAY                   = 'F'
        SUPPRESS_RECORDLIST       = 'X'
    *   CALLBACK_PROGRAM          = ' '
    *   CALLBACK_FORM             = ' '
    *   SELECTION_SCREEN          = ' '
    * IMPORTING
    *   USER_RESET                =
    TABLES
       RETURN_TAB                = lt_return
    * EXCEPTIONS
    *   FIELD_NOT_FOUND           = 1
    *   NO_HELP_FOR_FIELD         = 2
    *   INCONSISTENT_HELP         = 3
    *   NO_VALUES_FOUND           = 4
    *   OTHERS                    = 5
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    data lv_count type i.
    delete lt_return where fieldname <> pfield.
    sort lt_return by fieldval.
    delete ADJACENT DUPLICATES FROM lt_return COMPARING fieldval.

    Hello Sim,
    We will be exposing the Input parameters and Output lists of the SAP Search helps (simple search helps only) as input output of a Webservice.
    So I need to understand how can we exploit the SAP Search Helps ?
    What function modules can take these inputs as structures  and can provide the output in form of a table ?
    Regards,
    Ravi

  • I need to pass values dynamically into schedular

    I need to pass the values into the schedular dynamically like 2 hours ,4 hours ,i minute and soon ...

    Hi,
    If you want the job to be created automatically, you can create a master job which checks every few minutes and creates another job on the fly if needed.
    I don't understand the part about "sending the messages to the admin" but the body of the job can certainly send e-mail or AQ messages.
    Hope this helps,
    Ravi.

  • Passing values dynamically in bulk collect

    1. hi for ex 5 account number in a table packages each account number is having of 30 records with the column aol and new(values are in 0 or 1)
    i need to copare fro old column and new column values and return if 0 and 1 means return 1 0 and 0 means 0 1and 1 means 1 1and 0 means 0
    for all days 30 days. for all account number and ouptut should be as follows
    account number value
    1 0
    2 1
    3 1
    4 0
    and this values should update in another table;
    i wrote a sample query for a single account but i need for all accounts.
    as given below please help me to solve the issues
    DECLARE
         CURSOR C1 is select rowid,old_family,new_family,OLD_SPORTS,NEW_SPORTS,OLD_DYNASTY,NEW_DYNASTY from packages where account_no='86240331';
         Type C1_type is table of C1%rowtype;
         Rec1                          c1_type;
         New_value1                     number;
         New_value2                    number;
    New_value3                    number;
    Begin
         Open C1;
              Loop
                   Fetch C1 Bulk collect into Rec1;
                   For i in 1..Rec1.count Loop
    -------- TO GET FAMILY PACKAGES VALUES-----------------------------------------------------------------------------------------------
                        If           (Rec1(i).old_family= '0' and Rec1(i).new_family ='1' ) or
                             (Rec1(i).old_family= '1' and Rec1(i).new_family ='1' )
                   then
                                  new_value1:='1';
                   Else
                        new_value1:='0';
                   End if;
    -------- TO GET SPORTS PACKAGES VALUES-----------------------------------------------------------------------------------------------
                        If           (Rec1(i).old_SPORTS= '0' and Rec1(i).new_SPORTS ='1' ) or
                             (Rec1(i).old_SPORTS= '1' and Rec1(i).new_SPORTS ='1' )
                   then
                                  new_value2:='1';
                   Else
                        new_value2:='0';
                   End if;
    ------------TO GET DYNASTY PACKAGES VALUES ------------------------------------------------------------------------------------------
                        If           (Rec1(i).old_DYNASTY= '0' and Rec1(i).new_DYNASTY ='1' ) or
                             (Rec1(i).old_DYNASTY= '1' and Rec1(i).new_DYNASTY ='1' )
                   then
                                  new_value3:='1';
                   Else
                        new_value3:='0';
                   End if;
                        End loop;
                   ---------------------------     update statement------------
                   Exit when c1%notfound;
              End loop;
    End;
    Edited by: 841719 on Mar 6, 2011 8:01 PM

    1. hi for ex 5 account number in a table packages each account number is having of 30 records with the column aol and new(values are in 0 or 1)
    i need to copare fro old column and new column values and return if 0 and 1 means return 1 0 and 0 means 0 1and 1 means 1 1and 0 means 0
    for all days 30 days. for all account number and ouptut should be as follows
    account number value
    1 0
    2 1
    3 1
    4 0
    and this values should update in another table;
    i wrote a sample query for a single account but i need for all accounts.
    as given below please help me to solve the issues
    DECLARE
    CURSOR C1 is select rowid,old_family,new_family,OLD_SPORTS,NEW_SPORTS,OLD_DYNASTY,NEW_DYNASTY from packages where account_no='86240331';
    Type C1_type is table of C1%rowtype;
    Rec1 c1_type;
    New_value1 number;
    New_value2 number;
    New_value3 number;
    Begin
    Open C1;
    Loop
    Fetch C1 Bulk collect into Rec1;
    For i in 1..Rec1.count Loop
    TO GET FAMILY PACKAGES VALUES-----------------------------------------------------------------------------------------------
    If (Rec1(i).old_family= '0' and Rec1(i).new_family ='1' ) or
    (Rec1(i).old_family= '1' and Rec1(i).new_family ='1' )
    then
    new_value1:='1';
    Else
    new_value1:='0';
    End if;
    TO GET SPORTS PACKAGES VALUES-----------------------------------------------------------------------------------------------
    If (Rec1(i).old_SPORTS= '0' and Rec1(i).new_SPORTS ='1' ) or
    (Rec1(i).old_SPORTS= '1' and Rec1(i).new_SPORTS ='1' )
    then
    new_value2:='1';
    Else
    new_value2:='0';
    End if;
    ------------TO GET DYNASTY PACKAGES VALUES
    If (Rec1(i).old_DYNASTY= '0' and Rec1(i).new_DYNASTY ='1' ) or
    (Rec1(i).old_DYNASTY= '1' and Rec1(i).new_DYNASTY ='1' )
    then
    new_value3:='1';
    Else
    new_value3:='0';
    End if;
    End loop; update statement------------
    Exit when c1%notfound;
    End loop;
    End;

  • Passing values for a prepared statement encounters problem

    I have a query which runs fine when executed from sqlplus
    SELECT SYSDATE + (INTERVAL '10' MINUTE) FROM dual;
    The same query when run using a java statement also works well.
    when I use a Prepared statement like
    String sql = SELECT SYSDATE + (INTERVAL ? MINUTE) FROM dual;
    PreparedStatement ps = this.getPreparedStatement(sql.toString());
    ps.setString(1, "10");
    and execute I get the following exception
    ORA-00920: invalid relational operator
    I tried another way which also gives me a similar exception
    String timeout = "10";
    SELECT SYSDATE + (INTERVAL" + timeout + "MINUTE) FROM dual;
    Can anybody tell me why the problem happens. Is anything wrong in passing values dynamically for an 'interval' function in oracle?

    asokan_srini wrote:
    Yes friends
    Thanks for the reply. It worked out this way as u said
    sql.append("SELECT SYSDATE + (INTERVAL ");
    sql.append("'" + Integer.parseInt(timeout) + "' MINUTE) FROM dual");
    Mr.masijade said.
    First of all, there is no reason to do this command, really, but okay.
         There may be scenarios like this to use the command
              select * from mytable where (systimestamp - lastUpdateTimestamp) > Interval '10' Minute
    Is there any other better way to get all records updated before a certain timestamp?Use Timestamp to create a timestamp and PreparedStatement's setTimestamp(), maybe?

  • Passing a Dynamic value to a .JSP page when u click the hyperlink?

    Hi,
    I am displaying table with some Dynamic datas. I am iterating a list which contains the values are i am populating it in a <td> of the table.
    Like:-
    <table>
    <%
    ArrayList envNamesList=envDTO.getEnvName();
    if(envNamesList.size()>0){
    Iterator itr=envNamesList.iterator();
    while(itr.hasNext()){
    String envNames=(String)itr.next();
    %>
    <tr>
    <td align="center" ><font size="2"><%=envNames%></font></td>
    <td align="center" ><font size="2"> </font></td>
    <td align="center" ><font size="2"> </font></td>
    </tr>
    <%
    %>
    </table>
    </body>
    </html>
    Here the envNames contains a list of values which will be displayed dynamically like
    Env1
    En2
    En3
    So when i click a particular envname say Env1, i need to pass this value as a query string to another envView.jsp. So that for that particular Env1, i can display the related data.
    So, my ques. is how to get the particular envname which is been clicked (href)?
    Please do provide an answer for this.
    Thanx,
    JavaCrazyLover

    Pass it as a GET parameter. The 'envNames' is already available to you inside that loop where you create links.

  • Passing values to dynamically created internal table

    Hi,
    I have the flat file data as
    f1,f2,f3........so on
    where f1 f2 and f3 are field names.
    I have a variable var which contains the data
    V1,0001,0002.........so on
    data: var type string.
    The value of field f1 is v1
    The value of field f2 is 0001
    The value of field f3 is 0002.......so on
    FIELD-SYMBOLS:     <fs_1> TYPE STANDARD TABLE
    I have dynamically created an internal table for fields f1  f2 f3 ...... using 
      CALL METHOD cl_alv_table_create=>create_dynamic_table
        EXPORTING
          it_fieldcatalog           = lt_fieldcatalog
        IMPORTING
          ep_table                  = <fs_data>
        EXCEPTIONS
          generate_subpool_dir_full = 1
          OTHERS                    = 2.
      IF sy-subrc <> 0.
      ENDIF.
    ASSIGN <fs_data>->* TO <fs_1>.
    Now for <fs_1> I have to pass the corresponding values of the fields f1 f2 f3 .
    How can i solve this.
    Thanks and regards ,
    Parvatha Reddy

    Hi,
    There is no data in <fs_1>.
    I need to pass the data form the string var to the fields of <fs_1>..
    I understand that you want to populate the internal table <fs_1>.
    for that you fist need work area.. use below statement to create work area..
    DATA: new_line TYPE REF TO data.
    CREATE DATA new_line LIKE LINE OF <fs_1>.
    ASSIGN new_line->*  TO <fs_2>.
    <fs_2> is not your work aread...
    to assign value to each field of you work aread <fs_2>. use statement
    ASSIGN COMPONENT 1 OF STRUCTURE <fs_2> TO <fs_3>.
    <fs_3> = f1 .
    now <fs_3> will point to the first field of work area <fs_2>, f1 is value from your string .. repeat above for each field in workarea, by increasing the component number. Once your work area is filled
    append it to table.
    append <fs_2> to <fs_1>
    apologies if I am not getting the requiremnt correctly..

  • Passing values to Dynamic where clause as IN parameter - ADF

    Hi,
    I am trying to get the Dynamic where clause query output something like below,
    select * from EMP where emp_id IN(200,203,204)
    How to pass values from setWhereCluase(emp_id,????)
    Thanks,

    I'd go about this a little differently (probably not the best way):
    1. Create view object lk_department (lookup). In the query add a union with something like "select null as ID, 'All' as name' from dual;". This adds a null value that they can select by leaving the combo box on "All". Add a 'order by id" so the null value is the first one. When creating the combo box you want it set to navigation mode, so select the whole viewobject from the data palette rather a specific field.
    2. Create a jTextField for the "Jobs" field.
    3. Create an application module method that does something like:
    public void filterEmployees(String job){
    ViewObject vo_departments = findViewObject("lk_departments");
    ViewObject vo_employees = findViewObject("employees");
    String wc = "1 = 1 ";
    String wc = " and job like '%"+job+"%'"
    if (vo_departments.getCurrentRow().getAttribute("Id") != null) {wc += "and department_id = "+vo_departments.getCurrentRow().getAttribute("Id");}
    vo_employees.setWhereClause(wc);
    vo_employees.executeQuery();
    this.sync;
    4. In your Jclient app, you just need to call the method of your appmodule and insert the string from the textbox, using code similar to this:
    AppModule b = (AppModule)panelBinding.getApplicationModule();
    b.filterEmployees(jTextField.getText());
    I didn't test this code, but that's how I go about the same thing.

  • How to pass a dynamic value to jrxml file???

    Hi all,
    let me know a thing,How to pass a dynamic id value to the query in jrxml file.
    <queryString>
    <![CDATA[select currency_id from currency]]>
    </queryString>
    Because for every user,we have to generate a jasper report based on their loginId.So we have to maintain a dynamic value in jrxml file inorder to get records from table.
    <queryString>
    <![CDATA[select currency_id from currency where cid="DynamicId value"]]>
    </queryString>
    is the above mentioned tag possible???If it so kindly let me know how to do this from jsp page to jrxml file(Assume that jsp page calls jrxml file for report generation).
    Thanks in advance,
    sundar,

    hi all
    i m dealing wid same problem
    i used abv code bt some problem is still there
    foll is the code:
    code]
    Enumeration e=request.getParameterNames();
    while(e.hasMoreElements()){
    out.println("fgdgf");
    String name=(String)e.nextElement();
    String value=request.getParameter(name);
    stmt = dbconn.prepareStatement("UPDATE applicants SET statusLocal = 'n' where empNo = '" +value+ "'"); 
    int rowsAffected=stmt.executeUpdate();
    out.println(stmt);
    if(rowsAffected!=0){
    out.println("Successfull");
    else {
    out.println("Failed");
    }           while condition is not satisfied
    control does not enter the while loop
    can u plz tel me wht shud b the problem..
    thnx

  • In Drop Down by Index how can i pass default value Dynamically

    Hi Friends,
    In Drop Down by Index how can i pass default value Dynamically.Please help me.
    Thanks in advance.
    Regards,
    Kumar.

    hi,
    if you want the value to be defaulted only the first time you execute the program then write the code which suman has mentioned in the views method
    wddoinit.
    Regards
    Sajid

  • Issue passing values to text symbols in Dynamic text PDF forms

    Hello Everyone,
    I am facing a problem related to Dynamic texts in Adobe PDF forms (Text node of type include text). I am able to pass the dynamic values to the Text node properties but i am not able to pass the values to Text symbols inside the Text node. When tested it says the field not found. I have the same structure and field in the CONTEXT as that of the text symbol. The problem i see is because in PDF the field names have $record.(fieldname) ?
    Please share your thoughts if anyone has faced similar problem or know how to handle it.
    Thanks a million in advance,
    Chandu

    Open the report up in the Designer and Click on Edit, Subreport Links. Likely what you can do is use Shared Variables to pass values from the main report to the subreport.
    You need to do this in the report first. If you are using RAS then you can at runtime. If RAS is not available to you then no way in code.
    See these samples:
    Root Page
    http://wiki.sdn.sap.com/wiki/display/BOBJ/BusinessIntelligence%28BusinessObjects%29+Home
    Enterprise Samples (including managed and unmanaged ras)
    http://wiki.sdn.sap.com/wiki/display/BOBJ/BusinessObjectsSDKSampleApplications
    Non-Enterprise Samples
    http://wiki.sdn.sap.com/wiki/display/BOBJ/CrystalReportsSDKSampleApplications
    Exporting Samples (RAS)
    http://wiki.sdn.sap.com/wiki/display/BOBJ/NETRASSDK+Samples#NETRASSDKSamples-Exporting%2FPrinting
    Also refer to the DSK help files for the Engine or RAS and search on the subreportcontroller.
    If you are using RAS I'll move your post to the SDK forum.
    Thank you
    Don

  • Passing values to a dynamic selection screen via a report

    Hi,
    I have the following problem and need to seek your expertise urgently.
    In my program, I need to call another report by passing in parameters to the selection screen of other report. However, I could not pass values into a dynamic selection screen. I tried to use submit (report) with free selection but do not know how it works.
    Currently, I tried calling the function RS_REFRESH_FROM_DYNAMICAL_SEL and FREE_SELECTIONS_RANGE_2_EX. Using the object the first function has returned to me, I tried to append values such as fieldname etc to it. However, I realised the field names of a dynamic selection screen keeps changing. So I would not know how to pass a particular value to a selection field.
    Appreciate any help given.
    Thanks,
    CK

    Hello CK,
    Are you using logical database in your selection screen program attributes? If it is, look at include file DBxxxSEL for parameter named xxxDYNSE where xxx = logical database. Debug the program that has that dynamic selection, and look at field xxxDYNSE. This should give you a hint on how to populate the parameter when you submit the program.

Maybe you are looking for

  • How do I link to a PDF from a web app?

    Hello, can anybody help me with this please. I have a web app that is listing current vacancies (see it here http://pattonnz.businesscatalyst.com/about-situationsvacant ) As you can see the link to the PDF job description file is not right. What is t

  • Can't get Audio or Video chat to work, it keep saying I am being denied

    Date/Time: 2009-01-14 21:50:12.969 -0600 OS Version: 10.4.11 (Build 8S2167) Report Version: 4 iChat Connection Log: AVChat started with ID 0. 0x16413530: State change from AVChatNoState to AVChatStateWaiting. brandonch58: State change from AVChatNoSt

  • Call disconnected while transferring the calls

    Hi All My proplem is, when I call from my CME to an other PABX, the call was established successful and  call transfer another extension  that time call disconnected.  ​internal transferring  not disconnecting   all PSTN line connected through FXO po

  • HOW TO MANUALLY CHOOSE PRIMARY EXTERNAL EDITOR

    How can I manually choose the primary external editor? Currently, it's chosen automatically. Is there a Registry fix? I use XP Professional with Lightroom 1.4.1 and Lightroom 2.0 Beta and 2GB RAM on a 3.2ghz Pentium 4 machine. Why do I need this? Wel

  • Itunes keeps reopens by itself after i close it on xp

    Has anyone out there been able to figure out why and how to stop itunes from reopening itself after you close it on windows XP. This is an xp ? so please don't post mac os answers. From what I read and heard from support, no-one at apple knows why th