Report is giving wrong output while running in Background ?

Hi,
We have a report program which gives the correct output while running it in forground(or manually) but when we run it in backgroud it gives the wrong output. (The printout goes to the wrong printer.)
I've read in a SAP doc that:
NEW-PAGE PRINT ON  even gives unpredictable
results when the print parameters are incomplete; and it suggested to use FM 'GET_PRINT_PARAMETERS to validate the print parameters before NEW-PAGE PRINT ON event . I tried the same but still our report is sending the printout to the wrong printer while running it in background.
Other events used in the program are AT NEW and AT LAST .
Can anyone confirm me NEW-PAGE PRINT ON, AT NEW and AT LAST  events work correctly in background mode also.
Thanks,
Bhavana

hi
good
NEW-PAGE PRINT ON should be work in the background also,check your syntax with the below syntax,if still it is going to the different printer in the background than check with the configuration setting of printer for the particular report that you r printing,sometime it happens that even in the foreground the correct printer ideanfies but in the background that same printer didnt identify.
NEW-PAGE PRINT ON
    NEW-SECTION
    PARAMETERS pripar
    ARCHIVE PARAMETERS arcpar
    NO DIALOG.
  DO 440 TIMES.
    WRITE (3) sy-index.
  ENDDO.
  NEW-PAGE PRINT OFF.
ENDFORM.
thanks
mrutyun^

