Invoice is not allowed for order 00065

Hi experts,
This error is relating to the Accounts payables(SAP). The error occurred and the invoice has fallen out from ERP (SAP) while posting the invoice.  The error is "no invoice is allowed for order 00065". 
some Inputs: if you go to ME23N screen line item details invoice tab you can find the check boxes like Incoming Invoice, cost centre and Order. Usually for a particular PO incoming invoice and cost centre check boxes will be checked but in this case Order check box is checked and the invoice has fallen out from ERP.
Could any body please let me know how to resolve this issue in SAP. I'm not FI/CO consultant but SAP BW if I know i can guide team.
Thanks in advance,
amarnath

Dear,
What is message number? Did you assign the usersttus in BS02?
For allocation activity costs, we need to define activity type in KL01 by specifying the unit of measurement of the particular activity type (like  machine - Hours etc.). While creating activity type, we will assign a secondary cost element (with category 43) in the activity type through which the activity cost will flow.
After that we will plan for cost center in KP06 (cost elementwise). Then we will plan machine hours in KP26 where we will link the activity type to a particular cost center.
When we do price calculation in KSPI, system checks the planned costs for cost center (in KP06) and also checks the machine hours planned (in KP26) and gives the cost for the particular activity type.
Please check the above in the system
Regards,
R.Brahmankar

