Extract data using javascript

Hi,
I have  created a BW reportin BeX WAD. At viewtime (in internet explorer), I'm extracting some data from a table in the report with some custom javascript (I'm using HTML DOM).
Is there any way to directly query the data provider of the table (in javascript) to get the needed data? Because using DOM is not that elegant and not that easy to generalize (the number of rows varies depending on the number of characteristic values etc).
Thanks,
Jeroen

Hi,
If you are profficient with ASP and Multi Dimensional Expressions you will be able to accomplish your goal. See:
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/3ff37884-0401-0010-3c96-ab0e2f383c5a
If you stick to Javascript then AJAX can be your solution (although a not trivial one...) See Raja's blog:
/people/durairaj.athavanraja/blog/2006/02/06/read-sap-table-data-from-bw-webtemplate-ajax-in-bw-webtemplate
Good Luck,
Xibi

Similar Messages

  • How to compare dates using javascript?

    Hi,
    I have to compare dates using javascript. The dates are in format "mm/dd/yy" for eg "10/09/06".
    I have written a script to compare the dates but the problem I 'm facing is with the year.
    For example if I compare "10/09/06" with "10/04/98", then "10/04/98" is coming out to be greater than "10/09/06" because it is considering year "98" to be greater than "06".
    Please advice/suggest.
    Thanks in advance...

    Dude, you're here in a Java forum, not in a Javascript forum. Those are two entirely different languages.
    The answer in Java is to use java.text.SimpleDateFormat to convert String to Date and use java.util.Date and/or java.util.Calendar to compare dates.

  • Error while extracting data using function module

    Hello,
    I created one generic datasource and i want to extract data with the option "Extraction by Function Module".
    But when i specified function module name and was trying to save, it thrown a error message saying
    'The specified table does not exist'.
    What could be the reason?
    Please help me out.
    Thanks,
    Regards,
    Steve

    Hi Steve,
       Once you execute T.Code RSO2, you need to fill in the details and click Create, specify the Appl. Component and in Extraction by Function Module, give Function Module name and Extrct Structure in the given boxes.
    "This structure is used by a DataSource that was created using the transaction RSO2 (generic extraction) and selects data using a function module.
    The data must be transferred from this function module to an interface table E_T_DATA."
    I'll try to comeup with small piece of code to sort your issue.
    Hope it helps!!!!
    Amit

  • Change of sign while extracting data using Open hub

    Hello All,
    We are extracting data from Info cube to a file in the application server using Open hub.
    While extracting data, if there is any negative value for the key figure, negative sign is appending on the right side of the value(Eg: "123.67-"), which is the standard behaviour but I want the sign to be on the left side of the value (Eg: "-123.67") while extracting to the file at application server.
    Could any one please let me know if there is any setting to do this change ?
    Thanks in advance

    Hi,
    Changing the SIGN position from one side of the NUMBER to the other side can happen in following ways.
    1) After the file is place in the application server. Deploy a OS SCRIPT file (for .csv) for obtaining the required changes to the required COLUMN [Basis team will have more idea on this]
    2)This is time consuming idea. well deploy a routine at the Open hub -Infospoke level.
    Regards

  • POST Data Using Javascript

    Hi Guys,
    I ran into this trouble, basically, what I need is to post data into this url using REST:
    www.thissite.com/comment
    now it says:
    do this with a variable name content, containing "key: value" line by line:
    id:
    Action: comment
    Text: the text comment
    now it has a sample on how to do this using java:
    import java.io.IOException;
    import org.apache.commons.httpclient.HttpClient;
    import org.apache.commons.httpclient.methods.PostMethod;
    import org.apache.commons.httpclient.methods.multipart.MultipartRequestEntity;
    import org.apache.commons.httpclient.methods.multipart.Part;
    import org.apache.commons.httpclient.methods.multipart.StringPart;
    public class RtTicketCreator {
    static final String BASE_URI = "http://www.thissite.com/REST/1.0";
    public static void main(String[] args) throws IOException {
    PostMethod mPost = new PostMethod(BASE_URI + "/1234/comment/");
    Part[] parts = { new StringPart("content", "id: 1234\nAction: comment") };
    mPost.setRequestEntity(new MultipartRequestEntity(parts, mPost.getParams()));
    HttpClient cl = new HttpClient();
    cl.executeMethod(mPost);
    System.out.println(mPost.getResponseBodyAsString());
    Now, my question is: Can I do this using javascript? If yes, could you at least give me an idea how to accomplish this?
    Thanks Guys,
    Best Regards,
    Aaron

    Hi Vishvesh,
    Could you please let me know how you resolved the issue.
    I am also developing a web app in eclipse consuming the odata and when checking the script in Firebug i gor the error as
    GET http:/<server>;port/sap/opu/sdata/sap/GURU/$metadata/$metadata?$format=xml 
    00:01:50 2012-04-06 The following problem occurred: HTTP request failed0,, -
    Thanks and regards
    Gururaj

  • Reading form data using javascript

    Hello.
    I want to go over the data received from the context to the PDF file using JavaScript, without binding it to any elements on the form.
    How can I access the data?
    I've tried using xfa.data or xfa.dataset, but didn't manage to get to it.
    How can it be done?
    Thanks.

    The following applies if it's a PDF generated from ABAP :
    Let's say a simple type parameter from context is named EBELN. To get it from javascript, you must use :
    $data.data.EBELN.value
    or
    $record.EBELN.value
    (it's the same)
    For example, to display the value, use:
    xfa.host.messageBox( $data.data.EBELN.value );
    Edited by: Sandra Rossi on Jan 28, 2009 7:34 PM : added $record line

  • How to find tables from extracted data using lo cockpit

    I have extracted data form 2lis_02_scl using Lo cockpit and replicated in sap bw.
    Now i want to know from which tables the data was extracted .pls giv info.
    Thanks in advance.
    Regards,
    Hari Reddy

    One quick way - search Help.
    Tables are EKKO, EKPO, EKET , EKPA
    http://help.sap.com/saphelp_nw70/helpdata/en/8d/bc383fe58d5900e10000000a114084/content.htm

  • Code Page Setting while extracting data using Generic Data Source

    Hi,
    Can anybody tell me about the Code Page setting used in Generic Data Source in SAP BW 3.5?
    I am extracting data from a Master Table using Generic data Source, but the data which is in Ukrane language is getting loaded as "#". Where do we set the Code Page for it?
    Regards,
    YK.

    To continue with earlier question, is there any particular setting for a master data, to load non english data as a text of master data?
    I want to load TEXT of a master in Ukraine language. I am extracting this text from the P table of same master (From Description Field). But TEXT is not getting populated whenever it is Ukraine language. English TEXT is populated correctly.
    Please share your experiences...
    Thanks,
    YK.

  • Error while Extracting data using RSCRM_BAPI

    Friends
    We are on 3.5 system upgraded recently. I am getting the following Error message while trying to extract data from a query to a table using the transaction RSCRM_BAPI. The Error message says ' Internal Error in Method CHECK_TABLE_NAME(RSCRMBW_EX_NAMESPACE_GET).
    This was working fine prior to upgrade. I scoured all the OSS notes, could not find an appropriate one to solve the issue.
    Have you had this problem and any thoughts on resolution ? Appreciate your inputs very much.
    Regards
    Mathur Sreedhar

    Hi Mathur,
    did you ever resolved this Issue? if so can yoou share with me the solution. i am having the same problem, we are in 3.0 . it works fine in Development and Test. but when i try it in Production . i get this error.
    'Internal error in method CHECK_TABLE_NAME (RSCRMBW_EX_NAMESPACE_GET)..
    if you know the answer. would please share with me.
    your help would be greatly appreciated.
    Thanks.
    Sreeni.

  • Problem extracting data using 0EC_PCA_3 datasource

    Hello every body.
    Hope every thing is all right for you.
    I'm facing an embarassing problem, and hope you can help!
    I'm using datasource 0EC_PC_3 to extract data from GLPCA (ECC table) into a BI DSO. My probleme is that when i try to extract all data for a specific profit center group (or customer) i'm not getting data related to fiscal period biger than 10. When i add a filter on account number (on infopackage selection criteria) for example it's getting all data with no probleme in fiscal period!!
    Any body has faced this error or something like it?
    Thanks for help!
    Salah

    Thanks every body for reply,
    yes i've fiscal period as part of my DSO key part!
    At datasource level (0EC_PCA_3), i'm not getting data as it should be !!!
    When, whitin my infopackage, i specify the profit center, data are retreived correctly, otherwise i'm not getting all data!!!
    Any idea? :s

  • Change Data Using Javascript

    Hi Guys,
        I'm wondering can I change a data in the data view without binding it to a UI using javascript?
        Thanks,
    Mao

    Hi,
    I mean in the hierarchy node select the field to which you want to populate the value. And in the script editor write this.rawValue = <your value>.
    Regards,
    Vidya Chowdhary A.

  • Issue while extracting data using Gen DS of Type Infoset Query

    Hi All,
    We have a Generic Data source created using the Infoset query. I get some data discrepency when i am extracting the data with the same DS. The data for the Field Amount in the R3 and the PSA  is different. When i try to check the same using the RSA3 T-Code i am unable to execute the Gen DS in R3 production where as its working fine in R3 Dev, and i am able to execute the other DS in the R3 production using the RSA3 T-code.
    My concerns ::--
    1. if the DS is working fine in R3 Dev in RSA3 the y i am facing the problem in Production.
    2. Y i am getting the different data in R3 and PSA since PSA shuld be the replicate of R3?
    3. How can i resolve this problem.??
    Thanks in Advance
    Regards

    Thanks venkat,
    I am having the authorization to execute the query in R3 production, As  i am able to execute the other DS in RSA3 . But not able to execute this DS i had also checked it is active n working fine when loading the Data.
    There is only one routine ie to transfer rule  from lower to upper of a char value.
    As der r routines in Update Rule but i have to get the same data in PSA which is der in R3.
    The Routine of Update Rules will be executed when loading the data to the Targets right so the data may b vary in Data targets but y i am getting different data in PSA .
    Pls thru some light.
    Regards

  • How to extract data using DSources which do not support Delta

    Hi forum,
    Iam using a data source which does not support delta. In such a scenario what should i do For subsequent extractions.Will i have to opt for full load every time, if so then how will the double data records be treated. Pls help me out of this situation. In RSA6 if i click on the data source there i can find a check box for enabling delta , but again that is greyed out. If i want to change that what steps should i follow.
    All the helpfull answers and solutions would be thanked by assigning full points.
    Regards
    Pallavi

    Can you give me the data source name please.
    If it is a standard Business Content Datasource and it does not support delta(or delta is not enabled) then you dont have any choice to modify the standard Datasources. In such cases you can create a Generic DS same as Standard DS and enable delta.
    Hope this helps.
    Praveen

  • Error when extracting data using DB Connect from an Oracle database

    Hi All,
    We are on BI 3.5 and loading data from a non-SAP (Oracle 10g) database using DB Connect.
    I received the following error messages when trying to perform "Check DataSource" using the DB Connect setup in RSA1.
    Event with errors RSDL_META_UPLOAD in DataSource
    Message no. R8287
    Warning Messages;
    Message no. RSDL053
    Field name ReceiptID contains non-alpha-numeric characters
    Field name ActivityDate contains non-alpha-numeric characters
    Field name ReceiptDate contains non-alpha-numeric characters
    Field name ReceiptLineNumber must have between 000001 and 000016 digits
    etc...
    Views are created under the owner's user name. I have checked with DB personnel and they confirm that all the authorization and security access privileges have been correctly granted to the views.
    We are also able to extract the data by running a sql query statement from the views using SQL Plus
    Currently we also have a similar extraction process set up with an Oracle 9 database, which extracts the information without any issues.
    Thanks,
    Anthony

    Hi Mr Loh.
    I know that this thread has over a year ago but i was looking for something similar for over 2 weeks ago and i ialways found this thread...I want to share my experience even that maybe you already found the same solution or something similar (i saw that you check your own post as answered):
    I made a similar connection from BI 7 SP 18, but in my case was to a Microsoft SQL database 2005. When i "check the datasource" i receive like almost 150 warnings and 1 error and all the warnings and errors are the same ones as you describe above. What i did is create a custom view in the MSSQL database and convert all the column names to uppercase and the column names i limited to 16 characters at most. after doing that all the warnings and the error described disappear and i can view the database content when you made click in the "view content table" button.
    I hope that this will help somebody and best regards
    Martin Olmos

  • Problem to extract data using DS 2LIS_11_VAHDR & 2LIS_11_VAITM

    Hello Experts,
    my requirement is to extract the SD sales Item & sales header data int BI.  while executing the Reports in BI  I find some incosistencies in data
    Ex:  for for some Sales organizations  
          0CRM_NUMDOC = 17 and the corresponding   0NETVALORD = 0,00  
    and for some sales organization
         0CRM_NUMDOC = 0 and the corresponding   0NETVALORD = 5200,00  
    we are using  the data sopurce 2LIS_11_VAHDR to load Document header data  and the data sopurce 2LIS_11_VAITM to get  Item Net value data. and used two trtansformations to the same SAP standard cubes 0CSAL_C05 & 0CSAL_C03.
    asper  my analysis in development system I find 
           VBAK contains  1405 records but the DS 2LIS_11_VAHDR extracts only 1235 records.
    but
           VBAP conains   2665  records and the DS 2LIS_11_VAITM extracts all 2665  records.
    is it creats the problem?
    I deleted the setuptables and again fill them  even thought I have the same problem ?
    If you have any idea regarding this issue please share with me.
    Thanks in advance.
    cheers.............

    HI,
    Check indeed the extraction in your source system with RSA3.
    Also perform the load and check your data in PSA (before any transformation takes place).
    Are you going to use delta or full loading? I assume it's delta? So if you perform your initial load with data, no use of the setup table is required...
    If you have too much data to do this, try an initial load without data, first delta load and next a full repair load (which will read your setup table). Do not forget to fill your setup table with all the historical data you need in transaction SBIW.
    Hope this helps.
    Best Regards,
    Michel Hoefkens

Maybe you are looking for

  • SharePoint - Automated Active Directory User Management

    We are currently using a custom list to capture data from our HR team related to Employee Changes such as New Hires, Change of Information, and Exits.  The next step after the form is filled out is to make the AD/Exchange change for that request.  I'

  • REG: SFTP to SFTP scenario

    Hi All,          I have a SFTP to SFTP scenario where file is getting picked up from the source location and failing at the taget side.        When tested with File to SFTP the same channel is able tp place file sucessfully.        However when scena

  • How do I get rid of a virus I mistakingly got from a site called 'firstrow.eu'?

    How do I get rid of a virus I mistakingly got from a site called 'firstrow.eu'?

  • How to buy snow leopard currently?

    Hi, i wanted to update an old leopard mac (which is supported) to mountain lion now that it is out. Turns out snow leopard cant be bought in the mac store anymore and telephone support says it should be bought at retail sellers. However i phoned thre

  • I need to know how to copy

    I need to know how to copy and paste on this IPad.Also I downloaded photos from the Mac onto my IPad and it said download complete, but could not find my photos.I don't have an icon for I Photo Library.The Apple store deleted all my apps,when they fi