How show the Extractor's Sap query

Hi masters,
I have a custom extractor in R/3 created with SAP Query method.
By RSA2, if I try to double click on Extractor name it does not succeed nothing!
How can I see the Sap Query created behind The Extractor?
Thanks so much!

Hi Martina,
if you want see the infoset in the extractor use sq02.
Bye

Similar Messages

  • How does the extractor in FXCollections.observableList work?

    How is the "extractor" supposed to work for ObservableLists?
    According to the JavaDoc it should trigger a update:
    >
    This list also reports mutations of the elements in it by using extractor. Observable objects returned by extractor (applied to each list element) are listened for changes and transformed into "update" change of ListChangeListener.
    >
    This code however does not trigger a change:
    import javafx.beans.Observable;
    import javafx.beans.property.SimpleStringProperty;
    import javafx.beans.property.StringProperty;
    import javafx.collections.FXCollections;
    import javafx.collections.ListChangeListener;
    import javafx.collections.ObservableList;
    import javafx.util.Callback;
    import java.util.ArrayList;
    import java.util.List;
    public class TestApp2 {
        public static void main(String[] args) {
            List<MyObservable> arrayList = new ArrayList<MyObservable>();
            arrayList.add(new MyObservable("Test"));
            arrayList.add(new MyObservable("Test2"));
            ObservableList<MyObservable> list = FXCollections.observableList(arrayList, new Callback<MyObservable, Observable[]>() {
                @Override
                public Observable[] call(MyObservable myTreeData) {
                    Observable[] observables = new Observable[1];
                    observables[0] = myTreeData.nameProperty();
                    return observables;
            list.addListener(new ListChangeListener<MyObservable>() {
                @Override
                public void onChanged(Change change) {
                    System.out.println("change");
            arrayList.get(0).nameProperty().set("Hi");
        private static class MyObservable {
            public MyObservable(String name) {
                this.name.set(name);
            public StringProperty name = new SimpleStringProperty();
            public StringProperty nameProperty() {
                return name;
    }

    I, too, am trying to work out how to use extractors. The documentation is sparse.
    I have found that if you replace your:
    arrayList.get(0).nameProperty().set("Hi");
    with:
    list.remove(0);
    your Callback is called, but you pretty quickly get a NullPointerException after it returns.

  • How to show the data of one query since Forms9i using to Report built-in on

    Hello!!!, I have Developer 9i (Forms and Reports), the OCJ4 and repserver90 are running, now, I attempt to run one report from Forms9i, and only it appears an empty page HTML. I don't understand why doesn't show the data of query?
    Please, give me a solution for this problem, thanks for your help.
    PD: I am using the below code.......
    PROCEDURE bring_report IS
    repid REPORT_OBJECT;
    v_rep VARCHAR2(100);
    rep_status VARCHAR2(20);
    BEGIN
    repid := find_report_object('Q_DATA1');
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_EXECUTION_MODE,BATCH);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,CACHE);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'html');
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,'repserver90');
    v_rep := RUN_REPORT_OBJECT(repid);
    rep_status := REPORT_OBJECT_STATUS(v_rep);
    WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
    LOOP
    rep_status := report_object_status(v_rep);
    END LOOP;
    IF rep_status = 'FINISHED' THEN
    /*Display report in the browser*/
    WEB.SHOW_DOCUMENT('http://172.16.2.18:8888/reports/rwservlet/getjobid'||
    substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server=repserver90','_blank');
    ELSE
    message('Error when running report');
    END IF;
    END;

    Alex,
    the code does look good. maybe the Reports query does not produce an output. You can trace this ny adding a header on top of teh Reports (e.g. a date or just saying "Hello World"). So instead of an empty page this should now show the text strings. If you don't see the string then there is something else going on. Since you are not getting any error message I assume that the Reports itself executes fine.
    Frank

  • How to Sum in a SAP Query

    Folks,
    I have given up....Really need some advice....
    I need a report example: Order Number, Order Type, Order Date, Customer number, Net Price, Total order cost
    I can get all I need from file VBAK, EXCEPT total order cost, which is at the line level (VBAP).  Now I need to show one line per order and sum the cost field (VBAP/WAVWR)...
    How can I accomplish this in SAP Query?  IS this even possible?

    Hi,
    I am sure about SAP Query...
    But check this program which might satisfy your requirement..
    Declarations.
    TYPE-POOLS: slis.
    DATA: BEGIN OF wa_data,
            vbeln LIKE vbak-vbeln,
            auart LIKE vbak-auart,
            audat LIKE vbak-audat,
            kunnr LIKE vbak-kunnr,
            netwr LIKE vbak-netwr,
            wavwr LIKE vbap-wavwr,
            waerk LIKE vbak-waerk,
            posnr LIKE vbap-posnr,
          END OF wa_data.
    DATA: itab LIKE wa_data OCCURS 0 WITH HEADER LINE.
    DATA: itab_final LIKE wa_data OCCURS 0 WITH HEADER LINE.
    DATA: v_tabix TYPE sytabix.
    DATA: t_fieldcat TYPE slis_t_fieldcat_alv.
    Selection-screen.
    PARAMETERS: p_erdat LIKE vbak-erdat OBLIGATORY.
    START-OF-SELECTION.
    Get the data
      SELECT avbeln aauart
             aaudat akunnr
             anetwr bwavwr
             awaerk bposnr
             INTO TABLE itab
             FROM vbak AS a INNER JOIN vbap AS b
             ON avbeln = bvbeln
             WHERE a~erdat = p_erdat.
      IF sy-subrc <> 0.
        MESSAGE s208(00) WITH 'No data found'.
        LEAVE LIST-PROCESSING.
      ENDIF.
      SORT itab BY vbeln.
    Sum the cost.
      LOOP AT itab.
    Store the tabix.
        v_tabix = sy-tabix.
        wa_data = itab.
        AT END OF vbeln.
          SUM.
    modify the cost.
          MOVE wa_data TO itab_final.
          MOVE itab-wavwr TO itab_final-wavwr.
          APPEND itab_final.
          CLEAR itab_final.
        ENDAT.
      ENDLOOP.
    SHow the report.
      DATA: v_repid TYPE syrepid.
      v_repid = sy-repid.
      CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
           EXPORTING
                i_program_name     = v_repid
                i_internal_tabname = 'WA_DATA'
                i_inclname         = v_repid
           CHANGING
                ct_fieldcat        = t_fieldcat.
      CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
           EXPORTING
                i_callback_program = v_repid
                it_fieldcat        = t_fieldcat
           TABLES
                t_outtab           = itab_final.
    Thanks,
    Naren

  • How to remove duplicates in SAP Query

    Dear Frns,
    I created a simple SAP query with quickviewer by table join option.
    tables are MAST & STPO.
    Link is only STLNR.
    I am getting a duplicate extra line with same data.
    Can anyone suggest me how it happened.
    Is there anyway to remove these duplicate lines.
    pl suggest

    Hi,
    You can sort the internal table and then delete the duplicate entries.
    sort itab ascending by STLNR.
    delete adjacent duplicates from itab comparing STLNR.
    Reward points for useful answers.

  • How to change code in SAP Query

    Hi Experts !!
    In SAP QUERY I am getting the  PO  with  all delivey dates & deliveried Qty  but I have to select only  single PO with latest delivery date  & qty. If there r more than one record for latest delivery date than deliveried QTY must be sum of  all QTY (for the  latest delivery date). for example :
    this is coming
    Po                delivery date                 qty
    10001         30.06.2009                   4
    10001         30.06.2009                   5
    10001         01.05.2009                   4
    we want
    Po                delivery date                 qty
    10001          30.06.2009                   9
    Thanks in advance.
    Thanks & Regards
    Navneet Singhal

    >
    navneet singhal wrote:
    > There is an internal table  %G00 in  query generated program (AQCSZPCWMM======Z_PCW_ORDER_V2) when I use this table in Code section (END-OF-SELECTION ) system thro msg %G00 is not defined . if I define this table in DATA  section than  run the query , It gives the  DUMP  with error %G00 is already decleared.
    >
    > How can I use %G00 internal table  in my code section.
    I have the same problem as the OP. I need to get rid of the duplicates and have all sumarized in just one row. I was thinking about this same solution, but when I add code to the END-OF-SELECTION event, this doesn't appears anywhere (but if I add code to any calculated field, yes).
    And the problem of the quoted message. I tried using field-symbols but I have errors saying that it's nos a valid table, etc...
    Any ideas???
    Thanks!!!

  • How to Substr field in SAP Query.

    Dear Developer,
    How to substr any field in SAP Query ?
    Regards,
    Ujed.

    Hi Ujed,
    if SUBSTR stands for substring, then possibly your question may be how to get the substr method as konown in languages like php in ABAP.  If SAP Query points to a SAP query as created in transaction SQ01, then you should explain what you want to achieve.
    Note: Better ask a specific question and get am answer you can or which is already generalized.
    If I need a substr function, I'd create a functional method for that:
    method substr
      importing
        anyfield type any
        offset type i
        length type i
      returning substring type string.
      try.
        substring = anyfield+offset(length).
      catch cx_root.
    * handle error
      endtry.
    endmethod.
    Regards,
    Clemens

  • How to Create EXTRACTOR from R3 QUERY

    Hi,
    I'd like to create an extractor from a custom ABAP R3 Query that must be executed with a variant.
    The standard extractor from a query doesn't allow to execute the query with a variant.
    The query variant drives some calculations and it's important for the correct display of the query result.
    How can i do?
    Thanks in advance.

    Hi,
    the result of the query depends on the input fields we set in the variant. So we need to extract the query information on R3.
    We tried also to submit the program related to the queries with return esporting the result to the memory  and  then, using the FMS LIST TO MEMORY and LIST TO ASCII in order to put the result into an internal table, but it doesn't work beacuse the query uses a logical database. Any IDEA?
    The code below works for an easy query (join from table) but not on a query that uses a logical database :
    DATA asci_tab TYPE text180 OCCURS 0.
    DATA mem_tab TYPE abaplist OCCURS 0.
    START-OF-SELECTION.
      SUBMIT AQZZFI==========ZTEST_AF=====
                            USING SELECTION-SET 'ZTEST_AF'
                            EXPORTING LIST TO MEMORY
                            AND RETURN.
      CALL FUNCTION 'LIST_FROM_MEMORY'
        TABLES
          listobject = mem_tab
        EXCEPTIONS
          not_found  = 1.
      IF sy-subrc = 0.
        CALL FUNCTION 'LIST_TO_ASCI'
         EXPORTING
           list_index               = -1
         TABLES
           listasci                 = asci_tab
           listobject               = mem_tab
         EXCEPTIONS
           empty_list               = 1
           list_index_invalid       = 2
           OTHERS                   = 3   .
      ENDIF.
      CALL FUNCTION 'LIST_FREE_MEMORY'.

  • SAP Query: How to filter records from SAP Query output before display

    Hi Friends,
      Can I delete records from an SAP query basic list before it is displayed?
    For example I want to delte all the orders whose system status is "RELEASED" before the basic list of that SAP query is displayed.
    I have gone through SAP help and found out that we can write some code in <b>END code</b> section which will execute before the basic list of the query is displayed. But I could not figure out how the code this...following is an excerpt form SAP help.
    <b>"The END-OF-SELECTION code consists of two parts (Before list output and After list output). The first part is processed before the list is output and the second part afterwards."</b>
    Can anybody help me?
    Regards,
    Bharat.
    Message was edited by:
            Bharat Reddy V

    Try this simple procedure. <b>Hope</b> this should work for you.
    You do the slection of the status in the List-Processing. say your final field of status flag is GF_STATUS.
    Immediatly after that use this within the List-Processing.
    CHECK GF_STATUS EQ '<RELEASED STATUS>'
    How it works:
    SELECT  <>       "<-------Query processing(system code).
    *< Your code put in the List processing
    CHECK GF_STATUS EQ '<RELEASED STATUS>'   "< --only released records passed.
    *>
    ENDSELECT      "<-----Query endselect(system code).
    Please let me know the result.
    Regards,
    A.Singh
    Message was edited by:
            Amarjit Singh

  • How to edit a standard SAP Query

    I need to do authority check for satndard SAP Query....How to do it

    If you put code similar the following in the Infoset ---> Extras -> Code -> Start of Selection it should work
    CALL FUNCTION 'SD_ORGDATA_AUTHORITY_CHECK'
    EXPORTING
       I_VKORG            = P_VKORG
    *   I_VTWEG            =
    *   I_SPART            =
        I_ACTVT            = '01'
    EXCEPTIONS
       NO_AUTHORITY       = 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.
    So, if the user does not have the proper authorization, it will exit the program.  You will need to check with your Security administrator to verify what value to use for the Activity Code.

  • Crystal Report does not show the webelement for SAP System

    Hi all,
    I have added web element in Crystal report for SAP system (BI or R/3) . But it does not show the control. It shows only scipt.It does not render the HTML.
    But if I add the webelement for Excel sheet ,It shows the control.
    How can I add web element for SAP System? Can't we use web controls in SAP system ?
    Help me in this regard.
    Regards
    Hemalatha J

    Hi,
    We have the same problem, did you find the final solution?
    Thanks in advance
    Regards.

  • How show the last record by date

    Hi Gurus,
    i got in the cube the next records for example:
    calday                  Material    Quantity
    01.01.2011             A                 10
    15.01.2011             A                  20
    if i present in the query these IO an KF the query will show these 2 records, now i want just show the last record by date
    calday                  Material    Quantity
    15.01.2011             A                  20
    i tried in the query with a calculate KF with exception aggregation , MAX with Reference to calday , but this still show both records... how can i do it? help gurus.

    Hello,
    If there are sales occuring for the material on two different dates and you include date in there will be always two records.
    I dont understand the need to show the last transaction. Anyways if you still need that you need to remodel the backend.
    Put a DSO on the cube with date in the data field, this will always overwrite the value for the key combination you need.
    Then you can return on this DSO.
    Regards
    Shashank

  • To show the data from BI query in bar graph with thousand separator

    Hello Experts,
       I am using Visual composer 7.0.I have designed an application where i have user BI query to show data as a bar graph.I have roundoff the data to 2 places of decimal an i have to show the data with thosand separator as well.
    i am using the formula
    NVAL(NSTR(@Actual_value,"C.2"))
    Where @Actual_value is a value which comes from BI queryand is to be displayed as a bar graph.
    Points will be awarded for reply.
    Thanks ,
    Rakesh

    Hi Rakesh,
    I have found some links which may help you.
    http://help.sap.com/saphelp_nw70/helpdata/en/38/2d9b732beb4c68bba2962602a7d6bd/content.htm
    http://help.sap.com/saphelp_nw70/helpdata/en/26/64fb472a144a0dbaf88f5ec75d9270/content.htm
    http://oregonstate.edu/dept/computing/warehouse/PDF/8-reports.pdf

  • ITS Transaction closing showing the button "Start SAP Easy Access"

    Hello
    I have to start an SAP service with a defined transaction the URL.
    Now the user want go back to start an other transaction from the SAP menu.
    But when he go out of the first transaction he see the button "Start SAP Easy Access".
    But what we want is to show directly the SAP Menu.
    I have tried:
    ~WEBGUI_EASY_ACCESS_MENU = 1          no impact
    activate a redirect URL in the service with ending .....TRANSACTION=SMEN, that works but then we dont can close the SAP in the actual mode.
    the only way is to close the browser window. And we actually have special logout site that we dont can show with this solution.
    Thank you for answers!
    Monti

    Hello Matthias
    Thanks for your input.
    I have found an other solution.
    I have defined a second service only for showing the Menue.
    This is now the logout page from the original service. So i have a first Service as a singletransaction service and after the first funktion they move to the second service with a "normal" menue and the user can navigate to a next ITS-function in the second service.
    Best regards
    Markus

  • How is the -gm parameter effecting query runtime in detail?

    During test I found out, that the parameter -gm seems to have some dramatic impact onto runtime of queries. In Detail I found a something like factor 0.5 to 0.6 inside my tests for a smaller system:
    -iqtc 12000
    -iqmc 12000
    -iqlm 1000
    -gm 100
    -m
    -iqrlvmem 6000
    When setting -gm 1001, runtimes for a single query goes up from about 10 to about 40s.
    So how is the -gm parameter effecting IQ in detail?

    When IQ starts it allocates threads based on the -iqmt parameter.  If you don't set it, then it is computed as something like:
         -- 60 threads for each core up to 4
         -- 50 threads for each core after 4
         -- number of connections (-gm option)
         -- add 6 more just for good measure
    Let's assume that your IQ instance has 16 cores and you have -gm set to 100 .  IQ would allocate 946 threads (60*4+50*12+100+6).  We have to add 1 more thread to this, too.  Before we can allocate threads, we have 1 thread that is running to start the server.
    On my 16 core system, here are the threads allocated at startup for various values of -gm:
         -gn 10: 857 threads
         -gn 100: 947 threads (notice the +1 from the above algorithm?)
         -gn 1000: 1847 total threads
    There are two major deductions from the thread total: IO threads and SA/user threads.
    Of the threads, 40% are supposed to be held in reserve to handle IO tasks (sweeper and prefetch threads are set to 10% each and apply to main and temp cache) via the Prefetch_Threads_Percent and Sweeper_Threads_Percent options.  I am double checking this area just to make sure.  There was some work done on this in the v16 timeline.
    For user threads, I don't see you having set -gn.  Assuming that -gn is not set, then IQ will reserve 5 + -gm threads (105).  Not a problem.  IQ will grab 5 more threads than are allocated via the above algorithm, but that's OK.
    Things go a bit wrong on you when your -gn is set to the recommended value of 1.5 * -gm.  What happens is that we are computing the number of threads needed based on -gm (100 or 1000).  However, we are actually allocating threads based on -gm (105, 1005, 150, or 1500 depending on the default or best practices used).
    Imagine that -gn is set to 1.5x -gm.  Of the 1847 threads allocated, 1500 are held in reserve for user connections.  Read that as threads for the catalog only.  There would be just 347 threads left over.  But don't forget the IO threads either.  Now all of a sudden there are no threads left for any work in IQ.  We are thread starved.  When IQ gets into a thread starvation mode, we have little or no threads left over to do work in IQ.  At that time, we use the one guaranteed thread that each user connection has to do all work.  This holds true for worker thread starvation as well as IO thread starvation.
    One of two things is happening in your case.  You are either thread starved and forced to run everything single threaded or your system has so many threads that it must spend too much time maintaining threads that are not being used.
    If you can run sp_iqsysmon in '-debug' mode you can look at the "Thread Manager" section to check out the thread usage and allocations.
    Mark

Maybe you are looking for

  • ASA 5505 Site-to-Site VPN not initializing

    I have two ASA 5505 running 8.4 and I tried using the VPN wizard and using the CLI but i am not able to get the peers to initialze.  I have looked at other configs and am not seeing what is missing. I have tried packet tracking through the ASDM and i

  • Thunderbolt to HDMI does not detect TV on Yosemite

    I am having the same problem as a lot of people with Yosemite and and connecting to a TV/external monitor via thunderbolt to HDMI but have found a sort of a solution or at least a bit more info that might lead to someone having a eureka moment. I hav

  • Can I boot a pulled hard drive from a Mac Pro on an external dock?

    I have a 2008ish Mac Pro that has a dead video card and a few other problems.  Luckily, the hard drive is still functioning.  Is it possible to pull the drive and boot it using an external dock in order to image the drive so I can use it on another c

  • Double contacts in address book & iPhone

    I have double contacts in my address book on my iMac and on my iPhone I have "linked cards". Does anyone know how to fix this? My sync is not checked in iTunes, so I don't think that is the problem. I have tried to "search for duplicates" in my addre

  • Why SQL services is dont start in configuration manager studio 2012

    I finished installing SQL server Management Studio 2012 and that of configuration management studio. When I wanted to log in did not find server name, and I tried <pc name>\SQLEXpress, still did not work. So checked configuration management studio an