Small query in ABAP dynpro

Hi Experts,
I am new to ABAP webdynpro. I have created a sample application following the example provided in the SAP help. In one of "supply function" I have used the below code for getting the node in a context
datanode = wd_context->get_child_node( name = 'DATA' ).
wd_context refers to the interface IF_WD_CONTEXT_NODE. I went to this interface and identified the method get_child_node. But when I double click on the method nothing happens. I want to see the coding , how the system gets the node using this method.
thanks
sankar

Hi Sankar,
IF_WD_CONTEXT_NODE is an interface and hence has no code in it. You need to find the code inside a class which implements this interface. In this case, you need to go to class CL_WDR_CONTEXT_NODE.
Again, CL_WDR_CONTEXT_NODE is an abstract class. So you need to find the implementation inside a subclass. In this case, the subclasses are CL_WDR_CONTEXT_NODE_MAP and CL_WDR_CONTEXT_NODE_VAL. Both implement the method we are talking about.
These are general OOPS concepts.
The hierarchy of classes and interfaces can be very easily found by using the 'Object List' tool for the selected object (Short cut ctrlshiftf5)
Hope this helps.
Regards,
Neha
Message was edited by:
        Neha Agrawal

Similar Messages

  • Getting an error when i am execution a BI query using ABAP.

    Hi Expert,
    I am getting an error when i am execution a BI query using ABAP. Its Giving me this Error "The Info Provider properties for GHRGPDM12 are not the same as the system default" and in the error analysis it saying as bellow.
    Property Data Integrity has been set differently to the system default.
    Current setting: 0 for GHRGPDM12
    System default: u2019 7 u2018
    As I am very new to BI and have very limited knowledge, so I am not able to understand this problem. Can any one help me to resolving this issue. Previously it as working fine, I am getting this error last 2 days.
    when i am debugging , I am getting error from
    create instance of cl_rsr_request
    CREATE OBJECT r_request
    EXPORTING
    i_genuniid = p_genuniid.
    this FM. Its not able to create the object. Can any one please help me out.
    Thanks in advance.
    Regards
    Satrajit

    Hi,
    I am able to solve this problem
    Regards
    Satrajit

  • Bex Query in ABAP report

    Can i call a BEx query in ABAP report and display in ALV grid. if so please give me the syntax.
    Thanks
    Akila.R

    Look at the FM "RSDRI_INFOPROV_READ".
    With this you can read data into a internal table of your program.
    With this FM, you can do a selective read and select only the key figures and characteristics that you wish to read in your ABAP.
    I am not ure, if you can call a BEx report in your ABAP. But with what I mentioned here, you can acheive what you want.
    Ravi Thothadri

  • Issue with displaying ADOBE forms using ABAP dynpro

    Hi all,
    We are trying to display the adobe form in the portal using ABAP dynpro. but as i test the application in R/3 it throws the dump in ST22. if i see that dump it says  Uncaught exception in ADS, forms are not interactive, data can be provided on interactive forms only. But if we try the same aplication using Java dynpro it runs successfully.
    What can be the issue, is there any problem with ADS configuration.
    Its urgent. Please provide some inputs.
    Thanks and Regards

    Thanks Abhi,
    I checked  displayType it is already native and form type also ZCI. still there is same problem
    In st22, it shows exception as
    Error analysis                                                                               
    WebDynpro Exception:                                                                        
        The cause of the exception was:                                                                               
    ADS: com.adobe.ProcessingException: PDF is not interactive.  Data can only be                
        imported into interactive forms                                                                               
    thanks

  • Execute BI Query in Web Dynpro Java

    Dear All,
    I have a requirement where i have to display of traffic light that sets its color based on the outcome of a SAP BEx query using Web Dynpro Java.
    Please explain me the steps how to retrieve and execute the SAP BEx query  using WDJ.
    Thanks & Regards
    Rajeev

    Hi Rajeev
    You can refer to the following links :
    [How to execute a BI query/view from a web dynpro application?]
    [How to send query parameters using BIApplicationFrame]
    Regards,
    Sayan Ghosh

  • Execute a query using ABAP  (XSLT transformation issue)

    Hello,
    I made the steps from this blog (part I, II and III).
    /people/durairaj.athavanraja/blog/2005/12/05/execute-bw-query-using-abap-part-iii
    When trying to run the XSLT transformation, I got the message that : XML invalid source file.
    I am not sure what are the steps for running a transformation, or running it for this case ,maybe something it's not ok. I just run it, did not provide any information.
    Any suggestions ? Did anyone use the function module described in this blog ?
    Thank you very much in advance.

    try giving
    CALL TRANSFORMATION (`ID`)
    SOURCE meta = meta_data[]
    output = <ltable>[]
    RESULT XML xml_out
    OPTIONS xml_header = 'NO'.
    and check - sometimes the codepages configured in the BW system tend to cause an issue... I am not sure if the syntax is right though - but you are basically trying to bypass any encoding that is happening in the query transformation....
    http://www.sapetabap.com/ovidentia/index.php?tg=fileman&sAction=getFile&inl=1&id=4&gr=Y&path=ABAP%2FABAPENANGLAIS&file=ABAP-XML+Mapping.pdf&idf=41
    Edited by: Arun Varadarajan on May 18, 2009 11:28 PM

  • How to call Biztalk  through ABAP-DYNPRO

    Hi All  ,
    I want to call a function module which  in  BIZTALK Server through
    ABAP-DYNPRO ( by service call) . for this I require  Destination details ( in  service call ) .
    Can anyone please send me the Destination details or the approach  to follow for calling the  Biztalk ?
    Thanks in advance ..
    Regards
    Rahul

    Run a search on Web service calls from WDA.
    This topic has been addressed on numerous occassions.
    You can call BIZ-TALK using a web service.
    You could also call it using straight HTTP .
    There are classes in ABAP to allow you to write an HTTP client app if required.
    If possible go the Webservice route.
    IE have you Biztalk guy generate a WSDL for the call.
    The follow instructions on numerous threads on calling web services.
    Cheers
    Phil.

  • Small Query help

    small query i have data like below ,
    Month ProductNo CustomerNo     Units
    Jan 9001 1001-09 100
    jan 9002 1002-09 200
    jan 9003 1003-09 300
    jan 9001 ABCCustomer 400
    Jan 9002 1004-09 500
    for any record - if column - customerNo starts with numeric it has to show like CN_****** other wise the same name.
    Result should be
    Jan 9001 CN_1001-09 100
    jan 9002 CN_1002-09 200
    jan 9003 CN_1003-09 300
    jan 9001 ABCCustomer 400
    Jan 9002     CN_1004-09 500
    Can some one help to get the query

    Hi,
    try this,
    SQL>  select *from v$version;
    BANNER
    Personal Oracle Database 10g Release 10.1.0.2.0 - Production
    PL/SQL Release 10.1.0.2.0 - Production
    CORE    10.1.0.2.0      Production
    TNS for 32-bit Windows: Version 10.1.0.2.0 - Production
    NLSRTL Version 10.1.0.2.0 - Production
      1  with t  as
      2  (select 'Jan' Month ,9001 ProductNo, '1001-09' CustomerNo, 100 Units from dual
      3  union all
      4  select 'jan', 9002 ,'1002-09', 200 from dual
      5  union all
      6  select 'jan', 9003, '1003-09', 300 from dual
      7  union all
      8  select 'jan', 9001, 'ABCCustomer', 400 from dual
      9  union all
    10  select 'Jan', 9002, '1004-09', 500  from dual)
    11  select  Month,ProductNo,(case when regexp_like(customerno,'^[[:digit:]]') then
    12   'CN_'||CustomerNo
    13  else
    14* CustomerNo end)cudtomer_no, units from t
    SQL> /
    MON  PRODUCTNO CUDTOMER_NO         UNITS
    Jan       9001 CN_1001-09            100
    jan       9002 CN_1002-09            200
    jan       9003 CN_1003-09            300
    jan       9001 ABCCustomer           400
    Jan       9002 CN_1004-09            500or
    regexp_like(customerno,'^[0-9]')or
    regexp_like(customerno,'^[0123456789]')Edited by: user291283 on Sep 12, 2009 8:22 AM
    Edited by: user291283 on Sep 12, 2009 9:24 AM

  • Conversion from query to ABAP report

    Hi,
    I have already a query (report), displaying some data.working perfectly.
    now i want to convert that Query to ABAP report, with same selection screen and functionality?
    Is there any process for conversion or i have to create just like a normal report and writing the code....
    Thanks in advance,
    fractal

    There is no standard conversion available as such, but you can find out the Query Report name and then copy that to another program and make your changes. But it is preferable to just write it from the start as queries are notorious for their select statements.
    I don't know why you intend to write a report even though your query is working, but if you want to do it, write your own program. You can always keep the same selection screen.
    Regards,
    Srinivas

  • ABAP query vs ABAP report

    Hi Experts,
       I have a question regarding ABAP query  and report.
      what is the difference between ABAP query and ABAP report  ?
      will the query be more efficient than abap report ?
      Is there a standard SAP report that could replace a query?
    Thanks in advance,
    Manoj

    Hi,
    A report is a piece of logic that you write in (this case) in a programming language (ABAP). It uses the syntax of the normal commands of the PL.
    ABAP Query is a higher level tool, that reduces or eliminates the need to "program" in the PL, and rather uses more intuitive, graphic tools, to basically get the same results.
    Generally speaking, if the reporting needs are simple and standard, it is easy and feasible to use the query. The more complex the logic gets, the more you'll probably need to use programming.
    Regards,
    Mario

  • Dynamic query in ABAP

    Can we use dynamic query in ABAP?

    1. Dynamic where clause
    You can use an internal table to build a dynamic where clause:
    data: where_tab(30) occurs 1 with header line,                     
             where_clause(30) type c.                                     
    Build the where clause. Will look like this when finished
    WHERE ZAFSTMD02 = 'X' AND rbusa = '5145'
    With a constant, result: ZAFSTMD01 = 'X'
    concatenate 'ZAFSTMD' zcostcheck-zmaaned  ' = ''X'''  into where_clause.                              
    Append to internal table where_tab
    append where_clause to where_tab.                                  
    With a variable, result: AND rbusa = '5145'
    concatenate 'AND rbusa = '  ''''  i_tab-zgsber  ''''
    append where_clause to where_tab.                                  
    Select
    select * from zcostfreq                                           
         where (where_tab).                                              
    endselect.                                                        
    Note that you can combine static and dynamic where clauses:
    select * from zcostfreq                                           
         where bukrs = '2021' AND
                                  (where_tab).                                              
    endselect.                                                        
    2. Using a dynamic table name
    This report prints the number og entries in a table. The table name is
    specified by a parameter.
    data:
      l_count type i.
    parameters:
    p_tab type tabname.
    start-of-selection.
      select count(*) from (p_tab) into l_count.
      write: / 'Number of entries in table ', p_tab, l_count.
    3. Dynamic retrieval and writing of data
    In this example, data is retrieved from the table selected on the selection
    screen, and the contents of the
    table is written to the screen.
    DATA:
    Create variable that can contain referecene to any data
      dataref TYPE REF TO data.
    FIELD-SYMBOLS:
      <row>         TYPE ANY,
      <component>   TYPE ANY.
    PARAMETERS:
    p_tab TYPE tabname.
    START-OF-SELECTION.
    Create a workarea for the tabel selected on the selection screen
      CREATE DATA dataref TYPE (p_tab).
    The variable dataref cannot be accessed directly, so a field symbol is
    used
      ASSIGN dataref->* TO <row>.
      SELECT *
        FROM (p_tab) UP TO 10 ROWS
        INTO <row>.
        NEW-LINE.
        DO.
        Write all the fields in the record   
          ASSIGN COMPONENT sy-index
            OF STRUCTURE <row>
            TO <component>.
          IF sy-subrc <> 0.
            EXIT.
          ENDIF.
          WRITE <component>.
        ENDDO.
      ENDSELECT.
    4. Dynamic SELECT
    TYPES:
      BEGIN OF st_bseg,
        bukrs LIKE bseg-bukrs,
        belnr LIKE bseg-belnr,
        dmbtr LIKE bseg-dmbtr,
      END OF st_bseg.
    DATA:
      sel_list   TYPE STANDARD TABLE OF edpline,
      li_bseg    TYPE STANDARD TABLE OF st_bseg,
      l_bseg     TYPE st_bseg.
    START-OF-SELECTION.
      APPEND 'bukrs belnr dmbtr' TO sel_list.
      SELECT (sel_list)
        FROM bseg  UP TO 100 ROWS
        INTO TABLE li_bseg.
      LOOP AT li_bseg INTO l_bseg.
        WRITE : / l_bseg-bukrs, l_bseg-belnr, l_bseg-dmbtr.
      ENDLOOP.

  • Change query using abap

    hi all,
    i find a situation when i need to change many queries to include a common variable of a characteristic. is it possible to create a program to change query? are there any function modules for this?
    thanks.

    Hi,
    You can run or get an URL for query with ABAP Function modules. but for creation, it may not possible.
    As this is a different tool.
    Regards,
    Ravi Kanth

  • How to call a Bex query in ABAP

    Hi,buddies:
        Any body try to run a Bex query in ABAP and then get the result in text file etc...??
    Martin Xie

    Hello,
      Call this transaction in BW : RSCRM_BAPI.
    Download Query result in file format.
    This transaction is absulote.
    I hope it helps.
    Kishore

  • ABAP Dynpro available in NW04 and NW04s

    Hello:
    Is ABAP Dynpro available in NW04 as well as in NW04s?  I think that WebDynpro (Java) is already available in NW04 but I was not sure about ABAP Dynpro.
    Can anyone help me verify this?
    Thank you...
    George Lu

    WD ABAP is fully useable in WAS 7.0(NW 2004s).   There are reminants of WD ABAP in WAS 6.40(NW 2004).  You can access the WD objects, but you may have some problems.  But to answer,  WD ABAP is only in 2004s.
    Regards,
    Rich Heilman

  • Executinga BW query using ABAP

    I saw this blog on how to execute a BW query using abap. My question is, where do we create the function module Y_EXECUTE_QUERY? I mean under which function group? Thanks.

    This is the blog I was referring to:
    /people/durairaj.athavanraja/blog/2005/04/03/execute-bw-query-using-abap-part-i

