Spool is Missing When a Report is Executed through a JOB

Hi,
I had a task in which I have to Pick the Session Log from SM35 and print it when a Report is executed .In the Report I Created a Session using the SUBMIT.I used Perfrom statemet from RSBDC_ANALYSE programe and picked the Log.I got the Exact result when I executed the Report in Foreground but when i tried to Execute in background I could not Get the SPOOL.
Report Is executed as a JOB and in that Report  a Session will be Created and then it is Executed as a job I picked the Log from this Session.
Can any one please kindly help me out with this issue.
Thanks & Regard,
Prasad.

WAIT UP TO 3 SECONDS.
  DATA: Begin of PR_NEW,
         POSITIONSINFO(60),
         FEHLERTEXT(130),
        end of PR_NEW.
  DATA: wa_bseg TYPE BSEG,
        wa_knb1 TYPE KNB1,
        wa_kna1 TYPE KNA1,
        wa_bkpf TYPE BKPF,
        wa_xblnr(20) TYPE c.
  SELECT  * FROM APQI INTO CORRESPONDING FIELDS OF TABLE it_apqi
                          WHERE groupid = GROUP
                          AND   credate = sy-datum.
  READ TABLE it_apqi INDEX 1.
  SELECT * FROM APQL INTO TABLE logtab_temse
                        WHERE qid = it_apqi-qid.
  LOOP AT logtab_temse.
    clear bdcld.
    bdcld-temseid = logtab_temse-temseid.
    bdcld-lmand   = logtab_temse-mandant.
    bdcld-edate   = logtab_temse-credate.
    bdcld-etime   = logtab_temse-cretime.
    bdcld-luser   = logtab_temse-creator.
    bdcld-grpn    = logtab_temse-groupid.
    bdcld-quid    = logtab_temse-qid.
    bdcld-local_host = logtab_temse-destsys(8).
    APPEND bdcld.
  ENDLOOP.
  READ TABLE bdclm index 1.
  perform read_bdc_log_plain IN PROGRAM RSBDC_ANALYSE
   tables logtable
   using  bdcld-temseid bdcld-lmand.
  LOOP AT logtable.
    clear bdclm.
    bdclm-indate  = logtable-enterdate.
    bdclm-intime  = logtable-entertime.
    bdclm+14(352) = logtable-logmessage.
    if bdclm-mcnt > 0.
      bdclm-mcnt = bdclm-mcnt - 1.
    endif.
    if  bdclm-mnr = '312'.
      append bdclm.
    endif.
  ENDLOOP.
  LOOP AT bdclm.
    CLEAR wa_bseg.
    CLEAR wa_knb1.
    CLEAR wa_kna1.
    CLEAR wa_bkpf.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
      EXPORTING
        INPUT  = bdclm-mpar+02(09)
      IMPORTING
        OUTPUT = wa_belnr.
    SELECT SINGLE * FROM BSEG INTO wa_bseg
                              WHERE  belnr = wa_belnr
                               AND   bukrs = bdclm-mpar+13(04)
                               AND   buzei = '001'
                               AND   gjahr = sy-datum+0(4).
    SELECT SINGLE * FROM BKPF INTO wa_bkpf
                              WHERE belnr = wa_belnr
                               AND  bukrs = bdclm-mpar+13(04)
                               AND  gjahr = sy-datum+0(4).
    SELECT SINGLE * FROM KNB1 INTO wa_knb1
                              WHERE kunnr = wa_bseg-kunnr
                              AND   bukrs = wa_bseg-bukrs.
    SELECT SINGLE * FROM KNA1 INTO wa_kna1
                              WHERE kunnr = wa_bseg-kunnr.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
      EXPORTING
        INPUT  = wa_bseg-kunnr
      IMPORTING
        OUTPUT = wa_bseg-kunnr.
    CONCATENATE 'Ref.doc.' wa_bkpf-xblnr INTO wa_xblnr SEPARATED BY space.
    PR_NEW-POSITIONSINFO+000(010) = wa_bseg-belnr.
    PR_NEW-POSITIONSINFO+011(19)  = wa_xblnr.
    PR_NEW-POSITIONSINFO+031(004) = wa_bseg-bukrs.
    PR_NEW-POSITIONSINFO+036(006) = wa_bseg-kunnr.
    PR_NEW-POSITIONSINFO+043(004) = wa_bseg-zterm.
    PR_NEW-POSITIONSINFO+048(004) = wa_knb1-zterm.
    IF wa_bseg-zterm NE wa_knb1-zterm.
      CONCATENATE 'Terms of payment of Customer' wa_bseg-kunnr wa_kna1-mcod1
                   'was changed from' wa_knb1-zterm 'to' wa_bseg-zterm
                   INTO PR_NEW-FEHLERTEXT SEPARATED BY space.
      WRITE: / PR_NEW-FEHLERTEXT.
      WRITE: / PR_NEW-POSITIONSINFO.
      WRITE: /.
    ENDIF.
  ENDLOOP.

