How to submit a report in 30 Minutes?

Hi,
i have this short report with submit:
DATA: NUMBER           TYPE TBTCJOB-JOBCOUNT,
      NAME             TYPE TBTCJOB-JOBNAME VALUE 'JOB_TEST',
      PRINT_PARAMETERS TYPE PRI_PARAMS.
CALL FUNCTION 'JOB_OPEN'
  EXPORTING
    JOBNAME  = NAME
  IMPORTING
    JOBCOUNT = NUMBER.
PRINT_PARAMETERS-PRIMM = ' '.
PRINT_PARAMETERS-PRREL = ' '.
SUBMIT ZGRO_TEST2
       WITH P_UNAME = SY-UNAME
       WITH P_TEXT  = 'Muster'
       TO SAP-SPOOL
       SPOOL PARAMETERS PRINT_PARAMETERS
       WITHOUT SPOOL DYNPRO
       VIA JOB NAME NUMBER NUMBER
       AND RETURN.
CALL FUNCTION 'JOB_CLOSE'
  EXPORTING
    JOBCOUNT  = NUMBER
    JOBNAME   = NAME
    STRTIMMED = 'X'.
2 Questions:
How can i realize it, that the created job shell start in 30 minutes. Have i to ue another FM?
i set PRINT_PARAMETERS-PRIMM = ' ' to avoid direkt print, because i use a loval-printer, but this parameter does't work.
Any idea?
Thanks,
regards, Dieter

