Not able to get data from ce_reconciled _transactions_v in a function after intialising the view

Hi all ,
I have written a function  to  get the gl_date from ce_reconcilied transactions_v . but when i call th function in a select query , it is not returning any data.
I have used the following intialization in the function
Mo_Global.set_policy_context('S',p_org_id);
cep_standard.init_security;
But when i use anonymous block to get gl_date printed it is fetching data from the view.
Below is the  code for Function
CREATE OR REPLACE Function l3get_gl_date(p_org_id NUMBER,p_statement_line_id NUMBER)
RETURN DATE
AS
v_gl_date DATE;
ct NUMBER;
BEGIN
Mo_Global.set_policy_context('S',p_org_id);
cep_standard.init_security;
SELECT count(*) into ct from ce_reconciled_transactions_v where org_id=p_org_id ;
dbms_output.put_line('count:' ||ct || 'org ' ||p_org_id || ' line ' ||p_statement_line_id);
SELECT  gl_date INTO v_gl_date
  FROM ce_reconciled_transactions_v where statement_line_id=p_statement_line_id;
  RETURN v_gl_date;
EXCEPTION
WHEN OTHERS
THEN
dbms_output.put_line('unable to get GL_DATE' ||SQLERRM);
RETURN NULL;
END;
below is tha anonymous block
declare
p_org_id NUMBER;
p_statement_line_id NUMBER;
ct NUMBER;
v_gl_date DATE;
BEGIN
select org_id into p_org_id from ce_bank_acct_uses_all where bank_account_id=10911;
select statement_line_id  into p_statement_line_id from ce_statement_lines where statement_header_id=41130 and line_number=4;
Mo_Global.set_policy_context('S',p_org_id);
cep_standard.init_security;
SELECT count(*) into ct from ce_reconciled_transactions_v where org_id=p_org_id ;
dbms_output.put_line('count:  ' ||ct || 'org  ' ||p_org_id || ' line  ' ||p_statement_line_id);
SELECT  gl_date INTO v_gl_date
  FROM ce_reconciled_transactions_v where statement_line_id=p_statement_line_id;
dbms_output.put_line('GL Date:   ' || v_gl_date);
EXCEPTION
WHEN OTHERS
THEN
dbms_output.put_line(SQLERRM);
END;
please suggest .

Hi,
Try adding the following code so we can verify the org is set in your function:
Add to the definition:
v_org_id number;
Add after setting the policy:
select MO_GLOBAL.get_current_org_id()
into v_org_id from dual;
FND_FILE.PUT_LINE(FND_FILE.LOG,'Current MO Org_id='||v_org_id);
This will verify that the org_id was set.
Are you getting any errors, or simply no data found.
Cheryl

