MDX command does not generate records: "NO RECORDS GENERATED"

Dear Experts,
I am testing MDX command we are going to use in Cashflow calculation. Although I am aware this is not typical way to do this (usually account-based calculation business rule does the job) but there are some other factors and we really want to do that in script.
I created a very simple script:
// CASHFLOW TEST
*XDIM_MEMBERSET TIME = 2014.JAN
*XDIM_MEMBERSET ENTITY = DK10
*XDIM_MEMBERSET CATEGORY = ACTUAL
*XDIM_MEMBERSET CONSOSCOPE = G_NONE
*XDIM_MEMBERSET AUDITID = IMPORT_LPM
[ACCOUNT].[#12220_F220] = ([ACCOUNT].[12220],[FLOW].[F220])
*COMMIT
but the script does not behave as I am expecting it to behave. Basically no single record gets generated by the script.
I am attaching the log. I have triple-checked the data region in question for the account 12220 and it is populated with the value.
Am I doing someting wrong?
Thank You!
Marek

Hello Marek,
I understand. If you need any documentation on MDX and Script Logic please let mw know.
You should take a look at this Performance Analysis and Optimization for BPC 10 , in particular to this part:
MDX and RSDRI query
As already recommended for BPC 7.5 splitting the report into MDX and RSDRI(SQL) queries has an positive impact on performance. By using one MDX query (as small as possible) and one RSDRI query (as large as possible) the best performance improvements were achieved. RSDRI queries are much faster, but can only be used for base level members (without aggregation). For the examples mentioned above the best performance was achieved with a split into two reports and Europe rows and 2012-Total columns as Local Members. The DB query time was reduced from about 20 seconds to 2.3 seconds while the client rendering time doubled from about 1 second to nearly 2 seconds.
Figure 10: Measurements of split reports
Thank you.
Best regards,
Raquel

Similar Messages

  • Building SCD Type2 changes. Any record deletion in Source does not expire the Target Record

    Building SCD Type2 changes. Any record deletion in Source does not expire the Target Record. When I Delete any Record in Source Table, I expect the same record should be 'Expired' with 'End_Date' with Active = 'N'. 
    BTW: In 'Table Comp',  I have Checked the 'Detect Deleted rows(s) ...'. /  ' ... largest generated key'  is selected by default..
    This is not happening..! My Update and Insert works fine..!

    Hi
    Do you have detect deletes set on Table Comparison?
    I also add the Map operations to the output of History Preserving and manage each stream of the Insert/Update/deletes separately and control the record start/effective & record end/Expiry dates with more variables based on the stream req, ie updates to end previous record have record end date set to variable for business or run date set to date - 1.
    You only need key gen for inserts (including the deleted record final state)
    Use merge to bring back together.

  • I have quicktime pro and it does NOT have the screen record mode that Quicktime is suppose to have.  Can I uninstall it and go back to an older version that would have screen recording?  If so, how?  Step by step needed.  Thank you for your time.

    I have quicktime pro and it does NOT have the screen record mode that Quicktime is suppose to have.  Can I uninstall it and go back to an older version that would have screen recording?  If so, how?  Step by step needed.  Thank you for your time.

    Did you remove Quicktime X?
    On a normal install Quicktime 7 is installed in the Utilities folder and Quicktime Pro in the main Applications folder.
    You will need to reinstall OS X to get Quicktime X back if you have deleted it.
    I notice yor profile says 10.5.8. Quicktime X is only available on 10.6 and above.

  • My i phone 4s will let me download free apps but when i try to buy an app it asks for my billing imformation and tells me that the. Imformation i typed in does not mach my bank records. Ive also tried using my wifes. Any ideas

    When i try to buy an app from the app store it ask for my billing imformation and when i type everything in it tells me the imformation does not match my bank records. Ive also tried using my wifes card to buy apps and it says the same thing. Any ideas?

    The Apple Support Communities are an international user to user technical support forum. As a man from Mexico my first language is Spanish. I do not speak English, however I do write in English with the aid of the Mac OS X spelling and grammar checks. I also live in a culture perhaps very very different from your own. When offering advice in the ASC, my comments are not meant to be anything more than helpful and certainly not to be taken as insults.
    Are you putting in the address where the bank sends the monthly statement?
    Apple's servers are very picky about the format of the address. If you live in the USA, then the server is expecting the style that the US Postal Service uses. One way to do this is to use the USPS ZIP Code lookup service;
    https://tools.usps.com/go/ZipLookupAction!input.action
    Enter the address to look up the ZIP code and then copy the exact USPS output into your iTunes account information.

  • Ok... i am trying to sign into my apple account in the itunes store on my ipod and i have all the correct data for my credit card and it says " your payment information does not match your banks records. try again or nenter a new payment method. " help me

    ok... i am trying to sign into my apple account in the itunes store on my ipod and i have all the correct data for my credit card and it says " your payment information does not match your banks records. try again or nenter a new payment method. " what does this mean and how can i fix it??

    - See:
    ]iTunes Store: My credit card's security code or zip code does not match my bank's records
    - If still problem contact iTunes by:
    Contact iTunes

  • Header ID does not exist on this record or does not match ID

    Hi ,
    I'm trying to import the sales order using OE_ORDER_PUB.process_order() API. If all my orders has equal no. of lines, I can able to import all the orders at one stoke. But if each order has different no. of lines, I'm unable to import all the orders at single stoke. At first run, certain no. of records are getting processed and remaining records are ending up with error stating *'Header ID does not exist on this record or does not match ID specified on header record. You require a valid header ID if the operation is Create*'. If I re-execute the errored records, its getting processed successfully.
    Please help me in getting it resolved.
    Find below the procedure code which I'm using to import sales order.
    CREATE OR REPLACE PROCEDURE XXRT_SALES_ORDER (ERRBUF VARCHAR2, RETCODE NUMBER)
    AS
    l_header_rec OE_ORDER_PUB.Header_Rec_Type;
    l_line_tbl OE_ORDER_PUB.Line_Tbl_Type;
    l_line_adj_tbl OE_ORDER_PUB.Line_Adj_Tbl_Type;
    l_return_status varchar2(200);
    l_msg_count number;
    l_msg_data varchar2(20000);
    l_header_val_rec OE_ORDER_PUB.Header_Val_Rec_Type;
    l_Header_Adj_tbl OE_ORDER_PUB.Header_Adj_Tbl_Type;
    l_Header_Adj_val_tbl OE_ORDER_PUB.Header_Adj_Val_Tbl_Type;
    l_Header_price_Att_tbl OE_ORDER_PUB.Header_Price_Att_Tbl_Type;
    l_Header_Adj_Att_tbl OE_ORDER_PUB.Header_Adj_Att_Tbl_Type;
    l_Header_Adj_Assoc_tbl OE_ORDER_PUB.Header_Adj_Assoc_Tbl_Type;
    l_Header_Scredit_tbl OE_ORDER_PUB.Header_Scredit_Tbl_Type;
    l_Header_Scredit_val_tbl OE_ORDER_PUB.Header_Scredit_Val_Tbl_Type;
    l_line_val_tbl OE_ORDER_PUB.Line_Val_Tbl_Type;
    l_Line_Adj_val_tbl OE_ORDER_PUB.Line_Adj_Val_Tbl_Type;
    l_Line_price_Att_tbl OE_ORDER_PUB.Line_Price_Att_Tbl_Type;
    l_Line_Adj_Att_tbl OE_ORDER_PUB.Line_Adj_Att_Tbl_Type;
    l_Line_Adj_Assoc_tbl OE_ORDER_PUB.Line_Adj_Assoc_Tbl_Type;
    l_Line_Scredit_tbl OE_ORDER_PUB.Line_Scredit_Tbl_Type;
    l_Line_Scredit_val_tbl OE_ORDER_PUB.Line_Scredit_Val_Tbl_Type;
    l_Lot_Serial_tbl OE_ORDER_PUB.Lot_Serial_Tbl_Type;
    l_Lot_Serial_val_tbl OE_ORDER_PUB.Lot_Serial_Val_Tbl_Type;
    l_action_request_tbl OE_ORDER_PUB.Request_Tbl_Type;
    v_remarks varchar2(250);
    v_count number;
    v_transaction_type number;
    v_cust_id number;
    v_invoice_to number;
    v_ship_to number;
    v_itemid1 number;
    v_itemid2 number;
    v_itemid3 number;
    v_itemid4 number;
    v_itemid5 number;
    v_item_type1 varchar2(15);
    v_item_type2 varchar2(15);
    v_item_type3 varchar2(15);
    v_item_type4 varchar2(15);
    v_item_type5 varchar2(15);
    cursor c_data_val is select * from XXSC_SALES_ORDER_IMPORT
    where process_flag='N';
    cursor c_data is select * from XXSC_SALES_ORDER_IMPORT
    where process_flag='N';
    Begin
    fnd_global.apps_initialize(1681,51411,660);
    for c_data_val_rec in c_data_val
    loop
    v_remarks:=NULL;
    select count(*) into v_count from apps.oe_order_headers_all
    where cust_po_number=c_data_val_rec.iwb_no;
    if v_count > 0 then
    v_remarks:='Customer PO already used';
    end if;
    BEGIN
    select transaction_type_id into v_transaction_type
    from apps.OE_TRANSACTION_TYPES_tl
    where name like c_data_val_rec.BILL_TO||'-DOMESTIC';
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    v_remarks:=v_remarks||'Invalid trans type';
    END;
    BEGIN
    select cust_account_id into v_cust_id
    from apps.hz_cust_accounts hca,
    apps.hz_parties hp
    where hca.party_id=hp.party_id
    and hp.party_name=c_data_val_rec.CUSTOMER_NAME;
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    v_remarks:=v_remarks||'Invalid Customer name';
    END;
    BEGIN
    select SITE_USE_ID into v_invoice_to
    from apps.hz_parties hp,
    apps.hz_party_sites_v hps,
    apps.hz_cust_acct_sites_all hcasa,
    apps.hz_cust_site_uses_all hcsua
    where
    party_name=c_data_val_rec.CUSTOMER_NAME
    and hp.party_id=hps.party_id
    and hps.address1 like '%'||c_data_val_rec.BILL_TO||'%'
    and hps.site_use_type='BILL_TO'
    and hps.party_site_id=hcasa.party_site_id
    and hcasa.cust_acct_site_id=hcsua.cust_acct_site_id
    and SITE_USE_CODE='BILL_TO'
    and hcsua.Status='A';
    EXCEPTION
    WHEN OTHERS THEN
    v_remarks:=v_remarks||'Invalid BILL_TO';
    END;
    BEGIN
    select SITE_USE_ID into v_ship_to
    from apps.hz_parties hp,
    apps.hz_party_sites_v hps,
    apps.hz_cust_acct_sites_all hcasa,
    apps.hz_cust_site_uses_all hcsua
    where
    party_name=c_data_val_rec.CUSTOMER_NAME
    and hp.party_id=hps.party_id
    and hps.address1 like '%'||c_data_val_rec.SHIP_TO||'%'
    and hps.site_use_type='SHIP_TO'
    and hps.party_site_id=hcasa.party_site_id
    and hcasa.cust_acct_site_id=hcsua.cust_acct_site_id
    and SITE_USE_CODE='SHIP_TO'
    and hcsua.Status='A';
    EXCEPTION
    WHEN OTHERS THEN
    v_remarks:=v_remarks||'Invalid SHIP_TO';
    END;
    IF c_data_val_rec.item1 is not null then
    BEGIN
    select distinct inventory_item_id into v_itemid1
    from apps.mtl_system_items_b
    where segment1=c_data_val_rec.item1;
    EXCEPTION
    WHEN OTHERS THEN
    v_remarks:=v_remarks||'Invalid ITEM1';
    END;
    BEGIN
    select distinct Item_type into v_item_type1
    from apps.mtl_system_items_b
    where segment1=c_data_val_rec.item1;
    EXCEPTION
    WHEN OTHERS THEN
    v_remarks:=v_remarks||'Invalid Itemtype1';
    END;
    END IF;
    IF c_data_val_rec.item2 is not null then
    BEGIN
    select distinct inventory_item_id into v_itemid2
    from apps.mtl_system_items_b
    where segment1=c_data_val_rec.item2;
    EXCEPTION
    WHEN OTHERS THEN
    v_remarks:=v_remarks||'Invalid ITEM2';
    END;
    BEGIN
    select distinct Item_type into v_item_type2
    from apps.mtl_system_items_b
    where segment1=c_data_val_rec.item2;
    EXCEPTION
    WHEN OTHERS THEN
    v_remarks:=v_remarks||'Invalid Itemtype2';
    END;
    END IF;
    IF c_data_val_rec.item3 is not null then
    BEGIN
    select distinct inventory_item_id into v_itemid3
    from apps.mtl_system_items_b
    where segment1=c_data_val_rec.item3;
    EXCEPTION
    WHEN OTHERS THEN
    v_remarks:=v_remarks||'Invalid ITEM3';
    END;
    BEGIN
    select distinct Item_type into v_item_type3
    from apps.mtl_system_items_b
    where segment1=c_data_val_rec.item3;
    EXCEPTION
    WHEN OTHERS THEN
    v_remarks:=v_remarks||'Invalid Itemtype3';
    END;
    END IF;
    IF c_data_val_rec.item4 is not null then
    BEGIN
    select distinct inventory_item_id into v_itemid4
    from apps.mtl_system_items_b
    where segment1=c_data_val_rec.item4;
    EXCEPTION
    WHEN OTHERS THEN
    v_remarks:=v_remarks||'Invalid ITEM4';
    END;
    BEGIN
    select distinct inventory_item_id into v_item_type4
    from apps.mtl_system_items_b
    where segment1=c_data_val_rec.item4;
    EXCEPTION
    WHEN OTHERS THEN
    v_remarks:=v_remarks||'Invalid Itemtype4';
    END;
    END IF;
    IF c_data_val_rec.item5 is not null then
    BEGIN
    select distinct inventory_item_id into v_itemid5
    from apps.mtl_system_items_b
    where segment1=c_data_val_rec.item5;
    EXCEPTION
    WHEN OTHERS THEN
    v_remarks:=v_remarks||'Invalid ITEM5';
    END;
    BEGIN
    select distinct inventory_item_id into v_item_type5
    from apps.mtl_system_items_b
    where segment1=c_data_val_rec.item5;
    EXCEPTION
    WHEN OTHERS THEN
    v_remarks:=v_remarks||'Invalid Itemtype5';
    END;
    END IF;
    IF v_remarks is not null then
    update XXSC_SALES_ORDER_IMPORT
    set process_flag='E', remarks=v_remarks
    where iwb_no=c_data_val_rec.iwb_no;
    commit;
    END IF;
    end loop;
    for c_data_rec in c_data
    loop
    select transaction_type_id into v_transaction_type
    from OE_TRANSACTION_TYPES_tl
    where name like c_data_rec.BILL_TO||'-DOMESTIC';
    select cust_account_id into v_cust_id
    from hz_cust_accounts hca,
    hz_parties hp
    where hca.party_id=hp.party_id
    and hp.party_name=c_data_rec.CUSTOMER_NAME;
    select SITE_USE_ID into v_invoice_to
    from hz_parties hp,
    hz_party_sites_v hps,
    hz_cust_acct_sites_all hcasa,
    hz_cust_site_uses_all hcsua
    where
    party_name=c_data_rec.CUSTOMER_NAME
    and hp.party_id=hps.party_id
    and hps.address1 like '%'||c_data_rec.BILL_TO||'%'
    and hps.site_use_type='BILL_TO'
    and hps.party_site_id=hcasa.party_site_id
    and hcasa.cust_acct_site_id=hcsua.cust_acct_site_id
    and SITE_USE_CODE='BILL_TO'
    and hcsua.Status='A';
    select SITE_USE_ID into v_ship_to
    from hz_parties hp,
    hz_party_sites_v hps,
    hz_cust_acct_sites_all hcasa,
    hz_cust_site_uses_all hcsua
    where
    party_name=c_data_rec.CUSTOMER_NAME
    and hp.party_id=hps.party_id
    and hps.address1 like '%'||c_data_rec.SHIP_TO||'%'
    and hps.site_use_type='SHIP_TO'
    and hps.party_site_id=hcasa.party_site_id
    and hcasa.cust_acct_site_id=hcsua.cust_acct_site_id
    and SITE_USE_CODE='SHIP_TO'
    and hcsua.Status='A';
    IF c_data_rec.item1 is not null then
    select distinct inventory_item_id into v_itemid1
    from apps.mtl_system_items_b
    where segment1=c_data_rec.item1;
    select distinct Item_type into v_item_type1
    from apps.mtl_system_items_b
    where segment1=c_data_rec.item1;
    ELSE
    v_itemid1:= null;
    v_item_type1:= null;
    END IF;
    IF c_data_rec.item2 is not null then
    select distinct inventory_item_id into v_itemid2
    from apps.mtl_system_items_b
    where segment1=c_data_rec.item2;
    select distinct Item_type into v_item_type2
    from apps.mtl_system_items_b
    where segment1=c_data_rec.item2;
    ELSE
    v_itemid2:=null;
    v_item_type2:= null;
    END IF;
    IF c_data_rec.item3 is not null then
    select distinct inventory_item_id into v_itemid3
    from apps.mtl_system_items_b
    where segment1=c_data_rec.item3;
    select distinct Item_type into v_item_type3
    from apps.mtl_system_items_b
    where segment1=c_data_rec.item3;
    ELSE
    v_itemid3:=null;
    v_item_type3:=null;
    END IF;
    IF c_data_rec.item4 is not null then
    select distinct inventory_item_id into v_itemid4
    from apps.mtl_system_items_b
    where segment1=c_data_rec.item4;
    select distinct Item_type into v_item_type4
    from apps.mtl_system_items_b
    where segment1=c_data_rec.item4;
    ELSE
    v_itemid4:= null;
    v_item_type4:= null;
    END IF;
    IF c_data_rec.item5 is not null then
    select distinct inventory_item_id into v_itemid5
    from apps.mtl_system_items_b
    where segment1=c_data_rec.item5;
    select distinct Item_type into v_item_type5
    from apps.mtl_system_items_b
    where segment1=c_data_rec.item5;
    ELSE
    v_itemid5:= null;
    v_item_type5:= null;
    END IF;
    l_header_rec := OE_ORDER_PUB.G_MISS_HEADER_REC; -- Required attributes (e.g. Order Type and Customer)
    l_header_rec.order_type_id := v_transaction_type;
    l_header_rec.ordered_date := c_data_rec.iwb_date;
    l_header_rec.sold_to_org_id := v_cust_id;
    l_header_rec.price_list_id := 93174;
    l_header_rec.cust_po_number := c_data_rec.iwb_no;
    l_header_rec.ship_to_org_id := v_ship_to;
    l_header_rec.invoice_to_org_id := v_invoice_to;
    l_header_rec.CONTEXT:='566' ;
    l_header_rec.ATTRIBUTE1:=c_data_rec.DELIVERY_TYPE;
    -- l_header_rec.freight_term_code = NULL;
    l_header_rec.operation := OE_GLOBALS.G_OPR_CREATE;
    -- FIRST LINE RECORD. Initialize record to missing
    if c_data_rec.item1 is not null and
    c_data_rec.item2 is not null and
    c_data_rec.item3 is not null and
    c_data_rec.item4 is not null and
    c_data_rec.item5 is not null then
    l_line_tbl(1) := OE_ORDER_PUB.G_MISS_LINE_REC;
    l_line_tbl(1).inventory_item_id :=v_itemid1;
    l_line_tbl(1).ordered_quantity := c_data_rec.quantity1;
    l_line_tbl(1).CALCULATE_PRICE_FLAG :='N';
    l_line_tbl(1).UNIT_SELLING_PRICE := c_data_rec.price1;
    l_line_tbl(1).UNIT_LIST_PRICE := c_data_rec.price1;
    l_line_tbl(1).attribute13:= v_item_type1;
    l_line_tbl(1).operation := OE_GLOBALS.G_OPR_CREATE;
    --end if;
    -- SECOND LINE RECORD
    --elsif c_data_rec.item2 is not null then
    l_line_tbl(2) := OE_ORDER_PUB.G_MISS_LINE_REC;
    l_line_tbl(2).inventory_item_id := v_itemid2;
    l_line_tbl(2).ordered_quantity := c_data_rec.quantity2;
    l_line_tbl(2).CALCULATE_PRICE_FLAG :='N';
    l_line_tbl(2).UNIT_SELLING_PRICE := c_data_rec.price2;
    l_line_tbl(2).UNIT_LIST_PRICE := c_data_rec.price2;
    l_line_tbl(2).attribute13:=v_item_type2;
    l_line_tbl(2).operation := OE_GLOBALS.G_OPR_CREATE;
    --end if;
    -- THIRD LINE RECORD
    --elsif c_data_rec.item3 is not null then
    l_line_tbl(3) := OE_ORDER_PUB.G_MISS_LINE_REC;
    l_line_tbl(3).inventory_item_id := v_itemid3;
    l_line_tbl(3).ordered_quantity := c_data_rec.quantity3;
    l_line_tbl(3).CALCULATE_PRICE_FLAG :='N';
    l_line_tbl(3).UNIT_SELLING_PRICE := c_data_rec.price3;
    l_line_tbl(3).UNIT_LIST_PRICE := c_data_rec.price3;
    l_line_tbl(3).attribute13:=v_item_type3;
    l_line_tbl(3).operation := OE_GLOBALS.G_OPR_CREATE;
    --end if;
    -- FOURTH LINE RECORD
    --elsif c_data_rec.item4 is not null then
    l_line_tbl(4) := OE_ORDER_PUB.G_MISS_LINE_REC;
    l_line_tbl(4).inventory_item_id := v_itemid4;
    l_line_tbl(4).ordered_quantity := c_data_rec.quantity4;
    l_line_tbl(4).CALCULATE_PRICE_FLAG :='N';
    l_line_tbl(4).UNIT_SELLING_PRICE := c_data_rec.price4;
    l_line_tbl(4).UNIT_LIST_PRICE := c_data_rec.price4;
    l_line_tbl(4).attribute13:=v_item_type4;
    l_line_tbl(4).operation := OE_GLOBALS.G_OPR_CREATE;
    --END IF;
    -- FIFTH LINE RECORD
    --elsif c_data_rec.item5 is not null then
    l_line_tbl(5) := OE_ORDER_PUB.G_MISS_LINE_REC;
    l_line_tbl(5).inventory_item_id := v_itemid5;
    l_line_tbl(5).ordered_quantity := c_data_rec.quantity5;
    l_line_tbl(5).CALCULATE_PRICE_FLAG :='N';
    l_line_tbl(5).UNIT_SELLING_PRICE := c_data_rec.price5;
    l_line_tbl(5).UNIT_LIST_PRICE := c_data_rec.price5;
    l_line_tbl(5).attribute13:= v_item_type5;
    l_line_tbl(5).operation := OE_GLOBALS.G_OPR_CREATE;
    elsif c_data_rec.item1 is not null and
    c_data_rec.item2 is not null and
    c_data_rec.item3 is not null and
    c_data_rec.item4 is not null then
    l_line_tbl(1) := OE_ORDER_PUB.G_MISS_LINE_REC;
    l_line_tbl(1).inventory_item_id :=v_itemid1;
    l_line_tbl(1).ordered_quantity := c_data_rec.quantity1;
    l_line_tbl(1).CALCULATE_PRICE_FLAG :='N';
    l_line_tbl(1).UNIT_SELLING_PRICE := c_data_rec.price1;
    l_line_tbl(1).UNIT_LIST_PRICE := c_data_rec.price1;
    l_line_tbl(1).attribute13:= v_item_type1;
    l_line_tbl(1).operation := OE_GLOBALS.G_OPR_CREATE;
    --end if;
    -- SECOND LINE RECORD
    --elsif c_data_rec.item2 is not null then
    l_line_tbl(2) := OE_ORDER_PUB.G_MISS_LINE_REC;
    l_line_tbl(2).inventory_item_id := v_itemid2;
    l_line_tbl(2).ordered_quantity := c_data_rec.quantity2;
    l_line_tbl(2).CALCULATE_PRICE_FLAG :='N';
    l_line_tbl(2).UNIT_SELLING_PRICE := c_data_rec.price2;
    l_line_tbl(2).UNIT_LIST_PRICE := c_data_rec.price2;
    l_line_tbl(2).attribute13:=v_item_type2;
    l_line_tbl(2).operation := OE_GLOBALS.G_OPR_CREATE;
    --end if;
    -- THIRD LINE RECORD
    --elsif c_data_rec.item3 is not null then
    l_line_tbl(3) := OE_ORDER_PUB.G_MISS_LINE_REC;
    l_line_tbl(3).inventory_item_id := v_itemid3;
    l_line_tbl(3).ordered_quantity := c_data_rec.quantity3;
    l_line_tbl(3).CALCULATE_PRICE_FLAG :='N';
    l_line_tbl(3).UNIT_SELLING_PRICE := c_data_rec.price3;
    l_line_tbl(3).UNIT_LIST_PRICE := c_data_rec.price3;
    l_line_tbl(3).attribute13:=v_item_type3;
    l_line_tbl(3).operation := OE_GLOBALS.G_OPR_CREATE;
    --end if;
    -- FOURTH LINE RECORD
    --elsif c_data_rec.item4 is not null then
    l_line_tbl(4) := OE_ORDER_PUB.G_MISS_LINE_REC;
    l_line_tbl(4).inventory_item_id := v_itemid4;
    l_line_tbl(4).ordered_quantity := c_data_rec.quantity4;
    l_line_tbl(4).CALCULATE_PRICE_FLAG :='N';
    l_line_tbl(4).UNIT_SELLING_PRICE := c_data_rec.price4;
    l_line_tbl(4).UNIT_LIST_PRICE := c_data_rec.price4;
    l_line_tbl(4).attribute13:=v_item_type4;
    l_line_tbl(4).operation := OE_GLOBALS.G_OPR_CREATE;
    elsif c_data_rec.item1 is not null and
    c_data_rec.item2 is not null and
    c_data_rec.item3 is not null then
    l_line_tbl(1) := OE_ORDER_PUB.G_MISS_LINE_REC;
    l_line_tbl(1).inventory_item_id :=v_itemid1;
    l_line_tbl(1).ordered_quantity := c_data_rec.quantity1;
    l_line_tbl(1).CALCULATE_PRICE_FLAG :='N';
    l_line_tbl(1).UNIT_SELLING_PRICE := c_data_rec.price1;
    l_line_tbl(1).UNIT_LIST_PRICE := c_data_rec.price1;
    l_line_tbl(1).attribute13:= v_item_type1;
    l_line_tbl(1).operation := OE_GLOBALS.G_OPR_CREATE;
    --end if;
    -- SECOND LINE RECORD
    --elsif c_data_rec.item2 is not null then
    l_line_tbl(2) := OE_ORDER_PUB.G_MISS_LINE_REC;
    l_line_tbl(2).inventory_item_id := v_itemid2;
    l_line_tbl(2).ordered_quantity := c_data_rec.quantity2;
    l_line_tbl(2).CALCULATE_PRICE_FLAG :='N';
    l_line_tbl(2).UNIT_SELLING_PRICE := c_data_rec.price2;
    l_line_tbl(2).UNIT_LIST_PRICE := c_data_rec.price2;
    l_line_tbl(2).attribute13:=v_item_type2;
    l_line_tbl(2).operation := OE_GLOBALS.G_OPR_CREATE;
    --end if;
    -- THIRD LINE RECORD
    --elsif c_data_rec.item3 is not null then
    l_line_tbl(3) := OE_ORDER_PUB.G_MISS_LINE_REC;
    l_line_tbl(3).inventory_item_id := v_itemid3;
    l_line_tbl(3).ordered_quantity := c_data_rec.quantity3;
    l_line_tbl(3).CALCULATE_PRICE_FLAG :='N';
    l_line_tbl(3).UNIT_SELLING_PRICE := c_data_rec.price3;
    l_line_tbl(3).UNIT_LIST_PRICE := c_data_rec.price3;
    l_line_tbl(3).attribute13:=v_item_type3;
    l_line_tbl(3).operation := OE_GLOBALS.G_OPR_CREATE;
    end if;
    -- CALL TO PROCESS ORDER
    OE_Order_PUB.Process_Order(
    p_api_version_number=>1.0,
    p_header_rec => l_header_rec,
    p_line_tbl=> l_line_tbl,
    p_line_adj_tbl=> l_line_adj_tbl,
    -- OUT variables,
    x_header_rec =>l_header_rec
    , x_header_val_rec =>l_header_val_rec
    , x_Header_Adj_tbl =>l_Header_Adj_tbl
    , x_Header_Adj_val_tbl =>l_Header_Adj_val_tbl
    , x_Header_price_Att_tbl =>l_Header_price_Att_tbl
    , x_Header_Adj_Att_tbl =>l_Header_Adj_Att_tbl
    , x_Header_Adj_Assoc_tbl =>l_Header_Adj_Assoc_tbl
    , x_Header_Scredit_tbl =>l_Header_Scredit_tbl
    , x_Header_Scredit_val_tbl=>l_Header_Scredit_val_tbl
    , x_line_tbl =>l_line_tbl
    , x_line_val_tbl =>l_line_val_tbl
    , x_Line_Adj_tbl =>l_Line_Adj_tbl
    , x_Line_Adj_val_tbl =>l_Line_Adj_val_tbl
    , x_Line_price_Att_tbl =>l_Line_price_Att_tbl
    , x_Line_Adj_Att_tbl =>l_Line_Adj_Att_tbl
    , x_Line_Adj_Assoc_tbl =>l_Line_Adj_Assoc_tbl
    , x_Line_Scredit_tbl =>l_Line_Scredit_tbl
    , x_Line_Scredit_val_tbl =>l_Line_Scredit_val_tbl
    , x_Lot_Serial_tbl =>l_Lot_Serial_tbl
    , x_Lot_Serial_val_tbl =>l_Lot_Serial_val_tbl
    , x_action_request_tbl =>l_action_request_tbl,
    x_return_status=> l_return_status,
    x_msg_count=> l_msg_count,
    x_msg_data=> l_msg_data);
    if l_msg_count > 0 then
    for l_index in 1..l_msg_count loop
    l_msg_data := oe_msg_pub.get(p_msg_index => l_index, p_encoded => 'F');
    update XXSC_SALES_ORDER_IMPORT
    set process_flag='E',remarks=l_msg_data
    where iwb_no=c_data_rec.iwb_no;
    commit;
    dbms_output.put_line('Order Failed.'||l_msg_data);
    end loop;
    end if;
    -- Check the return status
    if l_return_status = FND_API.G_RET_STS_SUCCESS then
    update XXSC_SALES_ORDER_IMPORT
    set process_flag='Y',ORDER_NUMBER=l_header_rec.order_number,remarks='SUCCESS'
    where iwb_no=c_data_rec.iwb_no;
    commit;
    fnd_file.put_line (fnd_file.output,'Order no:'||l_header_rec.order_number||' Created for the IWB no:'||c_data_rec.iwb_no);
    dbms_output.put_line('Order..'||l_header_rec.order_number);
    Else
    dbms_output.put_line('Order Failed.');
    end if;
    commit;
    END LOOP;
    End;
    /

    Your code always sends 4 line records with each header. Code is not checking if it belongs to same header or not. Please check your code.

  • TS1646 When I try to buy music, I get message saying that my credit card information does not match the bank records. My information, formatting are exactly the same as the bank. Help!

    When I try to buy music, I get message saying that my credit card information does not match the bank records. My information, formatting are exactly the same as the bank. Help!

    Look on one of your bank statements and be sure to enter the billing address exactly as it shows on the statement. Some folks forget where they actually get the statement. They put their home address in iTunes/Mac App Store and they actually get the statement at their place of employment or vice versa.

  • Trying to purchase an app from iTunes but it keep prompting to check my payment details . Apparently my address does not match the bank records

    I just got the iPhone 4. Trying to purchase apps, but keep getting prompts- that he billing address does not match the bank records. Fred close to 20 times. Frustrated !! Am travelling today for 2 weeks. Need this sorted ASAP .

    Contact the support staff for the stores at: http://www.apple.com/emea/support/itunes/contact.html

  • HOST command does not seem to work in deployment system

    I am developing forms software for a SUSE Linux system, but the HOST command does not seem to operate correctly when used in conjunction with Application Server.
    All I am trying to do is launch Adobe Acrobat reader as a background job using the command :-
    HOST('/opt/Adobe/Reader8/bin/acroread &');
    but nothing seems to happen.
    If I enter the command :-
    */opt/Adobe/Reader8/bin/acroread &*
    directly from a shell window (using the same login account) the command works correctly.
    I have tried other commands e.g. directory listings etc and all seem to have the same problem.
    Furthermore when the same form is run from the development environment using "Internet Developer Suite" it operates correctly with no problems.
    I am running on a deployment system where all three tiers of oracle are on the same machine (i.e. Database, AS and web front end).
    Can anybody suggest any possible causes or anything I can try to help resolve this problem ?

    brian_a_j wrote:
    Although I still dont understand why HOST would not work given my configuration (the Application Server and Web Browser operate on the same machine).One little test, put the execution command in a shell script and try to execute the script with the HOST command instead of the command itself.
    Using HOST the script will be executed on the AS machine no matter from where it is executed.
    Tony

  • LabVIEW serial command does not appear to complete until I open a Hyperterm.

    I can command my device using hyperterm. However, the LabIEW command does not appear to complete. I issue the command in LabVIEW and then open the hyperterm to verify the command was recevied (status query). When I start the hyperterm session (with a carriage return), I get a response from the device stating that it is performing the requested action, and then (after 1-2s) a response stating that the action has completed. I have tried commanding using both the VISA protocol and the basic serial I/O. I have also tried , and as my termination character in LabVIEW.

    But are you explicitly sending the termination character from LabVIEW? Just setting the termchar applies only to read operations, not writes.
    If you want VISA to send the termchar for you on write operations, set the property "ASRL End Out" to "TermChar".
    And if you are appending the termchar manually to the strings you send, make sure your LabVIEW strings have the backslash codes view turned on so you're actually sending the right code (instead of sending an actual backslash code itself across the serial cable).
    Dan Mondrik
    National Instruments

  • SAP integration kit - MDX parser does not exist

    Hi,
    While running a query via Web Intelligence, during the process where data should be retrieved, the error pops up that RFC destination MDX PARSER does not exist.
    The universe is built on an infoCube without intermediate BEx query.
    I know about the existence of note 1032461, but it didnu2019t get us further:
    -     Librfc32.dll (the one included during KIT installation) is at the right place.
    -     MDX BW Driver was included in transports.
    -      A RFC connection test via sm59 was positive.
    Anybody who had same error or having tips?
    All help would be highly appreciated since this should be fixed asap.
    Here some additional questions:
    1)     why program mdxsvr is listed in unix directory (visible via al11), and not on BO server site?
    2)     The librfc32.dll file included in the installation has a lower patch number then the patch number when downloading from sap marketplace.
    Is this important even when Patch Level is the same? So still necessary to change this file with version separately downloaded?
    3)     Is it necessary that MDX is added to the BW internet communication framework (transaction SICF  sap  bw  bex, Mime, xml, and also MDX necessary?)
    4)     Should the BW system be added to the broadcasting availability (spro)?
    5)     Could this indicate a problem with the java connector?
    6)     We created a RFC connection following the advice about BO-BW connection. But, is there need of an additional connection called u2018MDX Parseru2019. If yes, where do I find info how-to?
    Here the full error:
    A database error occured. The database error text is: The MDX query SELECT {  } ON COLUMNS , [0COMP_CODE].[LEVEL00].MEMBERS DIMENSION PROPERTIES MEMBER_CAPTION ON ROWS FROM [ZCO_PA_2/ZCOPA_DAILY_AGGR] SAP VARIABLES [0P_FPER] INCLUDING [0FISCPER].[K42010001] [ZCURR1] INCLUDING [0CURRENCY].[EUR] failed to execute with the error Error occurred when starting the parser: RFC destination MDX PARSER does not exist.. (WIS 10901)

    Hi,
    hhmm - i can still see it and status is "released to customers"
    If you have a S-User and pwd use this link:
    https://websmp130.sap-ag.de/sap%28bD1lbiZjPTAwMQ==%29/bc/bsp/sno/ui_entry/entry.htm?param=69765F6D6F64653D3030312669765F7361706E6F7465735F6E756D6265723D3132363135303726
    Regards
    -Seb.

  • SQL*Plus COPY command does not work

    SQL*Plus COPY command does not work in SQL Developer. I am using SQL Developer 1.5.1 on Windows XP.
    copy from <source_db_connection> to <target_db_connection> create <target_tab_name> using select * from <source_tab_name>
    Does it work on different versions of SQL Developer ?
    Anyone had any success in trying COPY command in SQL Developer?
    Thanks in advance.

    While it hasn't been updated for v1.5, this page lists the supported SQL*Plus commands. COPY is explicitly listed as not supported.
    theFurryOne

  • Delete command does not work

    delete command does not work.. it just freezes neither roll back happens.. please advice

    Always: If possible, give the exact command & output from your terminal, pefrerrable with copy & paste. We cannot see your screen and magically spot the problem.
    In general, you should also include your database version and OS, although I doubt that this is relevant in this particular case.
    Kind regards
    Uwe Hesse
    http://uhesse.wordpress.com

  • Play to order command does not show--help

    When I rearrange my ipod shuffle list and do control click on a song for the shortcut menu the play to order command does not show up i the menu. The menu does not look like what was in the other post. I am frustrated because I listen to audiobooks... and need them in order.
    The menu has lots of options, but not the play order command. HELP.

    Hello Beth,
    Unfortunately, Apple didn't consider that some people might buy a shuffle but want to use it in normal ways. I'm not using iTunes anymore... it causes more trouble than help. But I remember iTunes arranging the music on my shuffle in the order items were put there. Why don't you try it?
    Kahlil

  • My "undo" command does not work in the new version of GB.  Please advise.  This is a real problem.  I had no issues with  GB from iLife 11.

    My "undo" command does not work in the new version of GB.  Please advise.  This is a real problem.  I had no issues with  GB from iLife 11.

    Most likely you have Office 2004 which are PPC-only applications and will not work in Lion. Upgrade to Office 2011. Other alternatives are:
    Apple's iWork suite (Pages, Numbers, and Keynote.)
    Open Office (Office 2007-like suite compatible with OS X.)
    NeoOffice (similar to Open Office.)
    LibreOffice (a new direction for the Open Office suite.)

Maybe you are looking for

  • Photo transfer issue due to update

    When I use the usb cable on my iPhone 4 to transfer my photos a trust this computer box comes up on my phone. I tap the trust and then it will ask me again. The only net i currently have is on my phone not on my pc. Is there any other way to transfer

  • BB Bold 9900 Won't Backup, pls advise!

    I just got a new MacBook Air -- I guess it's running Mountain Lion (10.8.4) - and I'm having problems backing up my Berry (didn't have any recent issues w my old computer).   Is there a flaw w the Mountain Lion software?   BB Desktop Software said I

  • App Download

    I have and i-Pod touch 4g and want to update an app (Real Racing 3). As it finishes installing it said "Unable to Download Application" and I always press retry but it still won't work. I already tried using other Wi-Fi but it still won't work. Pleas

  • How to call *.C file in LV

    Hi frenz, i have created .C file for addtion of two numbers. Now i need to call that file from LabVIEW. How is it possible?. Thanks in Advance 

  • Signing Applets in IE

    Hi , I am coding an Applet, to write to a file in the client Machine. I followed the steps given in this forum to create Signed Applet. This applet is working fine in the local machine were the Server is running(TOmcat).But if I call the jsp from ano