Can you not use the SDLSTRTDT & SDLSTRTTM parameters of JOB_CLOSE ?
Since you are using STRTIMMED the job will be start immediately.
For setting the print params check this SAP documentation: [http://help.sap.com/abapdocu_70/en/ABENPRINT_PARAMETERS_FUNCTION.htm]
BR,
Suhas
Edited by: Suhas Saha on Apr 16, 2010 6:14 PM

Similar Messages

  • How to submit a report ,Passing the internal tables from parent report

    How to submit a report ,Passing the internal tables from the parent report ?

    The SUBMIT statement executes a report from within a report. i.e. you could have a drill-down which
    calls another report. Can only execute reports of type '1'.
    *Code used to execute a report
    SUBMIT Zreport.
    *Code used to populate 'select-options' & execute report
    DATA: seltab type table of rsparams,
          seltab_wa like line of seltab.
      seltab_wa-selname = 'PNPPERNR'.
      seltab_wa-sign    = 'I'.
      seltab_wa-option  = 'EQ'.
    load each personnel number accessed from the structure into
    parameters to be used in the report
      loop at pnppernr.
        seltab_wa-low = pnppernr-low.
        append seltab_wa to seltab.
      endloop.
      SUBMIT zreport with selection-table seltab
                                    via selection-screen.
    *Code used to populate 'parameters' & execute report
    SUBMIT zreport with p_param1 = 'value'
                    with p_param2 = 'value'.
    Other additions for SUBMIT
    *Submit report and return to current program afterwards
    SUBMIT zreport AND RETURN.
    *Submit report via its own selection screen
    SUBMIT zreport VIA SELECTION-SCREEN.
    *Submit report using selection screen variant
    SUBMIT zreport USING SELECTION-SET 'VARIANT1'.
    *Submit report but export resultant list to memory, rather than
    *it being displayed on screen
    SUBMIT zreport EXPORTING LIST TO MEMORY.
    Once report has finished and control has returned to calling
    program, use function modules LIST_FROM_MEMORY, WRITE_LIST and
    DISPLAY_LIST to retrieve and display report.
    *Example Code (Retrieving list from memory)
    DATA  BEGIN OF itab_list OCCURS 0.
            INCLUDE STRUCTURE abaplist.
    DATA  END OF itab_list.
    DATA: BEGIN OF vlist OCCURS 0,
            filler1(01)   TYPE c,
            field1(06)    TYPE c,
            filler(08)    TYPE c,
            field2(10)    TYPE c,
            filler3(01)   TYPE c,
            field3(10)    TYPE c,
            filler4(01)   TYPE c,
            field4(3)     TYPE c,
            filler5(02)   TYPE c,
            field5(15)    TYPE c,
            filler6(02)   TYPE c,
            field6(30)    TYPE c,
            filler7(43)   TYPE c,
            field7(10)    TYPE c,
          END OF vlist.
    SUBMIT zreport EXPORTING LIST TO MEMORY.
    CALL FUNCTION 'LIST_FROM_MEMORY'
      TABLES
        listobject = itab_list
      EXCEPTIONS
        not_found  = 4
        OTHERS     = 8.
    CALL FUNCTION 'LIST_TO_ASCI'
      EXPORTING
        list_index         = -1
      TABLES
        listasci           = vlist
        listobject         = itab_list
      EXCEPTIONS
        empty_list         = 1
        list_index_invalid = 2
        OTHERS             = 3.
    IF sy-subrc NE '0'.
      WRITE:/ 'LIST_TO_ASCI error !! ', sy-subrc.
    ENDIF.
    Submit report as job
    *Submit report as job(i.e. in background)
    data: jobname like tbtcjob-jobname value
                                 ' TRANSFER TRANSLATION'.
    data: jobcount like tbtcjob-jobcount,
          host like msxxlist-host.
    data: begin of starttime.
            include structure tbtcstrt.
    data: end of starttime.
    data: starttimeimmediate like btch0000-char1.
    Job open
      call function 'JOB_OPEN'
           exporting
                delanfrep        = ' '
                jobgroup         = ' '
                jobname          = jobname
                sdlstrtdt        = sy-datum
                sdlstrttm        = sy-uzeit
           importing
                jobcount         = jobcount
           exceptions
                cant_create_job  = 01
                invalid_job_data = 02
                jobname_missing  = 03.
      if sy-subrc ne 0.
                                           "error processing
      endif.
    Insert process into job
    SUBMIT zreport and return
                    with p_param1 = 'value'
                    with p_param2 = 'value'
                    user sy-uname
                    via job jobname
                    number jobcount.
      if sy-subrc > 0.
                                           "error processing
      endif.
    Close job
      starttime-sdlstrtdt = sy-datum + 1.
      starttime-sdlstrttm = '220000'.
      call function 'JOB_CLOSE'
           exporting
                event_id             = starttime-eventid
                event_param          = starttime-eventparm
                event_periodic       = starttime-periodic
                jobcount             = jobcount
                jobname              = jobname
                laststrtdt           = starttime-laststrtdt
                laststrttm           = starttime-laststrttm
                prddays              = 1
                prdhours             = 0
                prdmins              = 0
                prdmonths            = 0
                prdweeks             = 0
                sdlstrtdt            = starttime-sdlstrtdt
                sdlstrttm            = starttime-sdlstrttm
                strtimmed            = starttimeimmediate
                targetsystem         = host
           exceptions
                cant_start_immediate = 01
                invalid_startdate    = 02
                jobname_missing      = 03
                job_close_failed     = 04
                job_nosteps          = 05
                job_notex            = 06
                lock_failed          = 07
                others               = 99.
      if sy-subrc eq 0.
                                           "error processing
      endif.

  • How to submit a report to printer with specified language?

    hi all,
       It's very strange that there's no parameter which can specify language when submit a report to printer, then how can I print Chinese when logon in English? I can display Chinese correctly in screen and spool by set the SY-LANGU = '1', but it doesn't work with printer. Furthermore, the customer have lots of Chinese users but they won't install the Chinese language package.

    Hi,
    In your ABAP program use "set locale language 'X' country 'XX' " stmt to set the language.
    Svetlin

  • How to submit a  report program to a standard program.

    I want to submit a report program to a slection screen program which is standard with some values. can any one help me out.
    here is the code.
    CONSTANTS:  w_object(10)   type c value  'ZCOST2',
               k_projet(10)   TYPE c VALUE 'AIN_AUSA2',
               k_ssprojet(10) TYPE c VALUE 'ZCOST2'.
    SUBMIT /sapdmc/sap_lsmw_bi_recording
                     via selection-screen
                     WITH p_keep = 'X'
                     WITH p_object = w_object
                     WITH p_projec = k_projet
                     WITH p_subpro = k_ssprojet and return.

    Hi
    Try this...
    SUBMIT /sapdmc/sap_lsmw_bi_recording
                 WITH p_keep = 'X'
                 WITH p_object = w_object
                 WITH p_projec = k_projet
                 WITH p_subpro = k_ssprojet
                  AND return.
    Note:  No need to mention 'VIA Selection Screen', it's not a mandatory.....

  • How to Submit a Report?

    Usually when a program quits on its own a prompt will come up saying such and such quit. Cancel or Submit a Report of the problem.
    Is there a way to go straight to the Submit a report screen on the computer? I am having issues with my iChat connecting. Nothing has changed on my computer and it won't connect for nothing.
    Thanks

    There are some very helpful people in the iChat forum.
    http://discussions.apple.com/forum.jspa?forumID=902

  • How to submit request(Report+Template) using Shell Scripts?

    Hi Friends,
    How to submit request + Add layout using shell scripts..
    If anybody has sample code..Can you please send me to [email protected]
    Please help me..
    Its Urgent.
    Thanks and Regards,
    A Swain
    Message was edited by:
    SwainA

    Following is a package where the request is submitted and the layout is added.
    Also check iin the other way by adding the layout first n then giving the request.
    CREATE OR REPLACE PACKAGE BODY try
    AS
    PROCEDURE try_proc
    errbuf OUT VARCHAR2,
    retcode OUT NUMBER
    IS
    l_mode BOOLEAN;
    l_request_id NUMBER;
    xml_layout BOOLEAN;
    BEGIN
    fnd_file.put_line (fnd_file.output, 'USER_ID :' || fnd_global.user_id);
    fnd_file.put_line (fnd_file.output, 'REQU_ID :' || fnd_global.resp_id);
    fnd_file.put_line (fnd_file.output,
    'RESP_APPL_ID :' || fnd_global.resp_appl_id
    l_mode := fnd_request.set_mode (db_trigger => TRUE);
    IF l_mode IS NOT NULL
    THEN
    fnd_file.put_line (fnd_file.output,
    'Concurrent MODE Option is Success'
    END IF;
    -- if wrong paramters error recd give all 100 arguments as null
    l_request_id :=
    fnd_request.submit_request (application => 'app_short_name',
    program => 'shortname',
    sub_request => FALSE
    fnd_file.put_line (fnd_file.output,
    'Request_Id 1 is :' || l_request_id
    xml_layout :=
    fnd_request.add_layout (template_appl_name => 'SQLAP',
    template_code => 'CAPINEF01',
    template_language => 'en',
    template_territory => 'US',
    output_format => 'PDF'
    COMMIT;
    EXCEPTION
    WHEN OTHERS
    THEN
    fnd_file.put_line (fnd_file.LOG,
    'Error in procedure package procedure :'
    || SUBSTR (SQLCODE, 1, 20)
    || ':'
    || SUBSTR (SQLERRM, 1, 250)
    END try_proc;
    END try;

  • How to submit the report in Background job.

    Hello Friends,
    In the selection screen I have 2 radio buttons one for background Process & other for foreground processing. if the user selects the background processing the program should execute in background and output need to be sent to SAP Inbox.
    Issues:
    1) If I am using the JOB_Submit FM or Report Submit the program is going to infinite loop and many continiously jobs are are being scheduled. How to avoid.
    2) Is there any best possible way to send the mail to SAP Inbox.
    Note: I am using OOALV in my program....
    Thanks,
    Ravi

    Hi,
    the first problem looks like you have an infinite recursion. You just need to avoid background scheduling again. There is a system field sy-batch. So if this field is equal to 'X' then you are already in background mode and you don't need to schedule your background job again. Another way is to split your program in two programs. The first will be responsible for scheduling or executing the second one.
    You can use FM SO_NEW_DOCUMENT_SEND_API1 to send message to workflow inbox. You need to user receiver type B. There are so many posts on this forum about sending emails from ABAP which may help you with implementing this requirement.
    Cheers

  • How to submit a report withour showing the ALV?

    Hi all,
    I need to make a submit (or any other suggestion is acepted) to the report rkeb0601 (trx KE24), get the result from that execution in an internal table or something, to create a diferent ALV output. I don't want to see the ALV that rkeb0601 is showing when I make the submit.
    Any idea how I can make this?
    Thanks a lot!
    Regards.

    Unfortunatelly I'm working with 4.6c version, so enhacement is not an option. I already search for an user-exit but i didn´t find one.
    The other thing that cames to my mind is to copy rkeb0601 but doing this I also have to copy the report rk2c11000 because it's being called dynamically  from rkeb0601. It seems a lot of work.
    Yes, it seems to be a lot of work but copy is the best option.

  • How to submit a report and return a table?

    Sumbit RVKRED01 and return .
    then how to get table value from report RVKRED01 ???

    Follow the below example:
    SUBMIT rashsd14
                          WITH vbeln IN l_rsdsselopt
                          WITH dbasar = c_x
                          EXPORTING LIST TO MEMORY AND RETURN.
    *Getting the list from memory
                          REFRESH t_tab1.
                          CALL FUNCTION 'LIST_FROM_MEMORY'
                            TABLES
                              listobject = t_tab1
                            EXCEPTIONS
                              not_found  = 1.
                          IF sy-subrc <> 0.
                          ENDIF.
    *Converting to ASCII
                          REFRESH t_tab2.
                          CALL FUNCTION 'LIST_TO_ASCI'
                            TABLES
                              listasci           = t_tab2
                              listobject         = t_tab1
                            EXCEPTIONS
                              empty_list         = 1
                              list_index_invalid = 2.
                          IF sy-subrc <> 0.
                            WRITE: / 'LIST_TO_ASCI error'(098).
                          ENDIF.
                          IF t_tab2 IS NOT INITIAL.
                            DELETE t_tab2 INDEX 1.
                            DELETE t_tab2 INDEX 1.
                            DELETE t_tab2 INDEX 1.
                            DESCRIBE TABLE t_tab2 LINES g_tabix.
                            DELETE t_tab2 INDEX g_tabix.
                          ENDIF.
                          REFRESH t_vbka1.
                          IF t_tab2 IS NOT INITIAL.
                            LOOP AT t_tab2 INTO wa_tab2.
                              CLEAR wa_vbka-vbeln.
                              REPLACE ALL OCCURRENCES OF '|' IN wa_tab2-vbeln WITH space.
                              CONDENSE wa_tab2-vbeln.
                              CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
                                EXPORTING
                                  input  = wa_tab2-vbeln
                                IMPORTING
                                  output = wa_vbka-vbeln.
                             wa_vbka-vbeln = wa_tab2-vbeln.
                              APPEND wa_vbka TO t_vbka1.
                            ENDLOOP.
                            SORT t_vbka1 BY vbeln.
                          ENDIF.

  • Crash after logging in, how to submit crash report?

    A little while ago, I tried to login in to my laptop.  As my account was coming up (desktop picture, desktop icons, a few apps, some of the extensions in the upper right, etc) the screen went blue and I was returned to the login window.  According to my neice this had been happening all day with her account as well.
    I restarted the machine and since then all has been well.  I can see the crash reports in Console.  So I kind of have two questions:  One, what caused the problem?  Two, how do I submit a crash report to Apple?  It does appear to be an OS crash, as the crashed thread is running WindowServer code in Apple GeForce driver.
    Thanks
    Chris

    If you want to report this issue to Apple's engineering, send a bug report or an enhancement request via its Bug Reporter system. To do this, join the Mac Developer Program—it's free and available for all Mac users and gets you a look at some development software. Since you already have an Apple username/ID, use that. Once a member, go to Apple BugReporter and file your bug report or enhancement request. You'll get a response and a follow-up number; thus, starting a dialog with engineering.

  • Who supports the Z3v? How to submit bug reports?

    I love my Z3v, but I've encountered some significant bugs with the firmware and the software. What is the best way to submit a bug report and/or feature request? 
    For that matter, who officially supports the phone?  I tried reporting a firmware bug to Verizon and they directed me to the manufacturer of the phone (Sony).  I then tried to get support through Sony and the support rep claimed that, because the Z3v is a Verizon-specific model, only Verizon could support me.
    Solved!
    Go to Solution.

    I'd say Verizon as it is them who would have modified the firmware and then given that to Sony for release - When it comes to network specific models and firmware then they are your 1st port of contact - but this is just my opinion based on what happens here in the UK however some features are generic in all models like the Walkman and Album apps etc
    For a successful technology, reality must take precedence over public relations, for Nature cannot be fooled.   Richard P. Feynman

  • How to submit a concurrent request from Discoverer report.

    I would like to know If any one has tried submitting a concurrent request from Discoverer Report?_
    This is no stupid question, but our team here finally decided with a solution to our long pending issues with few of the discoverer report. To Proceed further, we would like to know, how to submit a concurrent request from Discoverer report?
    We are looking for calling a package from the Disco admin by passing the parameters from the disco to the 6i report.
    All help us in this regards are much appreciated.
    Kindly help us in the same!
    Thanks
    Arun

    Thanks Rod for confirming the same.
    I will be trying the same today and will let you know if I succeed in doing it.
    If I can share the actual requirement with you, it goes like this.
    "I will be triggering the Oracle 6i standard AP Trail balance report through the Disco report. The standard report will be inserting the required data to one of my custom table. Once the concurrent program completes normal, my custom table will be having the required data to create the workbook specific to the current run of the concurrent program.
    The one problem which I think could happen is, How can I make my disco report to wait till the standard program to complete in normal so that my disco report can be generated with the data from custom table.
    Will the above requirement is possible If I follow the way you mention in the PDF or Could you suggest a better way for achieving the same.
    In short, my requirement is: The custom table(say XX_TABLE) will be populated with data when the standard 6i report is run and the disco admin will be making of the custom table (XX_TABLE) to generate the report.
    Please advice.
    Thanks
    Arun

  • Bought the starter pack iap on the game 'Injustice: God Among Us', but it didn't give me what it said it would so I want a refund but finding it diffcult to request one, as reporting a problem just redirects me to this website. How to submit for a refund?

    Bought the starter pack iap on the game 'Injustice: God Among Us', but it didn't give me what it said it would so I want a refund but finding it diffcult to request one, as reporting a problem just redirects me to this website. How to submit for a refund?

    Try going to https://expresslane.apple.com ; select 'All Products and Services' in the first column, 'iTunes' in the second column and then 'iTunes Store' in the third column.

  • How to submit my kernel report?

    as above, how to submit my kernel report on here to fix my problem? 
    thank you.

    iMac 27' 3.4GHz intel core i7 32GB NVIDIA GeForce GTX 680MX 3TB SATA Disk, OSX 10.8.2
    My problem is I keep receiving kernel panic to ask me wait for fews sec or press any button to restart my iMac, and also some of my application while run half way will auto close down and pop up a crash report and ask me to reopen, my IMac bough half year ago, I start receive kernel report and the crash problem since September, my appreciate if you can help me to slove the problem, thank you !

  • Firefox crashed when I restarted it to install plugins and the crash reporter is unable to submit a report for this crash. How can I submit this report?

    # This file is in the UTF-8 encoding
    [Strings]
    # LOCALIZATION NOTE (isRTL):
    # Leave this entry empty unless your language requires right-to-left layout,
    # for example like Arabic, Hebrew, Persian. If your language needs RTL, please
    # use the untranslated English word "yes" as value
    isRTL=
    CrashReporterTitle=Crash Reporter
    # LOCALIZATION NOTE (CrashReporterVendorTitle): %s is replaced with the vendor name. (i.e. "Mozilla")
    CrashReporterVendorTitle=%s Crash Reporter
    # LOCALIZATION NOTE (CrashReporterErrorText): %s is replaced with another string containing detailed information.
    CrashReporterErrorText=The application had a problem and crashed.\n\nUnfortunately the crash reporter is unable to submit a report for this crash.\n\nDetails: %s
    # LOCALIZATION NOTE (CrashReporterProductErrorText2): The first %s is replaced with the product name (i.e. "Firefox"), the second is replaced with another string containing detailed information. These two substitutions can not be reordered!
    CrashReporterProductErrorText2=%s had a problem and crashed.\n\nUnfortunately the crash reporter is unable to submit a crash report.\n\nDetails: %s
    CrashReporterSorry=We're Sorry
    # LOCALIZATION NOTE (CrashReporterDescriptionText2): The %s is replaced with the product name.
    CrashReporterDescriptionText2=%s had a problem and crashed.\n\nTo help us diagnose and fix the problem, you can send us a crash report.
    CrashReporterDefault=This application is run after a crash to report the problem to the application vendor. It should not be run directly.
    Details=Details…
    ViewReportTitle=Report Contents
    CommentGrayText=Add a comment (comments are publicly visible)
    ExtraReportInfo=This report also contains technical information about the state of the application when it crashed.
    # LOCALIZATION NOTE (CheckSendReport): The %s is replaced with the vendor name.
    CheckSendReport=Tell %s about this crash so they can fix it
    CheckIncludeURL=Include the address of the page I was on
    CheckSendEmail=Email me when more information is available
    EmailGrayText=Enter your email address here
    ReportPreSubmit2=Your crash report will be submitted before you quit or restart.
    ReportDuringSubmit2=Submitting your report…
    ReportSubmitSuccess=Report submitted successfully!
    ReportSubmitFailed=There was a problem submitting your report.
    ReportResubmit=Resending reports that previously failed to send…
    # LOCALIZATION NOTE (Quit2): The %s is replaced with the product name.
    Quit2=Quit %s
    # LOCALIZATION NOTE (Restart): The %s is replaced with the product name.
    Restart=Restart %s
    Ok=OK
    Close=Close
    # LOCALIZATION NOTE (CrashID): The %s is replaced with the Crash ID from the server, which is a string like abc12345-6789-0abc-def1-23456abcdef1
    CrashID=Crash ID: %s
    # LOCALIZATION NOTE (CrashDetailsURL): The %s is replaced with a URL that the user can visit to view the crash details.
    CrashDetailsURL=You can view details of this crash at %s
    ErrorBadArguments=The application passed an invalid argument.
    ErrorExtraFileExists=The application didn't leave an application data file.
    ErrorExtraFileRead=Couldn't read the application data file.
    ErrorExtraFileMove=Couldn't move application data file.
    ErrorDumpFileExists=The application did not leave a crash dump file.
    ErrorDumpFileMove=Couldn't move crash dump.
    ErrorNoProductName=The application did not identify itself.
    ErrorNoServerURL=The application did not specify a crash reporting server.
    ErrorNoSettingsPath=Couldn't find the crash reporter's settings.
    ErrorCreateDumpDir=Couldn't create pending dump directory.
    # LOCALIZATION NOTE (ErrorEndOfLife): The %s is replaced with the product name.
    ErrorEndOfLife=The version of %s you are using is no longer supported. Crash reports are no longer being accepted for this version. Please consider upgrading to a supported version.

    I think you may have pasted the wrong thing into the Description.
    To try and resubmit a pending report (for example if you lost your internet connection):
    #Go to about:crashes in the location bar
    #Click the latest report link to resubmit it
    If there isn't a pending crash report listed, I'm afraid you may be out of luck for that crash report.

Maybe you are looking for

  • Crash report reproduced here - feedback appreciated

    From the following crash 'report,' can anyone see what led to the crash? I was at a 'flight search' website, and search results from my input (departure and return dates) were being computed. Suddenly, crash to desktop with SAFARI gone. Replies appre

  • Bridge (& Prelude & Media Encoder) included in a Premiere-only account?

    Hi! I have a full CC account myself, but for a client of mine, I'm looking into different accounts. A production company I work for, is going to make the transition to Adobe CC. Because I have years of experience using it, they have asked me to overs

  • Problem sending texts

    I'm having a problem sending texts to certain numbers. I have been able to send them before, but not any more. Delivery report tells me it's been delivered, but the recipient says nothing has arrived. It only seems to happen withcertain numbers.

  • Cannot keep settings in iTunes - "View Option"

    I want certain information to show in my iTunes library like title, singer, composer, etc. I go to View Options and check what I want to show and then click SAVE. It's fine....until I leave and come back. Then I'm back to the default settings...I gue

  • Designing a board game

    Is there anychance anyone out there can help me with the design of a risk board game in java - obviously. I am a complete rookie so if you can keep it as simple as possible I will be very greatful. Cheers!