Similar Messages

  • Que-''actual activity allocation is not allowed for order .''

    hi ,
    During confirmation of operation at co11n (also at co11), got one error massage i.e  "actual activity allocation is not allowed for order "
    Due to this error confirmation is not possible .
    pls help me to solve this problem.
    AMOL WAGH
    Edited by: amol  wagh on Dec 6, 2008 8:09 PM
    Edited by: amol  wagh on Dec 6, 2008 8:10 PM

    Dear,
    For allocation activity costs, we need to define activity type in KL01 by specifying the unit of measurement of the particular activity type (like machine - Hours etc.). While creating activity type, we will assign a secondary cost element (with category 43) in the activity type through which the activity cost will flow.
    After that we will plan for cost center in KP06 (cost elementwise). Then we will plan machine hours in KP26 where we will link the activity type to a particular cost center.
    Please give the feed back.
    Regards,
    R.Brahmankar

  • Actual activity allocation is not allowed for order .

    hi ,
    During confirmation of operation at co11n (also at co11), got one error massage i.e "actual activity allocation is not allowed for order "
    Due to this error confirmation is not possible .
    pls help me to solve this problem.
    AMOL WAGH

    Dear,
    What is message number? Did you assign the usersttus in BS02?
    For allocation activity costs, we need to define activity type in KL01 by specifying the unit of measurement of the particular activity type (like  machine - Hours etc.). While creating activity type, we will assign a secondary cost element (with category 43) in the activity type through which the activity cost will flow.
    After that we will plan for cost center in KP06 (cost elementwise). Then we will plan machine hours in KP26 where we will link the activity type to a particular cost center.
    When we do price calculation in KSPI, system checks the planned costs for cost center (in KP06) and also checks the machine hours planned (in KP26) and gives the cost for the particular activity type.
    Please check the above in the system
    Regards,
    R.Brahmankar

  • With out goods issue for order system should not allow for order confirmati

    Dear all
    with out goods issue system should not allow for order/operation confirmation.
    how it is possible.
    Regrads
    Srinivas

    Dear ,
    In some cases we required to do confirmation or TECO without GI .
    We can change it as per req using user exit
    Regards,
    Ishwar

  • KKAX - error 'Manual WIP/results analysis is not allowed for order

    We are running KKAX on some process orders.  A few of them get the error 'there are values for cost element 999999 that are not assigned to any line ID'; however, we do have a line id set up for the cost element, etc; when we drill down further on the message, what we end up with is 'manual wip/results analysis is not allowed'.  The business transaction for this is KABM.  I can see on the order that KABM is not a permitted business transaction. 
    We only have this problem on a few of the orders.  How is the KABM being invoked?  Is it caused by an order status?  How can I fix this?
    Thank you

    Hi Christian
    i have come up with the new business requirement
    I want to change some of the material in one of the plant into discreete.For that, I tried to delete the production version and then tried to uncheck repetitive manufacturing indictor in MRP4 view.
    But it is giving the following error
    Either you are attempting to delete production version 1000 or
    you haveattempted to deselect the repetitive manufacturing indicator for the production version.
    It is not possible to delete the production version or to
    deselect the repetitive manufacturing indicator for the following reasons:
    o Cutoff period for WIP calculation has not yet been
    established. For the period in which a goods receipt was last entered with reference to this production version.
    o The cutoff period for variance calculation has not been
    defined for the full life of the production version.
    Can you please help me out how to resolve this issue

  • Limit PO Err Combination of GR/IR control not allowed for external services

    Hi,
    I am having a problem while replicating free text Limit PO's to R/3 in SRM 4.0 SP 13. The issue is while creating Free Text Limit SC with the  "Confirmation and Invoice" option checked in, the PO's get created in SRM but fails while replicating to R/3 and in RZ20 errors as "Combination of GR/IR control not allowed for external services" although in vendor master i don't have check for the field "GR-Based Invoice Verification".
    On the contrary while creating SC with the "Invoice Only" the PO is successfully replicated to R/3 with item category as B for limit orders.
    Now i have noticed if i make changes in the vendor master data i.e. check the flag "GR-Based Invoice Verification" then the PO in my first scenario gets replicated successfully and also with respect to the second scenario but it gets replicated in both the scenarios as item category "D".
    As far as SRM standard it should have ideally behave like the below:
    Limit SC with GR AND Invoice -> item category D
    Limit SC with invoice only -> item category B.
    Now my question is why do my PO's fail in R/3 in the first scenario and also if i check the flag in vendor master for GR-Based Invoice verification then in the second scenario the item category is "D" instead of "B".
    Thanks in Advance.
    Best Regards
    Anirban

    Hi Georg,
    We don't have any active implementation for the BADI BBP_PO_INBOUND_BADI.
    Best Regards,
    Anirban

  • Limit PO :Combination of GR/IR is not allowed for external services

    Hi,
    we are  working in  SRM40 sp09 & back end ECC.50
    In the Limit PO:
    we are able to create  Limit PO from a shopping cart.The follow on documents in ECC, it is creating a PO with Item category "B" and the "invoices" are only possible.
    The Issue:
    The Client wants the Confirmation/GR functionality to be enabled and the Invoices.
    but for  Limit PO, with follow on documents--"Confirmation" is checked, we have a error message—“combination of GR/IR is not allowed for external services".
    Is there any addition configuration or steps involved.
    Thanks and Regards,
    RK.

    Hi
    <b>Please go through the links below, which address the same issue -></b>
    Limit PO(Item category D instead of B)
    SRM: Item category B/D for limit PO
    Re: Problem with Unknown account assignment with limit order...reply soon...
    Do let me know.
    Regards
    - Atul

  • Combination of GR/IR Control not allowed for External Services-SRM PO error

    Hi All,
    SRM 5.0 ECS   R/3 4.6C
    We have a service PO, for which an error Combination of GR/IR Control not allowed for External Services is being displayed.
    The PO is in error in process at this moment. And is not in R/3
    On SRM PO we have Confirm Performance of Service/Goods Receipt checked and Invoice Expected checked.
    Confirmation-Related Invoice Verification  is not checked. Any thoughts on this!!
    Thanks
    Krishna

    Hi
    <u>Please go through the following SAP OSS Notes -></u>
    Note 725824 - MB5S: Error with purchase orders for external service
    Note 781014 - Clearing values in purchase order currency are too high
    Note 991800 - MB5S: Error in delivery costs (2)
    Note 960789 - Wrong Values in MM Document for Service Based Invoice
    Note 778562 - MM-IV: invoices are entered before the goods receipt
    Note 578531 - Incorrect FM update for service purchase orders
    Note 635864 - ME2S: Invoice value is calculated incorrectly
    Note 570409 - Unplanned account assignment in invoice for service PO
    Note 545684 - MIR4 for SRV: Incorrect data displayed if deletion indicator
    Note 544567 - Transaction MIRO: incorr. default values at (parked) invoice
    Do let me know.
    Regards
    - Atul

  • Posting in foreign currency not allowed for external tax system

    Hello all,
    I created a purchase order for inter-company stock transfer. Then created a corresponding outbound delivery and goods issue using  VL10h and completed goods issue. Then I completed good receipt using MIGO. When I was trying to create a sales order I got this message "Posting in foreign currency not allowed for external tax system". What could be the reasons for this message.  The message number said FS885.
    One final note. I am able to create Billing document with manual batch number input in Delivery document item. But when I am using Batch split I am not able to generate invoice. Can anyone tell me what could be the problem here.

    Hi Samir,
    The Goods Received NI (Allocation Cost Account) need to be balaned in Local and System Currency as this is a Multi Currency account and these are the currencies that Business One will offer reports in.
    The Foreign Currency for this account is irrelevant as you can never get a balance in FC for a multi currency account, neither will you find any reports for this. 
    If the client insists you can create a manual Journal entry in FC only to correct this. Business One does not offer any functionality to correct the Foreign Currency in this scenario. (like Exchange Rate difference for Local Currency and Conversion Differences for System Currency)
    To do the manual JE open the form settings and the tab 'table', here untick the box 'From FC Field'. This will enable you to create a FC JE only.
    Hope it clarifies the issue.
    Jesper

  • Payment method(s) are not allowed for this program / Program RFFOAVIS_FPAYM

    Dear Friends,
    In Se38  abap editor, I entered the program RFFOM100, i entered the details program run date,identification future,paying company code,payment methods T, House bank, Account Id and executed the program. I am getting the error 'Payment method(s) are not allowed for this program'.
    Payment method S is not used in F110, It was not mentioned in vendor master or vendor invoice.It is not mentioned in fbzp in bank determination. When i tried to delete payment method 'S' the system shows a message Payment Method S is being used in the company code.
    In  the program RFFOAVIS_FPAYM, i entered the details program run date,identification future,paying company code,payment methods T, House bank, Account Id and executed the program. I am getting the error  'Program RFFOAVIS_FPAYM: No records selected'. But there open items or invoices.
    Please suggest how to resolve the errors.
    Regards
    Sridhar

    Hello,
    Why are you directly executing these programs?
    You will not expect these program to execute directly by going to SE38.
    I would have configured the relevant payment methods in the country with DME structure or classical RFFO* programs, which in turn pick up the inherent programs at the time of running F110.
    For example, if you need to generate BACS file for country GB, either you copy the GB_BACS to ZGB_BACS or use GB_BACS directly in FBZP settings.
    Make sure that you have maintained OBPM1 / OBPM2 / OBPM3 and OBPM4 settings properly.
    The system automatically gives the access to system RFFOAVIS_FPAYM. Prepare a variant against this program in F110. Relevant file gets generated to folder path mentioned in OBPM4 will get generated. The file get generated can be seen in AL11.
    Hope this is informative and solves your issue.
    Regards,
    Ravi

  • BAPI CASESERVICE CREATEMULT - Alternative price not allowed for the service

    Hi,
    I am using .Net Connector to connect to BAPI. I am developing a .Net order processing application and intend to send the order information to SAP using BAPI_CASESERVICE_CREATEMULT.
    However, I keep getting the error message "An alternative price is not allowed for the service..". The service id is already setup at SAP and I am not sending any price information. I am only sending quantity. The DIFF_PRICE is set to 0.
    Any advice? I appreciate your help.

    Hi,
    I am using .Net Connector to connect to BAPI. I am developing a .Net order processing application and intend to send the order information to SAP using BAPI_CASESERVICE_CREATEMULT.
    However, I keep getting the error message "An alternative price is not allowed for the service..". The service id is already setup at SAP and I am not sending any price information. I am only sending quantity. The DIFF_PRICE is set to 0.
    Any advice? I appreciate your help.

  • Exception: Call of execute(String) is not allowed for PreparedStatement

    Hi all,
    This query was run fine on SapDB 7.4 from Jave code using prepareStatement()  method:
    declare id11216053819634 cursor for select sc.name, measuredobjectid id from serviceconditions sc, measuredobjects mo where sc.collectionid = mo.collectionid and sc.name like 'DWindowsSLA/%,%,%,%' for reuse
    declare id21216053819634 cursor for select min(sampletime), max(sampletime), name, id11216053819634.id from id11216053819634, d_slastore ss where id11216053819634.id = ss.measuredobjectid and ss.sampletime between '2008-07-14 00:00:00' and '2008-07-14 12:43:35'  group by name, id11216053819634.id for reuse
    select ss.status, ss.statuschange, ss.sampletime, id21216053819634.name from d_slastore ss, id21216053819634 where ss.measuredobjectid = id21216053819634.id and ss.sampletime between '2008-07-14 00:00:00' and '2008-07-14 12:43:35'  and (statuschange != 0 or ss.sampletime = id21216053819634.expression1 or ss.sampletime = id21216053819634.expression2) order by name, sampletime
    We recently upgrade our old SapDb to the latest MaxDB. An now this query produces the error:
    com.sap.dbtech.jdbc.exceptions.JDBCDriverException: SAP DBTech JDBC: Call of execute(String) is not allowed for PreparedStatement.
    Does anyone know how to fix this?
    Thank you very much,
    Irina

    Hi Irina,
    First, welcome to SDN!
    Well, PreparedStatement represents a precompiled SQL statement, so you should be using the no-arg execute() method rather than execute(String).
    HTH!
    \-- Vladimir

  • ORA-56901: non-constant expression is not allowed for pivot|unpivot values

    Getting following errors
    ORA-56901: non-constant expression is not allowed for pivot|unpivot values
    ORA-06512: at "APPS.PIVOT_AWARD", line 16
    ORA-06512: at line 5
    when i run the following function it is giving error as above.
    can you please help me
    create or replace
    Function Pivot_award return sys_refcursor
    IS
       v_dept    VARCHAR2 (20000);
       v_query   VARCHAR2 (1000);
       op_rs sys_refcursor;
    BEGIN
      SELECT LISTAGG(award_number,',') WITHIN GROUP (ORDER BY award_id)
      INTO V_DEPT FROM xxdl.XXDL_CD_SCHEDULE_K_GTT ;
       v_query :=
          'SELECT *
            FROM (
            select award_name, award_id,award_number from xxdl.XXDL_CD_SCHEDULE_K_GTT)
            PIVOT(max(VAL) for award_number in  ('||v_dept||'))';
       OPEN op_rs FOR v_query;
       return op_rs;
    END;
    SELECT LISTAGG(award_number,',') WITHIN GROUP (ORDER BY award_id)
      INTO V_DEPT FROM xxdl.XXDL_CD_SCHEDULE_K_GTT ;
    Result of 1st query is PPE_T_CAPITAL,XIBNG,XIABP,XIABQ,XIABR,XIABS,XIABT,XIABU,XIABV,XIABW,XIAAE,XIAAF,XIAAG,XIAAH,XIAAI,XIAAJ,XIAAK,XIAAL,XIAAM,XIAAN,XIAAO,XIAAP,XIAAQ,XIAAR,XIAAS,XIAAU,XIAAU,XIAAV,XIAAZ,XIABD,XIABE,XIABF,XIABG,XIABH,XIABI,XIABJ,XIABK,XIABL,XIABM,XIABN,XIAAA,XIAAB,XIAAC,XIAAD,XIABY,XIABZ,XIACA,XIACB,XIACC,XIACD,XIACE,XIACF,XIACG,XIACH,XIACI,XIABA,XIAAW,XIAAX,XIAAY,XIACN,XIACT,XIACU,XIACP,AAAEX,XIACW,XIADC

    Hi Frank,
    Here is the create table and insert script. This is needed for me to show in report rows to columns.
    create table award_test(
      AWARD_NUMBER                            VARCHAR2 (15) ,                                                                                                                                                                                
    AWARD_NAME                              VARCHAR2(30)  ,                                                                                                                                                                               
    TOTAL_PROCEEDS                          NUMBER    ,                                                                                                                                                                                   
    EARNING_PROCS                           NUMBER    ,                                                                                                                                                                                   
    TOT_PROCS_EARNINGS                      NUMBER   ,                                                                                                                                                                                    
    GROSS_PROCS                             NUMBER   ,                                                                                                                                                                                    
    PROC_REF_DEF_ESCR                       NUMBER   ,                                                                                                                                                                                    
    OTH_UNSP_PROCS                          NUMBER  ,                                                                                                                                                                                     
    ISSUANCE_COST                           NUMBER   ,                                                                                                                                                                                    
    WORK_CAP_EXP                            NUMBER 
    --insert script
    Insert into "award_test" (AWARD_NUMBER,AWARD_NAME,TOTAL_PROCEEDS,EARNING_PROCS,TOT_PROCS_EARNINGS,GROSS_PROCS,PROC_REF_DEF_ESCR,OTH_UNSP_PROCS,ISSUANCE_COST,WORK_CAP_EXP) values ('XIAAE','CEFA CP',300000000,200,300000200,300,500,600,0,700);
    Insert into "award_test" (AWARD_NUMBER,AWARD_NAME,TOTAL_PROCEEDS,EARNING_PROCS,TOT_PROCS_EARNINGS,GROSS_PROCS,PROC_REF_DEF_ESCR,OTH_UNSP_PROCS,ISSUANCE_COST,WORK_CAP_EXP) values ('XIABG','CEFA K',0,null,0,null,null,null,0,null);
    Insert into "award_test" (AWARD_NUMBER,AWARD_NAME,TOTAL_PROCEEDS,EARNING_PROCS,TOT_PROCS_EARNINGS,GROSS_PROCS,PROC_REF_DEF_ESCR,OTH_UNSP_PROCS,ISSUANCE_COST,WORK_CAP_EXP) values ('XIAAS','Escondido Village #3',0,null,0,null,null,null,0,null);
    Insert into "award_test" (AWARD_NUMBER,AWARD_NAME,TOTAL_PROCEEDS,EARNING_PROCS,TOT_PROCS_EARNINGS,GROSS_PROCS,PROC_REF_DEF_ESCR,OTH_UNSP_PROCS,ISSUANCE_COST,WORK_CAP_EXP) values ('AAAEX','SU2009A',801806000,null,801806000,null,null,null,1806000,null);
    Insert into "award_test" (AWARD_NUMBER,AWARD_NAME,TOTAL_PROCEEDS,EARNING_PROCS,TOT_PROCS_EARNINGS,GROSS_PROCS,PROC_REF_DEF_ESCR,OTH_UNSP_PROCS,ISSUANCE_COST,WORK_CAP_EXP) values ('XIABI','CEFA L-6',17815000,null,17815000,null,null,null,0,null);
    Insert into "award_test" (AWARD_NUMBER,AWARD_NAME,TOTAL_PROCEEDS,EARNING_PROCS,TOT_PROCS_EARNINGS,GROSS_PROCS,PROC_REF_DEF_ESCR,OTH_UNSP_PROCS,ISSUANCE_COST,WORK_CAP_EXP) values ('XIAAP','CEFA R',115050508.15,null,115050508.15,null,null,null,0,null);
    Insert into "award_test" (AWARD_NUMBER,AWARD_NAME,TOTAL_PROCEEDS,EARNING_PROCS,TOT_PROCS_EARNINGS,GROSS_PROCS,PROC_REF_DEF_ESCR,OTH_UNSP_PROCS,ISSUANCE_COST,WORK_CAP_EXP) values ('XIACG','CEFA D',53150000,null,53150000,null,null,null,0,null);
    Insert into "award_test" (AWARD_NUMBER,AWARD_NAME,TOTAL_PROCEEDS,EARNING_PROCS,TOT_PROCS_EARNINGS,GROSS_PROCS,PROC_REF_DEF_ESCR,OTH_UNSP_PROCS,ISSUANCE_COST,WORK_CAP_EXP) values ('XIAAB','Stu Union-1962',0,null,0,null,null,null,0,null);
    Insert into "award_test" (AWARD_NUMBER,AWARD_NAME,TOTAL_PROCEEDS,EARNING_PROCS,TOT_PROCS_EARNINGS,GROSS_PROCS,PROC_REF_DEF_ESCR,OTH_UNSP_PROCS,ISSUANCE_COST,WORK_CAP_EXP) values ('XIAAA','Notes Payable-Commercial Paper',350000000,null,350000000,null,null,null,0,null);
    Insert into "award_test" (AWARD_NUMBER,AWARD_NAME,TOTAL_PROCEEDS,EARNING_PROCS,TOT_PROCS_EARNINGS,GROSS_PROCS,PROC_REF_DEF_ESCR,OTH_UNSP_PROCS,ISSUANCE_COST,WORK_CAP_EXP) values ('XIABZ','CEFA L-3',9840000,null,9840000,null,null,null,0,null);
    Insert into "award_test" (AWARD_NUMBER,AWARD_NAME,TOTAL_PROCEEDS,EARNING_PROCS,TOT_PROCS_EARNINGS,GROSS_PROCS,PROC_REF_DEF_ESCR,OTH_UNSP_PROCS,ISSUANCE_COST,WORK_CAP_EXP) values ('XIAAV','CEFA B',18106540,null,18106540,null,null,null,0,null);
    Insert into "award_test" (AWARD_NUMBER,AWARD_NAME,TOTAL_PROCEEDS,EARNING_PROCS,TOT_PROCS_EARNINGS,GROSS_PROCS,PROC_REF_DEF_ESCR,OTH_UNSP_PROCS,ISSUANCE_COST,WORK_CAP_EXP) values ('XIAAI','Medium Term Notes - Tranche 3',50000000,null,50000000,null,null,null,0,null);
    Insert into "award_test" (AWARD_NUMBER,AWARD_NAME,TOTAL_PROCEEDS,EARNING_PROCS,TOT_PROCS_EARNINGS,GROSS_PROCS,PROC_REF_DEF_ESCR,OTH_UNSP_PROCS,ISSUANCE_COST,WORK_CAP_EXP) values ('XIAAZ','Recycling Pool',473379904.44,null,473379904.44,null,null,null,0,null);
    Insert into "award_test" (AWARD_NUMBER,AWARD_NAME,TOTAL_PROCEEDS,EARNING_PROCS,TOT_PROCS_EARNINGS,GROSS_PROCS,PROC_REF_DEF_ESCR,OTH_UNSP_PROCS,ISSUANCE_COST,WORK_CAP_EXP) values ('XIAAY','CEFA T2',187550000,null,187550000,null,null,null,0,null);
    Insert into "award_test" (AWARD_NUMBER,AWARD_NAME,TOTAL_PROCEEDS,EARNING_PROCS,TOT_PROCS_EARNINGS,GROSS_PROCS,PROC_REF_DEF_ESCR,OTH_UNSP_PROCS,ISSUANCE_COST,WORK_CAP_EXP) values ('XIAAM','GMAC',0,null,0,null,null,null,0,null);
    Insert into "award_test" (AWARD_NUMBER,AWARD_NAME,TOTAL_PROCEEDS,EARNING_PROCS,TOT_PROCS_EARNINGS,GROSS_PROCS,PROC_REF_DEF_ESCR,OTH_UNSP_PROCS,ISSUANCE_COST,WORK_CAP_EXP) values ('XIAAU','CEFA A/K',16922982,null,16922982,null,null,null,0,null);
    Insert into "award_test" (AWARD_NUMBER,AWARD_NAME,TOTAL_PROCEEDS,EARNING_PROCS,TOT_PROCS_EARNINGS,GROSS_PROCS,PROC_REF_DEF_ESCR,OTH_UNSP_PROCS,ISSUANCE_COST,WORK_CAP_EXP) values ('XIAAC','SU TB 2002A - PARS',50000000,null,50000000,null,null,null,0,null);
    Insert into "award_test" (AWARD_NUMBER,AWARD_NAME,TOTAL_PROCEEDS,EARNING_PROCS,TOT_PROCS_EARNINGS,GROSS_PROCS,PROC_REF_DEF_ESCR,OTH_UNSP_PROCS,ISSUANCE_COST,WORK_CAP_EXP) values ('XIABL','CEFA L-9',15490000,null,15490000,null,null,null,0,null);
    Insert into "award_test" (AWARD_NUMBER,AWARD_NAME,TOTAL_PROCEEDS,EARNING_PROCS,TOT_PROCS_EARNINGS,GROSS_PROCS,PROC_REF_DEF_ESCR,OTH_UNSP_PROCS,ISSUANCE_COST,WORK_CAP_EXP) values ('XIABY','CEFA L-2',8775000,null,8775000,null,null,null,0,null);
    Insert into "award_test" (AWARD_NUMBER,AWARD_NAME,TOTAL_PROCEEDS,EARNING_PROCS,TOT_PROCS_EARNINGS,GROSS_PROCS,PROC_REF_DEF_ESCR,OTH_UNSP_PROCS,ISSUANCE_COST,WORK_CAP_EXP) values ('XIAAJ','Frat 1&2',0,null,0,null,null,null,0,null);
    Insert into "award_test" (AWARD_NUMBER,AWARD_NAME,TOTAL_PROCEEDS,EARNING_PROCS,TOT_PROCS_EARNINGS,GROSS_PROCS,PROC_REF_DEF_ESCR,OTH_UNSP_PROCS,ISSUANCE_COST,WORK_CAP_EXP) values ('XIAAW','CEFA S',180727500,null,180727500,null,null,null,-472500,null);
    Insert into "award_test" (AWARD_NUMBER,AWARD_NAME,TOTAL_PROCEEDS,EARNING_PROCS,TOT_PROCS_EARNINGS,GROSS_PROCS,PROC_REF_DEF_ESCR,OTH_UNSP_PROCS,ISSUANCE_COST,WORK_CAP_EXP) values ('XIAAQ','Escondido Village #1',0,null,0,null,null,null,0,null);
    Insert into "award_test" (AWARD_NUMBER,AWARD_NAME,TOTAL_PROCEEDS,EARNING_PROCS,TOT_PROCS_EARNINGS,GROSS_PROCS,PROC_REF_DEF_ESCR,OTH_UNSP_PROCS,ISSUANCE_COST,WORK_CAP_EXP) values ('XIACW','CEFA U',0,null,0,null,null,null,0,null);
    Insert into "award_test" (AWARD_NUMBER,AWARD_NAME,TOTAL_PROCEEDS,EARNING_PROCS,TOT_PROCS_EARNINGS,GROSS_PROCS,PROC_REF_DEF_ESCR,OTH_UNSP_PROCS,ISSUANCE_COST,WORK_CAP_EXP) values ('XIACF','CEFA E',19753227.34,null,19753227.34,null,null,null,-106772.66,null);
    Insert into "award_test" (AWARD_NUMBER,AWARD_NAME,TOTAL_PROCEEDS,EARNING_PROCS,TOT_PROCS_EARNINGS,GROSS_PROCS,PROC_REF_DEF_ESCR,OTH_UNSP_PROCS,ISSUANCE_COST,WORK_CAP_EXP) values ('XIACN','CEFA T3',27562758.96,null,27562758.96,null,null,null,-47941.04,null);
    Insert into "award_test" (AWARD_NUMBER,AWARD_NAME,TOTAL_PROCEEDS,EARNING_PROCS,TOT_PROCS_EARNINGS,GROSS_PROCS,PROC_REF_DEF_ESCR,OTH_UNSP_PROCS,ISSUANCE_COST,WORK_CAP_EXP) values ('XIAAG','Medium Term Notes - Tranche 1',50000000,null,50000000,null,null,null,0,null);
    Insert into "award_test" (AWARD_NUMBER,AWARD_NAME,TOTAL_PROCEEDS,EARNING_PROCS,TOT_PROCS_EARNINGS,GROSS_PROCS,PROC_REF_DEF_ESCR,OTH_UNSP_PROCS,ISSUANCE_COST,WORK_CAP_EXP) values ('PPE_T_CAPITAL','PPE_T_CAPITAL',0,null,0,null,null,null,0,null);
    Insert into "award_test" (AWARD_NUMBER,AWARD_NAME,TOTAL_PROCEEDS,EARNING_PROCS,TOT_PROCS_EARNINGS,GROSS_PROCS,PROC_REF_DEF_ESCR,OTH_UNSP_PROCS,ISSUANCE_COST,WORK_CAP_EXP) values ('XIAAK','Frat 3',0,null,0,null,null,null,0,null);
    Insert into "award_test" (AWARD_NUMBER,AWARD_NAME,TOTAL_PROCEEDS,EARNING_PROCS,TOT_PROCS_EARNINGS,GROSS_PROCS,PROC_REF_DEF_ESCR,OTH_UNSP_PROCS,ISSUANCE_COST,WORK_CAP_EXP) values ('XIAAF','Tresidder',0,null,0,null,null,null,0,null);
    Insert into "award_test" (AWARD_NUMBER,AWARD_NAME,TOTAL_PROCEEDS,EARNING_PROCS,TOT_PROCS_EARNINGS,GROSS_PROCS,PROC_REF_DEF_ESCR,OTH_UNSP_PROCS,ISSUANCE_COST,WORK_CAP_EXP) values ('XIABH','CEFA L',5055000,null,5055000,null,null,null,0,null);
    Insert into "award_test" (AWARD_NUMBER,AWARD_NAME,TOTAL_PROCEEDS,EARNING_PROCS,TOT_PROCS_EARNINGS,GROSS_PROCS,PROC_REF_DEF_ESCR,OTH_UNSP_PROCS,ISSUANCE_COST,WORK_CAP_EXP) values ('XIAAU','CEFA A/K',6605655,null,6605655,null,null,null,-74345,null);
    Insert into "award_test" (AWARD_NUMBER,AWARD_NAME,TOTAL_PROCEEDS,EARNING_PROCS,TOT_PROCS_EARNINGS,GROSS_PROCS,PROC_REF_DEF_ESCR,OTH_UNSP_PROCS,ISSUANCE_COST,WORK_CAP_EXP) values ('XIAAD','SU 2024 Bonds',150000000,null,150000000,null,null,null,0,null);Expected output rows to columns (i took first two insert statements)
    'XIAAE','CEFA CP',300000000,200,300000200,300,500,600,0,700
    'XIABG','CEFA K',0,null,0,null,null,null,0,null
    I need to have awardnumber and corresponding details below
    'XIAAE'       'XIABG'
    'CEFA CP'    'CEFA K'
    300000000   0
    200             null
    300000200   0
    This way i need to get all the information vertically with awardnumber. I have written following code but it is not working.
    create or replace
    Function Pivot_award return sys_refcursor
    IS
       v_dept    VARCHAR2 (20000);
       v_query   VARCHAR2 (1000);
       op_rs sys_refcursor;
    BEGIN
      SELECT LISTAGG('''' || award_number || '''',',') WITHIN GROUP (ORDER BY award_number)
      INTO V_DEPT FROM award_test ;
       v_query :=
          'SELECT *  from award_test
            UNPIVOT(VAL for operator in(                                                                                                                                                                                                       
    AWARD_NAME,                                                                                                                                                                                                              
    TOTAL_PROCEEDS,                                                                                                                                                                                                             
    EARNING_PROCS ,                                                                                                                                                                                                              
    TOT_PROCS_EARNINGS ,                                                                                                                                                                                                           
    GROSS_PROCS    ,                                                                                                                                                                                                               
    PROC_REF_DEF_ESCR ,                                                                                                                                                                                                        
    OTH_UNSP_PROCS ,                                                                                                                                                                                                              
    ISSUANCE_COST ,                                                                                                                                                                                                            
    WORK_CAP_EXP ))
            PIVOT(max(VAL) for award_number in  ('||v_dept||'))';
       OPEN op_rs FOR v_query;
       return op_rs;
    END;throwing an error ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    ORA-06512: at "APPS.PIVOT_AWARD", line 11
    ORA-06512: at line 5
    also when i run simple query
    SELECT *  from award_test
            UNPIVOT(VAL for operator in(                                                                                                                                                                                                       
    AWARD_NAME,                                                                                                                                                                                                              
    TOTAL_PROCEEDS,                                                                                                                                                                                                             
    EARNING_PROCS ,                                                                                                                                                                                                              
    TOT_PROCS_EARNINGS ,                                                                                                                                                                                                           
    GROSS_PROCS    ,                                                                                                                                                                                                               
    PROC_REF_DEF_ESCR ,                                                                                                                                                                                                        
    OTH_UNSP_PROCS ,                                                                                                                                                                                                              
    ISSUANCE_COST ,                                                                                                                                                                                                            
    WORK_CAP_EXP ))
            PIVOT(max(VAL) for award_number in  ('PPE_T_CAPITAL','XIBNG','XIABP')) Throwing an error
    ora-01790 Expression must have same datatype as correspoding expression
    Edited by: 893185 on Nov 10, 2011 2:00 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Rebate-Manual payment is not allowed for this agreement type

    Hi,
    While processing the Rebates, after the Sales cycle till Billing document, when i i try to process the partial settlement it is givin a message as "Manual payment is not allowed for this agreement type"
    could you please suggest.
    Regards
    AS

    Hi AS
    If you want to do manual payment then in VB)2 select the Agreement type and then in that agreement type check wheather Manual rebate order type has been assigned or not and Manual payment has been checked or not . If they are not maintained and Checked  then maintain the rebate document type and check the box Manual accruals and then you can do Manual Payment for that agreement
    Regards
    Srinath

  • Error in RFx : Item type 'Service' not allowed for this Item

    hi , experts,
      We use SRM7.0 in Standalone scenario .
      i get an error when i transfer SC to RFx :     Line 0001: Item type 'Service' not allowed for this Item .
    if someone kindly tell me how to correct this Error.
      another question is ,in the Standalone scenario , can we create Service Master with multiple level(hierarchy) use Tcode 'COMMPR01 ' ?
       reagrds
               claud

    Hi Claud,
    SRM does not support hierarchy in service for operational documents like PO, contract, confirmation and invoice in SRM 7. It does support hierarchy in service only for RFx doucments. You need to activate the hierarchy template for SRM for that.
    Thanks and regards,
    Ranjan

Maybe you are looking for

  • [Solved] mtp usage

    I have just started using mtp to transfer files to my mobile phone & it works fast & flawlessly (yeah!) My only concern is dismounting / disconnecting the phone when the transfer is complete. Q1 is this required ? will data be corrupted if I just unp

  • CVD,ECVD,SECVD are wrongly calculating imports MIGO

    Hi, I am unable to post MIGO due to BED,AED,ECS values flowing wrongly. please guide to clear the issue. Please help ASAP.. Hari Krishna

  • Cluster_resource not starting in oracle RAC 11gR2 after adding

    I am using a RAC of 2 nodes (rac1,rac2) on windows 2008 Server R2 with Oracle 11gr2 grid installed. I am trying to add a cluster resource using *> crsctl add resource check -type cluster_resource -attr "ACTION_SCRIPT=C:\app\agent.exe"* It is success

  • HT2729 How do i sync new photos in my iPAD without the earlier photos getting overwritten by the new ones

    I am trying to sync photos from my laptop to iPAD using iTunes. The iPAD has iOS 5.1.1. When i sync photos it's ok, but again when i try to sync photos from another folder in my laptop, the previous photos in my iPAD gets overwritten. Can anyone tell

  • OS4 not as promised ... ;(

    hey guys! ive got the iPhone 3G 16GB...tried updating it, it went well no errors whatsoever, but the issues were i couldnt get to change my home screen background ;( dont know what went wrong during the updates... and Couldnt even get to do the "mult