ODS has a value 0.500,but report shows 1.000

Hi all,
We have a field GR qty which is a key figure. When i check the value in data target its value is 0.500, but i execute a report,i see a value os 1.000
Can any one tel me if thr are any setting i have to make to correct this error.
Thanq all.
Regards,
Praveen

Hi all,
Thanks for the replies.
GR QTY was giving the UOM EA(each).
Ex : 1.00 EA or 0.500 EA
So i used NODIM(GR QTY) in query designer. This solved my problem. i got 0.500/0.342 (wat ever present in target)  in the output. But my client says he wants the units also to be displayed in the query output.
Pls let me know the possibilities.
Regards,
Praveen

Similar Messages

  • FGI0-P&L REPORT-CLIENT  MADE LOSS(NEGATIVE) BUT REPORT SHOW POSITIVE(GAIN)

    I  need to make changes to a report with a customized form and report type FAGLFLEXT .
    I need the value of the retained profit/loss  for the year to show a negative as the client made a loss for the year
    The role where the retained profit or loss is stated is showing a positive value(gain) instead of a negative Value(loss)  .
    Please how can i make the changes required.
    Thank You

    Check your custom report with the standard report of "S_pl0_86000028" with the financial statement version that you are using for your custom form..
    Look for accounts that are appearing in "Mot assigned node" if any. If you find some NOn assigned accounts, then assign them to correct nodes and execute the report.
    More over check for wrongly assigned GL accounts in teh FSV P&l Items to Bal. Sheet and Vice Versa,.

  • Music has been removed from iTunes but still shows on iPad. It does not give me the option to hold and swipe to delete from my iPad.

    I have removed all unwanted music from my itunes library and then synced my ipad but the music is still there?  I tried to delete off the ipad by holding the song down to get the delete but it the delete option isn't there.  Nothing happens.  How can I remove the unwanted music from the ipad.

    If I turn it off can I still sync new music that I buy and want on all devices?

  • Column has values in RSA3 but comes blank in PSA

    Hi All,
    I have added some code for datasource 0REFX_4 and extracting data into an ODS. My issue is that the column 0RECONTRACT has values in RSA3 but comes blank in PSA/ODS.
    Another funny thing is that when I do selection with company code in infopackage and extract, the column 0RECONTRACT gets filled!! It doesn't get filled only when i extarct without selection. Can any of you help me resolve this?
    -Narayan

    Narayan, so strange ! If I undertand, In RSA3 with or without selection, the column 0RECONTRACT gets filled. The problem is from BW (Infopackage). You can make a test:
    In you code to select the value to 0RECONTRACT (I don´t know the R/3 field), you put a "loop", in the start of exit function. Start Infopackage and goes to R/3 via SM50 transaction em DEBUG exit.
    Loop like this:
    v_stop = 1.
    while v_stop = 1.
      v_stop = 1.
    endwhile.
    Look the values from table C_T_DATA. Maybe the field that you use to select 0RECONTRACT is blank, when you start the load from BW. I´ve tried to find some SAP Notes, but nothing.
    Hugs,
    Marcelo

  • In report value are comming but itz a old one but we required new one

    hello expert ,
                    I  am developing a report related to payroll , one field desiznation of employee field value are comming but itz a old one . ie if any employee got promotion , it dosn't showing updated field . i checked pa30 for this employee . there is two designation one is old one and another is new one . so itz pic the value old one
    Thanks
    Aditya

    Hi,
    When you are capturing the designation from the table , you should always check for begda and endda in the table , Also if you pick the record where begda = '99991231' then , I think you can able to pickup the latest record having current designation details
    Hope this will help you.
    Rani

  • Print link on report shows 'no data found' when LOV has not been used

    Hi all,
    I have a simple standard report that queries data based on the value in a Select List. This Select List allows users to pick a year for the report. The LOV has a default of TO_CHAR(SYSDATE,'YYYY').
    If I open the page using the associated Tab everything wotks OK. However, if I open the page via a button on my home page, the prink links fails:
    The page opens OK, the select list defaults OK and the report shows the correct data. However, if I click on the 'Download as CSV' or 'Print' links I get 'no data found'.
    If I update the LOV to 2010 everything works. If I set it back to 2009 evenrything works. I just cant get it to work when I open the page.
    I have tried adding computations to get this to work, but this does not seem to help.
    Any ideas?
    Thanks,
    Martin

    Hi,
    It would depend on what has been added, if anything, to the redirect. The redirect should just function as though you had typed in a URL into the address bar and pressed Enter. The page doesn't get submitted, so any data entered onto the page itself is, unless it is already in session, lost. A button, however, should submit the page and Apex will store all values in the session. So, if the value you need for the LOV is from the previous page, then this is the preferred method - but, note, that the redirect can also store values provided the page item name and the value is included in the redirect's URL string
    Andy

  • HTMLDB_APPLICATION.G_F01 has wrong value!

    HTMLDB_APPLICATION.G_F01 has wrong value!
    Hello again,
    I have a search page in my app (here the user defines the search criteria) P1.
    The page branches to P130, where the result is shown. This second page contains a region of type 'SQL Query (PL/SQL Function Body Returning SQL Query)'. The code for this dynamic query is 231 lines of code, so I want to spare you scrolling through it here . What it basically does is generating SQL QRY's such as the following:
    select     distinct(sq.SAMPLE_ID) XXX,
    'ID: '||sq.SAMPLE_ID||'
    ' ||'Type: '||sq.SAMPLE_TYPE||'
    ' ||'Collection Date: '||sq.COLLECTION_DATE SAMPLE_INFO,
    'Aliquots (T/A): '||to_char(sq.ALIQUOTS_TOTAL)|| '/' ||to_char(sq.ALIQUOTS_AVAILABLE)||'
    ' ||'Volume (T/A): '||to_char(sq.VOLUME_TOTAL,'990D00')|| '/' ||to_char(sq.VOLUME_AVAILABLE,'990D00') AVAILABILITY,
    'Age: '||sq.PATIENT_AGE||'
    ' ||'Gender: '||sq.PATIENT_SEX||'
    ' ||'Bloodtype: '||sq.BLOOD_TYPE||'
    ' PATIENT_INFO,
    DML_SERVICE.get_Diagnoses(sq.SAMPLE_ID) DIAGNOSES,
    DML_SERVICE.get_Medications(sq.SAMPLE_ID) MEDICATIONS,
    DML_SERVICE.get_Interferences(sq.SAMPLE_ID) INTERFERENCES,
    DML_SERVICE.get_LabData(sq.SAMPLE_ID) LABDATA,
    decode(to_char(sq.ALIQUOTS_AVAILABLE), '0', null, htmldb_item.text(1, '1', 1, 2)) ORDER_QTY,
    decode(to_char(sq.ALIQUOTS_AVAILABLE), '0', null, htmldb_item.checkbox(2,sq.SAMPLE_ID)) ORDER_ME
    from SEARCH_V01 sq
    where sq.DIAGNOSIS = 'D-Dimer'
    order by 1 desc
    The DML_SERVICE functions just return a string(Varchar2). At the right side of the report I have two columns, one with a textfield (ORDER_QTY, default: 1) and one with a checkbox (ORDER_ME) for each line.
    For each line where the checkbox is checked, a process (On Submit - after Comp and Val) places the order for the requested quantity (this is done by inserting an Order ID into the ALIQUOTS table -> see bold update statement below).
    The process follows:
    declare
    alq_qty number;
    alq_id number;
    cnt number;
    begin
    cnt := 0;
    for i in 1..HTMLDB_APPLICATION.G_F02.count
    loop
    select count(*) -- set alq_qty to number of available alq's
    into alq_qty
    from ALIQUOTS a
    where a.SAMPLE_ID = HTMLDB_APPLICATION.G_F02(i)
    and a.ORDER_ID = 0;
    insert into D_DEBUG (ID, DD) values (1, 'wanted: ' || HTMLDB_APPLICATION.G_F01(i) || ' available: ' || alq_qty); -- REMOVE!!!
    if alq_qty > to_number(HTMLDB_APPLICATION.G_F01(i)) then -- if there are enough alq's
    alq_qty := to_number(HTMLDB_APPLICATION.G_F01(i)); -- set alq_qty to number of ordered alq's
    end if;
    for n in 1..alq_qty
    loop
    select min(ID)
    into alq_id
    from ALIQUOTS
    where sample_id = HTMLDB_APPLICATION.G_F02(i)
    and order_id = 0;
    insert into D_DEBUG (ID, DD) values (1, 'alq_id: '||alq_id); -- REMOVE!!!
    update ALIQUOTS
    set order_id = :P130_SELECT_ORDER
    where id = alq_id;
    cnt := cnt + 1;
    end loop;
    dml_service.upd_sample_record(HTMLDB_APPLICATION.G_F02(i)); -- refresh data in SAMPLE table
    end loop;
    :P130_MSG := 'Assigned '||cnt||' aliquots to order: '||:P130_SELECT_ORDER;
    end;
    Now my problem is that this process does what it should, sometimes. When I enter 6 in one row and check the checkbox and enter 4 in another row and check that checkbox and then press SUBMIT, 10 aliquots are assigned to my order.
    Sometimes.... the other times the process just orders 2 aliquots, one of each line and disregards the number entered in the textfield.
    Or so it may seem: I added some lines to write debug info into D_DEBUG (see above.) From those entries you can assume that the content of HTMLDB_APPLICATION.G_F01(i) is in fact '1' when the process does its work. So I think the problem lies somewhere in the creation of htmldb_item.text(), (I went through the API of that htmldb_item again and again...)
    Also: I can reproduce / recreate this error. It's totally weird: for some rows it (always) works and for some it (always) doesn't !!!
    So, any help, any suggestion is really appreciated (I'm currently working on bringing the crucial part of this to marvel.oracle.com)
    -David-
    [Edited by: sleuniss on Jul 15, 2004 12:18 PM]
    Changed subject line.

    Now the subjectline is right, but the indentation is gone.... :-(
    again the SQL query:
    select     distinct(sq.SAMPLE_ID) XXX,
               'ID: '||sq.SAMPLE_ID||'
    ' ||'Type: '||sq.SAMPLE_TYPE||'
    ' ||'Collection Date: '||sq.COLLECTION_DATE SAMPLE_INFO,
               'Aliquots (T/A): '||to_char(sq.ALIQUOTS_TOTAL)|| '/' ||to_char(sq.ALIQUOTS_AVAILABLE)||'
    ' ||'Volume (T/A): '||to_char(sq.VOLUME_TOTAL,'990D00')|| '/' ||to_char(sq.VOLUME_AVAILABLE,'990D00') AVAILABILITY,
               'Age: '||sq.PATIENT_AGE||'
    ' ||'Gender: '||sq.PATIENT_SEX||'
    ' ||'Bloodtype: '||sq.BLOOD_TYPE||'
    ' PATIENT_INFO,
               DML_SERVICE.get_Diagnoses(sq.SAMPLE_ID) DIAGNOSES,
               DML_SERVICE.get_Medications(sq.SAMPLE_ID) MEDICATIONS,
               DML_SERVICE.get_Interferences(sq.SAMPLE_ID) INTERFERENCES,
               DML_SERVICE.get_LabData(sq.SAMPLE_ID) LABDATA,
               decode(to_char(sq.ALIQUOTS_AVAILABLE), '0', null, htmldb_item.text(1, '1', 1, 2)) ORDER_QTY,
               decode(to_char(sq.ALIQUOTS_AVAILABLE), '0', null, htmldb_item.checkbox(2,sq.SAMPLE_ID)) ORDER_ME
    from     SEARCH_V01 sq
    where  sq.DIAGNOSIS = 'D-Dimer'
    order    by 1 desc
    and the process:
    declare
       alq_qty number;
       alq_id number;
       cnt number;
    begin
       cnt := 0;
       for i in 1..HTMLDB_APPLICATION.G_F02.count
       loop
          select count(*) -- set alq_qty to number of available alq's
           into alq_qty
           from ALIQUOTS a
           where a.SAMPLE_ID = HTMLDB_APPLICATION.G_F02(i)
           and a.ORDER_ID = 0;
    insert into D_DEBUG (ID, DD) values (1, 'wanted: ' || HTMLDB_APPLICATION.G_F01(i) || ' available: ' || alq_qty); -- REMOVE!!!
          if alq_qty > to_number(HTMLDB_APPLICATION.G_F01(i)) then -- if there are enough alq's
             alq_qty := to_number(HTMLDB_APPLICATION.G_F01(i)); -- set alq_qty to number of ordered alq's
          end if;
          for n in 1..alq_qty
          loop
             select min(ID)
              into alq_id
              from ALIQUOTS
              where sample_id = HTMLDB_APPLICATION.G_F02(i)
              and order_id = 0;
    insert into D_DEBUG (ID, DD) values (1, 'alq_id: '||alq_id); -- REMOVE!!!
             update ALIQUOTS
              set order_id = :P130_SELECT_ORDER
              where id = alq_id;
             cnt := cnt + 1;
          end loop;
          dml_service.upd_sample_record(HTMLDB_APPLICATION.G_F02(i)); -- refresh data in SAMPLE table
       end loop;
       :P130_MSG := 'Assigned '||cnt||' aliquots to order: '||:P130_SELECT_ORDER;
    end;
    -David-

  • Plan next yrs values not appearing in Report Painter

    Hi,
    In our one of Z report (developed thrugh SAP std Report Painter functionality), Plan next yrs column does not shows any value in output of report.
    Basically this column should show next years plan values for WBS Element cost elementwise.
    When I double click on any of the cell of this column, I am getting output with 0 records but selection criteria is appearing as Period 7 and Fiscal year as 2999 on output screen on the top. So I am thinking that output is not appearing because of wrong selection criteria field values/characteristics values.
    Just wanted to know from you all guys, what things should I check in Report Painter to resolve this issue? Also what are the causes of this issue?
    Could you please tell me the remedial procedure and transaction code to resolve this kind of issue?
    Edited by: SWAPNIL PRAMOD KHARUL on Jan 30, 2011 12:17 PM
    Edited by: SWAPNIL PRAMOD KHARUL on Jan 31, 2011 9:29 AM

    Hi,
    Thanks for reply.
    Characteristics are:
    Value Type: ZCJUL01
    Value Type:10
    Version:6-VERP
    Period:  7
    Valuation:0
    Object ind.:1  to 5
    Object ind.:P
    Fiscal Year: Z-GJHNJ Next Year  to 2999
    I think it looks like wrong Period selection characteristics value.
    Please suggest/guide what has to be done?
    Edited by: SWAPNIL PRAMOD KHARUL on Feb 3, 2011 9:19 AM
    Edited by: SWAPNIL PRAMOD KHARUL on Feb 3, 2011 9:21 AM

  • Has no value definition - Session INIT Block.

    Hi,
    I have a Session initialization block for Fetching Departments from a Security table for the user logging in.
    One user can have Multiple Departments assigned to him, so i enabled Row-wise initialization in INIT Block.
    But when a user not assigned to any departments logs in, i am getting 'Session variable has no value definition' error in all the reports. But i should instead pass a default value when SQL in INIT Block is not returning anything. Like '0'.
    How can i do this? please respond.
    Thanks
    Swami

    Hi Swami,
    When the query fetches a result set, the variable gets initialized.
    But, when the query doesn't fetch any rows, the variable doesn't gets initialized and hence "no value definition" errors out.
    So, to avoid this,
    In the query itself, place an exception condition which returns '0'.
    select dept_name from table
    where user_name = ':user'
    UNION
    select '0' from table
    where user_name <> ':user'or you can use like this
    select CASE WHEN user_name = ':user' THEN dept_name ELSE '0' END
    from tableP.S: Query written orally. (Pls adjust the query accordingly)
    Regards,
    Raghu

  • How to pass value from the Z Report to the selection screen of the std rep

    Dear Experts,
    i have developed a report and the values are maintained only in internal table based on some condition.  When I execute the report, for example MM60, there is a material number field for multiple selection.
    the report should call the standard transaction and pass the values from the internal table to the multiple selection- material number of the standard transaction.
    the standard transaction should never get executed automatically.  Only the value should get passed from internal table to the standard t code.  Please help.
    regards,
    Shankar

    Hai
    Go through the following Documents
    SUBMIT rep.
    Additions
    1. ... LINE-SIZE col
    2. ... LINE-COUNT lin
    3. ... TO SAP-SPOOL
    4. ... VIA SELECTION-SCREEN
    5. ... AND RETURN
    6. ... EXPORTING LIST TO MEMORY
    7. ... USER user VIA JOB job NUMBER n
    8. ... Various additions for parameter transfer to rep
    9. ... USING SELECTION-SETS OF PROGRAM prog
    Effect
    Calls the report rep . Leaves the active program and starts the new report rep .
    Addition 1
    ... LINE-SIZE col
    Effect
    Prints the report with the line width col .
    Addition 2
    ... LINE-COUNT lin
    Effect
    Prints the report with lin lines (per page).
    Addition 4
    ... VIA SELECTION-SCREEN
    Effect
    Displays the selection screen for the user. In this case, the selection screen is redisplayed after return from the report list display - the user's entries are retained.
    Addition 5
    ... AND RETURN
    Effect
    Returns to the calling transaction or program after the called program has been executed. SUBMIT ... AND RETURN creates a new internal mode .
    Addition 6
    ... EXPORTING LIST TO MEMORY
    Effect
    Does not display the output list of the called report, but saves it in SAP memory and leaves the called report immediately. Since the calling program can read the list from memory and process it further, you need to use the addition ... AND RETURN . Also, since the called report cannot be requested for printing, the addition ... TO SAP-SPOOL is not allowed here. You can read the saved list from SAP memory with the function module 'LIST_FROM_MEMORY' and then (for example) store it in the database with EXPORT . You can process this list further with the function modules 'WRITE_LIST' , 'DISPLAY_LIST' ... of the function group "SLST" .
    Addition 7
    ... USER user VIA JOB job NUMBER n
    Effect
    Schedules the specified report in the job specified by the job name job and the job number n . The job runs under the user name user and you can omit the addition USER user . The assignment of the job number occurs via the function module JOB_OPEN (see also the documentation for the function modules JOB_CLOSE and JOB_SUBMIT . This addition can only be used with the addition ...AND RETURN .
    Note
    When scheduling a report with the SUBMIT ... VIA JOB job NUMBER n statement, you should always use the addition ...TO SAP-SPOOL to pass print and/or archive parameters. Otherwise, default values are used to generate the list and this disturbs operations in a production environment.
    Addition 9
    ... USING SELECTION-SETS OF PROGRAM prog
    Effect
    Uses variants of the program prog when executing the program rep .
    Note
    Important
    The programs prog and rep must have the same SELECT-OPTIONS and PARAMETER s. Otherwise, variants of the program prog may be destroyed.
    Note
    When using this addition, the specified variant vari of the program prog is taken in USING SELECTION-SET vari . On the other hand, all variant-related actions on the selection screen of rep (Get , Save as variant , Display , Delete ) refer to the variants of prog .
    Example
    SUBMIT REPORT01
    VIA SELECTION-SCREEN
    USING SELECTION-SET 'VARIANT1'
    USING SELECTION-SETS OF PROGRAM 'REPORT00'
    AND RETURN.
    Effect
    Executes the program REPORT01 with the variant VARIANT1 of the program REPORT00 .
    Note
    Runtime errors
    LOAD_PROGRAM_NOT_FOUND : The specified program was not found.
    SUBMIT_WRONG_TYPE : The specified program is not a report.
    SUBMIT_IMPORT_ONLY_PARAMETER : Only one value passed to a report parameter.
    SUBMIT_WRONG_SIGN : Invalid value passed to a selection with the addition SIGN .
    SUBMIT_IN_ITAB_ILL_STRUCTURE : Table passed to a selection with WITH sel IN itab had an unexpected structure.
    Try with this Example
    Data: listobject like abaplist occurs 1 with header line.
    CALL FUNCTION 'LIST_FROM_MEMORY'
    TABLES
    listobject = listobject
    EXCEPTIONS
    OTHERS = 1 .
    IF sy-subrc <> 0.
    message ID '61' TYPE 'E' NUMBER '731'
    with 'LIST_FROM_MEMORY'.
    ENDIF.
    Thanks & regards
    Sreenivasulu P

  • Passing variable which has multiple values to cursor as parameter

    declare
    i varchar2(4000):='0';
    j varchar2(100):='0';
    cursor c1
    is
    (select * from gl_je_lines
    where period_name='Mar-10'
    and reference_10='WRITEOFF');
    cursor c2 (l_ref varchar2)
    is
    (select * from gl_je_lines
    where period_name='Mar-10'
    and reference_10='WRITEOFF'
    and reference_2 not in (l_ref));
    begin
    for cur_record in c1
    loop
    j:=cur_record.reference_2;
    end loop;
    i:= i||','''||j||'''';
    dbms_output.put_line(i);--here i has 254 values separated by ','
    for cash_rec in c2(i)
    loop
    dbms_output.put_line('this is loop 2');
    dbms_output.put_line(cash_rec.reference_2||','||cash_rec.reference_1);--Here this output is not displayed
    --i think the code in this cursor c2 is not executing
    --please tell me the solution
    end loop;
    end;
    I already use pl-sql table with array..it is not sufficietn to my requirement.because when i use it we must increment the index of that table ..so every time not in operator works in cursor2.so it shows wrong result
    From last three days i am working on this only please let me know as early as possible friends
    Edited by: 805567 on Oct 28, 2010 11:30 PM
    Edited by: 805567 on Oct 29, 2010 1:05 AM

    you said two cases
    in first case
    place my second cursor in first cursor
    if i place like that here i use not in operator
    so it prints for every value it will print not in of that value
    so it was wrong result
    i want not in all values
    in second case
    i took values from cursor not from table
    like as shown below
    declare
    credit_amount number:=0;
    debit_amount number:=0;
    v1 number:=0;
    v2 number:=0;
    v3 varchar2(500);
    v4 varchar2(500);
    v5 varchar2(240);
    v6 varchar2(240);
    v7 number;
    v8 varchar2(240);
    v9 varchar2(240);
    v10 number;
    v11 number;
    v12 varchar2(240);
    v13 varchar2(240);
    v14 varchar2(240);
    v15 number;
    v16 number;
    --This cursor is for liability records which are in GL not in AP
    cursor c1(p_header_id number,p_reference_2 varchar2,p_reference_4 varchar2)
    is
    (select
    jl.je_header_id "JE_HEADER_ID"
    ,jl.period_name "PERIOD"
    ,glcc.concatenated_segments "ACCOUNT_CODE"
    ,DECODE(jl.accounted_dr,null,0,jl.accounted_dr)"ACCOUNTED_DEBIT"
    ,DECODE(jl.accounted_cr,null,0,jl.accounted_cr) "ACCOUNTED_CREDIT"
    ,DECODE(jl.accounted_dr,null,0,jl.accounted_dr) - DECODE(jl.accounted_cr,null,0,jl.accounted_cr) "NET"
    ,glcc.CODE_COMBINATION_ID "CODE_COMBINATION_ID"
    ,jl.SET_OF_BOOKS_ID "SET_OF_BOOKS_ID"
    ,jl.PERIOD_NAME "PERIOD_NAME"
    ,DECODE(Jl.entered_dr,null,0,Jl.entered_dr)"ENTERED_DEBIT"
    ,DECODE(Jl.entered_cr,null,0,Jl.entered_cr) "ENTERED_CREDIT"
    ,jl.reference_1 "SUPPLIER"
    ,jl.reference_2 "INVOICE_ID"
    ,jl.reference_3 "CHECK_ID"
    ,jl.reference_4 "CHECK_NUMBER"
    ,jl.reference_5 "INVOICE_NUM"
    ,jl.reference_6 "'AP_PAYMT_JUST_INSERTED'"
    ,jl.reference_7 "set_of_books_id"
    ,jl.GL_SL_LINK_ID "GL_SL_LINK_ID"
    ,jl.REFERENCE_8 "INVOICE_DIST_LINE_NUMBER"
    ,jl.reference_9 "INVOICE_PAYMENT_ID"
    ,jl.REFERENCE_10 "LIABILITY"
    ,jl.TAX_CODE_ID "TAX_CODE_ID"
    ,jl.TAX_GROUP_ID "TAX_GROUP_ID"
    FROM
    gl_je_lines jl
    , apps.gl_code_combinations_KFV glcc
    , gl_je_headers jh
    WHERE
    jl.period_name='Mar-10'
    and glcc. code_combination_id in (1016,1296,1298)
    and jh.je_header_id = jl.je_header_id
    AND glcc.code_combination_id = jl.code_combination_id
    and jh.je_source = 'Payables'
    AND jl.je_header_id = p_header_id
    and jl.reference_2 = p_reference_2
    and jl.reference_4 = p_reference_4
    MINUS
    select
    ir.je_header_id
    , h.period_name "APPERIOD"
    ,g.CONCATENATED_SEGMENTS "AP ACCOUNT CODE"
    ,DECODE(l.accounted_dr,null,0,l.accounted_dr) "AP ACCOUNTED_DR"
    ,DECODE(l.accounted_cr,null,0,l.accounted_cr) "AP ACCOUNTED_CR"
    ,DECODE(l.accounted_dr,null,0,l.accounted_dr) - DECODE(l.accounted_cr,null,0,l.accounted_cr) "NET"
    ,l.CODE_COMBINATION_ID "AP_CCID"
    ,h.set_of_books_id
    ,h.PERIOD_NAME "PERIOD_NAME"
    ,DECODE(l.entered_dr,null,0,l.entered_dr)"ENTERED_DEBIT"
    ,DECODE(l.entered_cr,null,0,l.entered_cr) "ENTERED_CREDIT"
    ,l.reference1 "SUPPLIER"
    ,l.reference2 "INVOICE_Id"
    ,l.reference3 "reference_3"
    ,l.reference4 "reference_4"
    ,l.reference5 "INVOICE_NUM"
    ,l.reference6 "reference_6"
    ,l.reference7 "reference_7"
    ,l.GL_SL_LINK_ID "GL_SL_LINK_ID"
    ,l.REFERENCE8 "REFERENCE_8"
    ,l.reference9 "reference_9"
    ,l.REFERENCE10 "REFERENCE_10"
    ,l.TAX_CODE_ID "TAX_CODE_ID"
    ,l.TAX_LINK_ID "TAX_LINK_ID"
    from
    ap_ae_lines_all l,
    ap_ae_headers_all h,
    gl_code_combinations_kfv g
    ,gl_import_references ir
    where
    ir.gl_sl_link_id=l.gl_sl_link_id
    AND g.CODE_COMBINATION_ID = l.CODE_COMBINATION_ID
    and h.ae_header_id = l.ae_header_id
    AND h.period_name ='Mar-10'
    AND g.CODE_COMBINATION_ID in (1016,1296,1298)
    AND ir.JE_HEADER_ID = p_header_id
    and l.reference2 = p_reference_2
    and l.reference4 = p_reference_4);
    --This cursor is for writeoff records
    cursor c2
    is
    (select * from gl_je_lines
    where period_name='Mar-10'
    and reference_10='WRITEOFF'
    and reference_2 in ('525706','525600'));
    credit number:=0;
    debit number:=0;
    j varchar2(240);
    i varchar2(4000):='0';
    cursor c3 (p_invoice_id varchar2)
    is
    (select
    jl.je_header_id "JE_HEADER_ID"
    ,jl.period_name "PERIOD"
    ,glcc.concatenated_segments "ACCOUNT_CODE"
    ,DECODE(jl.accounted_dr,null,0,jl.accounted_dr)"ACCOUNTED_DEBIT"
    ,DECODE(jl.accounted_cr,null,0,jl.accounted_cr) "ACCOUNTED_CREDIT"
    ,DECODE(jl.accounted_dr,null,0,jl.accounted_dr) - DECODE(jl.accounted_cr,null,0,jl.accounted_cr) "NET"
    ,glcc.CODE_COMBINATION_ID "CODE_COMBINATION_ID"
    ,jl.SET_OF_BOOKS_ID "SET_OF_BOOKS_ID"
    ,jl.PERIOD_NAME "PERIOD_NAME"
    ,DECODE(Jl.entered_dr,null,0,Jl.entered_dr)"ENTERED_DEBIT"
    ,DECODE(Jl.entered_cr,null,0,Jl.entered_cr) "ENTERED_CREDIT"
    ,jl.reference_1 "SUPPLIER"
    ,jl.reference_2 "INVOICE_ID"
    ,jl.reference_3 "CHECK_ID"
    ,jl.reference_4 "CHECK_NUMBER"
    ,jl.reference_5 "INVOICE_NUM"
    ,jl.reference_6 "'AP_PAYMT_JUST_INSERTED'"
    ,jl.reference_7 "set_of_books_id"
    ,jl.GL_SL_LINK_ID "GL_SL_LINK_ID"
    ,jl.REFERENCE_8 "INVOICE_DIST_LINE_NUMBER"
    ,jl.reference_9 "INVOICE_PAYMENT_ID"
    ,jl.REFERENCE_10 "LIABILITY"
    ,jl.TAX_CODE_ID "TAX_CODE_ID"
    ,jl.TAX_GROUP_ID "TAX_GROUP_ID"
    FROM
    gl_je_lines jl
    , apps.gl_code_combinations_KFV glcc
    , gl_je_headers jh
    WHERE
    jl.period_name='Mar-10'
    and glcc. code_combination_id in (1016,1296,1298)
    and jh.je_header_id = jl.je_header_id
    AND glcc.code_combination_id = jl.code_combination_id
    and jh.je_source = 'Payables'
    and jl.reference_2 in (p_invoice_id)
    MINUS
    select
    ir.je_header_id
    , h.period_name "AP PERIOD"
    ,g.CONCATENATED_SEGMENTS "AP ACCOUNT CODE"
    ,DECODE(l.accounted_dr,null,0,l.accounted_dr) "AP ACCOUNTED_DR"
    ,DECODE(l.accounted_cr,null,0,l.accounted_cr) "AP ACCOUNTED_CR"
    ,DECODE(l.accounted_dr,null,0,l.accounted_dr) - DECODE(l.accounted_cr,null,0,l.accounted_cr) "NET"
    ,l.CODE_COMBINATION_ID "AP_CCID"
    ,h.set_of_books_id
    ,h.PERIOD_NAME "PERIOD_NAME"
    ,DECODE(l.entered_dr,null,0,l.entered_dr)"ENTERED_DEBIT"
    ,DECODE(l.entered_cr,null,0,l.entered_cr) "ENTERED_CREDIT"
    ,l.reference1 "SUPPLIER"
    ,l.reference2 "INVOICE_Id"
    ,l.reference3 "reference_3"
    ,l.reference4 "reference_4"
    ,l.reference5 "INVOICE_NUM"
    ,l.reference6 "reference_6"
    ,l.reference7 "reference_7"
    ,l.GL_SL_LINK_ID "GL_SL_LINK_ID"
    ,l.REFERENCE8 "REFERENCE_8"
    ,l.reference9 "reference_9"
    ,l.REFERENCE10 "REFERENCE_10"
    ,l.TAX_CODE_ID "TAX_CODE_ID"
    ,l.TAX_LINK_ID "TAX_LINK_ID"
    from
    ap_ae_lines_all l,
    ap_ae_headers_all h,
    gl_code_combinations_kfv g
    ,gl_import_references ir
    where
    ir.gl_sl_link_id=l.gl_sl_link_id
    AND g.CODE_COMBINATION_ID = l.CODE_COMBINATION_ID
    and h.ae_header_id = l.ae_header_id
    AND h.period_name ='Mar-10'
    AND g.CODE_COMBINATION_ID in (1016,1296,1298)
    and l.reference2 in (p_invoice_id)); --here if i put l.reference2  in (p_invoice_id)) it must show the details of
    -- of all.but it doesnot display sir
    --here if i put l.reference2 not in (p_invoice_id)) it shows that id also sir
    BEGIN
    for writeoff_rec in c2
    LOOP
    FOR Main_cur in c1(writeoff_rec.je_header_id,writeoff_rec.reference_2,writeoff_rec.reference_4)
    LOOP
    j:='0';
    IF writeoff_rec.accounted_dr is not null AND Main_cur.ACCOUNTED_CREDIT<>0
    THEN
    v10:=Main_cur.ACCOUNTED_CREDIT;
    credit_amount:= credit_amount+Main_cur.ACCOUNTED_CREDIT;
    ELSIF writeoff_rec.accounted_cr is not null AND Main_cur.ACCOUNTED_DEBIT<>0
    THEN
    v11:=Main_cur.ACCOUNTED_DEBIT;
    debit_amount:= debit_amount+Main_cur.ACCOUNTED_DEBIT;
    END IF;
    if c1%found then
    j:=Main_cur.INVOICE_ID;
    end if;
    END LOOP;
    -- i:=i||','||j;
    i:= i||','''||j||'''';
    END LOOP;
    dbms_output.put_line(i); --Here i got all invoiceids of varchar2 records without single qutations
    --its look like '0','23232','2324234' etc.
    for cash_clearing_cur in c3(i)--here is the problem i am sending i with 250 values separated by ',' is it correct
    loop
    v3:=0;
    v4:=0;
    v5:=0;
    v6:=0;
    v7:=0;
    v8:=0;
    v9:=0;
    v10:=0;
    v11:=0;
    v12:=0;
    v13:=0;
    v14:=0;
    v15:=0;
    v16:=0;
    credit:=credit+cash_clearing_cur.ACCOUNTED_CREDIT;
    debit:=debit+cash_clearing_cur.ACCOUNTED_DEBIT;
    v3:=cash_clearing_cur.JE_HEADER_ID;
    v4:=cash_clearing_cur.INVOICE_ID;
    v5:=cash_clearing_cur.CHECK_NUMBER;
    v6:=cash_clearing_cur.LIABILITY;
    v7:=cash_clearing_cur.CODE_COMBINATION_ID;
    v8:=cash_clearing_cur.PERIOD;
    v9:=cash_clearing_cur.ACCOUNT_CODE;
    v10:=cash_clearing_cur.ACCOUNTED_CREDIT;
    v11:=cash_clearing_cur.ACCOUNTED_DEBIT;
    v12:=cash_clearing_cur.SUPPLIER;
    v13:=cash_clearing_cur.CHECK_ID;
    v14:=cash_clearing_cur.INVOICE_NUM;
    v15:=cash_clearing_cur.GL_SL_LINK_ID;
    v16:=cash_clearing_cur.SET_OF_BOOKS_ID;
    DBMS_OUTPUT.PUT_LINE('HEAd '||v3||','||'inv_id '||v4||','||
    'chk_num '||v5||','||'ref10 '||v6||','||'CCID '||V7||','||'PED '||V8
    ||','||'acctcode '||v9||','||'acct_Ct '||V10
    ||','||'acct_Dt '||v11||','||'chk_id '||v13||','||'inv_num '||V14
    ||','||'link '||v15||','||'sob '||v16||','||'suplir '||V12);
    end loop;
    DBMS_OUTPUT.PUT_LINE( 'Dr Amt ' ||debit || 'Cr amt ' || credit );
    EXCEPTION
    when too_many_rows then
    dbms_output.put_line('Invalid no of rows');
    when no_data_found then
    dbms_output.put_line('no data found exception');
    when others then
    dbms_output.put_line('Other than Invalid no of rows');
    dbms_output.put_line(SQLERRM);
    END;
    /

  • The session variable has no value definition

    Hi Gurus,
    For all Dashboard reports and Adhoc reports suddenly we are facing the below error for some users
    A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 23006] The session variable, NQ_SESSION.AREA, has no value definition.Please have your System Administrator look at the log for more details on this error. (HY000)
    In those dashboard reports we are not using any Area prompts even if we take only area column in analysis also it is showing the same error. But for admin the reports are coming fine only for some users it is showing like that but previously it was fine.
    Regards,

    Hi,
    this means your init block is not working. Check the init block why its not resulting in any data.
    only when init block doesn't  not result in data , server checks for default value for the variable.
    Since there is no default value, you get this error.
    Init blocks can fail because
    1. connection pool is not working.
    2. The table or view does not exist
    3. no data in the table
    4. filter in the sql in init block is not initialized if its coming from another session variable.
    typically no data should bring no results in a report.
    Since you have a session variable being part of the report, and that variable failed to initialize you get this error.
    Thanks,
    Satya Ranki Reddy

  • Hierarchal Columns and Passing Values to a Detail Report (Action Links)

    I have a question in OBIEE 11.1.1.5 around Hierarchal Columns and passing the values to a detail report. I have create a report with a Hierarchal column (Two Levels only), Month Column and a metric.
    I created a detail report and see both columns used in the hierarchy to "is Prompted" as well as the Month column.
    On the Summary report I put an Action Link on the Metric to navigate to this Detail Report. When I select the metric I see that the Month value gets passed to the Detail Report but none of the Hierarchal columns have been passed at all.
    When I replace the hierarchal column with just the two columns, the values get passed fine.
    Is this a known issue with Hierarchal columns? Is this functionality even available?
    Thanks

    I am assuming then that no one has attempted this on the forum?

  • Change of values in the webi report

    Hi
    webi report in QA is working fine .
    but after moving to production the values have changed.
    but bex report in production has got correct values.
    these reports have graphs attached to them.
    evn there is a change in a graph
    what can be the reason for change of values?
    Regards,
    Swetha.

    That sounds quite bizarre. Please provide lots of details. What version, SP and FP of BusinessObjects are you using, what about NW?
    Does this occur for all KF/measures? The numbers that are showing incorrectly, what are these objects in the BEx query? Characteristics, KFs, CKFs, RKFs?
    If measures, what is the aggregation type in the universe?
    What about, in the universe, if you create a calulated measure that is "measure + 10". What result do you get in webi?
    E.g., if the value should be 234 and you're seeing 2234, what does adding 10 to the value do? Do you get 4488? Or 2244?

  • TestStand report shows a passing value as a fail

    I ran into a possible bug that I'd like to get some feed back on.  Attached is a sequence and VI that when run in test UUT every other iterations value for the step (i.e. next UUT) the result is maintained from the last UUT and it show up in the report. Iit is a stripped-down-to-nothing version from the acutal test sequence on the floor with some stuff to simulate the error.
    The step does have the ignore error on and this situation happens when an error occurs but I would not expect the previous test result value to show up.  Run the sequence and see what I mean.  It generated a report that makes my manufacturing floor question the stability of TS.
    PS. LV 8.5 TS 4.0
    Message Edited by paulmw on 03-04-2009 12:31 PM
    Solved!
    Go to Solution.
    Attachments:
    Report Error.zip ‏24 KB
    PassAsFail.JPG ‏36 KB

    Paul -
    The reason are getting failed with a measurement from the last good UUT is because of many compounding issues. The sequence has the default setting of "Optimize non-reentrant calls to this sequence", which basically tells TestStand to cache the runtime copy of the steps in this sequence to improve performance for each subsequent call to the sequence. So the Step.Result.Numeric value will not only be maintained each time you call the step within an instance of the sequence, but now also subsequent sequencial invocations. Next, notice that the report says that you had 10 iterations executed with 0 passed and 0 failed. This means that you got errors on all iterations. Now a looping step reuses the step result as it executes each loop, and the final summary result is a snapshot of the last iteration. Since you are ignoring errors, the numeric value on the step result never gets updated, so the final summary step result is the same as the last UUT. The looping code then sets the loop status to Failed because no iterations passed.
    Look at the attached report to illustrate the behavior. The report shows you the results from each iteration as well as the parent summary result.
    In general ignoring errors is a bad idea, but assuming that you want to continue to ignore errors, you can do one of the following in order or ease and best behavior:
    1) Add a preexpression to set Step.Result.Numeric to a failing value, such as zero or NAN
    2) Uncheck the "Optimize non-reentrant calls to this sequence" setting, so that a default value of zero will be used for Step.Result.Numeric
    3) Add another step after the one you are running to see if at least one iteration passed or failed.
    Scott Richardson
    National Instruments
    Attachments:
    Full Example Report.zip ‏2 KB

Maybe you are looking for

  • Customer open item transfer

    Hi gurus, We have business requirement to transfer customer open invoice from exicting normal reconcialation account to new reconlication account. The reason to do so is there are some cutomer who are bankrupt and we want to transer  open item for th

  • Projects Release  - Error: Enter a Distribution Rule for Asset without val

    Hi Experts , While Releasing Projects , we got error : Enter a Distribution Rule for Asset without a Validity limit. Message No : KD059. Diagnosis: The settelement Profile used requires you to define a distribution rule for asset . For period 005 , 2

  • Dynamic select list in report based on other report column

    I have a report with three columns. The first column is the Id, the second is the name that matches the Id. In the third column I would like to have a list of values that are dependant on the Id in the first column. This is the query I have. SELECT c

  • Applet embedded in JSP doesn't run on browser with older than JRE-1.6

    I have embeded an Applet in my JSP Page which used JDK1.6's getHardwareAddress() method to get user's physical address. I have embeeded this into a JAR file and used it in my JSP where this applet run on onload() event of the form --> runs the applet

  • Connect to message server host failed;WSAECONNREFUSED: Connection refused

    Hi All, I am getting the following error when I tried to test the system connectivity from the portal to NSP instance. Connection failed. Make sure that Single Sign-On is configured correctly I found the following entry in the logs Error> occured  >W