How to get values against checkbox from table

hi all,
how can i get column values from database against multiple check boxes,
is there array in oracle to store multiple values?
i stored value of check boxes in column named checkid, in table named information.
now i want to get value of infoid against these chekid column where checkid=1 from this table and want to store infoid against it in another table named handing,
i want to do like this
-----Table handing-------
HID value1 value2
1 abc xyz
1 abc xyz
1 abc xyz
2 ccc ddd
3 bbb aaa
3 bbb aaa
i wrote code
     DECLARE
     var_id number;
CURSOR my_cur is
select infoid from information
where CHECKID = 1;
     BEGIN
     open my_cur;
     fetch my_cur into var_id;
     CLOSE my_CUR;
     insert into handing
          (hID,
          value1,
          value2)
     values
          (var_id,
          :handing.value1,
          :handing.value2);
COMMIT;
     SAVED_ALERT;
end;
but i know that var_id data type is number it must be array, this codd does not works what should i do? should i use loop but how??? please help me.
regars

Hello Wreesha,
you can enhance your chance to get an answer in several ways.
- Use {noformat}{noformat} Tags around your code examples to make them more readable and to preserve white space
- Provide CREATE and INSERTS for sample data (We still don't know how your information table looks like and what date it has)
- The expected result (also formatted)
- Don't use words like "immediate" or "asap". We don't get paid for answering questions.
Regards
Marcus                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Similar Messages

  • How to get value in function insert table test ?

    Hi
    I use function insert table test in order to get value in table for use in code page but i don't know how to get value in table.If somebody have any idea.Please give me some advice.
    Thank you,
    Waruja

    You will need to grab the contents with VBA
    Table test is user interface only.
    This thread may help
    http://qazone.empirix.com/thread.jspa?threadID=748&tstart=0

  • How to get sum amount (wrbtr) from table BSIS group by gjahr hkont monat

    Hello! I am new to this forum, and to ABAP. Hope my question is not obvious.
    I want to get sum amount from table BSIS, group by year, period an account. Normally I will try a SQL select like this:
    SELECT gjahr monat hkont sum( wrbtr ) as wrbtr INTO CORRESPONDING FIELDS OF TABLE itab FROM BSIS WHERE (itabcond) GROUP BY gjahr monat hkont .
    The problem is that the amount in field wrbtr is all positive. The result gets wrong. The debet/credit indicator shkzg determines what is positive/negative. How to solve this in the most efficient way? Should I read all accounting documents into an internal table, and loop through them, changing the sign, and then make some new select, or is there a better way?
    Regards Dag-Egil
    Message was edited by:
            Dag-Egil Bull Sletholt

    Here are the objects in the trace list:
    SKB1
    USR05
    TRDIR
    SKA1
    SKAT
    SKB1
    BSIS
    PRPS
    BSAS
    V_LTDX
    USR02
    RFBLG
    V_LTDX
    LTDX
    RTXTH
    RTXTF
    RTXTT
    TRDIR
    The most of this call to this tables returns 1-2 records, apart from BSIS, where it returns 10 records. This is the same as accounting documents in the transaction FBL3N. When i try this again with more records returned I still have no call to table GLT0.

  • How to get selected/focused cell from table, and action on clicked

    Hello Web Dynpro Community!
    i have a view with a table, (id "Table_0");
    table is 3x3 size, as celleditors i used inputfields; (standard binding to context with string atributes)
    below table i have textarea.
    when i select any cell in table i want to add that cell coords to textarea (col and row)
    i know that i should use onLeadSelect action, but i dont know exacly how. or to be precise.. how to access to ID and row variables in that action.
    the other problem is.. that onLeadSelect seems to work only when i change lead not the cell in same row.. so prabobly there is better way to do that..
    any ideas?
    Looking to hear from You.
    EDIT:
    Now i have following problem:
    i have a table 3x3 with one column as dropdownbykey box and 2 as TableSingleMarkableCell (and inputFields As editors).
    it works as i wanted:
    so when i click on one of those input cells, insert vale AND click enter then the action onEnter( for inputfield) is fired... i can get the coords of that cell..
    problem is.. that i want to get the coords before i click enter.. just when i click in cell.
    i tried to use onAction event for column.. but it doesnt work for TableSingleMArkableCells (but it works for ddk column correctly).
    so there is any way to do that?
    ie:
    below table i have inputfield (called  value).
    when i click on cell (and DO NOT press enter) i want to see the cell value in inputfield value.
    future (and target need) is that i need to show some additional text for specific Cell. (i have an Object with 2 strings attributes, one i want to show in cell, and one in inputfield when cell is clicked).
    M.
    Edited by: Michal Rowinski on Jan 16, 2008 9:51 AM

    You can use cell variant  for your requirement . Go through the below link
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c0310fd2-f40d-2a10-b288-bcbe0810a961
    Regards,
    Nethaji

  • How to get value in variable from query in PLD / ALD

    Hi, everyone,
    I want to retrieve value from database via query in PLD/ALD variable on basic of PLD / ALD variable's content. is it possible ?

    Hi
    Try this,
    ->> Open the GRPO document.
    ->> Click the Tools on menu bar and Open the Form Setting widnow.
    ->> put the tick mark in BaseRef, BaseDoc, TrgetDoc
    i think, Base Document no field default in SAP B1.
    try to search the Base doc. Date in row level on GRPO document.
    Try to Create UDF & FMS then assign the FMS in UDF
    SELECT Distinct T1.DocDate
    FROM PDN1 T0 INNER JOIN POR1 T1
             ON T0.BaseEntry=T1.DocEntry
    WHERE
    T1.[DocNum]=$[PDN1.BaseRef]
    OR
    SELECT Distinct T1.DocDate
    FROM PDN1 T0 INNER JOIN POR1 T1
             ON T0.BaseEntry=T1.DocEntry and
                T0.BaseLine=T1.LineNum and T0.BaseType=22
    WHERE T0.[BaseType] =22
       and T1.[DocNum]=$[PDN1.BaseRef]
    IF you more details, Check the below thread.
    Re: How to store the invoice number in the head of the related delivery ?
    Regards,
    Madhan.
    Edited by: Madhan Babu C on Dec 11, 2009 6:57 AM

  • How to get Cube Request Reportability From Tables?

    Hello,
    What table contains the reportability status on a request in a cube?  I want to know this so I can programitically figure out what cubes are reportable and which are not, thanks!

    Hope RSODSACTREQ will give you the loaded request and reporting availability information.
    Thanks,
    Arun

  • How to get value from list item

    Hi all,
    How to get value from list item?
    I have a problem with the List Item object
    in the Oracle forms.
    How can I retrieve the selected item from
    a list ?
    I didn't find any function like 'list.GET_
    SELECTED_ITEM()'...
    thanks
    Bala

    Hello,
    You get the value as for any other Forms item:
    :value := :block.list_tem ;Francois

  • How to get second maximum salary from employee table(sql query)

    how to get second maximum salary from employee table(sql query)

    dude there is no matter of structure .........that user already said its from employee table ...............its basic table in sql and there is no need to specify the table structure
    .........i think u got my point I think you are the one who didn't understand Sarma's point.
    Give a man a fish and you feed him once. Teach a man how to fish and you feed him a life long.
    >
    and the query is
    select max(sal) from emp where sal<(select max(sal)
    from emp);
    this will give the 2nd max salary from the emp tableBtw: You solution is bad, because it needs to scan and sort the table emp twice. And a better solution has been given already.
    Message was edited by:
    Sven W. - reordered statements

  • How to get values/data stored in the database into a list-item.

    how to get values/data stored in the database into a list-item.
    i tried to make a list item without any values assigned to it...but i got the below error.
    FRM-30191: No list items defined for required poplist.
    or
    FRM-32082: Invalid value for given item type.
    List EMPNO
    Item: EMPNO
    Block: EMP
    Form: MODULE5
    FRM-30085: Unable to adjust form for output.
    then according to some docs, i tried the the following for the trigger
    when-new-form-instance
    declare
         rg_name varchar2(40) := 'emp_rec';
         status number;
         groupid recordgroup;
         it_id item;
    begin
         it_id := Find_Item('empno');
         groupid := create_group_from_query(rg_name, 'select empno from emp');
         status := populate_group(groupid);
         populate_list(it_id, groupid);
    end;
    but yet didnt work... :(
    so how the heck do i get values fetched from the database table into the list item?

    for list items you need to values in the record group, one is the shown value and one is the returned value.
    Check out the online help for the populate_list built-in.
    You'll need something like select ename,ename from emp as the record group query.

  • How to get value in a web page automatically  and sava output in database

    how to get value this table output is
    row 1, cell 1
    row 1, cell 2
    row 2, cell 1
    row 2, cell 2
    <table border="1">
    <tr>
    <td>row 1, cell 1</td>
    <td>row 1, cell 2</td>
    </tr>
    <tr>
    <td>row 2, cell 1</td>
    <td>row 2, cell 2</td>
    </tr>
    </table>

    Note: This thread was originally posted in the [Java Technologies for Web Services|http://forums.sun.com/forum.jspa?forumID=331] forum, but moved to this forum for closer topic alignment.

  • How to get the current week from sysdate?

    Hi sir,
    i want to know how to get the current week from sysdate?
    thanks

    Hi Nicolas
    It seems you like to check my post and also make commend ;) thanks for your attention
    Have you ever read the posts above and given solutions ?Yes, I did
    Have you read the docs ? Yes, I checked
    What's the added value here ?Did youYou shared doc with solution(long one), I shared short one which point same solution(Check what Joel posted)..So what is benefit, As you can guess oracle docs are sometimes become so complicated as specialy for beginner...(At least it was like that for me and Belive me somedocs are still sooo complicated even for oracle coworkers ) But for you I dont know ;)
    => Why writting the PS in bold ?Why.. Let me think... Ohh Maybe I am looking some questions(many) and even user get answer they should not changed status so I am reading some posts and try to get problem and loosing time..
    So I am putting that PS wiht BOLD because I dont wanna lose time my friend ;) Because While I am trying to help ppl here In same time I am trying to giving support to my customer prod systems. Which mean time is very important for me...
    Hope my answer could satisfy you..
    One important PS for you.. You may not like my posts (or someone) but my friend I become tired to read&answer and make commend to on your comment which is about my posts.
    I am not newbie in forum(At least I fell like that) and I belive I know how I should make post..
    Thank you
    Regards
    Helios

  • How to get payment document number from paid column in monthly invoice

    Dear experts
    I use SBO japan version and i need to know how to get payment document number from paid column in monthly invoice ?
    in table MIN1, only contain invoice and credit note document number, there is no payment document number
    thank you for your help
    Best Regards
    JeiMing

    Dear Gordon
    Yeah, you are right, i can use field MIentry in RCT2
    thank you
    Best regards
    jeiming

  • About not getting value in wa_vbap from it_vbap.

    REPORT  ZSIMPLEALV.
    TABLES: VBAK, VBAP, SSCRFIELDS.
    TYPE-POOLS: SLIS.
    TYPES: BEGIN OF TY_VBAK,
           VBELN TYPE VBAK-VBELN,
           BSTDK TYPE VBAK-BSTDK,
           KUNNR TYPE VBAK-KUNNR,
           END OF TY_VBAK.
    TYPES: BEGIN OF TY_VBAP,
           VBELN TYPE VBAP-VBELN,
           POSNR TYPE VBAP-POSNR,
           MATNR TYPE VBAP-MATNR,
           KWMENG TYPE VBAP-KWMENG,
           VRKME TYPE VBAP-VRKME,
           ARKTX TYPE VBAP-ARKTX,
           WERKS TYPE VBAP-WERKS,
           NETPR TYPE VBAP-NETPR,
           END OF TY_VBAP.
    TYPES: BEGIN OF TY_FINAL,
           VBELN TYPE VBAK-VBELN,
           BSTDK TYPE VBAK-BSTDK,
           KUNNR TYPE VBAK-KUNNR,
           POSNR TYPE VBAP-POSNR,
           MATNR TYPE VBAP-MATNR,
           KWMENG TYPE VBAP-KWMENG,
           VRKME TYPE VBAP-VRKME,
           ARKTX TYPE VBAP-ARKTX,
           WERKS TYPE VBAP-WERKS,
           NETPR TYPE VBAP-NETPR,
           END OF TY_FINAL.
    DATA: IT_VBAK TYPE TABLE OF TY_VBAK,
          WA_VBAK TYPE TY_VBAK.
    DATA: IT_VBAP TYPE TABLE OF TY_VBAP,
          WA_VBAP TYPE TY_VBAP.
    DATA: IT_FINAL TYPE TABLE OF TY_FINAL,
          WA_FINAL TYPE TY_FINAL.
    DATA: IT_CATLOG  TYPE SLIS_T_FIELDCAT_ALV,
          GT_SORT   TYPE SLIS_T_SORTINFO_ALV,
          WA_CATLOG TYPE SLIS_FIELDCAT_ALV,
          GS_LAYOUT TYPE SLIS_LAYOUT_ALV.
    SELECTION-SCREEN  BEGIN OF BLOCK B1 .
    SELECT-OPTIONS: PO_DAT FOR vbak-bstdk.
    SELECTION-SCREEN END OF BLOCK B1  .
    START-OF-SELECTION.
    PERFORM GET_DATA_FROM_VBAK.
      PERFORM GET_DATA_FROM_VBAP.
      PERFORM WRITE_DATA_TO_FINAL.
    END-OF-SELECTION.
    PERFORM SHOW_DATA.
    *&      Form  GET_DATA_FROM_VBAK
          text
    -->  p1        text
    <--  p2        text
    FORM GET_DATA_FROM_VBAK .
      SELECT VBELN BSTDK KUNNR
        FROM VBAK
        INTO TABLE IT_VBAK
        WHERE BSTDK IN  PO_DAT.
    ENDFORM.                    " GET_DATA_FROM_VBAK
    *&      Form  GET_DATA_FROM_VBAP
          text
    -->  p1        text
    <--  p2        text
    FORM GET_DATA_FROM_VBAP .
    SELECT  VBELN  POSNR MATNR KWMENG VRKME ARKTX WERKS NETPR
      FROM VBAP
      INTO TABLE IT_VBAP
      FOR ALL ENTRIES IN IT_VBAK
      WHERE VBELN = IT_VBAK-VBELN.
    ENDFORM.                    " GET_DATA_FROM_VBAP
    *&      Form  WRITE_DATA_TO_FINAL
          text
    -->  p1        text
    <--  p2        text
    FORM WRITE_DATA_TO_FINAL .
      REFRESH IT_FINAL.
      LOOP AT IT_VBAP INTO WA_VBAP WHERE VBELN = VBAK-VBELN.
           WA_FINAL-VBELN = WA_VBAP-VBELN.
           WA_FINAL-POSNR = WA_VBAP-POSNR.
           WA_FINAL-MATNR = WA_VBAP-MATNR.
           WA_FINAL-KWMENG = WA_VBAP-KWMENG.
           WA_FINAL-VRKME = WA_VBAP-VRKME.
           WA_FINAL-ARKTX = WA_VBAP-ARKTX.
           WA_FINAL-WERKS = WA_VBAP-WERKS.
           WA_FINAL-NETPR = WA_VBAP-NETPR.
    IF SY-SUBRC IS INITIAL.
      READ TABLE IT_VBAK INTO WA_VBAK WITH KEY VBELN = WA_VBAP-VBELN.
           WA_FINAL-VBELN = WA_VBAK-VBELN.
           WA_FINAL-KUNNR = WA_VBAK-KUNNR.
    ENDIF.
       APPEND WA_FINAL TO IT_FINAL.
        CLEAR: WA_FINAL, WA_VBAP, WA_VBAK.
      ENDLOOP.
    ENDFORM.                    " WRITE_DATA_TO_FINAL
    "tell me anybody 'why am i not getting value in wa_vbap from it_vbap?.

    Hello Mr:Sardar,
    There are a lot thinks we need to notice while writing a report.
    First of all VBAP is an item table and VBAK is a header table. For each header data there can be multiple item data. So your report should loop over header data first
    Let it be
    loop at it_vbak into wa_vbak.
    endloop.
    Now wa_vbak will contain one header data, for this header there can be more than one item data in vbap.
    now the code will become
    loop at it_vbak into wa_vbak.clear wa_vbap.
      loop at it_vbap into wa_vbap where vbeln = wa_vbak-vbeln.
      wa_final-vbeln = wa_vbak-vbeln.
      append wa_final to it_final.
      endloop.
    endloop.
    Another thing u must take care of is that while u are using FOR ALL ENTRIES in your select statement, check whether this itab is initial or not.If itab is initial program will fetch all the data irrespective of conditions. Please read F1 help for for all entries.
    Hope this will help you.
    Regards,
    Antony Thomas

  • How to get Value of tree node without Reload Page

    hi,
    i worked with apex 4.2 and i created Tree and tabular form to retrieve the date according the value of tree select node the code of tree something like this
    select case when connect_by_isleaf = 1 then 0
    when level = 1 then 1
    else -1
    end as status,
    level,
    "ENAME" as title,
    null as icon,
    "EMPNO" as value,
    null as tooltip,
    'f?p=36648:34:5234984107903::::P40_SELECTED_NODE:'||empno as link
    from "DEPT"."EMP"
    start with "MGR" is null
    connect by prior "EMPNO" = "MGR"
    order siblings by "ENAME
    and i put Selected Node Page Item: P40_SELECTED_NODE . the tree worked good and retrieve the data into tabular form according to tree node value
    my Question :
    1- i want to retrieve the data without submit the page where each time i select value from tree make page reload to update the tabular form with new value ,there is any way to pass the value of tree node to P40_SELECTED_NODE item and refresh tabular form without page reload .
    2- i want when selected from tree run page process according to value of tree node i tray to create Dynamic action with *(jquery selector : div.tree li>a)* but the Value of node incorrect.
    Regards
    Ahmed;

    look at this link
    Re: How to get Value of tree node without Reload Page ..!

  • How to get value of a textfield which has been set as Renderd false.

    Hi all
    how to get value of a TEXTFIELD which has been set as Renderd false.
    i am getting the value of this textfield from an lov but dont want to show it to the user.
    getting error as:
    attribute xxxx required for view object yyyyy.
    pls help
    naveen

    You can create item inside your LOV region, set the item style to formValue. You can associate this to a View Object field. It can also act as mirror of any other text input field.
    FormValue can hold the value and will not be diaplyed to user. You can read value from it controller
    example
    OAFormValueBean orgValue = (OAFormValueBean)webBean.findChildRecursive("OrgIdFormVal");
    Or you can read it fro the VO associated with this form value.

Maybe you are looking for

  • Itunes wont open, tried copy .dll files and safe mode, reinstall it many many times. it just wont work.

    got the lastest windows 8.1 and the itunes update recently. itunes wont open after install of the new version. tried many ways mentioned on the internet and the apple support communities. still it doesnt in the "open-mood "

  • Pass input value to a concurrent program of type PL/SQL procedure

    Hi, I have created an executable program which is based on "PL/SQL Stored Procedure" method and created a concurrent program which calls this executable. It is available from SRS. The relevant stored procedure requires an input variable as parameter.

  • Empty lines being transfered with RSCRM_BAPI

    Hi guys, I have to transfer the result f one query to a table. For this requirement Iu2019m using transaction RSCRM_BAPI transaction. The problem is that my query is gigantic and it has a structure in rows with 150 selections visible and 250 that are

  • In Oracle 8i

    Can I change Block size in Oracle 8i without recreating the database Plz help. Thanx in advance

  • Gallery Help

    Click Here To See It Ok well im trying to make a simple gallery in action script 3. I've done a much more simple one from a tut (link above) and that one works fine, then i've done basically the same thing but it doesnt work. I check the script and i