SRM purchase order number must equal the number of transferred requisition

HI,
KNOW SOMEONE A BADI WHAT CREATE IN  SRM A PURCHASE ORDER WITH THE SAME  NUMBER ORDER TRANSFERRED  R / 3 .

Hi Yasar?
Did you evaluate working with valuated sales order stock?
This way your PP people could use Make to Order style manufacturing and produce for a special "batch" => The sales order special stock.
Can be used in Repetitive Manufacturing and has no impact in costing, therefore a nice option for the situation you are describing.
In MD04 a special segment will appear for the the Sales Order stock and this stock will only be able to be shipped for this special order.
Best Regards,
Franck

Similar Messages

  • ORA-01785: ORDER BY item must be the number of a SELECT-list expression

    I have a dynamic SQL on a page. The SQL is dynamic because there are 3 LOV fields from which the user may make selections, and those field values are used in the WHERE clause. Also, the 2nd LOV field is populated with AJAX based on the 1st LOV's selection. And, the SQL joins to another table. The report has 7 sortable columns. The main table the SQL runs over has about 1,000 rows in it.
    The 2nd table has about 500 rows. (Sorry, I'm not sure what information you might need to help me, so I listed several details.)
    The application, and page, have been working flawlessly for several weeks. Then, yesterday the page was being used and the user received the "ORA-01785: ORDER BY item must be the number of a SELECT-list expression" error. The error just appeared out of the blue, so to speak. After weeks of of usage this is the first time this error has appeared. The application had not been changed, but they had been entering data into the main table and the table joined to in the SQL. The application is in production, so I can't put the application into DEBUG, etc. to see what SQL is being built.
    Anyway, I was trying to debug the page today and was doing selections and seeing what would display, then as suddenly as the page quit working it started working correctly. No code changes made, no server changes made (to my knowledge), and no data changes made.
    I'm new to both Oracle and Apex, and am not a SQL, Oracle or Apex expert. So, I am very perplexed and don't have any idea of what could be happening.
    I don't know if it's an issue with the SQL, AJAX not loading the select fields properly, a corrupted table, a server load issue, or something else all together.
    Any suggestions?
    Also, I'm not familiar with Oracle error messages. Can they be red herrings sometimes? Because, I don't programmaticly code the ORDER BY of the SQL. Apex appends that part. So, how could that aspect quit working. And, then suddenly start working.
    Sorry, but I'm extremely confused. :-) Any suggestions or help will be greatly appreciated.
    Thanks, Tony

    Hi Dan,
    Thanks for the feedback. I'm not going to be dogmatic about possible cause, but it has myself and another Oracle developer (who writes SQL and PL/SQL in his sleep) stumped. He doesn't think it's the SQL. Your suggestion was one of the first things we thought of considering the error message we got, but from Scott's reply that it could be a red herring, and after additional testing we've ruled the SQL out for now.
    I understand what you're saying, but the SQL selects all the columns (about 40 columns are selected) that are sortable columns on the report. I've sorted by all the columns by clicking on them and that aspect works without error.
    The SQL is created dynamically and is quite large. I've included below just for information purposes.
    Thanks, Tony
    = = = = = = =
    DECLARE
    q VARCHAR2 (4000);
    BEGIN
    q := 'select ';
    q := q || 'hd."ID", hd."MODEL", hd."YEAR", hd."HIN", hd."BOAT_STATUS", hd."SPECIAL_ACTIVITY", hd."PARTIAL_KIT_VALUE",
    hd.OPTION_NUMBER || '' - '' || e.DESCRIPTION OPTION_NUMBER,
    hd."OPTIONS_HOURS", hd."OPTIONS_MATERIAL", hd."STATION", hd."ACTIVITY_COMMENT", hd."BI_EQUIV_MATERIAL",
    hd."BI_EQUIV_LABOR", hd."EI_EQUIV_MATERIAL", hd."EI_EQUIV_LABOR", hd."BASE_BOAT", hd."SA_ENGINES",
    hd."SA_OPTIONS", hd."DY_STANDARD_MATERIAL", hd."DY_STANDARD_LABOR", hd."DY_STANDARD_OVERHEAD",
    hd."DY_STANDARD_ENGINE", hd."DY_ENGINE_ENGINEUP", hd."DY_ENGINE_MATERIAL", hd."DY_ENGINE_LABOR",
    hd."DY_ENGINE_OVERHEAD", hd."DY_OPTIONS_MATERIAL", hd."DY_OPTIONS_LABOR", hd."DY_OPTIONS_OVERHEAD", hd."EI_STANDARD_UNITS", hd."EI_STANDARD_MATERIAL", hd."EI_STANDARD_LABOR", hd."EI_STANDARD_OVERHEAD", hd."EI_STANDARD_ENGINE", hd."EI_ENGINE_ENGINEUP", hd."EI_ENGINE_MATERIAL", hd."EI_ENGINE_LABOR", hd."EI_ENGINE_OVERHEAD", hd."EI_OPTIONS_MATERIAL", hd."EI_OPTIONS_LABOR", hd."EI_OPTIONS_OVERHEAD",
    htmldb_item.hidden(50,hd.ID) idalias ';
    q := q || 'from "PLP_HIN_DETAIL" hd , "PLP_ENGINES" e ';
    IF
    :P10_SEARCH_MODEL IS NOT NULL
    AND :P10_SEARCH_MODEL <> '%null%'
    AND :P10_SEARCH_YEAR IS NOT NULL
    AND :P10_SEARCH_YEAR <> '%null%'
    AND :P10_SEARCH_STATUS IS NOT NULL
    AND :P10_SEARCH_STATUS <> '%null%'
    THEN
    q := q || 'WHERE
    (instr(upper(hd.MODEL),upper(nvl(:P10_SEARCH_MODEL,hd.MODEL))) > 0
    AND instr(upper(hd.YEAR),upper(nvl(:P10_SEARCH_YEAR,hd.YEAR))) > 0
    AND instr(upper(hd.BOAT_STATUS),upper(nvl(:P10_SEARCH_STATUS,hd.BOAT_STATUS))) > 0)
    AND e.OPTION_NUMBER (+) = hd.OPTION_NUMBER and e.YEAR (+) = hd.YEAR AND e.MODEL (+) = hd.MODEL AND e.PLP_ID (+) = hd.PLP_ID';
    ELSE
    IF
    :P10_SEARCH_MODEL IS NOT NULL
    OR :P10_SEARCH_YEAR IS NOT NULL
    OR :P10_SEARCH_STATUS IS NOT NULL
    THEN
    q := q || 'WHERE
    (instr(upper(hd.MODEL),upper(nvl(:P10_SEARCH_MODEL,hd.MODEL))) > 0
    AND instr(upper(hd.YEAR),upper(nvl(:P10_SEARCH_YEAR,hd.YEAR))) > 0
    or instr(upper(hd.BOAT_STATUS),upper(nvl(:P10_SEARCH_STATUS,hd.BOAT_STATUS))) > 0)
    AND e.OPTION_NUMBER (+) = hd.OPTION_NUMBER and e.YEAR (+) = hd.YEAR AND e.MODEL (+) = hd.MODEL AND e.PLP_ID (+) = hd.PLP_ID';
    else
    q := q || 'WHERE e.option_number = hd.option_number and e.year = hd.year and e.model = hd.model and e.plp_id = hd.plp_id';
    END IF;
    END IF;
    q := q || ' AND :P0_PLP_ID = hd.PLP_ID';
    return q;
    END;

  • ORA-01785 error :ORDER BY item must be the number of a SELECT-list expressi

    When i'm sorting on a calculated field i'm getting the following error:
    ORDER BY item must be the number of a SELECT-list expression
    Please any help?
    Thanks

    Here is the query, but its generated by the disco plus:
    WITH
    DISC_TMP_090921083714 as (
    SELECT /*+ NOREWRITE */DECODE(( DECODE(( DECODE(o787901.DISTRICT,'1000','D10','2000','D20','3000','D30','4000','D40','5000','D50','6000','D60') ),NULL,( DECODE(o787901.DISTRICT,'1000','D10','2000','D20','3000','D30','4000','D40','5000','D50','6000','D60') )||o787901.DISTRICT,( DECODE(o787901.DISTRICT,'1000','D10','2000','D20','3000','D30','4000','D40','5000','D50','6000','D60') )) ),'D10','Crawfordsville','D20','Fort Wayne','D30','Greenfield','D40','LaPorte','D50','Seymour','D60','Vincennes') as C_1,o787901.INVOICE_DT as E787916,SUM(o787901.USED_AMOUNT) as E787915_SUM,( SUM(o787901.PS_QTY) )-( ( SUM(o787901.PO_PAYMNTS) )/( CASE WHEN ( SUM(o787901.UNIT_COST) ) = 0 THEN ( ( SUM(o787901.ORIGINAL_AMOUNT) )/( SUM(o787901.PS_QTY) ) ) ELSE ( SUM(o787901.UNIT_COST) ) END ) ) as C_4,( 0.8*( SUM(o787901.PS_QTY) ) )-( ( SUM(o787901.PO_PAYMNTS) )/( CASE WHEN ( SUM(o787901.UNIT_COST) ) = 0 THEN ( ( SUM(o787901.ORIGINAL_AMOUNT) )/( SUM(o787901.PS_QTY) ) ) ELSE ( SUM(o787901.UNIT_COST) ) END ) ) as C_5,( SUM(o787901.PO_PAYMNTS) )/( CASE WHEN ( SUM(o787901.UNIT_COST) ) = 0 THEN ( ( SUM(o787901.ORIGINAL_AMOUNT) )/( SUM(o787901.PS_QTY) ) ) ELSE ( SUM(o787901.UNIT_COST) ) END ) as C_3,0.8*( SUM(o787901.PS_QTY) ) as C_2,SUM(o787901.PS_QTY) as E787907_SUM,( ( SUM(o787901.ENCUMB_AMNT) )/( SUM(o787901.ORIGINAL_AMOUNT) ) ) as C_6,SUM(o787901.ORIGINAL_AMOUNT) as E787909_SUM,( SUM(o787901.ENCUMB_AMNT) )-( SUM(o787901.PO_PAYMNTS) ) as C_7,SUM(o787901.PO_PAYMNTS) as E787905_SUM,SUM(o787901.ENCUMB_AMNT) as E787908_SUM
    FROM ( select sum(t1.AMOUNT) po_paymnts,
    (t2.ORIGINAL_AMOUNT/t2.PS_QTY) unit_cost_1,
    t1.PO_NO,
    t2.PS_QTY,
    t2.AMOUNT encumb_amnt,
    t2.ORIGINAL_AMOUNT,
    T2.class district,
    0 owner_id,
    0 stock_id,
    0 received_amount,
    0 curr_amount,
    0used_amount,
    to_char(add_months(t1.INVOICE_DT,6),'YYYY') invoice_dt,
    0 unit_cost
    from dwtarget.dw_ps_all_payments_fact t1,dwtarget.dw_ps_ap_po_rq_fact t2
    where t1.PO_NO=t2.PS_NO
    and t1.LINE_NO=t2.PS_LINE
    and t2.OBJECT in ('545000','545001')
    group by t1.PO_NO,T2.class,t2.PS_QTY,t2.AMOUNT,t2.ORIGINAL_AMOUNT,t2.class,to_char(add_months(t1.INVOICE_DT,6),'YYYY')
    union all
    select 0 unit_cost_1,0 po_paymnts,to_char(0) po_no,0 ps_qty,0 encumb_amnt,0 original_amount,to_char(t2.owner_cat) district, t1.owner_id, stock_id,
    sum(received_amount) received_amount,
    sum(curr_amount) curr_amount,
    sum(used_amount) used_amount,
         date_work,
    unit_cost
         from
    (select owner_id_to owner_id,stock_id_to stock_id,sum(full_amount) received_amount,0 curr_amount,0 used_amount,null date_work,unit_cost
    from dwtarget.dw_wms_mat_transfer
    where master_code_id in ('8664','8665')
    and unit_id='724'
    group by owner_id_to,stock_id_to,unit_cost
    union all
    select owner_id,stock_id,0 received_amount,sum(curr_amount) curr_amount,0 used_amount,null date_work,0 unit_cost
    from dwtarget.dw_wms_mat_inv
    where master_code_id in ('8664','8665')
    group by owner_id,stock_id
    union all
    select t2.owner_id, t1.stock_id, 0 received_amt, 0 curr_amt, sum(amount) used_amt,to_char(add_months(date_work,6),'YYYY') date_work,0 unit_cost
    from dwtarget.dw_wms_wo_mat_dc t1,
    (select owner_id,stock_id
    from dwtarget.dw_wms_mat_inv
    where master_code_id in ('8664','8665')
    group by owner_id,stock_id)t2
    where t1.stock_id = t2.stock_id
    and unit_id='724'
    group by t2.owner_id, t1.stock_id,to_char(add_months(date_work,6),'YYYY')) t1,
    dwtarget.dw_wms_setup_owner t2
    where t1.owner_id = t2.owner_id
    group by t2.owner_cat,t1.owner_id,stock_id,date_work,unit_cost
    ) o787901
    GROUP BY DECODE(( DECODE(( DECODE(o787901.DISTRICT,'1000','D10','2000','D20','3000','D30','4000','D40','5000','D50','6000','D60') ),NULL,( DECODE(o787901.DISTRICT,'1000','D10','2000','D20','3000','D30','4000','D40','5000','D50','6000','D60') )||o787901.DISTRICT,( DECODE(o787901.DISTRICT,'1000','D10','2000','D20','3000','D30','4000','D40','5000','D50','6000','D60') )) ),'D10','Crawfordsville','D20','Fort Wayne','D30','Greenfield','D40','LaPorte','D50','Seymour','D60','Vincennes'),o787901.INVOICE_DT
    HAVING (( SUM(o787901.PS_QTY) ) != 0))
    SELECT C_1 as C_1,E787916 as E787916,E787915_SUM as E787915_SUM,C_4 as C_4,C_5 as C_5,C_3 as C_3,C_2 as C_2,E787907_SUM as E787907_SUM,C_6 as C_6,E787909_SUM as E787909_SUM,C_7 as C_7,E787905_SUM as E787905_SUM,E787908_SUM as E787908_SUM, 0
    FROM DISC_TMP_090921083714
    UNION ALL
    SELECT /*+ NOREWRITE */C_1 as C_1,E787916 as E787916,E787915_SUM as E787915_SUM,C_4 as C_4,C_5 as C_5,C_3 as C_3,C_2 as C_2,E787907_SUM as E787907_SUM,C_6 as C_6,E787909_SUM as E787909_SUM,C_7 as C_7,E787905_SUM as E787905_SUM,E787908_SUM as E787908_SUM, GID as GID FROM (SELECT DECODE(( DECODE(( DECODE(o787901.DISTRICT,'1000','D10','2000','D20','3000','D30','4000','D40','5000','D50','6000','D60') ),NULL,( DECODE(o787901.DISTRICT,'1000','D10','2000','D20','3000','D30','4000','D40','5000','D50','6000','D60') )||o787901.DISTRICT,( DECODE(o787901.DISTRICT,'1000','D10','2000','D20','3000','D30','4000','D40','5000','D50','6000','D60') )) ),'D10','Crawfordsville','D20','Fort Wayne','D30','Greenfield','D40','LaPorte','D50','Seymour','D60','Vincennes') as C_1,o787901.INVOICE_DT as E787916,SUM(o787901.USED_AMOUNT) as E787915_SUM,( SUM(o787901.PS_QTY) )-( ( SUM(o787901.PO_PAYMNTS) )/( CASE WHEN ( SUM(o787901.UNIT_COST) ) = 0 THEN ( ( SUM(o787901.ORIGINAL_AMOUNT) )/( SUM(o787901.PS_QTY) ) ) ELSE ( SUM(o787901.UNIT_COST) ) END ) ) as C_4,( 0.8*( SUM(o787901.PS_QTY) ) )-( ( SUM(o787901.PO_PAYMNTS) )/( CASE WHEN ( SUM(o787901.UNIT_COST) ) = 0 THEN ( ( SUM(o787901.ORIGINAL_AMOUNT) )/( SUM(o787901.PS_QTY) ) ) ELSE ( SUM(o787901.UNIT_COST) ) END ) ) as C_5,( SUM(o787901.PO_PAYMNTS) )/( CASE WHEN ( SUM(o787901.UNIT_COST) ) = 0 THEN ( ( SUM(o787901.ORIGINAL_AMOUNT) )/( SUM(o787901.PS_QTY) ) ) ELSE ( SUM(o787901.UNIT_COST) ) END ) as C_3,0.8*( SUM(o787901.PS_QTY) ) as C_2,SUM(o787901.PS_QTY) as E787907_SUM,( ( SUM(o787901.ENCUMB_AMNT) )/( SUM(o787901.ORIGINAL_AMOUNT) ) ) as C_6,SUM(o787901.ORIGINAL_AMOUNT) as E787909_SUM,( SUM(o787901.ENCUMB_AMNT) )-( SUM(o787901.PO_PAYMNTS) ) as C_7,SUM(o787901.PO_PAYMNTS) as E787905_SUM,SUM(o787901.ENCUMB_AMNT) as E787908_SUM,GROUPING_ID(( DECODE(( DECODE(( DECODE(o787901.DISTRICT,'1000','D10','2000','D20','3000','D30','4000','D40','5000','D50','6000','D60') ),NULL,( DECODE(o787901.DISTRICT,'1000','D10','2000','D20','3000','D30','4000','D40','5000','D50','6000','D60') )||o787901.DISTRICT,( DECODE(o787901.DISTRICT,'1000','D10','2000','D20','3000','D30','4000','D40','5000','D50','6000','D60') )) ),'D10','Crawfordsville','D20','Fort Wayne','D30','Greenfield','D40','LaPorte','D50','Seymour','D60','Vincennes') ),o787901.INVOICE_DT) as GID
    FROM ( select sum(t1.AMOUNT) po_paymnts,
    (t2.ORIGINAL_AMOUNT/t2.PS_QTY) unit_cost_1,
    t1.PO_NO,
    t2.PS_QTY,
    t2.AMOUNT encumb_amnt,
    t2.ORIGINAL_AMOUNT,
    T2.class district,
    0 owner_id,
    0 stock_id,
    0 received_amount,
    0 curr_amount,
    0used_amount,
    to_char(add_months(t1.INVOICE_DT,6),'YYYY') invoice_dt,
    0 unit_cost
    from dwtarget.dw_ps_all_payments_fact t1,dwtarget.dw_ps_ap_po_rq_fact t2
    where t1.PO_NO=t2.PS_NO
    and t1.LINE_NO=t2.PS_LINE
    and t2.OBJECT in ('545000','545001')
    group by t1.PO_NO,T2.class,t2.PS_QTY,t2.AMOUNT,t2.ORIGINAL_AMOUNT,t2.class,to_char(add_months(t1.INVOICE_DT,6),'YYYY')
    union all
    select 0 unit_cost_1,0 po_paymnts,to_char(0) po_no,0 ps_qty,0 encumb_amnt,0 original_amount,to_char(t2.owner_cat) district, t1.owner_id, stock_id,
    sum(received_amount) received_amount,
    sum(curr_amount) curr_amount,
    sum(used_amount) used_amount,
         date_work,
    unit_cost
         from
    (select owner_id_to owner_id,stock_id_to stock_id,sum(full_amount) received_amount,0 curr_amount,0 used_amount,null date_work,unit_cost
    from dwtarget.dw_wms_mat_transfer
    where master_code_id in ('8664','8665')
    and unit_id='724'
    group by owner_id_to,stock_id_to,unit_cost
    union all
    select owner_id,stock_id,0 received_amount,sum(curr_amount) curr_amount,0 used_amount,null date_work,0 unit_cost
    from dwtarget.dw_wms_mat_inv
    where master_code_id in ('8664','8665')
    group by owner_id,stock_id
    union all
    select t2.owner_id, t1.stock_id, 0 received_amt, 0 curr_amt, sum(amount) used_amt,to_char(add_months(date_work,6),'YYYY') date_work,0 unit_cost
    from dwtarget.dw_wms_wo_mat_dc t1,
    (select owner_id,stock_id
    from dwtarget.dw_wms_mat_inv
    where master_code_id in ('8664','8665')
    group by owner_id,stock_id)t2
    where t1.stock_id = t2.stock_id
    and unit_id='724'
    group by t2.owner_id, t1.stock_id,to_char(add_months(date_work,6),'YYYY')) t1,
    dwtarget.dw_wms_setup_owner t2
    where t1.owner_id = t2.owner_id
    group by t2.owner_cat,t1.owner_id,stock_id,date_work,unit_cost
    ) o787901
    WHERE ( SYS_OP_MAP_NONNULL(DECODE(( DECODE(( DECODE(o787901.DISTRICT,'1000','D10','2000','D20','3000','D30','4000','D40','5000','D50','6000','D60') ),NULL,( DECODE(o787901.DISTRICT,'1000','D10','2000','D20','3000','D30','4000','D40','5000','D50','6000','D60') )||o787901.DISTRICT,( DECODE(o787901.DISTRICT,'1000','D10','2000','D20','3000','D30','4000','D40','5000','D50','6000','D60') )) ),'D10','Crawfordsville','D20','Fort Wayne','D30','Greenfield','D40','LaPorte','D50','Seymour','D60','Vincennes')) , SYS_OP_MAP_NONNULL(o787901.INVOICE_DT) ) IN ( SELECT SYS_OP_MAP_NONNULL(C_1) , SYS_OP_MAP_NONNULL(E787916) FROM DISC_TMP_090921083714)
    GROUP BY GROUPING SETS(( ( DECODE(( DECODE(( DECODE(o787901.DISTRICT,'1000','D10','2000','D20','3000','D30','4000','D40','5000','D50','6000','D60') ),NULL,( DECODE(o787901.DISTRICT,'1000','D10','2000','D20','3000','D30','4000','D40','5000','D50','6000','D60') )||o787901.DISTRICT,( DECODE(o787901.DISTRICT,'1000','D10','2000','D20','3000','D30','4000','D40','5000','D50','6000','D60') )) ),'D10','Crawfordsville','D20','Fort Wayne','D30','Greenfield','D40','LaPorte','D50','Seymour','D60','Vincennes') ),o787901.INVOICE_DT ),( ( DECODE(( DECODE(( DECODE(o787901.DISTRICT,'1000','D10','2000','D20','3000','D30','4000','D40','5000','D50','6000','D60') ),NULL,( DECODE(o787901.DISTRICT,'1000','D10','2000','D20','3000','D30','4000','D40','5000','D50','6000','D60') )||o787901.DISTRICT,( DECODE(o787901.DISTRICT,'1000','D10','2000','D20','3000','D30','4000','D40','5000','D50','6000','D60') )) ),'D10','Crawfordsville','D20','Fort Wayne','D30','Greenfield','D40','LaPorte','D50','Seymour','D60','Vincennes') ) ))
    HAVING GROUP_ID()=0
    AND GROUPING_ID(( DECODE(( DECODE(( DECODE(o787901.DISTRICT,'1000','D10','2000','D20','3000','D30','4000','D40','5000','D50','6000','D60') ),NULL,( DECODE(o787901.DISTRICT,'1000','D10','2000','D20','3000','D30','4000','D40','5000','D50','6000','D60') )||o787901.DISTRICT,( DECODE(o787901.DISTRICT,'1000','D10','2000','D20','3000','D30','4000','D40','5000','D50','6000','D60') )) ),'D10','Crawfordsville','D20','Fort Wayne','D30','Greenfield','D40','LaPorte','D50','Seymour','D60','Vincennes') ),o787901.INVOICE_DT) != 0)
    ORDER BY 14 DESC;
    Thanks

  • Help on ORA-01785: ORDER BY item must be the number of a SELECT-list expres

    Hi
    Please find the SQL below . I am unable to place ORDER bY upper(column) due to error ORA-01785: ORDER BY item must be the number of a SELECT-list expression. Please help
    SELECT engn_cnslt_list.cnslt_hcp_id "hcp_id",
    hcp.first_nm "first_nm", hcp.last_nm "last_nm",
    FROM cnslt_engn, engn_tier_dtl, engn_cnslt_list, hcp
    WHERE cnslt_engn.cnslt_engn_id = engn_cnslt_list.cnslt_engn_id
    AND engn_cnslt_list.cnslt_hcp_id = hcp.hcp_id
    AND engn_tier_dtl.cnslt_engn_id = cnslt_engn.cnslt_engn_id
    AND engn_tier_dtl.engn_tier_dtl_id =
    engn_cnslt_list.engn_tier_dtl_id
    AND cnslt_engn.cnslt_engn_id = 100643
    AND engn_cnslt_list.cnslt_hcp_id NOT IN (
    SELECT hcp_id
    FROM mtg_cnslt_list
    WHERE cnslt_mtg_id IN (SELECT cnslt_mtg_id
    FROM cnslt_mtg
    WHERE cnslt_engn_id = 1000643)
    AND hcp_id IS NOT NULL)
    UNION
    SELECT mtg_cnslt_list.hcp_id "hcp_id", hcp.first_nm "first_nm",
    hcp.last_nm "last_nm",
    FROM cnslt_mtg,
    cnslt_engn,
    mtg_cnslt_list,
    engn_tier_dtl,
    engn_cnslt_list,
    hcp
    WHERE cnslt_engn.cnslt_engn_id = cnslt_mtg.cnslt_engn_id
    AND cnslt_engn.cnslt_engn_id = engn_cnslt_list.cnslt_engn_id
    AND engn_cnslt_list.cnslt_hcp_id = mtg_cnslt_list.hcp_id
    AND engn_cnslt_list.cnslt_hcp_id = hcp.hcp_id
    AND cnslt_mtg.cnslt_mtg_id = mtg_cnslt_list.cnslt_mtg_id
    AND engn_tier_dtl.cnslt_engn_id = cnslt_engn.cnslt_engn_id
    AND mtg_cnslt_list.engn_tier_dtl_id =
    engn_tier_dtl.engn_tier_dtl_id
    AND cnslt_engn.cnslt_engn_id = 1000643
    order by upper(last_nm),upper(first_nm)

    try:
    select * from (SELECT engn_cnslt_list.cnslt_hcp_id "hcp_id",
    hcp.first_nm "first_nm", hcp.last_nm "last_nm",
    FROM cnslt_engn, engn_tier_dtl, engn_cnslt_list, hcp
    WHERE cnslt_engn.cnslt_engn_id = engn_cnslt_list.cnslt_engn_id
    AND engn_cnslt_list.cnslt_hcp_id = hcp.hcp_id
    AND engn_tier_dtl.cnslt_engn_id = cnslt_engn.cnslt_engn_id
    AND engn_tier_dtl.engn_tier_dtl_id =
    engn_cnslt_list.engn_tier_dtl_id
    AND cnslt_engn.cnslt_engn_id = 100643
    AND engn_cnslt_list.cnslt_hcp_id NOT IN (
    SELECT hcp_id
    FROM mtg_cnslt_list
    WHERE cnslt_mtg_id IN (SELECT cnslt_mtg_id
    FROM cnslt_mtg
    WHERE cnslt_engn_id = 1000643)
    AND hcp_id IS NOT NULL)
    UNION
    SELECT mtg_cnslt_list.hcp_id "hcp_id", hcp.first_nm "first_nm",
    hcp.last_nm "last_nm",
    FROM cnslt_mtg,
    cnslt_engn,
    mtg_cnslt_list,
    engn_tier_dtl,
    engn_cnslt_list,
    hcp
    WHERE cnslt_engn.cnslt_engn_id = cnslt_mtg.cnslt_engn_id
    AND cnslt_engn.cnslt_engn_id = engn_cnslt_list.cnslt_engn_id
    AND engn_cnslt_list.cnslt_hcp_id = mtg_cnslt_list.hcp_id
    AND engn_cnslt_list.cnslt_hcp_id = hcp.hcp_id
    AND cnslt_mtg.cnslt_mtg_id = mtg_cnslt_list.cnslt_mtg_id
    AND engn_tier_dtl.cnslt_engn_id = cnslt_engn.cnslt_engn_id
    AND mtg_cnslt_list.engn_tier_dtl_id =
    engn_tier_dtl.engn_tier_dtl_id
    AND cnslt_engn.cnslt_engn_id = 1000643
    order by upper(last_nm),upper(first_nm)

  • Modify the output medium log for SRM Purchase order

    Hi, I'm using a FM BBP_ECS_PO_OUT_BADI to modify the output medium of the SRM purchase order. Though it is displaying it in the header level output medium ( radio buttons )
    the document output log holds the old value. Is there a way to modify/update the output log to hold the changed output medium?

    Prasanna,
    Is this to block the PO's being sent to vendors temporarily? We had similar requirement and we were able to do it by updating table BBPD_PO_METAOUT. SAP Note 659386 has more information on it.
    Regards,
    Suren

  • Argument error; the number of columns does not equal the number of parameters.

    I am using the Database Toolkit (Enterprise Connectivity) to check for a network connection and then send information from a local database to a SQL database on the network if needed.  In development of the code I continue to receive Error 1 and the Possible Reason(s) is "Argument error; the number of columns does not equal the number of parameters."  I am using the DBToolsSelectData.VI to retrieve data from the local MDB file and the DBToolsInsertData.VI to write it to the SQL file.  The collection of the data from the MDB file is successful and the connection and validation of the table and columns in the SQL file is also successful.  The error occurs when the Insert VI tries to build the query.  The number of columns being written (attempted) does match the number of columns in the data, they are both 16 string arrays.

    Ok, it's taken a bit, and I have a solution! It took a while to figure out what the DCT is doing, but it seems to be working now.
    The reason for the original error is that you were passing into the insert subVI an array of variants - which the input to the VI coerced into a single variant. You were getting the error because as far as the insert VI was concerned you were only passing it a single data value. The way to get around that was to create a cluster with one element for each column value, convert the cluster to a variant and pass the result to the insert VI - see attachment.
    In terms of the other modifications, I made a copy of the endurance.mdb file, emptied it and used it as the destination for the copy.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps
    Attachments:
    NetworkCheck.vi ‏49 KB

  • CHANGE THE OUTPUT MEDIUM FOR SRM PURCHASE ORDERS

    We are using SRM 5.0
    I tried to change the SRM purchase order's output
    medium from 'XML' to 'Print' using a function module
    'BBP_OUTPUT_PO_PARAMS_SET' within the BADI 'BBP_ECS_PO_OUT_BADI'. Though it changes the
    output medium and chooses the right radio button
    at the UI interface level (i.e)
    Purchase order Header->output->
                        radio buttons(print,email,fax,xml)
    It still holds the output medium as 'XML' at the
    Document output log and process the document as 'XML'.
    Is there a way to update the output log to hold the changed medium i.e (print)
    Thanks and Regards,
    Gia

    Hi,
    Have a look at the foll thread for more pointers;
    Re: Change medium of output for Changed PO in SRM
    BR,
    Disha.
    Do reward points for useful answers.

  • SRM Purchase order form?

    Hi
    SRM Purchase order form
    As we are implimenting SRM 7.0  for of the project,We have one of the scenario called :SRM Purchase order form
    So we need to find the actual content of the Po from.?
    Can any one can give the Actual content of the PO form ?

    Hi Rameshwar,
    PO form is something you need to discuss with Business, they will be able to provide you the data which you need to input in the form.
    Generally below things are mentioned in PO form.
    - PO Number
    - Vendor Name & Address
    - Delivery Address
    - Invoice address
    - Terms of Payment/Delivery
    - Contact Person Name & Telephone or email
    - Company Logo
    - Item, Item descirption (material no if you have), quantity, Unit of measurement, net price, tax, total price, currency.
    - General remark like disclaimer....etc...
    Best Regards,
    Anil

  • BADI / User exit for Purchase order(ME21N) after saving the document

    Hi expert,
    I need the BADI / User exit for Purchase order(ME21N) after saving the document
    This is for email sending after create the purchase order so PO document number will be the import parameter
    pls help me
    point will be reward
    Regards,
    Ganesh

    Hi Ganesh,
    Could you please share your solution?
    Thanks.
    Hoops
    Edited by: Hoops on Jun 13, 2011 10:51 PM

  • BBP_PDIGP-GROSS_PRICE zero in SRM purchase order

    Hello All,
    We are using extended classic scenarion SRM 5.0 (Server 5.5) with backend ECC 6.0
    When creating a shopping cart for product (NOT direct material) on account assignment F = Order with a quantity smaller 1 the SRM purchase order hasn't got a gross price and net value in the item basic tab but has got the correct prices in the 'Prices' tab.
    As there is no price in the basic tab (BBP_PDIGP-GROSS_PRICE = 0) the generated SRM purchase order is in status 'Held'.
    This happens only if the quantity is less than 1. The SC has got a price maintained (from info record).
    Any ideas out there?
    Thanks,
    Franz

    Franz,
    To release the PO the user has to uncheck the Invoice expected indicator in the Follow on documents tab  for the item with zero price.  Also they should uncheck the GR indicator or they could input a confirmation for the zero priced item and this can lead to further complications.
    Hope this helps
    Allen B.

  • Vendor field on SRM Purchase Order

    Hi.
    Please can someone elaborate and explain why my preferred supplier that I have entered onto my Cart does not copy through to the Vendor field on SRM Purchase Order please? At this moment, the Preferred Vendor field is incorrectly populated whereas previously, only the Vendor field was populated. We have the ECS activated.
    Thank you.
    Pooja!

    Hi
    Prefered vendor - if you manually added a vendor - This partner function no. 39.
    check your BBP_PD whether you have prefered vendor or fixed vendor in partner head.
    Fixed vendor -partner function is 19 like contract ...etc
    check these details or your approver might be changed your source of supply if he has access to modify the cart.
    BR
    Muthu

  • I bought an iphone 4s from a pawn shop,i need to check and make sure the phone is clear to be activated in my name,i was told you can check the IMEI number,i have the number,but what do i do with it?

    I bought an iphone 4s from a pawn shop,i need to check and make sure the phone is clear to be activated in my name,i was told you can check the IMEI number,i have the number,but what do i do with it?

    Who is the carrier the iPhone is carrier locked with?
    If the carrier has a blacklist for lost/stolen cell phones, it would be the carrier you need to contact.

  • My Skype number is not the number presented when m...

    My Skype number is not the number presented when making outbound calls. My subscription had expired but I renewed a day later. My account shows that my Skype number is still active. What do i need to do?

    Hi, Atiya85, and welcome to the Community, Please first check if the instruction in this FAQ article does not resolve this problem:https://support.skype.com/en/faq/FA10615/why-am-i-not-receiving-calls-to-my-skype-number Otherwise, please contact Skype Customer Service for further assistance in diagnosing and rectifying the issue.  We here in the Community do not have the tools to do this. Regards,Elaine

  • Purchase Order : printing table in the SAPScript.

    Hi all,
            I want to print taxes in the PO . I have created SAPScript from the standard Script MEDRUCK & also attached it to the Appln - EF, in the T-Code : NACT.
            To pass the taxes i have written a code and that program i have called from the script. But, it is only the last entry in the internal table (it_out). I want to print all the taxes for the respective PO. And, the only last one tax entry in the it_out ,  it is showing in the print preview for 'Domestic PO', and, for 'Import PO', it is not showing any entry.
            Plz, try to solve this problem.... if anybody could give me the proper solution of this problem, i will definitely reward the points to him.
            I am giving the code that i have used in the report & in Script.
    Code in the SAP Script...
    /E  ITEM_CONDITIONS
    /:   PROTECT
    /:   DEFINE &TYPE& = ' '
    /:   DEFINE &TEXT& = ' '
    /:   DEFINE &PER& = ' '
    /:   PERFORM GET_TAX IN PROGRAM ZMM_PO
    /:   USING &EKKO-EBELN&
    /:   CHANGING &TYPE&
    /:   CHANGING &TEXT&
    /:   CHANGING &PER&
    /:   ENDPERFORM
    IN  ,,&TEXT&,,&PER&
    /:   ENDPROTECT
    Respective code in the Report
    *&      Form  GET_TAX
          text
         -->IN_PAR     text
         -->OUT_PAR    text
    FORM GET_TAX TABLES IN_PAR STRUCTURE ITCSY
                        OUT_PAR STRUCTURE ITCSY.
      TABLES : EKKO,         "Purchasing Document Header
                      KONV,         "Conditions (Transaction Data)
                     T685T.        "Conditions: Types: Texts
      DATA : BEGIN OF ITAB OCCURS 10.
      DATA :   EBELN LIKE EKKO-EBELN.
      DATA :   KNUMV LIKE EKKO-KNUMV.
      DATA : END OF ITAB.
      DATA : BEGIN OF ITAB1 OCCURS 10.
      DATA :   EBELN LIKE EKKO-EBELN.
      DATA :   KNUMV LIKE KONV-KNUMV.
      DATA :   KPOSN LIKE KONV-KPOSN.
      DATA :   KSCHL LIKE KONV-KSCHL.
      DATA :   VTEXT LIKE T685T-VTEXT.
      DATA :   KBETR LIKE KONV-kbetr.
      DATA :   WAERS LIKE KONV-waers.
      DATA :   KWERT LIKE KONV-kwert.
      DATA : END OF ITAB1.
      DATA : BEGIN OF IT_OUT OCCURS 10.
      DATA :   KSCHL LIKE KONV-KSCHL.
      DATA :   VTEXT LIKE T685T-VTEXT.
      DATA :   KBETR LIKE KONV-KBETR.
      DATA :   KWERT LIKE KONV-KWERT.
      DATA : END OF IT_OUT.
      DATA : PONO LIKE EKKO-EBELN.
      DATA : NO LIKE KONV-KPOSN.
      READ TABLE IN_PAR WITH KEY 'EKKO-EBELN'.
      IF SY-SUBRC = 0.
        PONO = IN_PAR-VALUE.
        SELECT EBELN KNUMV
                FROM EKKO
                INTO TABLE ITAB
               WHERE EBELN = PONO.
       READ TABLE IN_PAR WITH KEY 'KONV-KPOSN'.
        IF SY-SUBRC = 0.
         NO = IN_PAR-VALUE.
          LOOP AT ITAB.
            MOVE ITAB-KNUMV TO ITAB1-KNUMV.
            SELECT KNUMV KPOSN KSCHL KBETR WAERS KWERT
                  FROM KONV
                  INTO CORRESPONDING FIELDS OF ITAB1
                WHERE KNUMV = ITAB-KNUMV
                AND KAPPL = 'M'.
              ITAB1-KBETR = ( ITAB1-KBETR / 10 ) .
              APPEND ITAB1.
            ENDSELECT.
          ENDLOOP.
          SORT ITAB1 BY KPOSN kschl.
          LOOP AT ITAB1.
            IF ITAB1-KPOSN <> ''.
              SELECT *
                        FROM T685T
                       WHERE KSCHL = ITAB1-KSCHL
                       AND KAPPL = 'M'
                       AND SPRAS = 'EN'.
                IT_OUT-VTEXT = T685T-VTEXT.
                IT_OUT-KSCHL = ITAB1-KSCHL.
                IT_OUT-KBETR = ITAB1-KBETR.
                IT_OUT-KWERT = ITAB1-KWERT.
                APPEND IT_OUT.
              ENDSELECT.
            ENDIF.
          ENDLOOP.
          SORT IT_OUT BY KSCHL.
          DELETE ADJACENT DUPLICATES FROM it_out COMPARING KSCHL.
          LOOP AT IT_OUT.
            IF
                  ( IT_OUT-KSCHL = 'JADC'
                 OR IT_OUT-KSCHL = 'JCDB'
                 OR IT_OUT-KSCHL = 'JCV1'
                 OR IT_OUT-KSCHL = 'JECV'
                 OR IT_OUT-KSCHL = 'J1CV'
                 OR IT_OUT-KSCHL = 'JSDB'
                 OR IT_OUT-KSCHL = 'JEXC'
                 OR IT_OUT-KSCHL = 'JEXS'
                 OR IT_OUT-KSCHL = 'FRC1').
              AT NEW KSCHL.
                CLEAR out_par.
                CLEAR out_par[].
               LOOP AT OUT_PAR.
                  READ TABLE IT_OUT INDEX SY-TABIX.
                  SUM.
                  WRITE:/ IT_OUT-KSCHL,IT_OUT-VTEXT,IT_OUT-KBETR.
                  OUT_PAR-NAME = 'TYPE'.
                  OUT_PAR-VALUE = IT_OUT-KSCHL.
                  APPEND OUT_PAR.
                  OUT_PAR-NAME = 'TEXT'.
                  OUT_PAR-VALUE = IT_OUT-VTEXT.
                  APPEND OUT_PAR.
                  OUT_PAR-NAME = 'PER'.
               OUT_PAR-VALUE = IT_OUT-KBETR.
                  APPEND OUT_PAR.
               ENDLOOP.
              ENDAT.
            ENDIF.
          ENDLOOP.
        ENDIF.
      ENDIF.
    ENDFORM.                    "GET_TAX
    Plz, help me by giving the solution...
    Thanks,
    Ajit

    Hi,
    System will not display the Purchase order item details in the first screen. First enter the data on the Item overview like Material or short text then only it will display the Item details.
    I think you are checking with out entering the data on Item overview .
    Check by entering the material/short text.
    rgds
    Chidanand

  • Purchase order item details in the drop box is not appearing

    Hi all ,
    I have created a 'Z' transaction  ME22N .Purchase order change .
    In that transaction purchase order item details in the drop box is not appearing.
    Please suggest .

    Hi,
    System will not display the Purchase order item details in the first screen. First enter the data on the Item overview like Material or short text then only it will display the Item details.
    I think you are checking with out entering the data on Item overview .
    Check by entering the material/short text.
    rgds
    Chidanand

Maybe you are looking for

  • Issue changing the Logo on web UI

    Hello all, I have an issue where I can't get a new logo to show on our WEB UI skin. What i've done so far.. 1, I've created a BSP in se80, 2, spro > sap ref IMG > CRM > UI framework > UI framework definition > skins > Access Skin Workbench     Select

  • Creative Cloud showing as an empty app box with no drop downs or icons

    For some reason my creative cloud has stopped workingn correctly and just loads as an empty window. As a result my whole creative suite is unuseable which is a nightmare. Can anyone help me with this, and why has it happened in the first place? Joe

  • Iweb/domain question

    I own a domain that i wish to put my iweb page onto. I work for my uncle doing all of his web stuff for his plastic surgery business in orange county. I made a site about breast cancer and own a domain and would like to put my iweb page on my domain

  • Battery indicator seems to be incorrect

    Hey, i recently experienced the following problem: As i switched on my ipod after a longer period (1 1/2 weeks) of not using it, the battery status was indicated half full. Strangely the ipod switched of after only 2 minutes of usage. My Question is

  • Overlay inspection info in VBAI running in Labview

    Hi, I'm running an inspection using the NI Vision Builder AI palette in Labview. I show images in Labview using  "VBAI Interface - Get inspection Image.vi" but the images appears without info (Overlay objects like ROIs, edges,...) Is there anyway to