Maybe you are looking for

  • HP Deskjet 3050 All-in-One J610 series printer problem

    I can't get anything to print.  I removed the color cartridge and failed to replace it for several days.  The printer was not used during this time.  After replacing the cartridge,  I tried to print a document and  got a message stating no printer wa

  • How to Improve Performance of this query??

    Hi experts, Kindly suggest me some perfomance optimization on the below code. SELECT * FROM vtrdi AS v                INTO TABLE six                FOR ALL ENTRIES IN r_vbeln                WHERE vbeln EQ  r_vbeln-low                AND   trsta IN  s

  • Message while performing goods movements in PI sheet

    Dear experts, Kindly suggest way to populate the message that system provides while performing goods movment using co11n and cor6 at the time of posting the message through PI sheet. System usually populates message like 6 goods movement posted 1 fai

  • Mise à jour 6 , bugs des applications.

    Depuis que j'ai téléchargé la nouvelle mise à jour 6 pour l'iPhone 4, certaine de les applications bugg ! Lorsque je veux y aller sur l'une d'elles , ils me demande mon identifiant et mon mot de passe Apple , je le rentre , et l'application se ferme

  • Identify the Type of Font Names in Illustrator

    How to identify the type of font names like "True Type font" (or) "open Type font" for illustrator file using Scripts or any language. Could you please advice me. Thanks, Prabudass