Urgent : Issue with spool generation

Hey folks,
I have written a abap program to generate adobe form in the spool. It works. But i have the same logic inside a function module and it does not work here. Can someone explain why? and what must be done so that i can generate the spool using a function module instead of a report program.
Thanks.

works through a class though. solves my issue. but still i would like to know why does'nt the logic work in a function module?

Similar Messages

  • Proformance issue with 'sid generation on activation'

    Hi Gurus,
    In our BW(NW 2004) system we are using Cognos as reporting tool, due to process chain failure at DSO level we unchecked 'sid generation on activation' and chain running successfully after that.
    unchecking will be a performance issue due to generating sid's at run time as per SAP.
    My question is as i am using Cognos in place of BEX. what are the possiblities of effecting the performance and alll?
    Please provide your valuable suggestions.
    Thanks in Advance,
    Suresh.

    Hi Suresh,
    Irrespective of what is the reporting front end you use, if you use this DSO for reporting it would generate the SID values at the runtime which will have huge impact on reporting performance. Just removing the SID generation option would temporarily fix the load issue, with quick activation of DSO but it will affect the most important area reporting performance.
    Try to solve the issue with SID generation error while activating at the BW side which could be because of the special character issues and once you fix that your process chains would load fine with a far better performance while reporting on this DSO.
    Regards,
    Mani

  • Issue with check generation in Automatic Payment Program

    Hi experts,
    I need your inputs for an issue with check generation in Automatic Payment Program. Trying to make a payment to a US vendor with payment method C. The due item is getting picked up and a clearing document is getting generated. But Check is not being generated, niether can I see an entry in PAYR table. However, if I try to generate a check manually in FCH5 for the same clearing document, it is working.

    Have u checked the Variant created in F110 - Printout / data medium, whether the Hose bank details are correctly set or not.
    If yes, check the Printer details
    Let us know the results
    Thanks

  • Urgent issue with Intrastat

    Hi All, we  have  very  urgent issue  with  intrastat report ''VE01''.
    There  is  many documents  with error Log-''The statistical value of the document item is zero.''.
    The pricing  settings looks OK and its impossible  to
    correct  those  documents with error.
    Any Idee how I could  correct them for  them  to  get  the  green status?
    Points  will be added  if  helpful
    Thanks and regards
    Luis

    Hello Luis,
    please check the VBRP-BRTWR. If this fiels is zero then you get an entry in the incompletion log.
    the message could be also occur if the GRWR is zero.
    Please check your pricing setting.
    Hope this will help to solve the problem.
    I f you are satisfied with the answer, please don't forget to give Reward Points.
    regards
    Claudia

  • Willl there be any issue with spool after moving to unicode

    Hi ,
    We are moving from non-unicode to unicode. My doubt is that will there be any issues related to the spools that are generated in the non-unicode environment ? WIll the fuction module CONVERT_OTFSPOOLJOB_2_PDF will have any issues with the non-unicode spools in unicode environment?
    Thanks.

    There is a note for this issue:
    Note 1320163 - Incorrect PDF data after Unicode conversion
    Markus

  • Font Issue with Report Generation Toolkit for Microsoft Office

    I have been using this toolkit for only a few days now, but I just have to get this issue off my back. When developing a toolkit it would be a good idea to use the same cluster to represent fonts in ALL places. If you look at "Excel Set Graph Font" vs. "Excel Easy Table" they take two completely different clusters. Why? I don't know, but it is *very* annoying.
    How could something like this slip through the cracks? Is there some reason why there is this discrepancy? From my perspective as a software engineer I see no excuse, but maybe someone else can justify this oversight for me. I just hope that I don't find any more issues with the toolkit...
    Naveen.

    Naveen,
    what you said is true when dealing with same kind of objects, but in this circumstance, different cluster defines the font of a differnt object. For example, you may not want the user have as many options with defining the font for the X Y axis title as that for defining the text in the table. This is ture when you want your generated report to have similiar styles.
    But this is certainly something we will think about, thanks for your constructive suggestion,
    XD Gao
    Application Engineer
    National Instruments

  • URGENT: Issue with hierarchy level keys and report drill down

    Hi,
    BASIC STRUCTURE:
    I have created a subject area with 3 facts (FACT_A, FACT_B, FACT_C) and 4 dimesnions (TIME_DIM,DIM_2,DIM_3,DIM_4). Each fact table also has additional aggregate tables aggregated along levels of the time dimension. Also our timw dimension has aggregated dimension tables like TIME_DIM_WEEK, TIME_DIM_MONTH, TIME_DIM_QUARTER and TIME_DIm_YEAR.
    GOAL:
    All 3 facts have the same measures M_1 and M_2 in them but may not have data for the same dimension values selected.
    For example
    For month JAN 2000 FACT_A.M1=100$ and no data exists for JAN 2000 in FACT_B and FACT_C. Then in the report
    for JAN2000 it should show FACT_A.M1= $100, FACT_B.M1 = 0 and FACT_C.M1 =0. In this case I should be able to drill down to the lowest level.
    ISSUE:
    The time dimension TIME_DIM has the following levels - Total -> Year -> Quarter -> Month -> Week -> Day
    However I am having an issue with drill down in the reports whenever I pull metrics from more than 1 fact at a time. I have defined the level keys but not sure if I need to do anything in addition since I am using aggregates.
    I have to fix this issue quickly. Please help me.

    Alastair,
    All the fact tables have aggregated facts as sources.
    I have checked the levels set for each of the sources to the time dimesnion table in BMM and they look okay. So the Time dim table in BMM has 4 source tables
    Time_Day (level set to day, table key is "day"),
    Time_month (level set to month, table key is "Fiscal_Month_Code"),
    Time_Quarter(level set to quarter, table key is "Fiscal_Quarter_Code") and
    Time_Year(level set to year, table key is :Fiscal_Year_Code").
    Note: No time week aggregate added as logical source.
    Again the time dim hierarchy based off of this table has levels: Total -> Year ->quarter -> Month -> week -> day
    The levels keys set for each level are
    Year -> Primary key is Year_Name (YYYY)(Checked as chronological key) and another key is Year_Num (YYYY)(Checked as chronological key)
    Quarter->Primary Key is Quarter_Name (YYYY Qn), another key is Quarter_Number (Format n where n can assum values 1,2,3,4). Both keys are set as chronological keys
    Month -> Primary key is Month_Name (MON YYYY), another key is Month_Num (Format n where n can assume values from 1 to 12) Both keys are set as chronological keys
    Week -> Primary Key is week name (YYYY Wk nn, where nn can have values from 1 to 53), another key is week num (nn, where nn can have values from 1 to 53)
    Day -> primary key set to day (date format)
    Issue1: When I try to drill to lower levels it throws out an error saying report cannot find any data because filters may be too restrictive even though I see data at higher level
    For ex: If I drill down to Year: 2010 and Qtr: 2010 Q2 and M1:$100 when I click on Qtr to drll to month level it throws me the error
    Issue2: when I add year and qtr colums to the report I see data as below which is incorrect
    Year_Name Qtr_Name data:FACTA_M1 Data: FactB_M1
    2009 2009 Q1 $10 $5
    2009 2009 Q2 $20 $80
    2009 2009 Q3 $20
    2009 2009 Q4 $30
    2010 2010 Q1 $100
    2010 Q2 $101
    2010 Q3 $102 $230
    2010 Q4 $103
    2011 Q1 $10
    In the above example year_name is not showing up for 2010 Q2 and after. However if I change the primary key for level 'Quarter' by having key consist of year name and quarter name instead of just quarter name the issue doesnt occur and drill down works great. The only issue is when I drill from qtr it first shows year name and quarter name instead of showing the next level which would be month name.
    Sorry about the long message but I thought you might notice something in how I have set up the keys.
    Thanks

  • Urgent : Issue with deleting Line Item in ME22N

    Hi all,
    I have an issue with deleting line item in ME22N for some Purchase Orders.
    When I try to delete the line item, a warning message comes up saying that " Quantity invoiced or delivered is less than the quantity ordered". And I am unable to proceed further and save the PO. Could anyone let me know as why this is happening?
    Thanks in advance.
    Regards,
    Adapala.

    Hi
    there is no need of group key.
    if any of these 3 are done, payment will be done in total.
    1.In setup all company codes for payment transactions , DESELECT seperate payment per business area check box
    2.In setup paying company codes for payment transactions , DESELECT seperate payment for each reference check box.
    3.In the Vendor Master got to payment transactions tab and below the payment method , there will be individual payment checkbox. DESELECT that check box.
    try again with first two with DESELECT options , i will check out with DME.
    Cheers

  • URGENT: issues with jump to targets

    Hey Guys,
    We have recently updated our BW system from 3.1c to 7.0. And now I am having problems with some of my queries. The major problem is for some of the queries I have jumps to other reports and when I try to execute these jumps I get an error saying "Variable I_CALDAY is incorrectly defined ". I have this issue with few queries all in one infoprovider.
    Guys, Any help in regard will be highly appreciated.
    Thanks and Regards,
    Meher

    Problem solved:
    We had to check the box which says "ready for input". This solved the issue as of now.

  • VERY URGENT: Issue with Reconciliation against SAP Enterprise Portal

    Hi,
    We are using IDM7.0 and we have SAP Enterprise Portal as a resource. The users in portal are from Active Directory.
    When I am doing full reconciliation against portal, it is processing only certain accounts. The reconcilaition policy is to link accounts. It is not linking teh accounts. Moreover, these accounts are not found in UNMATCHED accounts also. I don't have any account exclusion rules or something.
    I wrote a small code snippet, which does just a single account reconciliation of a particular user id. In this case the portal account is being reconciled and linked properly.
    Any ideas what the issue might be?
    And I have another question too.. in the schema attributes of the out-of-box SAP Portal resource adapter, I don't see any ammping entry for "accountId". Usually for other resource adapters there would be entry for accountId (e.g in AD, mapping is: accountId <---> sAMAccountName). In case of portal, do we need to explicitly set this mapping? If so what would be the right hand side name in the schema? Does the right hand side name changes from one deployment to the other? If so how to determine what attribute maps to accountId in our portal? Might this lack of accountId is causing the issue with the reconciliation?
    Any leads would be highly appreciated.
    Thanks,
    kIDMan.

    Thanks for the reply. I have already set up correlation rule, account linking options for different situations like FOUND, UNASSIGNED, UNMATACHED etc. If my linking configurtaion is not correct then the fetched accounts should be atleast in the account index with situation as UNMATCHED. But that is not the case.
    I am not sure if I made my problem difinition clear earlier. The problem I mentioned is not with "linking" of the accounts. The problem is IDM is detecting only some accounts. Among those set of accounts which IDM was able to fetch from portal during reconcilaition, it was able to successfully link the matching accounts to identities in IDM.
    My question is, why IDM is fetching only certain accounts and not all accounts from portal resource.
    As I mentioned earlier, when I run my code snippet to reconcile a single account, it reconciles successfully and links to user identity in IDM (if a matching idenity exists based on my correlation rule). But why the reconcilaition at the resource level is not able to fetch and reconcile teh same account.
    Regarding the accountId attribute in the attribute schema, neither the SUN documentation nor the resource adapter configuration tells about the name of the attribute on the portal side that it should match to.
    Thanks,
    kIDMan.

  • Issue with Email generation using MAPI32.OCX and Outlook 2010

    Our application use MAP32 OCX to generate an email with an attachment (PDF File), but no email address. The user will select the address from their contacts.
    Right now we have an issue with some Outlook 2010 clients that after about 8 emails , Outlook has an issue and hangs.
    Now if we do a mailto://[email protected] before we create the 8th email, Outlook 2010 doesn't hang.  Is there any setting we can set in Outlook 2010 to prevent the "address checking" when the email is generated or do I have to fill
    the email address with a "bogus" address that the user must then overwrite to prevent this from happening?
    Thanks,
    Chad Newman

    Hello Chad,
    Why do you need to use MAPI instead of OOM?
    I'd suggest automating Outlook instead. See
    How to automate Outlook from another program and
    How to automate Outlook and Word by using Visual C# .NET to create a pre-populated e-mail message that can be edited for more information.
    Also you may find the
    C# app automates Outlook (CSAutomateOutlook) sample project helpful.

  • Is anyone else having charging connection issues with their generation 4 ipad?

    My generation 4 ipad is having charging connections.  When I plug it in to charge with the charger that came with it, the part that connects right to the actual ipad is not always connecting.  Sometime I have to wiggle it around or angle it until I hear the sound of connection and can see on the screen that it is actually charging.  Sometimes I will charge it and when I leave it is in charge mode but when I come back to check on it, it never charged at all. Is anyone else having this problem or know what might be wrong?  I would think a brand new ipad wouldn't have a charging problem right out of the box.

    Hi gruhland,
    Thanks for your reply.  It sounds like your device is actually in a restart loop, which is different from the process of a soft reset.  Specifically, what I wanted you to try is this:
    Resetting your device
    If your device stops responding, you can reset it by pressing and holding both the Sleep/Wake and Home buttons for at least ten seconds, until the Apple logo appears.
    If resetting does not break the restart loop, it sounds like a different direction may be warranted here. Due to the nature of your issue you may find more assistance by using another one of Apple's support resources:
    http://www.apple.com/support/contact/
    Take care,
    - Ari

  • I have sound issues with third generation ipod touch, how do i fix it?

    I have the iPod touch 3rd generation and the sound is staticed or not playing at all. it was of and on now it is always staticed or not playing. I brought it to best buy were I got it and they couldn't do anything because it had a small crack, now it has a larger crack got when I pressed down on the bottom of the iPod.  I haven't been able to update my iPod since I got it in October of 2009. I tried about a week ago and it took over 3 days for it to even start the first step of backing the iPod up.
    any ideas to what i sould to to fix it?(besides getting a new one)

    Try here:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    http://support.apple.com/kb/HT2519Some of the music redownload is only available in the USA with the latest iTunes version.

  • Urgent: Issue with the size of an xls file generated from a rtf template

    Hi all,
    I have a template.rtf
    In BI, when I get the file in excel format and save it, the size of the report is 32 MB. When I just "save as" the same report, without changing anything, the size of the report is 8 MB.
    Do you know how to get directly the report with the size 8 MB or would you have some guidelines to avoid this issue.
    Thank you in advance,
    Sonia.

    Thank you Kurz for your answer. I'm going to try to be more precise.
    Actually I'm not in EBS. I generate the output (xls format) direclty from BIP.
    The DB of my application can't be requested directly, then I use HTTP request.
    From BIP, I launch the report choosing excel as output - the template is an rtf template.
    I have been requested to open or save the xls file that I save (32 MB).
    I open the excel file, save it again and the size of the file is now 8 MB.
    Regards,
    Sonia.

  • Complex Urgent Issue with insertRowAtRangeIndex

    Hi,
    I have an advanced table based on a VO and EO. I have a footer on that table which has an Add Row button. That Add Row button calls a method in the AM which basically inserts a new row into the VO and hence it appears in the table. The code for that method in the AM is pasted below.
    Now this table and Add Row button etc. were already existing. My job was to add a new detail table to this table. I followed the instructions in the dev guide and was able to successfully add a detail table to this table. I also had to initialize some rows in the detail table when the user clicks the above add rows button.
    In the below code, getBtvlPosSupplierPlantAddressesVO is my VO for the main table.
    getAsiSupplierAddressOpCosVO2 is my VO for the detail table. "AsiSupplierAddressOpCosVO2" is the View Instance which is connected to BtvlPosSupplierPlantAddressesVO through a View Link.
    getAsiPosSupplierOpCosVO1 is my VO from where I get the data to initialize the rows in AsiSupplierAddressOpCosVO2.
    I am getting the following error on the statement - plantAddressVO.insertRowAtRangeIndex(plantAddressVO.getFetchedRowCount(), plantAddressVORow);
    oracle.apps.fnd.framework.OAException: oracle.jbo.InvalidParamException: JBO-25006: Invalid parameter value 3 for rangeIndex passed to method ViewRowSetIteratorImpl.insertRowAtRangeIndex. Explanation: index outside range
    Now the main table property of "Records Displayed" is 2, hence I am getting the above error when I am trying to add THIRD row using the Add Rows button.
    If I change the "Records Displayed" property to 5, then I will get this error when I try to add Row number 6.
    PLEASE PLEASE HELP. I HAVE NO CLUE WHY THIS IS HAPPENING. I AM TIRED OF DEBUGGING!
    **********Extra Info - May not be relevant to the Issue ****************
    For new rows in AsiSupplierAddressOpCosVO2, I have put status as STATUS_NEW because the detail table has a checkbox and if I don't do STATUS_NEW for the rows, then only the rows for which user clicks on the checkbox will be stored in the DB. I wanted all rows to be stored, for consistency purpose.
    **********Extra Info - May not be relevant to the Issue ****************
    public void addPlant(Number suppRegId)
    BtvlPosSupplierAddressesVOImpl plantAddressVO = getBtvlPosSupplierPlantAddressesVO();
    plantAddressVO.setMaxFetchSize(0);
    BtvlPosSupplierAddressesVORowImpl plantAddressVORow = (BtvlPosSupplierAddressesVORowImpl)plantAddressVO.createRow();
    plantAddressVORow.setAddressId(getOADBTransaction().getSequenceValue("btvl.btvl_pos_supp_address_id_SEQ"));
    plantAddressVORow.setAddressType("PLANT");
    plantAddressVORow.setSupplierRegId(suppRegId);
    plantAddressVO.insertRowAtRangeIndex(plantAddressVO.getFetchedRowCount(), plantAddressVORow);
    AsiSupplierAddressOpCosVOImpl addressOpCosVO = (AsiSupplierAddressOpCosVOImpl)this.getAsiSupplierAddressOpCosVO2();
    addressOpCosVO.executeQuery();
    AsiPosSupplierOpCosVOImpl suppOpCosVO = (AsiPosSupplierOpCosVOImpl)this.getAsiPosSupplierOpCosVO1();
    int rowCount = suppOpCosVO.getRowCount();
    RowSetIterator SupplOpCoListIter = suppOpCosVO.createRowSetIterator("SupplOpCoListIter");
    AsiPosSupplierOpCosVORowImpl OpCoRow = null;
    if(rowCount > 0)
    SupplOpCoListIter.setRangeStart(0);
    SupplOpCoListIter.setRangeSize(rowCount);
    for(int i = 0; i < rowCount; i++)
    OpCoRow = (AsiPosSupplierOpCosVORowImpl)SupplOpCoListIter.getRowAtRangeIndex(i);
    AsiSupplierAddressOpCosVORowImpl addressOpCoRow = (AsiSupplierAddressOpCosVORowImpl)addressOpCosVO.createRow();
    addressOpCoRow.setSuppAddrOpcoId(getOADBTransaction().getSequenceValue("BTVL.ASI_SUPP_ADDR_OPCO_ID_S"));
    addressOpCoRow.setAddressId(plantAddressVORow.getAddressId());
    String OpCoCode = OpCoRow.getSupplierOpcoCode();
    String OpCoName = OpCoRow.getSupplierOpcoName();
    addressOpCoRow.setSupplierOpcoCode(OpCoCode);
    addressOpCoRow.setSupplierOpcoName(OpCoName);
    addressOpCoRow.setNewRowState(Row.STATUS_NEW);
    addressOpCosVO.insertRow(addressOpCoRow);
    SupplOpCoListIter.closeRowSetIterator();
    plantAddressVORow.setNewRowState(Row.STATUS_INITIALIZED);
    }

    Hi
    Since you have added the detail table as routine customization than you also initialize the row as routine customization, as you said that the getAsiSupplierAddressOpCosVO2 is the VO for detail table than the row this VO is required to initialize, as Sumit advised already, you should go with addition of new code rather modifiying/using the existing code , you can give a try to below code after modifying it according to ur requirement
    OAViewObject vo = (OAViewObject)findViewObject("AsiSupplierAddressOpCosVO2");
    if(!vo.isPreparedForExecution())
    vo.clearCache();
    vo.executeQuery();
    vo.last();
    vo.next();
    Row row = vo.createRow();
    vo.insertRow(row);
    row.setNewRowState((byte)-1);
    // than here you can set the default values
    like row.setAttribute("ViewAttribute",vaue);
    Thanks
    Pratap

Maybe you are looking for