Similar Messages

  • Not able to get data from Reference Purchase Organization

    Hi,
        the scenario is
    Need to have one global pur. org for 3 company codes and
    one each company code specific purchase org.
    so i created Z300 as a ref purchasing org
    and created Z100 for a specific company 3000 n assigned to it
    and assigned Z100 to ref purchase org Z300
    and i  created a vendor master with Z300 purchase org n company code 3000
    but when i creating a PO with ME21n
    when i enter the vendor and Z100 as the purchase org ...it tells me that vendor is not maintained for Z100.
    ( but as per the documentation the data shud come from ref. purchase org ? isnt that true)
    and
    when i enter the vendor and Z300 as the purchase org and enter the material and plant it says
    plant is not maintained for Z300 ..? i understand this ...the correct process is the first one ..
    can nyone let me know y this error is coming ....is there anything i am missing in assigning.
    thanks a bunch

    purchasing staff of your enterprise to work with conditions and contract  
    release orders on a cross-purchasing-organization basis.                                                                               
    It is then possible for:                                                                               
    o  The conditions of a reference purchasing organization to be used by    
       other purchasing organizations for the purpose of price determination  
    o  Several purchasing organizations to access the contracts of a certain  
       reference purchasing organization                                      
    You have to maintianed the vendor for all the Pur org for which you want to use
    the ref pur org will come inthe picture when you create the contract at global level means at ref pur org so all other pur org can use the same contract.
    So if you creating PO for your std pur org then you have to maintain the vendor and you can refer the contract from ref pur org

  • Not able to get data while executing in background for mb52

    Dear all,
    my requirement is i want to schedule the zreport for every 1 hour.but proble is when iam executing in fore ground iam able to get data.but when iam going to scheduling this iam not able to get data.
    my code is
    type-pools:slis.
    data zbudat type RANGE OF budat.
    data wab like line of zbudat.
    data zmatkl type RANGE OF MATKL.
    data waz like line of zMATKL.
    data zwerks type RANGE OF werks.
    data wax like line of zwerks.
    waz-sign = 'I'.
    waz-low = 'CRUDE'.
    waz-option = 'EQ'.
    append waz to zmatkl.
    clear waz.
    waz-sign = 'I'.
    waz-low = 'SGO'.
    waz-option = 'EQ'.
    append waz to zmatkl.
    clear waz.
    *waz-sign = 'I'.
    *waz-low = 'FINES'.
    *waz-option = 'EQ'.
    *append waz to zmatkl.
    *clear waz.
    *waz-sign = 'I'.
    *waz-low = 'LUMPS'.
    *waz-option = 'EQ'.
    *append waz to zmatkl.
    *clear waz.
    *waz-sign = 'I'.
    *waz-low = 'UFO'.
    *waz-option = 'EQ'.
    *append waz to zmatkl.
    wax-sign = 'I'.
    wax-low = 'BIMI'.
    wax-option = 'EQ'.
    append wax to zwerks.
    clear wax.
    wax-sign = 'I'.
    wax-low = 'BIPL'.
    wax-option = 'EQ'.
    append wax to zwerks.
    *waz-sign = 'I'.
    waz-low = 'C'.
    *waz-option = 'CP'.
    *append waz to zmatnr.
    *clear waz.
    *waz-sign = 'I'.
    waz-low = 'S'.
    *waz-option = 'CP'.
    *append waz to zmatnr.
    *clear waz.
    *waz-sign = 'I'.
    waz-low = 'UC'.
    *waz-option = 'CP'.
    *append waz to zmatnr.
    *waz-sign = 'I'.
    waz-low = 'F'.
    *waz-option = 'CP'.
    *append waz to zmatnr.
    *clear waz.
    *waz-sign = 'I'.
    waz-low = 'L'.
    *waz-option = 'CP'.
    *append waz to zmatnr.
    types:begin of w_tab,
           bwkey type werks_d,
           matnr type matnr,
            lgort type LGORT_D,
            budat type budat,
            labst type labst,
           endmenge type p decimals 3,
          end of w_tab.
          DATA : IT_TAB TYPE STANDARD TABLE OF W_TAB WITH HEADER LINE .
    FIELD-SYMBOLS: <gt_fieldcat> TYPE slis_fieldcat_alv,
    <gt_report_list> TYPE w_tab .
    field-symbols <lt_pay_data> type any table.
    *FIELD-SYMBOLS : <LT_DATA> LIKE LINE OF IT_TAB .
    FIELD-SYMBOLS : <LT_DATA> type any .   " i have chaged  it
    data lr_pay_data type ref to data.
    cl_salv_bs_runtime_info=>set( exporting display = abap_false
    metadata = abap_false
    data = abap_true ).
    ****SUBMIT ZQM_GR_BARGE_LOADING WITH S_date in zbudat with s_werks in zwerks with p_pend = ' ' AND RETURN .
    submit RM07MLBS  with MATKLA in zmatkl with werks in zwerks
    "with XVBST = 'X'
    using selection-SCREEN '1000' and return.
    try.
    cl_salv_bs_runtime_info=>get_data_ref( importing r_data = lr_pay_data ).
    assign lr_pay_data->* to <lt_pay_data>.
    catch cx_salv_bs_sc_runtime_info.
    message `Unable to retrieve ALV data` type 'E'.
    endtry.
    cl_salv_bs_runtime_info=>clear_all( ).
    data: obj_s type ref to ZKMINCO_MINESTOCKFROM_SAP_OUT.
    create OBJECT obj_s.
    data : output TYPE ZKMINMINESTOCKFROM_SAP1 ,
            record type ZKMINMINESTOCKFROM_SAP_REC_TAB ,
           wa_record like line of record.
    LOOP AT <lt_pay_data> ASSIGNING <LT_DATA>.
    MOVE-CORRESPONDING <LT_DATA> TO IT_TAB .
    APPEND IT_TAB .
    wa_record-STOCK_AS_ON_DATE = sy-datum .
    wa_record-STOCK_AS_ON_TIME = sy-uzeit .
    wa_record-PLANT_ID = it_tab-bwkey.
    wa_record-STORAGE_LOC_ID = it_tab-lgort .
    wa_record-MATERIAL = it_tab-matnr .
    wa_record-STOCK_QTY = it_tab-labst.
    append wa_record to record.
    clear wa_record.
    endloop.
    output-MINESTOCKFROM_SAP-record = record .
    CALL METHOD obj_s->MINESTOCKFROM_SAP_OUT
      EXPORTING
        output = output .
    commit work.
    Thanks in advance.

    Hi,
    I assume that in your case you have two program lets say ZFOREGROUND and ZBACKGROUND (Called inside zforeground using submit statement)
    zforeground has :
    1. a input field to browse excel sheet or some file at the selection screen, and
    2. button 'post all' to determine the background processing.
    Now your requirement is such that you want zbackground to get scheduled as background job when post all button is clicked.
    So, within the event AT USER-Command, check the sy-ucomm as that of post all button, if so write the following code to schedule the job:
    DATA: jobname LIKE tbtcjob-jobname.
    DATA :jobcount LIKE tbtcjob-jobcount,
    host LIKE msxxlist-host.
    DATA: BEGIN OF starttime.
    INCLUDE STRUCTURE tbtcstrt.
    DATA: END OF starttime.
    DATA: starttimeimmediate LIKE btch0000-char1.
    DATA: gv_job_dt TYPE sy-datum,
    gv_job_tm TYPE sy-uzeit.
    jobname = 'EXCLUSION_LISTING'.
    gv_job_dt = sy-datum.
    gv_job_tm = sy-uzeit.
    Job open
    CALL FUNCTION 'JOB_OPEN'
    EXPORTING
    delanfrep = ' '
    jobgroup = ' '
    jobname = jobname
    sdlstrtdt = sy-datum
    sdlstrttm = sy-uzeit
    IMPORTING
    jobcount = jobcount
    EXCEPTIONS
    cant_create_job = 01
    invalid_job_data = 02
    jobname_missing = 03.
    IF sy-subrc NE 0.
    "error processing
    ENDIF.
    Insert process into job
    SUBMIT ZBACKGROUND AND RETURN
    WITH p_file1 = gv_file_cust_exc "<----
    Parameters which you want to pass to report zbackground from the report
    WITH p_file2 = gv_file_win_deal "------zforeground
    USER sy-uname
    VIA JOB jobname
    NUMBER jobcount.
    IF sy-subrc ne 0.
    "error processing
    ENDIF.
    Close job
    starttime-sdlstrtdt = gv_job_dt.
    starttime-sdlstrttm = gv_job_tm.
    CALL FUNCTION 'JOB_CLOSE'
    EXPORTING
    event_id = starttime-eventid
    event_param = starttime-eventparm
    event_periodic = starttime-periodic
    jobcount = jobcount
    jobname = jobname
    laststrtdt = starttime-laststrtdt
    laststrttm = starttime-laststrttm
    prddays = 1
    prdhours = 0
    prdmins = 0
    prdmonths = 0
    prdweeks = 0
    sdlstrtdt = starttime-sdlstrtdt
    sdlstrttm = starttime-sdlstrttm
    strtimmed = starttimeimmediate
    targetsystem = host
    EXCEPTIONS
    cant_start_immediate = 01
    invalid_startdate = 02
    jobname_missing = 03
    job_close_failed = 04
    job_nosteps = 05
    job_notex = 06
    lock_failed = 07
    OTHERS = 99.
    IF sy-subrc EQ 0.
    WRITE:/1 'JOB' COLOR 3,
    jobname COLOR COL_GROUP,
    'Scheduled in Background' COLOR 3. "error processing
    gv_time = starttime-sdlstrttm.
    gv_date = starttime-sdlstrtdt.
    ENDIF.
    Above code will schedule the report zbackground in background.
    Note:
    the program schduled in background will not be able to access any data present on your presentation server. data should be provided either by the program schhedulling it in foreground or it has to be thr in application server.
    Regards,
    Ravi

  • Not able to query data from View

    Hi,
    I am not able to fetch data from views even while running simple select statements. I am using SQL Developer Version 3.0.04,
    Same query is fetching data on other computers running SQL Developer or Toad.
    Has anyone faced this issue??

    Is that the first version ever you installed? You unzipped in a clean directory, right?
    What OS/JDK/DB versions?
    So do you get an error or what?
    K.

  • Not able insert ,query data from forms

    hi,
    I am not able to insert data or query data from forms(10g devsuite).getting error frm-40505,frm 40508 .i am able to insert and select record from sql plus.the block ihave created is control block .it is connected to the table using the properties.
    should i do anything to insert record.please help

    the block ihave created is control block .it is connected to the table using the properties.A Control Block, by definition, is a non-database block. This means the block is not directly connected to a table so you have to manually display data in the block and any DML you want to perform on data in this block you must do manually as well.
    There are four database objects you can base your database block on; 1) a Table, 2) a View, 3) From Clause Query (basically an In-line View), and 4) a database stored procedure. I recommend you use one of these four methods rather than manually display your data.
    Craig...

  • Web Template is not able to fetch data from Data Provider

    hi friends,
               i have created a reporting agent for a particular query and given all the necessary parameters, defined the variants and activated this and created a scheduling package to this ,assigned my query to the scheduling package
               later in the web template,in the web item tab i maintained  the read mode as precalculated web template and the final report on the web is saying web tempalte is not able to get the data from the data provider  ,
    am i missing any where...
            i look forward to your help ,
    regards,
    sasidhar gunturu

    Hi,
    use the correct link to call the report.
    you can check the links : Re: Concept Of Precalculated Template
    https://www.sdn.sap.com/irj/sdn/developerareas/bi?rid=/webcontent/uuid/a8cd1f71-0a01-0010-4783-f119b6132d25 [original link is broken]
    Regards
    Happy Tony

  • Not able to get calls from landlines in my E51

    All of a sudden I am not able to recieve calls from landlines, the caller gets long ring or proper ring tone giving impression that I am not picking up

    I had in addition to incoming calls from landline I had other unique issues
    1. Mobile use to get reset every time when I try accessing to internet
    2. I was not able to upgrade the sw since it use to get reset and use to get repeated message to re initiate
    Finally I rest the phone to factory setting and
    every problem got resolved and my phone is back to life as it was when I bought it

  • Not able to get data in production client in BEX query

    Hi Experts,
                       I have an SD related query which is working fine in development.
    in production while i run the query iam not getting data for three fields "ship to party" , "Bill to party" and "sold to party.
    I am able to see the data at the cube level but it is not reflecting in the query. Transportation of this query also
    did not throw any errors. Please provide a solution.
    Regards,
    susheeth.
    Edited by: Susheeth on Aug 4, 2011 1:26 PM

    Hi,
    Check if the characteristics used in query are direct objects from cube or navigation attributes of any other characteristics. In case of navigation attributes you need to have master data maintained.
    And as mentioned by Vamsi, check the text data maintained for 0CUSTOMER. And for checking data you can mark Key and Text option.
    Regards,
    Durgesh.

  • Not able to retrieve data from database through servlet

    Hi friends,
    I am trying to open a excel sheet through servlet. In this servlet i am retriving data from mssql database.I am not getting any error but no data is retrived
    i m also pasting the code here
    // Decompiled by Jad v1.5.8f. Copyright 2001 Pavel Kouznetsov.
    // Jad home page: http://www.kpdus.com/jad.html
    // Decompiler options: packimports(3)
    // Source File Name:   EmployeeData.java
    import java.io.*;
    import java.sql.*;
    import javax.sql.*;
    import javax.servlet.ServletException;
    import javax.servlet.http.*;
    public class EmployeeData extends HttpServlet
        public EmployeeData()
        public void service(HttpServletRequest httpservletrequest, HttpServletResponse httpservletresponse)
            throws ServletException, IOException
            httpservletresponse.setContentType("text/html");
            httpservletresponse.setHeader("Content-Type", "application/excel");
            httpservletresponse.setHeader("Content-Disposition", "filename=reports.xls");
            PrintWriter printwriter = httpservletresponse.getWriter();
            try
                javax.servlet.http.HttpSession httpsession = httpservletrequest.getSession(true);
                int i = 0;
             /*   Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver").newInstance();
                Connection connection = DriverManager.getConnection("jdbc:microsoft:sqlserver://localhost:3413;DatabaseName=newreportsodbc", "reportuser", "cisco");*/
                String url="jdbc:odbc:newreportsodbc";
                Class.forName("sun.jdbc.odbc.JdbcOdbcDriver").newInstance();
                Connection connection = DriverManager.getConnection("jdbc:odbc:newreportsodbc","reportuser","cisco");
                Statement statement = connection.createStatement();
                printwriter.println("<b><center><u> Search Results </u></center></b>");
                printwriter.print("<table><tr><th color=brown background-color=#fff000>  No.  </th>");
                printwriter.print("<th> DateTime      </th></tr></table>");
           ResultSet resultset = statement.executeQuery("SELECT * FROM t_Call_Type_Half_Hour");
                boolean flag;
                for(flag = false; resultset.next(); flag = true)
                    i++;
                    SerialNo = resultset.getString(2);
                    printwriter.print((new StringBuilder()).append("<table><tr><td> ").append(i).append("</td>").toString());
                    printwriter.print((new StringBuilder()).append("<td> ").append(SerialNo).append("</td></tr></table>").toString());
                if(!flag)
                    printwriter.println("<h1> No records selected </h1>");
            catch(Exception exception)
                System.out.println((new StringBuilder()).append("SQLException: ").append(exception).toString());
        static String empid1;
        static String empid;
        static String SerialNo;
        static String designation;
    }thanks in advance. i just feel there is something to be done with connection string.

    post the table format in SQL

  • Urg: Not able to import data from DB in OBIEE 11g : Connection has failed.

    Hi Team
    Recently while working in OBIEE 11g , I was trying to import tables from the data-base but I am getting an error " Connection has failed " .
    I have put the tnsora file in the network admin folder and the
    C:\OracleBIHome\Network\admin
    \OracleBI1\network\admin (Example: C:\OBI\Oracle_BI1\network\admin)
    \oracle_common\network\admin (Example: C:\OBI\oracle_common\network\admin)
    and have set the TNS_ADMIN variable in the User.cmd path  with the above path .
    But it is still not working . I have tried all the options but its still not working .
    Any help is appreciated.
    Regards
    R

    Is it Compulsory to give Schema and Work Schema while creating the Physical Schema in Oracle Data server?
    This is mandatory to have a schema and a work schema here.
    The schema and work schema could be the same user as the user who is connected to the dataserver!

  • Not able to get file from application server with read dataset

    Hi,
    Firstly i download a file from application server from read data set and then i sent this file as attachment. But problem is that i am able to send .jpg .bmp file but i am not able to send .pdf or .doc file so what can i do for that. ?
    My code is like below...
      DATA : PATH TYPE STRING.
      DATA: E_FILE LIKE RLGRAP-FILENAME.
      CONCATENATE '/tmp/'  NAME_WITH_EXT INTO E_FILE SEPARATED BY SPACE.
      CONDENSE E_FILE NO-GAPS.
      IF EXTENSION = 'TXT'.
        OPEN DATASET E_FILE FOR INPUT IN TEXT MODE ENCODING DEFAULT WITH WINDOWS LINEFEED . " MESSAGE MSG.
        IF SY-SUBRC <> 0.
       WRITE: SY-SUBRC, MSG, ' LIKE ', C_FNAME.
        ELSE.
          WHILE SY-SUBRC = 0.
            READ DATASET E_FILE INTO WA_C.
            IF SY-SUBRC <> 0.
              EXIT.
            ENDIF.
            APPEND WA_C TO IT_C.
          ENDWHILE.
          CLOSE DATASET E_FILE.
        ENDIF.
      ELSE.
        OPEN DATASET E_FILE FOR INPUT IN BINARY MODE. " ENCODING DEFAULT. "    INPUT IN  BINARY MODE . " TEXT MODE ENCODING   NON-UNICODE.
        IF SY-SUBRC = 0.
          DO .
            READ DATASET E_FILE INTO GS_PDF_TAB.
            IF SY-SUBRC = 0.
              APPEND GS_PDF_TAB TO GT_PDF_TAB.
            ELSE.
              EXIT.
            ENDIF.
          ENDDO.
          CLOSE DATASET E_FILE.
        ENDIF.
      ENDIF.
    Regards,
    Gurprit Bhatia

    delete this line DEFAULT WITH WINDOWS LINEFEED  and check this..

  • I am not able to fetch data from r3

    Hi all,
    we have schduled process chain for transaction data and master data.when check the process chain status is green.
    but when not a single record is coming for any of the process chain.when i check the step by step analysis.
    gray RFC to source system successful ?
    red  Does selectable data exist in the source system?
    red  Data selection successfully started ?
    red  Data selection successfully finished ?
    gray RFC to Warehouse successful ?
    gray Processing successfully finished?
    gray All reported data packets received?
    gray All data packets complete ?
    remaining things are in green status.
    for every thing it is fetching zero records.i have already checked rfc connection and all the update and tranfer rules.every thing is fine.
    can anybody help me out...
    regards,
    viren.

    Hi,
       well,,I have after lot of replies,.. so let me see..
       I understand this is LO extraction. Also, since your load is running in Process chain, I "assume" these are delta loads.( right?). You also say there are records in the related tables.
      So, I feel, foll. are the things that you may need to check.
       1. Did you check in RSA7 for delta records?
       2. Did you check if the delta jobs are running fine to collect the data from the application tables?
       3. Did you correctly do the settings for delta for your extract structure?(direct delta, queued delta.. etc)
       4. These are the basic settings that will ensure that the delta records are collected in the right way!!!
        Once all the above listed are fine, then you should be able to see some data collected in your delta Q( assuming ur loads are delta loads)
        Let us know!!!
    Thanks,
    Raj

  • Not able to get data in the F4 help for disrtibution channel in ic web

    Hi Experts,
    Need some help.
    1. I have a ic web screen for complaint. Here in the header(Form view) there is a F4 for Distribution channel. The item list which is a table view, which contains one column . This column contains checkboxes.
    Issue:
    scenario 1: If in the item, if there are two checkboxes checked, and then if i click on the F4 for Distr channel of header then in the F4 its giving one record. its working fine.
    scenario 2: But If in the item, if there are more then two checkboxes checked, and then if i click on the F4 for Distr channel of header then in the F4 its not giving any record. How to correct this???
    Analysis:
    I found that in the method GET_HELP_VALUES of class CL_CRM_IC_F4HELP, there is a statement as below.
    infields = request->get_form_field( 'InFields' )."#EC NOTEXT
    For scenario 1, the above statement returns  the input fields with some values...
    For scenario 2: the above statement returns nothing. Its completely blank.As a result its not showing any record in F4.
    I dont understand why it is happening. Could any one please help in this regard.
    version: CRM 5.0 .  Standard F4 help ( ic_base-> f4_help)
    Thanks
    Sudhansu

    Hi,
    Check if the characteristics used in query are direct objects from cube or navigation attributes of any other characteristics. In case of navigation attributes you need to have master data maintained.
    And as mentioned by Vamsi, check the text data maintained for 0CUSTOMER. And for checking data you can mark Key and Text option.
    Regards,
    Durgesh.

  • Getting Data from 2 different table and saving it in the third table

    Hi,
    My question is i have 2 different table where the data is stored. And Nothing is at Level0 and i don't need it.
    Table A will be at Level1, this is a scroll and depending on this value the level2 grid will be populated with the values.
    Say for example Table A is groups; data e.g., Cars, MotorBike etc
    Table B will have the data for Group Cars: Holden, Toyota, Honda etc., MotorBike: Honda, Suzuki, Yamaha etc.,
    Now lets say there are 3 divisions in the company AA , BB
    Division AA has been allocated group Cars only
    Division BB has been Allocated Both Cars and MotorBikes.
    To do this i have used a query view where depending on the Division i choose the group and then i get the required fileds.
    Now my Problem is that i need to save this data in table C but on the ad-hoc basis can't write a query with in the code to do that.
    tried using work record on the scroll but i cant do that as well. Any Suggestions?
    One more thing when the Page open this data should be pre-populated on the page depending on the division, the user will not be able to select anything from the prompt.
    Edited by: 952330 on Aug 12, 2012 8:32 PM

    I hope I can clarify:
    For our purposes here:
    Table 1 = "Step 2 - Product Sizes"
    Table 2 = "Option id Master"
    Table 3 = "Export - Product Info"
    Table 1:
    The user would enter values for "productcode," "Horz," and "Vert"
    "Size" would auto fill based on values in Horiz and Vert (I have this taken care of already).
    Table 2: This is a completely static table that I want to search against. - Data from other tables in the doc does not alter or change the data in this doc.
    We just want to look at table 2. Find the existing value in "table 2 : size" column that matches the "table 1 : size" column  and then pull the "optionids" and "productprice" from that row.
    Can the value from "Table 1 : Size" be used as a search term in "Table 2 : Size?"
    Table 3: The user does not enter any values on this table. 
    "productcode" is pulled from table 1 - "Table 1 :: A5" = "Table 3 :: A5"
    "optionids" and "productprice" are pulled from Table 2 columns "D" and "E" - however we do not know which Table 2 row it is pulling from until we enter data in Table 1.
    As I'm writing this I'm realizing that
    A. this is probably really confusing to you.
    B. this may be impossible inside of numbers.
    If you have some other method that would facilitate the same out come but be structured differently please let me know.
    --- maybe to help you understand further what I am doing here is my current workflow:
    I record the size of a piece of art.
    Then I manually go to my "Option id Master" and find the same size.
    I then copy the corresponding "optionids" and "productprice" cells. (these options control the prices displayed on my website)
    I got to my "Export - Product Info" table and paste the values in the corresponding cells.
    I was hoping to automate this as it takes a long time when you have hundreds of products.
    Thanks for the help!

  • GETTING DATA FROM ODS BY USING A FUNCTION MODULE..

    Hi Frnzs,
    Here is my issue..Plz go thru it..
    I  have a function module (YFSF_ICR_GET_EXCHG_RATE_ODS).
    the function performs the current logic without any changes,
    that is reading SPOT rates for actuals (the planning cycle is empty) or S rates
    for forecasts based on the planning cycle. Nothing needs to be changed here
    concultion : Based on flag I_ICR ni , we have to read new exchange rates ( From ODS)
    the fucntion module code is here
    FUNCTION yfsf_icr_get_exchg_rate_ods.
    ""Local interface:
    *"  IMPORTING
    *"     REFERENCE(I_PLANCYC) TYPE  /BIC/OIYPLANCYC OPTIONAL
    *"     REFERENCE(I_SALESORG) TYPE  /BI0/OISALESORG OPTIONAL
    *"     REFERENCE(I_IC) TYPE  /BIC/OIYINVCURR
    *"     REFERENCE(I_RC) TYPE  /BIC/OIYREPCURR
    *"     REFERENCE(I_FISCPER) TYPE  /BI0/OIFISCPER
    *"  EXPORTING
    *"     REFERENCE(E_EXG) TYPE  /BI0/OIEXCHG_RATE
    *"  EXCEPTIONS
    *"      NO_RATE_FOUND
      DATA: l_s_exg TYPE /bic/ayfsfexg00,
            l_t_exg TYPE /bic/ayfsfexg00 OCCURS 0,
            l_year TYPE /bi0/oifiscyear.
      IF i_plancyc IS INITIAL.
    Actuals
        FREE l_t_exg.
        SELECT *
          INTO CORRESPONDING FIELDS OF TABLE l_t_exg
          FROM /bic/ayfsfexg00
          WHERE fiscper <= i_fiscper
            AND fiscvarnt = 'JJ'
            AND /bic/yrepcurr = i_rc
            AND /bic/yinvcurr = i_ic
            AND /bic/yplancyc = ''
            AND /bic/yexchtype = 'SPOT'
         ORDER BY fiscper DESCENDING.
        IF sy-subrc <> 0.
          RAISE no_rate_found.
        ELSE.
          READ TABLE l_t_exg INTO l_s_exg INDEX 1.
          e_exg = l_s_exg-exchg_rate.
        ENDIF.
      ELSE.
    Forecasts
        l_year = i_fiscper+0(4).
        SELECT SINGLE *
          INTO l_s_exg
          FROM /bic/ayfsfexg00
          WHERE fiscvarnt = 'JJ'
            AND fiscyear = l_year
            AND salesorg = i_salesorg
            AND /bic/yrepcurr = i_rc
            AND /bic/yinvcurr = i_ic
           AND /bic/yplancyc = i_plancyc
            AND /bic/yplancyc = ''
            AND /bic/yexchtype = 'S'
            AND exchg_rate GE '0.0000001'.
        IF sy-subrc <> 0.
          RAISE no_rate_found.
        ELSE.
          e_exg = l_s_exg-exchg_rate.
        ENDIF.
      ENDIF.
    ENDFUNCTION.
    ok
    now my requirement is that I need to enhance the Function module for reading exchange rates.
    for this i got the following information:
    - It requires an additional flag I_ICR for instance that can be empty or 'X'
    for instance
       - If the flag is empty, the function performs the current logic without any changes,
    that is reading SPOT rates for actuals (the planning cycle is empty) or S rates
    for forecasts based on the planning cycle. Nothing needs to be changed here
       - If the flag is 'X', the function reads a new exchange rate type, let's call
    it "ICR". As stated in the requirements and functional specs, these exchange rates
    are the Reuter rates valid for a complete year. These are fixed rates so no planning
    cycle. The users will enter records in the format (year, reporting currency, invoicing
    currency, exchange rate). If the input flag I_ICR is X, the function determines
    the year based on the input period, then, based on the year it selects on the same
    table as for the other exchange rates with a restriction on exchange rate type "ICR",
    year, from and to currency and return the exchange rate
    Update rules. There are two:
       - To the consolidation ODS. No changes are required there; the function has to
    read either S or SPOT rates (I_ICR flag is empty)
       - From the consolidation ODS to the cube. As stated in my previous email, the
    from currency is the one available in the data package. The to currency is determined by reading the sales organization master data (reporting currency attribute) based on the inter-company sales organization (also available in the incoming record). It then calls the function module above with the parameter I_ICR set to 'X' so it reads the Reuter rates.
    I guess i need to create another function module and can be used.
    Observation
    ODS table fields.
    - FISCPER
    - FISCVARNT JJ
    - FISCYEAR 2006
    - /BIC/YREPCURR EUR
    - /BIC/YINVCURR JPY
    - SALESORG 0010
    - /BIC/YMRC 3090
    - /BIC/YPLANCYC
    - /BIC/YEXCHTYPE S
    - - RECORDMODE
    Thanx in advance..

    Haii
    I have given below the basic functionality..u can go throught the api and start working..
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.DocumentBuilderFactory;
    import java.io.File;
    import org.w3c.dom.Document;
    public class OrderProcessor {
       public static void main (String args[]) {
          File docFile = new File("orders.xml");
          Document doc = null;     
          try {
             DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
             DocumentBuilder db = dbf.newDocumentBuilder();
             doc = db.parse(docFile);
           Element root = doc.getDocumentElement();
          System.out.println("The root element is " + root.getNodeName());
         NodeList children = root.getChildNodes();
       System.out.println("There are "+children.getLength()
                                      +" nodes in this document.");
          } catch (Exception e) {
             System.out.print("Problem parsing the file.");
    }regards
    Shanu

Maybe you are looking for

  • TS1277 my itunes wont open beacause of a Data Execution Prevention harming my pc

    My itunes wont open because of a Data Execution Prevention harming my PC. What can i do?

  • Parent swf call function in Child swf not working

    Hi all, I'm having a problem with this and I just can't figure it out :( (I've been trying different things and staring at it for hours and I'm losing my mind...) So I have a Parent swf that loads a Child swf (this goes without any problems), but I w

  • X99 Sli Plus Blue bios won't boot after update.

    Hello i tried to update the "blue bios" to the most recent Bios version.Following all the appropriate steps i updated the BioS and got the appropriate message (something like that,i can't remember the exact message) "Update was succesful your system

  • Xbmc-standalone won't start after update

    I updated and now xbmc service won't start. When i run startx on my admin user, I can get xbmc to start up, but it won't start as 'xbmc' anymore. When I `su xbmc` and try to run `startx` or `xbmc-standalone` I get the same error. Not sure what's goin

  • Will Software Upgrade Delete every applicatio​n

    Please will software upgrade delete applications have already got in my device? and what is the benefits of  software upgrade? and if i have done the upgrade how do i get all my  applications back? please someone should help kaysteady