Similar Messages

  • BEX :Selection screen missing when executing a query

    Hi all,
                When I am executing a query through BEX Analyzer,I am not getting the Selection Screen Popup.Instead ,the report is directly being generated.So,this is giving rise to various problems.But when the user is executing through portal,he is getting  the selection screen.
    I am not getting this Selection screen popup in all the DEv,Quality,PreProd and Production systems.And hence ,i am  not able to give the selections for a report
    Can anyone please provide a solution for this?
    Awaiting your response.
    Thanks,
    Amar

    Hi,
    Our GUI version is 710 and 640 is recommended by the client.Hence, no problem with that.The user is able to execute more than one query.
    Do u think it is a basis or security related issue.Or is it  due to Application of some GUI Patches.
    Thanks,
    Amar

  • Back to parameter form when report is executed

    Hi
    Is it possible to be back to the parameter form when the report is executed?
    E.g. 1 - Enter information in the parameter form,
    2 - Execute the report
    3 - Back to parameter form
    4 - ....
    5 - When all the reports processed, exit the report.
    Thank you all

    Don't know if you can do this in reports, but we have a similar requirement on our system, and we developed a form based parameter form, rather than using the reports own. We could then run as many reports as we need from the one parameter form.

  • Need to send Automatic mails when the report successful or Fail.

    Hello Experts,
    Created one report for reconciliation to check BW and R/3 figures.
    There are exceptions designed using reporting Agent settings on the same report.
    (When the values from R/3 to BW are matching it shows Green color and if the values are not matching report shows red color in the columns.)
    There are some mandatory variables for Company code, Period and Currency Type.
    Selections for  Company code and Period are fixed but We have three currency types (00,10,30)
    Reports needs to be executed for three currency types.
    Requirement is that
    when the report is executed for One currency type  (Ex u2013 00)
    If the key figure column shows Green color , Immediately mail has to be sent to necessary mail IDs saying the status successful.
    If the key figure column shows Red color , Immediately mail has to be sent to necessary mail IDs saying the status Failed.
    Like this the same report has to be executed for other two currency types and send the the same status as above phenomenon.
    Sending mails can be taken care by BASIS people with SMTP configuration.
    I want to know the development needs to be done from BW side.
    Are there are any settings in BW to send the message as Successful  when the report shows green color and message as failed when red color appears in the report.
    Regards,
    Siva.

    Hi,
    As i understand you need to set up an alert framework.
    Please check :
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b6d59590-0201-0010-5f9d-adb9f6b14d80?quicklink=index&overridelayout=true
    This can also be achieved using BEx broadcaster
    Please check :
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/efdbd593-0e01-0010-4eb1-a09ffedd550a?quicklink=index&overridelayout=true
    Hope this helps.
    -Vikram

  • When i try to execute web report i am getting a error your not authorized t

    Hi all,
    when i try to execute web report i am getting a error your not authorized to view the page can somebody help me regarding this.
    Thanks
    Kiran Kumar

    Hi
    Once you get the error, without leaving that screen, execute transaction /nsu53 or ask your basis guy to check it for you.
    You will get details of missing authorization.
    Regards
    Rahul

  • MMBE Execute in Background - Spool Request Missing Header Information

    Greetings,
    While reviewing differences between MMBE and MMBE_OLD in ECC 6.0 upgrade test environment it was discovered that when MMBE (RMMMBESTN) is executed in background the spool request does not display the material number, description, material type , UoM and Base UoM.  I created a message to SAP.
    Has anyone else had this issue?

    That you can execute transactions in background is just a standard functionality, which certainly makes sense for reports that have something to do, that run long, need a lot performance etc.
    But MMBE..........I really never had the  idea to run MMBE in background. to get the result online I just have to click the execute button, to run in background I habe to click the menu, click the run in background, click the run immediatly, click okay .....
    and then I would need to open the job to find the spool  etc etc.
    all for just the stock overview of one single material.
    I really would never had spend a thought that somebody would do this effort.
    Why do YOU need to do this?
    I am really curious what SAP answers you

  • When i try to execute a report from forms10g i found the errore id not ....

    i have a button in a form that run on forms10g that tri to execute a report in the web :
    the trigger is this
    **** when i try to execute the button the error is that the is impossibile to find the "report ID"???
    there is a easist solution to execute a report from a form button ????
    thank's !
    DECLARE
    report_id Report_Object;
    BEGIN
    report_id:= find_report_object('imm_print_01');
    PROCEDURE RUN_REPORT_OBJECT_LIST(report_id , 'repSRV' , 'pdf');
    END;
    the procedure run_report_object_list is the follow :
    PROCEDURE RUN_REPORT_OBJECT_LIST(report_id REPORT_OBJECT, reportserver
    varchar2,
    runformat varchar2) IS
    report_job_id VARCHAR2(100);
    vc_rep_status VARCHAR2(20);
    paramlist_id ParamList;
    paramlist_name VARCHAR2(10):=’tmplist’;
    BEGIN
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_COMM_MODE,
    SYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_SERVER,
    reportserver);
    paramlist_id:= get_parameter_list(paramlist_name);
    IF NOT id_null(paramlist_id) THEN
    destroy_parameter_list(paramlist_id);
    END IF;
    paramlist_id:=create_parameter_list(paramlist_name);
    add_parameter(paramlist_id,’DESTYPE’,TEXT_PARAMETER,’CACHE’);
    add_parameter(paramlist_id,’PARAMFORM’,TEXT_PARAMETER,’NO’);
    add_parameter(paramlist_id,’desformat’,TEXT_PARAMETER,
    runformat );
    report_job_id:=RUN_REPORT_OBJECT(report_id,paramlist_id);
    END;

    Please see that in your form you have created a "report object" with the same name ie "imm_print_01" . This is done using Forms builder in object navigator
    (For forms-reports intg pls see "forms reports integration whitepaper" (link below)
    [    All Docs for all versions    ]
    http://otn.oracle.com/documentation/reports.html
    [     Publishing reports to web  - 10G  ]
    http://download.oracle.com/docs/html/B10314_01/toc.htm (html)
    http://download.oracle.com/docs/pdf/B10314_01.pdf (pdf)
    [   Building reports  - 10G ]
    http://download.oracle.com/docs/pdf/B10602_01.pdf (pdf)
    http://download.oracle.com/docs/html/B10602_01/toc.htm (html)
    [   Forms Reports Integration whitepaper  9i ]
    http://otn.oracle.com/products/forms/pdf/frm9isrw9i.pdf
    ---------------------------------------------------------------------------------

  • Miss data label when desktopintelligence report saved as excel

    BO version is XIR2 Sp2.
    create a column chart with 2 measures in deski.
    show data labels for these 2 columns, it is ok in deski.
    but when save the report as excel format, found data label only shown on first column, and miss the label for another column.
    Is it a bug in bo?
    please advise, thanks

    Hi Zhang,
    The issue you are getting is fixed in SP3 similar issues were reported as bug previously.
    Following are the details could you please test the issue on SP3 under test environment.
    ADAPT00785260 Value of labels on line chart doesn't show when report is saved in excel and chart contains an additional group.
    ADAPT00864551 - Axis Label is missing when you do save as xls for the Deski Reports with charts.
    Regards,
    Sarbhjeet Kaur

  • How to display pop up in foreground when report is executing in background

    Hi All,
    The requirement is:
    My report is executing in background and I have to display a pop-up to end user in foreground.
    Is there any method to do this.
    it is urgent,
    Reward points will be awarded to correct answers.
    Thanks,
    Vishal.

    Thanks frnds,
    ok can we go in this way......I need to display the pop up when the "program -> execute in background" button is clicked or F9 is pressed....just at that time....later the report can be executed in back ground.
    Is there a way to do so......just displaying a pop up when one entry in menu bar ic clicked?
    Vishal.

  • Spool not creating when executing in background

    Hi All
    When i try to execute background printing for transaction code MCBA, system is finishing the job but not creating the spool. But for other transactions it is creating the spool corectly.
    Please Advice.
    Thanks
    Ravindra Suvarna

    Hi ravindra,
    1. U are right.
    2. The output does not come when we run this
       in background.
    3. The reason in the program for mcba.
    4. Its program name is :
       RMCB0100
    5. inside this there is one include RMCS00AL
    6. Which has the condition
       <b>IF SY-BATCH</b>
      (for background detecting)
    7. Now what it does afterwords, i could not detect,
      but
    8. This program DOES SOMETHING / DOES NOT DO SOMETHING
       specially for BACKGROUND PROCESS,
       BY DETECTING IT THRU
       SY-BATCH.
    regards,
    amit m.

  • Fields missing in MPD report after change to structure and program

    I have been working on a consistency report for transaction MPD.
    I had created a structure in SE11 for handling the data.  it was all working, but then i had to go and change the name of the fields in the structure.  Now those fields are missing from the report. 
    When i step through the debugger, all the fields are being populated correctly, but these fields are not displayed on screen.  if i change the field names back in the structure and change the code for populating these fields, they appear okay.
    i have created a custom implementation within BAdi MPD_WKB_REPORTING. 
    i have checked the config and it all points to my Z Structure and Z Table Type.  I have logged off and logged back on!  made sure my code is saved and activated...
    any ideas on how i can display these new fields names/values?
    Just for clarity, the field name has changed. not the linked data type.

    thanks for your response, however those notes and program have not done anything to assist my issue.
    i have found the anwser now!
    within the BAdi was a method i had to amend:  IF_EX_MPD_WKB_REPORTING~GET_ALV_PARAMETERS 
    all fixed now!

  • Error when runing report...

    Hi,
    every think is going correct. but when i try to execute the reports demo at the
    URL --> http://9iashost:7778/repdemo/examples/Tools/runrepIAS.html and after sign in SSO
    the server give me this error !!!! for the tow links "Test a JSP Web Report ... | Test a Paper Report on the Web ..."
    Oracle SSO Warning
    Request not granted. Please specify the URL in terms of a fully-qualified host name and try your request again.
    If the problem persists, please notify your administrator as the Oracle SSO configuration may be invalid.
    what can i do to excute this reports.
    thanks.

    hello,
    since you did not state, which platform you are on i can only guess. there were some issues with SSO
    on solaris and other unix platforms. check out the release notes. a solution should be available there.
    regards,
    philipp

  • Sending an email when the report is being refreshed

    Hi All,
    Is it possible, in Answers, to send an email automatically when a report is being refreshed ?
    Thanks in advance,
    Lau

    You can do this multiple ways, As you mentioned using conditional ibot also. You should have flag or indicator in your database saying that ETL load was done. Then based on conditional request run a ibot. But the trick is after completing this ibot you need to turn of the flag.
    Other easiest way is Create a report which runs ibot, Make sure you checked Oracle BI Server Cache feed check box, save the ibot. At the end of ETL execute a command which runs the ibot job for you. There is a command mode application available in Oracle BI called SASchInvoke.exe. This application will run the ibot for you.
    here is the blog which explains more about it.
    http://oraclebizint.wordpress.com/2008/03/06/oracle-bi-ee-101332-integrating-schedulerdelivers-into-other-applications/
    - Madan

  • Report is executing in background and need data(output) in excel format

    Report is executing in background and need data(output) to get downloaded in excel format in my PC from an internal table;;in any drive i.e. C: or D: .When executing in backround it prompt to user with which location excel file to be saved and the name of file.How to download in background in excel format?
    Edited by: PRASHANT BHATNAGAR on Aug 26, 2008 6:24 AM

    Hi
    Download a report to excel with format (border, color cell, etc)
    Try this program...it may help you to change the font ..etc.
    Code:
    REPORT ZSIRI NO STANDARD PAGE HEADING.
    this report demonstrates how to send some ABAP data to an
    EXCEL sheet using OLE automation.
    INCLUDE OLE2INCL.
    handles for OLE objects
    DATA: H_EXCEL TYPE OLE2_OBJECT,        " Excel object
          H_MAPL TYPE OLE2_OBJECT,         " list of workbooks
          H_MAP TYPE OLE2_OBJECT,          " workbook
          H_ZL TYPE OLE2_OBJECT,           " cell
          H_F TYPE OLE2_OBJECT.            " font
    TABLES: SPFLI.
    DATA  H TYPE I.
    table of flights
    DATA: IT_SPFLI LIKE SPFLI OCCURS 10 WITH HEADER LINE.
    *&   Event START-OF-SELECTION
    START-OF-SELECTION.
    read flights
      SELECT * FROM SPFLI INTO TABLE IT_SPFLI UP TO 10 ROWS.
    display header
      ULINE (61).
      WRITE: /     SY-VLINE NO-GAP,
              (3)  'Flg'(001) COLOR COL_HEADING NO-GAP, SY-VLINE NO-GAP,
              (4)  'Nr'(002) COLOR COL_HEADING NO-GAP, SY-VLINE NO-GAP,
              (20) 'Von'(003) COLOR COL_HEADING NO-GAP, SY-VLINE NO-GAP,
              (20) 'Nach'(004) COLOR COL_HEADING NO-GAP, SY-VLINE NO-GAP,
              (8)  'Zeit'(005) COLOR COL_HEADING NO-GAP, SY-VLINE NO-GAP.
      ULINE /(61).
    display flights
      LOOP AT IT_SPFLI.
      WRITE: / SY-VLINE NO-GAP,
               IT_SPFLI-CARRID COLOR COL_KEY NO-GAP, SY-VLINE NO-GAP,
               IT_SPFLI-CONNID COLOR COL_NORMAL NO-GAP, SY-VLINE NO-GAP,
               IT_SPFLI-CITYFROM COLOR COL_NORMAL NO-GAP, SY-VLINE NO-GAP,
               IT_SPFLI-CITYTO COLOR COL_NORMAL NO-GAP, SY-VLINE NO-GAP,
               IT_SPFLI-DEPTIME COLOR COL_NORMAL NO-GAP, SY-VLINE NO-GAP.
      ENDLOOP.
      ULINE /(61).
    tell user what is going on
      CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
         EXPORTING
              PERCENTAGE = 0
               TEXT       = TEXT-007
           EXCEPTIONS
                OTHERS     = 1.
    start Excel
      CREATE OBJECT H_EXCEL 'EXCEL.APPLICATION'.
    PERFORM ERR_HDL.
      SET PROPERTY OF H_EXCEL  'Visible' = 1.
    CALL METHOD OF H_EXCEL 'FILESAVEAS' EXPORTING #1 = 'c:\kis_excel.xls'
    PERFORM ERR_HDL.
    tell user what is going on
      CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
         EXPORTING
              PERCENTAGE = 0
               TEXT       = TEXT-008
           EXCEPTIONS
                OTHERS     = 1.
    get list of workbooks, initially empty
      CALL METHOD OF H_EXCEL 'Workbooks' = H_MAPL.
      PERFORM ERR_HDL.
    add a new workbook
      CALL METHOD OF H_MAPL 'Add' = H_MAP.
      PERFORM ERR_HDL.
    tell user what is going on
      CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
         EXPORTING
              PERCENTAGE = 0
               TEXT       = TEXT-009
           EXCEPTIONS
                OTHERS     = 1.
    output column headings to active Excel sheet
      PERFORM FILL_CELL USING 1 1 1 'Flug'(001).
      PERFORM FILL_CELL USING 1 2 0 'Nr'(002).
      PERFORM FILL_CELL USING 1 3 1 'Von'(003).
      PERFORM FILL_CELL USING 1 4 1 'Nach'(004).
      PERFORM FILL_CELL USING 1 5 1 'Zeit'(005).
      LOOP AT IT_SPFLI.
    copy flights to active EXCEL sheet
        H = SY-TABIX + 1.
        PERFORM FILL_CELL USING H 1 0 IT_SPFLI-CARRID.
        PERFORM FILL_CELL USING H 2 0 IT_SPFLI-CONNID.
        PERFORM FILL_CELL USING H 3 0 IT_SPFLI-CITYFROM.
        PERFORM FILL_CELL USING H 4 0 IT_SPFLI-CITYTO.
        PERFORM FILL_CELL USING H 5 0 IT_SPFLI-DEPTIME.
      ENDLOOP.
    changes by Kishore  - start
    CALL METHOD OF H_EXCEL 'Workbooks' = H_MAPL.
      CALL METHOD OF H_EXCEL 'Worksheets' = H_MAPL." EXPORTING #1 = 2.
      PERFORM ERR_HDL.
    add a new workbook
      CALL METHOD OF H_MAPL 'Add' = H_MAP  EXPORTING #1 = 2.
      PERFORM ERR_HDL.
    tell user what is going on
      SET PROPERTY OF H_MAP 'NAME' = 'COPY'.
      CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
         EXPORTING
              PERCENTAGE = 0
               TEXT       = TEXT-009
           EXCEPTIONS
                OTHERS     = 1.
    output column headings to active Excel sheet
      PERFORM FILL_CELL USING 1 1 1 'Flug'(001).
      PERFORM FILL_CELL USING 1 2 0 'Nr'(002).
      PERFORM FILL_CELL USING 1 3 1 'Von'(003).
      PERFORM FILL_CELL USING 1 4 1 'Nach'(004).
      PERFORM FILL_CELL USING 1 5 1 'Zeit'(005).
      LOOP AT IT_SPFLI.
    copy flights to active EXCEL sheet
        H = SY-TABIX + 1.
        PERFORM FILL_CELL USING H 1 0 IT_SPFLI-CARRID.
        PERFORM FILL_CELL USING H 2 0 IT_SPFLI-CONNID.
        PERFORM FILL_CELL USING H 3 0 IT_SPFLI-CITYFROM.
        PERFORM FILL_CELL USING H 4 0 IT_SPFLI-CITYTO.
        PERFORM FILL_CELL USING H 5 0 IT_SPFLI-DEPTIME.
      ENDLOOP.
    changes by Kishore  - end
    disconnect from Excel
         CALL METHOD OF H_EXCEL 'FILESAVEAS' EXPORTING  #1 = 'C:\SKV.XLS'.
      FREE OBJECT H_EXCEL.
      PERFORM ERR_HDL.
          FORM FILL_CELL                                                *
          sets cell at coordinates i,j to value val boldtype bold       *
    FORM FILL_CELL USING I J BOLD VAL.
      CALL METHOD OF H_EXCEL 'Cells' = H_ZL EXPORTING #1 = I #2 = J.
      PERFORM ERR_HDL.
      SET PROPERTY OF H_ZL 'Value' = VAL .
      PERFORM ERR_HDL.
      GET PROPERTY OF H_ZL 'Font' = H_F.
      PERFORM ERR_HDL.
      SET PROPERTY OF H_F 'Bold' = BOLD .
      PERFORM ERR_HDL.
    ENDFORM.
    *&      Form  ERR_HDL
          outputs OLE error if any                                       *
    -->  p1        text
    <--  p2        text
    FORM ERR_HDL.
    IF SY-SUBRC <> 0.
      WRITE: / 'Fehler bei OLE-Automation:'(010), SY-SUBRC.
      STOP.
    ENDIF.
    ENDFORM.                    " ERR_HDL
    Regards
    Murali Papana

  • Reports successfully execute but generate a login failed for user 'sa' err

    I am running Crystal Reports Server XI R2. Classic ASP is used to generate embedded reports within our application. The crystal reports use ODBC to connect to a SQL Server 2005 database. The reports successfully generate in our Classic ASP application. However in SQL Server 2005,  the following error messages are being generated each time a crystal report is ran:
    - Login failed for user 'sa'.
    - Error: 18456, Severity: 14, State: 8.
    We know that we are passing the correct username/password to the crystal reports, becuase they execute successfully.
    It appears that when the report is called, Crystal Reports appears to conect to SQL Server using a username/password that we didn't provide it at execution time, this fails and the SQL Server 'login failed for user' is generated. Then it runs the report using the username/password we provide and it successfully generates a report.
    I have ran Profiler against the SQL Server Database and the 'Login failed for user 'sa' ' errors have a ApplicationName of either 'Seagate Crystal Reports' or 'Crystal Reports'. Therefore I know it is Crystal Reports generating these errors in SQL Server.
    Does anyone have any ideas on how to stop these SQL Server 'Login failed for user 'sa' ' errors being generated?

    What happens if you use Profiler when running the report using Crystal Report Designer?
    If the report is ran through Crystal Report Designer, NO 'Login failed for user' error messages appear in profiler. Everything looks ok when ran in Designer.
    Also, need to know what patch level you are on?
    We are running Crystal Reports Server XI Release 2, Version: 11.5.8.8265
    No additional patchs have been applied since Crystal Reports Server was installed.
    We may try the SA account if one of the connections fail to log on with the credentials you provided. Verify the user you logged on with has rights to all tables.
    The reports were running through our application using the SA account. The SA account has permissions to these tables. The reports do generate results and appear perfectly fine in the application.  The issue is that when our application requests the report from Crystal Reports Server. Crystal Reports Server delivers the correct report to our application. However during the process to generate the report, 'login failed for user 'sa' ' errors are being generated in SQL Server 2005.
    Also, I have tried creating a completely new SQL user called 'crystaluser'. I ran the report using Crystal Report Designer and used the crystaluser logon and saved the report. Then I ran the same report through our application. SQL Profiler will then display 'login failed for user 'crystaluser''. 
    Its seems as though Crystal Reports Server is first executing the report using the default SQL user saved with the report, but is either sending a blank password or no password at all. This generates the 'login failed for user' in SQL Server 2005. But it then uses the SQL username/password my application gives it and successfully generates the report. Of course this is only speculation.

Maybe you are looking for

  • Do I need to replace my DC-In?

    The past few weeks I have encountered problems with my iBook. The Power adapter became bent, and the wires inside were exposed. I went and forked out $80 to buy a new 65W adaptor from the Apple store because I needed my computer, and could not wait f

  • PO - Actual price report

    Hello Do we have any standard report which gives PO actual (Gross + Freight + any else....) price? This also should include statistical condition amount? Thanks

  • Adobe Error Message when trying to email

    I am working in Adobe Livecycle 8.0 and I am getting the following error message: Acrobat does not allow connection to: mailto: This was never an issue in the past. I intentionally left the mailto blank so that an individual that completed the form c

  • Library & Develop modes -- back-and-forth!

    I shoot mostly events, and have to process hundreds of images at a sitting.  98% of the time it's just density, color-correction, and cropping.  Since I have to work quickly, I find the adjustment buttons in the Library module much faster to use than

  • My macbookpro (2.4 GHZ Intel Core i5, DDR3, OSX 10.9.4), stopped recognizing my Seagate external drive out of the blue. Help!

    Hello, I accidentally unplugged my 2TB Seagate external drive, and when I pugged it back on, my Mac was still recognizing it, however, when I tried to access its contents, the folders appeared empty, so I tried to eject the drive, but the icon on the