How to Execute Query Bdoc

Hi all
I have created one Query Bdoc. I want to execute that Bdoc. How can i execuate. I want to know what are the parameters are passed and get result.?
My problem I have created one combo engine. while executing mobile sales, it can't load the datas from Bdoc.? where i have to check?
anyone help me

Hi,
if you want to start it in the code you can use create a business query on using the query bdoc.
if you have a business query you can write the following code:
IN BO:
Dim bq as Businessquery
Dim bcol as BusinessCollection
dim bo as Businessobject
bq = gFactory.newBusinessQuery("your businessquery")
bq.setattribute (Attributename, Value)
bcol = bq.query
for each bo in bcol
  'this is a loop over all results
Next
Or you can use directly the qBdoc using the object ListEngine. Search for this in the Code of you MSA using Mobile Application Studio!
rg,
markus
You can check the bcol in the debuger

Similar Messages

  • How to execute query after login?

    Hi Gurus,
    I'm developing nowadays a small system,that shows every employee his data( attendance time,vacations,execuses..etc),I just want to execute query (pop up data) once the employee logged in,as I get his login name and sysdate and execute the query.
    how could this happen? do I need a process ? what is it?
    How to get the system date?
    thanks in advance
    Pardon me,am just new here and still my terms for Developer 2000.

    You can do it with a process (call it onload) or with a simple sql query mapped to a region in the home page of your application.
    hope this helps

  • How to execute query to store the result in the target table column ?

    Hi
    Source: Oracle
    Target: Oracle
    ODI: 11g
    I have an interface which loads the data from source table to target. Some of the columns in the target tables are automatically mapped with source table. Some of the column remain un-mapped. Those who remain un-mapped, I want to load the values in that column by executing an query. So can anybody tell me where I should mention that query whose result would become the value of the specific column.
    -Thanks,
    Shrinivas

    Actually I select the column from the target table then in the Property Inspector-->Mapping properties-->Implementation
    tab I have written the query which retrieve the value for that column. Is the right place to write the query? How can do this ?
    -Shrinivas

  • In Report How To Execute Query Two Times in One Layout

    hi
    All
    In My Report i have creating on main Query and then query run two type with Defrent Parameter how is possible in Oracle Report 6i
    example
    my Query is
    For Example First time query run defrent parameter and again run some other parameter in same layout help me
    select decode(art_mkt,'1',art_brc,art_mkt) art_mkt,
    &f1 art_prd,
    sum(nvl(art_amt,0)) art_amt,
         sum(nvl(art_net,0)) art_net,
    nvl(substr(art_vou_ser,2,1),' ') art_mfg_type,
    nvl(substr(art_vou_ser,3,1),' ') art_src_code
    from art
    where art_rec_ty = 58
    and art_ml in (:art_ml1,:art_ml2)
    and art_dt between to_date(:start_dt,'dd-mm-yyyy')
    and to_date(:end_dt,'dd-mm-yyyy')
    and art_vou_dt between to_date(:dt1,'dd-mm-yyyy')
    and to_date(:dt2,'dd-mm-yyyy')
    group by decode(art_mkt,'1',art_brc,art_mkt),
    substr(art_vou_ser,2,1),
    substr(art_vou_ser,3,1),
    &g1
    order by decode(art_mkt,'1',art_brc,art_mkt),
    substr(art_vou_ser,2,1),
    substr(art_vou_ser,3,1),
    &g1

    That would be a great question in the [url http://forums.oracle.com/forums/forum.jspa?forumID=84]Reports Forum wouldn't it ;)
    Tony

  • How to Execute Query

    Hi
    All
    This is My Data
    SQL> select * from dt;
    DPT CD AMT
    sro c 100
    sro d 200
    sro c 1000
    sro d 400
    This is My Out Put But I Want Only One Row
    SQL>
    1 select dpt, decode(cd,'c',sum(amt),0),decode(cd,'d',sum(amt),0) from dt
    2* group by dpt,cd
    SQL> /
    DPT DECODE(CD,'C',SUM(AMT),0) DECODE(CD,'D',SUM(AMT),0)
    sro 1100 0
    sro 0 600
    Misss
    Right Out Put Is
    sro 1100 600
    How To Right A Query I got a Above OutPut
    Thx.

    SQL>
    SQL> Create Table t As
      2  (
      3  Select 'sro' dpt, 'c' Id, 100 amt From dual Union All
      4  Select 'sro', 'd', 200 From dual Union All
      5  Select 'sro', 'c',1000 From dual Union All
      6  Select 'sro', 'd', 400 From dual
      7  )
      8  /
    Table created
    SQL>
    SQL> Select dpt,
      2         Max(col1) col1,
      3         Max(col2) col2
      4  From
      5  (
      6  select dpt, Id,decode(Id,'c',sum(amt),0) col1, decode(Id,'d',sum(amt),0) col2 from t
      7  group by dpt,Id
      8  )
      9  Group By dpt;
    DPT       COL1       COL2
    sro       1100        600
    SQL>

  • How can execute query be delayed.

    Hi:
    I have an interesting little problem. In our application, we have a screen that our users have been trained to press and hold the key to execute the query in a block. When our users do this the forms performs an average of 12 queries for second. In a lot of cases our users hold the key for as long as 20 seconds resulting in well over 200 queries. To make things more interesting the application is used in our call center where approximately 50 people are answering the phone. Since they are all trained the same, this can add up at time to a lot of queries.
    I was wondering if anybody has implemented a mechanism or algorithm by which under these conditions one can make the execute_query function to only execute once per lets say 5 seconds, thus reducing the number of queries significantly.
    Any help would be appreciated.
    Thanks,
    Thomas

    How do I catch the user letting go of the KEY-EXEQRY?You don't need to. When the user is holding the key down, the keyboard is continuously repeating the keystroke (like holding down any alphabetic key). The forms runtime catches the repeated strokes, and checks the timer. If it is still running, the forms runtime throws away the keystroke and picks up the next one...until the timer expires.
    Then it re-starts the timer and performs a query.
    Then checks for the next keystroke.
    When the user releases the key, the forms runtime no longer finds any keystrokes to process, so does not do another query. ...unless the user presses (or holds down) the key again.

  • How to execute query only when user submits request in af:query

    Hi,
    I'm using an <af:query> based on a named view criteria. The view criteria contains a bind variable. When the web page is initially rendered the query is executed and the result is displayed in an <af:table>.
    Instead, I want the user to trigger the query by pressing the Search button in the <af:query> form.
    Is there a way to configure such a behavior without coding?
    Sorry, if this is a faq, but I didn't find a suitable answer for my problem.
    Any hints are welcome,
    Markus

    Hi Frank,
    it is not that easy, I'm afraid. In 10g apps, I used a combination of two iterators. One Find-iteratior and one iterator for the resultset. The resultset iterator had the refresh condition set to ${adfContext.postback}. But with 11g, it does not work. The result is rendered when the page comes up.
    What has changed from 10g to 11g? I have discovered the fact, the table does a second (asynch) request to get the resultset from the server when attribute contentDelivery="lazy". Changing the attribute to contentDelivery="immediate" the page comes up with an empty table and the user can enter the query criteria. The solution works fine as long as you stay on the search page. If you navigate to an 'Edit result' page and then back to the search page, the table is empty again (thanks to the postback condition). To solve the problem you have to work with a second flag in the refresh condition which indicates that the user has triggered a query. This is the background for my last posting (' Can I set an <af:setActionListener> on the search button of a <af:query>?', Re: Can I set an <af:setActionListener> on the search button of a <af:query
    Any other recommendations?
    Thanks,
    Markus

  • How to execute query (select or update) without VO and EO

    hi
    i want to make simple select and updates in my processformrequest just to make some verifications in the database. how can i do it without using any view object and entity object ?
    thanks
    Dan

    You can use createPreparedStatement, createStatement api in OADBTransaction to issue a select statement. But as updated by Suvarna, shooting direct queries to DB is not recommended.

  • Execute query with in workbook

    How to execute query with in workbook??
    Regards,
    Vivek
    Please search the forum
    Edited by: Pravender on Apr 26, 2011 1:03 PM

    Hi Vivek,
    Click on Addin Tab in Analyzer, Select the workbook from open workbook icon.
    Once the workbook opened, click on variables icon. Then variables popup screen will come. Input the variables and click ok.
    Hope this will help you...
    Thanks,
    Chenna.

  • Execute query with non database block

    How to execute query with non database block when new form instance trigger.

    Hi Kame,
    Execute_Query not work with non database block. To do this Make a cursor and then assign values to non database block's items programmatically, see following example,
    DECLARE
    BEGIN
         FOR i IN (SELECT col1, col2 FROM Table) LOOP
                :block.item1 := i.col1;
                :block.item2 := i.col2;
                NEXT_RECORD;
         END LOOP;
    END;
    Please mark if it help you or correct
    Regards,
    Danish

  • How to execute an SQL query present in a string inside an ABAP program?

    hello,
    How to execute an SQL query present in a string inside an ABAP program

    Raut,
    You can execute Native SQl statements.
    Ex: To use a Native SQL statement, you must precede it with the EXEC SQL statement, and follow it with the ENDEXEC statement as follows:
    EXEC SQL [PERFORMING <form>].
      <Native SQL statement>
    ENDEXEC.
    There is no period after Native SQL statements. Furthermore, using inverted commas (") or an asterisk (*) at the beginning of a line in a native SQL statement does not introduce a comment as it would in normal ABAP syntax. You need to know whether table and field names are case-sensitive in your chosen database.
    In Native SQL statements, the data is transported between the database table and the ABAP program using host variables. These are declared in the ABAP program, and preceded in the Native SQL statement by a colon (:). You can use elementary structures as host variables. Exceptionally, structures in an INTO clause are treated as though all of their fields were listed individually.
    If the selection in a Native SQL SELECT statement is a table, you can pass it to ABAP line by line using the PERFORMING addition. The program calls a subroutine <form> for each line read. You can process the data further within the subroutine.
    As in Open SQL, after the ENDEXEC statement, SY-DBCNT contains the number of lines processed. In nearly all cases, SY-SUBRC contains the value 0 after the ENDEXEC statement. Cursor operations form an exception: After FETCH, SY-SUBRC is 4 if no more records could be read. This also applies when you read a result set using EXEC SQL PERFORMING.
    EXEC SQL PERFORMING loop_output.
      SELECT connid, cityfrom, cityto
      INTO   :wa
      FROM   spfli
      WHERE  carrid = :c1
    ENDEXEC.
    Pls. Mark If useful

  • How to execute this SQL Query in ABAP Program.

    Hi,
    I have a string which is the SQL Query.
    How to execute this sql Query (SQL_STR) in ABAP Program.
    Code:-
    DATA: SQL_STR type string.
    SQL_STR = 'select * from spfli.'.
    Thanks in Advance,
    Vinay

    Hi Vinay
    Here is a sample to dynamically generate a subroutine-pool having your SQL and calling it.
    REPORT dynamic_sql_example .
    DATA: BEGIN OF gt_itab OCCURS 1 ,
    line(80) TYPE c ,
    END OF gt_itab .
    DATA gt_restab TYPE .... .
    DATA gv_name(30) TYPE c .
    DATA gv_err(120) TYPE c .
    START-OF-SELECTION .
    gt_itab-line = 'REPORT generated_sql .' .
    APPEND gt_itab .
    gt_itab-line = 'FORM exec_sql CHANGING et_table . ' .
    APPEND gt_itab .
    gt_itab-line = SQL_STR .
    APPEND gt_itab .
    gt_itab-line = 'ENDFORM.' .
    APPEND gt_itab .
    GENERATE SUBROUTINE POOL gt_itab NAME gv_name MESSAGE gv_err .
    PERFORM exec_sql IN PROGRAM (gv_name) CHANGING gt_restab
    IF FOUND .
    WRITE:/ gv_err .
    LOOP AT gt_result .
    WRITE:/ .... .
    ENDLOOP .
    *--Serdar

  • How to execute SQL Query in Code behind Using infopath 2010?

    Hi,
    I've repeatable on infopath form, and want bind it throuth code behind from SQL table. My question is that how to execute SQL Query in code behind from infopath as well as how would get Query result to bind repeatable control?
    Thanks In Advance
    Shoeb Ahmad

    Hello,
    You first need to add new SQL DB connection then you need execute connection from code behind.
    See below link to create new connection
    http://office.microsoft.com/en-in/infopath-help/add-a-data-connection-to-a-microsoft-sql-server-database-HP010092823.aspx:
    http://www.bizsupportonline.net/infopath2010/connect-infopath-2010-sql-server-2008-table.htm
    Then use below code to execute this connection:
    AdoQueryConnection conn = (AdoQueryConnection)(this.DataConnections["Data connection name"]);
    string origCommand = Select * from tablename;
    conn.Command = origCommand;
    conn.Execute();
    Finally bind your table:
    http://www.bizsupportonline.net/infopath2007/4-way-programmatically-add-row-repeating-table.htm
    http://stevemannspath.blogspot.in/2010/09/infopath-20072010-populate-repeating.html
    Hope it could help
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • How to implement enter and execute query in ADF

    I am new to ADF and I am trying to create a simple data entry screen in ADF 11g based on a database table. I am looking to implement the equivalent of the Enter Query and Execute Query feature in Oracle Forms. I tried the default operations that are available with the data controls. But they don't seem to have this feature. Can someone help me / point me to how this can be implemented.
    Thanks,
    Srini.

    Thanks Shay. As per your suggestion I have included the Find and Execute buttons for the VO Object and ran the page. I first clicked the Find button and entered by query condition and then clicked the Execute button. At this point I get an error popup asking me to enter values for all the mandatory fields. Am I missing something?
    Regards,
    Srini.

  • How to execute the content of varchar  variable like a simple query

    Hi everyone!
    I did a PL/SQL region in apex, in this region I did the query which is storaged in a variable; it was did it concatenate several times,
    in the procedure I have several sentences.
    I thought that the command 'execute immediate' would get a good result but it do not print the result.
    declare
    variable varchar2(1000);
    begin
    --sentences
    --execute inmmediate( variable );
    --return variable
    end;
    I only want to how to execute the content of varchar variable.
    For example, suppose that the result of this procedure is
    'SELECT SYSDATE FROM DUAL'
    How and what do I must do for this query execute like a normal query that is in apex?
    I expect your prompt reply.
    Thank you for your help.
    Best regards

    Let us say your table containing SQL is
    t_sql_table
    and has two columns
    primary_key
    and
    sql_query.
    You would need to do the following:
    1. Create a Report of type "Function returning SQL Query"
    2. Put the following there:
    DECLARE
       v_query   VARCHAR2 (4000);
    BEGIN
       SELECT sql_query
         INTO v_query
         FROM t_sql_table
        WHERE primary_key = 1;
       RETURN v_query;
    END;Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

Maybe you are looking for

  • Getting an error when trying a script in Loginwindow manager

    Here is the applescript I wrote to map our H: drives off the network and it works like a charm. Code: property script_folder : ((path to desktop folder) as string) & "My Drives" tell application "Finder" mount volume "smb://unwosrv8/public" set MyNam

  • Goods Issue -- Batch Determination

    Hello Gurus, I am carrying out goods Issue for a particular process order and select the items and when i click CHECK, i get a warning message " Invalid batch according to selection criteria in batch determination" . how can i clear this. i want to u

  • Tabular model with Direct Query issue

    Hi, i am creating a tabular model - Direct Query option. I am using a kind of below query to import data, Declare @TEST as Table (TestID int, TestName varchar(20)) Insert into @TEST Select 1, 'TEst1' Union Select 2, 'TEst2' Select * from @TEST But th

  • How to save photoshop CS5 extended edited photos in iphoto on Mac?

    Hi this is my first post on here, so i'm unsure if i have put my question in the right place? etc....? I have only just purchased CS5 extended and have just been on a intro course, and today decided to edit a few of my photos in photoshop. i opened m

  • Making audio conference through tcp/ip

    hi, i want to establish audio conference between some systems which are connected through lan by using tcp/ip or udp i want make audio conference . i established the peer to peer voice communication ,now i want to make audio conference between a limi