Similar Messages

  • Query giving wrong output

    I am trying to look for sub programs that use the synonyms in the schema.I wrote the following query.But its giving strange output.
      select usy.synonym_name, us.text, us.name, us.type
      from user_synonyms usy, user_source us
    where upper(us.text) like ('%' || usy.synonym_name || '%')
       and usy.synonym_name in
           (select synonym_name
              from user_synonyms us
             where us.synonym_name <> us.table_name
               and table_owner = 'XYZ')
    order by usy.synonym_nameOutput
    synonym_name text
    txn_deposit select pir_detail_txn.instrument_amnt
    I wonder why txn.instrument is taken same as txn_instrument which is the synonym name??

    where name like 'txn_instrument'
    give all outputs like
    txn_instrument
    txn.instrument
    txn1instrument
    txn2instrument .......
    but
    where name like 'txn\_instrument' escape '\'
    gives only txn_instrument
    ~Praveen

  • Regarding email attachement while running a background job

    Dear Experts,
    When i am running a background job for any ALV report (standard or custom report) <b>automatically</b> the output is going to an e-mail address as a HTML file attachment. I want to change it to EXCEL file attachment.
    Please help me on this issue..
    Kind Regards,
    Tom

    Hi Prasanna,
    Thank you for your reply.  I am not using any code for sending the mail to the recipient E-mail address, system is taking care automatically.
    Few settings were done in SCOT transaction from basis, but no where they mentioned file type is .HTM.
    From my end i have done the following steps.
    1. go to SM36, give a job name.
    2. press on step push button , give the ABAP program name ( any ALV program, i mean standard report or Z report), give the variant and save.
    3. Come back . press on Spool list recipient push button give the e-mail address, press copy button on the  pop up window.
    4. press on start condition button , press on Immediate option and save.
    5. again press on Save button in the screen.
    now here job will be scheduled immediately, go to SM37 check your job status, if it is completed, automatically system is sending an e-mail with the ".HTM" attachment file output to the recipient e-mail address.
    i am not doing any coding part here.
    my concern is system should send the e-mail with ".XLS" file output attachment.
    please advise on this.
    Regards,
    Tom.

  • Field not getting updated in BDC while running in background

    Hi Friends,
    I'm executing a BDC transaction to update the Alternate Tax Classification (VBAK_TAXK1) field in Sales Order. I'm passing value 1 to the field and then saving it directly. While running the BDC in background, the field is not getting updated. On the other hand i checked it running in foreground, the field got updated without any error message.
    Can anybody help me advicing why the field is not getting updated in background?
    Thanks,
    Bestin

    Hi ,
    Check the the log if you are using a session method and if call transaction then capture the messages for the same,
    Because in the foreground the BDC will update the records even if there is a warning message nut in background it will not update. So check the data which you are inserting and try avoid the warning messages also so that it can run smoothly in backfround.
    Thanks & Regards
    Jyo

  • Error while running in background for inherintance

    Hi All,
    i am inherinting the customised class from the standard class
    CLASS zcl_history DEFINITION INHERITING FROM cl_gui_alv_grid FINAL.
    But while running in the background it is showing fatal error .

    Because there is no GUI to communicate while your program is running in background.
    Regards,
    Naimesh Patel

  • HT204407 Find my Friends app signs me out even while running in background. How can I fix this?

    This happened before and after updating the OS to iOS6. If I open FmF, sign in, it won't stay signed in. I can't use the alerts because after a time, even if I leave the app running in the background, it signs me out. I can still be found by others but can't be informed when friends reach locations.
    My husband and I purchased the same phones at the same time, and his does not have the same problem. We sync using the same Apple ID and share apps. The only issue I can imagine would be a setting that differs between phones but have not been able to nail it down.

    Try creating a passcode for your device in settings. This means you need to enter the passcode before accessing anything on your device, this way you will stay signed into the FmF app even while running in the background and it will not require you to sign in every time you launch the app.  However, once you remove the passcode to your device in settings, the FmF app will again require you to sign in whenever you launch the app. I think this is for security reasons.
    Hope this helps.

  • Passing a message while running in background between two different program

    Hi all,
    I am calling a report program(say Y) from another program (say X).
    I want to pass a message from Y to X and i want to print that meesage in program X in the screen ,if X runs in foreground and if the program X runs in background i want to print that message in spool .
    i tried by using a subroutine ie by passing the message to the calling program ..<b>PERFORM f_print_msg in program ZCTE0012_CR_MARK_RELEASE USING  lv_msg</b> but how will i catch there.since this is a job i am getting some job related error too'....please help in solving this issue

    Hi Hemavathi,
    the only think that I can think of now is inserting that message in a database table, and then read it from the another program.
    I hope it helps. Best regards,
    Alvaro

  • Wrong message while running report in bex analyzer

    Hi Experts,
    I have created an authorization object based on compnay code. I use the option RSECADMIN => Analysis => Execute As, to test this authorization object. When I give incorrect company code value, it displays correct message that is 'No authorization'.
    But when I test in bex analyzer for same report, with same incorrect company code value instead of showing 'No authorization' message, it shows 'No applicable data found' message. Is there anything wrong here?
    How can I show the correct authorization message 'No authorization' in bex analyzer, when incorrect company code is supplied?
    Thanks,
    Purvang

    Hi Pratap,
    thanks for reply.
    I also thought that way initially but then was skeptical of different message received while testing in RSECADMIN. If SAP is going to show 'No applicable data found' message then how will a user have any idea that actually he is not authorized for the supplied value of company code.
    does anyone know if this is bug or is there any workaround to show right message i.e. no authorization.
    Thanks,
    Purvang
    Edited by: Purvang on Oct 19, 2011 3:18 AM

  • Report output format run in background

    Hi All,
    when I am running any report containing large volume of data in background,report
    output is coming only of 10 pages by default.Even when exporting to desktop,data
    of only 10 pages are being exported.While my data is of around 1000 pages.Every
    time I am going to "settings" button & entering last page no such as 1000 & first
    page no as 1.System is giving message as " Displaying 1000 pages could casue a memory
    loss". After long time ,report output is coming & after exporting to desktop in
    spreadsheet form,data is coming hapazardly .That is not in proper form like the one
    if we export from report output run in foreground. Such as IH08 t-code.In case of
    forground,each information ( field) comes in one column,but in case of background not
    like that.
    My requirement is how can we make display all the pages by default & while
    exporting to desktop,how can we export so that each information(fields) seats
    in one column like in case of forground run report output.Also why the message"
    "Displaying 1000 pages could casue a memory loss" is coming.
    Thanks in advance
    Rgds
    Rajib

    To avoid memory overflow SAP display only first 10 pages of spool request.
    However this value can be change, at risk of running out of memory, on 'list of Spool Request screen' using menu goto->display requests->setting.
    Regards,
    Pawan.
    Edited by: pawankesari on Nov 14, 2011 8:34 PM

  • Report not dipalying any data while running using concurrent manager

    Hi:
    I am running a report in oracle 6i reports builder, the report runs perfectly and displays the desired data. But, when the .rdf is attached to concurrent manager and ran from front end, the report is blank. the report output is PDF and i can see oly the headers and the values for all the columns as '0', not sure why this is happening.
    I am assuming that during the PDF conversion some thing is going wrong...any help is much appreciated...
    Thanks for your time...
    Srini...

    This is an Oracle Apps report, right? You'd better go to the eBusiness Suite forum for EBS related questions.

  • Problem with the ABAP List output while running program in background.

    Hi ,
        This is Sudhir S . I am trying to run a report in background which has 60 columns , but only 13 are displayed when we view it through the spool abap list .
    But when I run in foreground all the 60 columns are displayed. Since the data which I am trying to fetch is large I am running the report as a background job .
    I just need to know what can be done to get the 60 columns in spool abap list output.
    waiting for your  reply.
    <removed by moderator>
    With Regards
    Sudhir S
    Edited by: Thomas Zloch on Oct 6, 2010 1:51 PM - please do something else while waiting, all posts have the same priority here

    Hi,
    Check if SAP note 1226758 resolves this problem.
    Regards,
    Aidan

  • XML output while running in Apps 11i

    Hi,
    I'm running a report in Oracle Applications 11i. Is it possible to customize the report so that when it runs (invoked as a concurrent request), it generates XML output (to a file) rather than (or in addition to) a report on screen? Is there some parameter setting that would allow this?
    Thanks,
    - NR

    hello,
    in case the version you use is 6i you can use the parameters DESFORMAT, DESTYPE and DESNAME to determine type, format and destination of your report.
    by spefifying DESTYPE=FILE DESFORMAT=XML DESNAME=myfile.xml it will produce a file called myfile.xml in XML format.
    the only thing that is questionable, is if applications 11i lets you specify these parameters. you will have to check that with your applications 11i support.
    regards,
    the oracle reports team

  • Isnumeric function is giving wrong output

    please check the code below.
    before converting I am validating the value is isnumeric or not. The Logic is giving isnumeric = 1 and when i am trying to convert to numeric it is giving me the error.
    declare @CustPhone varchar(max)
    set @CustPhone = '30927600,'
    select isnumeric(@CustPhone)
    select CONVERT(NUMERIC(15),ISNULL(@CustPhone,0))
    Gani.p

    Hi deve_gona
    Yes, we are getting the value with the comma. When there is  not comma it is working fine. But when there was a comma it is giving error.
    Gani.p
    then do a replace and then do cast
    isnumeric will return 1 for few other characters also like , $ etc so its not fully reliable
    see
    http://beyondrelational.com/modules/2/blogs/70/posts/10803/enhanced-isnumeric-function.aspx
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Report is giving wrong data for a material

    Hi Gurus,
    The labor cost direct for a material has to be a 0.21 but it is showing -2.1 for that particular material. This is a custom report(its a Z report). . This report is also used for filing for US customs for materials import and export.
    Can anyone please suggest their ideas in changing the direct labor cost for that particular material.
    Thanks,
    Kiran
    Edited by: Kumar&amp;kumar on Nov 2, 2010 2:09 PM

    hi
    good
    NEW-PAGE PRINT ON should be work in the background also,check your syntax with the below syntax,if still it is going to the different printer in the background than check with the configuration setting of printer for the particular report that you r printing,sometime it happens that even in the foreground the correct printer ideanfies but in the background that same printer didnt identify.
    NEW-PAGE PRINT ON
        NEW-SECTION
        PARAMETERS pripar
        ARCHIVE PARAMETERS arcpar
        NO DIALOG.
      DO 440 TIMES.
        WRITE (3) sy-index.
      ENDDO.
      NEW-PAGE PRINT OFF.
    ENDFORM.
    thanks
    mrutyun^

  • How to create a report with selection screen that can run in background

    Sorry to ask these basic questions but I am knew to ABAP Programming.
    To keep it simply, I am attempting to create a report that has a simple parameter driven selections screen with one field.  That field takes in a folder path from the user.  The user executes the report.  The report creates a simply BDC that goes into SE16, gathers data from a table, and exports the results to a text file using the folder path provided.  I created a variant for the folder path field in the selection screen hoping to use it while executing the report in the background.  The report is not exporting the file as it did when run in the foreground for some reason.
    I am wondering what event is triggered when a report is executed in the background.  In the foreground (or when I execute the program via SE38->Execute->With Variant) the user needs to execute the program by hitting the execute button once the variant has populated the folder path field.  It works then, so I am trying to get the same to work in the background.  I am thinking I didn't put the program together correctly to accommodate the running in the background.  How can you create a report that can accept user input via variant into a selection screen and then run in the background?
    Please, any information would be greatly appreciated.
    Thanks you all for reading this!!!

    Ok, finally I understand what you're doing. Initially you lost me with the SE16 reference...
    Not sure what you're trying to achieve overall, but apart from the fact that you cannot export/download a file to a user's PC via background job (unless you have a mapped network share on the server or something like an FTP server on the user's PC, but both are pretty hypothetical scenarios and unlikely to occur).
    Also, the BDC approach to get data via SE16 is pretty awkward. Note that SE16 is guarded by some authorization checks and often users won't have access in production (which might not matter if you intend to always run your program in background via dedicated batch user). However, I have no clue why you wouldn't want to use [open SQL|http://help.sap.com/abapdocu_70/en/ABENOPEN_SQL_READING.htm] to read the data. You could then save it on the application server or if you really have to get it to the user you can consider e-mailing the file (extracts should be compressed before sending). For the latter you'll find plenty of references here, basically it's the [business communication services|http://help.sap.com/saphelp_nw2004s/helpdata/en/2d/1c5d3aebba4c38e10000000a114084/frameset.htm] that you'd need to look at.

Maybe you are looking for

  • How to send sms from gsm modem(AT commands) to j2me application(not inbox)

    hi i want to send sms from gsm modem to a j2me application, for this to happen i have to send sms to a specific port in which j2me application is running.when i m trying to send sms from modem it doesnt go to application it goes to inbox. is it relat

  • Java interpreating problem

    I am using java 4 version the problem is :when i want to run any class file then is send a exception class not found so i am using to avoid this way java MyFile // ERROR java -classpath current_dir MyFile //CORRECT How i avoid to use of -classpath He

  • Ejb webservice..wsdl file

    hi all, i have created a product table in the database and then i created an entity product class from the table, after that i created session bean and publish this session bean as a web service. During creating session bean --> i chose Business tier

  • Canon CR2 raw images are forcibly cropped by Camera Raw

    I posted this on the Photoshop Discussion as I did not realise that Camera Raw has its own - sorry folks! Camera raw is cropping my cr2 images even after I have removed the crop in DPP (Digital Photo Professional - Canon's own raw editing software).

  • Custom Fields not shown in BSEG using OXK3 transaction

    Hi, I have added new custom fields in Expert Mode using OXK3 transaction to add new fields in BSEG table. The Include CI_COBL is created with custom fields in OXK3  . I then tried to add fields by selecting "Add Field to BSEG" but an access key is re