Setting bacjground job

hi i am beginner in abap i want to set a back ground job for a particular date and time through program only, and to stop a program with in certain time means the whole job time is only o seconds after 10 seconds the job will be canceled,
plz help me

Hi Kiran,
you can schedule your job in the job_close function module.
Check this code.
DATA:
  RDD_JOBNAME   LIKE TBTCO-JOBNAME,
  RDD_USERNAME  LIKE TBTCO-AUTHCKNAM VALUE 'DDIC',
  RDD_REPORT    LIKE SY-REPID,
  RDD_VARIANT   LIKE RALDB-VARIANT   VALUE '1',
  RDD_PRDDAYS   LIKE TBTCO-PRDDAYS,
  RDD_PRDMONTHS LIKE TBTCO-PRDMONTHS,
  RDD_STRTTIME  LIKE TBTCO-SDLSTRTTM VALUE 28800,
  RDD_STRTDATE  LIKE TBTCO-SDLSTRTDT,
  RDD_JOBCOUNT  LIKE TBTCO-JOBCOUNT,
  COUNT  LIKE TBTCO-SDLSTRTTM,
COUNT = 28800.
  DO 12 TIMES.
    RDD_STRTDATE = SY-DATUM + 1.       " tomorrow
    RDD_STRTTIME = COUNT.              " 1 am
    RDD_JOBNAME = '#SAP_COLLECTOR_FOR_PERFMONITOR'.
    RDD_REPORT = 'RSCOLL00'.
    PERFORM SCHEDULE_JOB.
    COUNT = COUNT + 3600.
  ENDDO.
FORM SCHEDULE_JOB.
  CALL FUNCTION 'JOB_OPEN'
       EXPORTING
            JOBNAME          = RDD_JOBNAME
       IMPORTING
            JOBCOUNT         = RDD_JOBCOUNT
       EXCEPTIONS
            CANT_CREATE_JOB  = 1
            INVALID_JOB_DATA = 2
            JOBNAME_MISSING  = 3
            OTHERS           = 4.
  IF SY-SUBRC EQ 0.
          CALL FUNCTION 'JOB_SUBMIT'
           EXPORTING
                JOBNAME                 = RDD_JOBNAME
                JOBCOUNT                = RDD_JOBCOUNT
                AUTHCKNAM               = RDD_USERNAME
                REPORT                  = RDD_REPORT
              variant                 = rdd_variant
           EXCEPTIONS
                BAD_PRIPARAMS           = 1
                BAD_XPGFLAGS            = 2
                INVALID_JOBDATA         = 3
                JOBNAME_MISSING         = 4
                JOB_NOTEX               = 5
                JOB_SUBMIT_FAILED       = 6
                LOCK_FAILED             = 7
                PROGRAM_MISSING         = 8
                PROG_ABAP_AND_EXTPG_SET = 9
                OTHERS                  = 10.
    ENDIF.
    IF SY-SUBRC EQ 0.
          CALL FUNCTION 'JOB_CLOSE'
             EXPORTING
                  JOBNAME              = RDD_JOBNAME
                  JOBCOUNT             = RDD_JOBCOUNT
                  PRDDAYS              = RDD_PRDDAYS
                  <b>SDLSTRTDT            = RDD_STRTDATE
                  SDLSTRTTM            = RDD_STRTTIME</b>             EXCEPTIONS
                  CANT_START_IMMEDIATE = 1
                  INVALID_STARTDATE    = 2
                  JOBNAME_MISSING      = 3
                  JOB_CLOSE_FAILED     = 4
                  JOB_NOSTEPS          = 5
                  JOB_NOTEX            = 6
                  LOCK_FAILED          = 7
                  OTHERS               = 8.
        IF SY-SUBRC <> 0.
          MESSAGE S587 WITH RDD_JOBNAME.
        ENDIF.
       ENDIF.
ENDFORM.
Thanks,
Susmitha

Similar Messages

  • How to set a job name to a report?

    Post Author: nandors1
    CA Forum: Deployment
    Hi
    I' m programming an application with Visual Basic .Net 2005 and CrystalReports, when I print an report, at the printing spool all Crystal Reports' documents appears as 'document', I want to know if exists any way to set a job name at document at the Crystal Report Viewer to can recognize a document in printing spool at the moment of print from VisualBasic at runtime.

    Post Author: quafto
    CA Forum: Deployment
    Sorry. There is no way to change that name. When you load a report we make a temorary copy of the report file and that is what is often used when sending the print job. At this time we don't have access to that print job property.

  • Simple set up job how to cancel

    Hi bw expert please help me asap, I have run the set up job by oli9bw for billing with out any number range, but then i realized that it will take the long time, so i run a parallel set up job with number range. please help me now how to delete or end the old set up job that has no number range
    thanks
    soniya

    Sonyia
    to get records in BW from LO applications.
    Do :
    1 fill in setup tables according to your application as you have done. (if you need do to it again delete in lbwg and then fill in again in oliXbw.
    2 do intialisation of delta in BW side with the IP
    3 launch the collection run (do not forget to give a printer)so that the job will read and process data to the queue (check in rsa7)
    4 do delta uploads in BW side with another IP.
    if you skeep the step of collection run in lbwe you will not get the deltas
    If there is no records do modification in a billing document or ask a functional consultant to do it and launch delta again (before launching delta check if collection run is still active)
    hope this helps
    regards
    Boujema

  • How to set a job ran after another job finished?

    Dear Experts,
    Our requirement is to have 2 JOBs defined in SAP:
    JobA and JobB
    The requirement is JobA will firstly ran and finished everyday.
    Then JobB will start to run upon JobA finished everyday also.
    Then what i did is set 2 jobs, and set JobB ran after with JobA. I set JobA's name in 'After Job' for JobB.
    Right now, the issue is:
    JobB will run after JobA, but only could run one day..
    The next day after JobA finished, JobB will not run...
    Please kindly help what issue here??
    Thank you very much.

    Dear Hoo,
    It is possible to follow one job after another.
    For this set up please go to transaction "SM36"
    fill your details and then press "Start condition" a new screen opens where you can see several tabs,
    and there is one tab with "After Job" , please enter the name of Job e.g jobA.
    here you can set all the conditions to start a new job.
    I hope this solves your problem.
    Regards,
    Paresh

  • How to set a job to import automatically transport requests

    I wander how to set a job to import automatically transport requests

    Hi jan Bo,
    http://help.sap.com/saphelp_erp2004/helpdata/EN/44/b4a3c57acc11d1899e0000e829fbbd/frameset.htm
    Usung above link you can schedule a transport, if you schedule this job a back ground job will be defined copy this job and create a new varient with your transport request. Make this job run after the back ground job you want.
    Regards,
    S.Manu.

  • Setting dbms job interval

    I have to run a job every dat at midnight. How do I set my job interval to run a dbms job every day at a set time.
    Thank you

    Well, because the date also has the time. Oh and Oracle actually 'see's ' midnight as AM not PM
    In SqlPlus do the following:
    alter session set nls_date_format='dd-mon-yyyy hh:mi pm' ;
    select trunc(sysdate+1) from dual;
    select trunc(sysdate+1)+12/144 from dual;
    select trunc(sysdate+1)+90/144 from dual;
    You get the idea
    Thank you so much. trunc(sysdate+1) is next day isn't it? How does system know to run exactly at 12:00 PM.

  • Setting multiple jobs simultaneousely..........

    i want some info how to set multiple jobs simultaneously.
    i have one pgm which is taking much time in prod.
    infact that pgm updates one table and picks from that table and sends to FTP file.
    i have splitted those table updates into 4 parts , i mean i have taken 4 pgms to do this.
    am splitting the table values into 4 parts and updating from these 4 pgms.
    now i am calling the 4 pgms in background using submit.
    now can reduce the half-of the time.
    fine with this but i want to still reduce the time.
    i want to  schedule these 4 pgms simultaneously in background so that all the values will update at a time and can reduce the time

    this is what i have been doing. thank in advance
    JOBNAME = 'TEST_FLEX_1'.
    CALL FUNCTION 'JOB_OPEN'
      EXPORTING
      DELANFREP              = ' '
      JOBGROUP               = ' '
        JOBNAME                = JOBNAME
       SDLSTRTDT              =  SY-DATUM
      SDLSTRTTM              = NO_TIME
      JOBCLASS               = 'C'
    IMPORTING
       JOBCOUNT               = JOBNUMBER
    EXCEPTIONS
       CANT_CREATE_JOB        = 01
       INVALID_JOB_DATA       = 02
       JOBNAME_MISSING        = 03
       OTHERS                 = 99          .
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    IF SY-SUBRC = 0 .
    SUBMIT ZTESTPGM1 AND RETURN
                     USER SY-UNAME
                     VIA  JOB JOBNAME NUMBER JOBNUMBER
                     WITH selection-table seltab.
    SUBMIT ZTESTPGM_2 AND RETURN
                     USER SY-UNAME
                     VIA  JOB JOBNAME NUMBER JOBNUMBER
                     WITH selection-table seltab.
    SUBMIT ZTESTPGM_3 AND RETURN
                     USER SY-UNAME
                     VIA  JOB JOBNAME NUMBER JOBNUMBER
                     WITH selection-table seltab.
    SUBMIT ZTESTPGM_4 AND RETURN
                     USER SY-UNAME
                     VIA  JOB JOBNAME NUMBER JOBNUMBER
                     WITH selection-table seltab.
    ENDIF.
    CALL FUNCTION 'JOB_CLOSE'
      EXPORTING
      AT_OPMODE                         = ' '
      AT_OPMODE_PERIODIC                = ' '
      CALENDAR_ID                       = ' '
      EVENT_ID                          = ' '
      EVENT_PARAM                       = ' '
      EVENT_PERIODIC                    = ' '
        JOBCOUNT                          = JOBNUMBER
        JOBNAME                           = JOBNAME
      LASTSTRTDT                        = NO_DATE
      LASTSTRTTM                        = NO_TIME
      PRDDAYS                           = 0
      PRDHOURS                          = 0
      PRDMINS                           = 0
      PRDMONTHS                         = 0
      PRDWEEKS                          = 0
      PREDJOB_CHECKSTAT                 = ' '
      PRED_JOBCOUNT                     = ' '
      PRED_JOBNAME                      = ' '
      SDLSTRTDT                         = NO_DATE
      SDLSTRTTM                         = NO_TIME
      STARTDATE_RESTRICTION             = BTC_PROCESS_ALWAYS
       STRTIMMED                         = 'X'
      TARGETSYSTEM                      = ' '
      START_ON_WORKDAY_NOT_BEFORE       = SY-DATUM
      START_ON_WORKDAY_NR               = 0
      WORKDAY_COUNT_DIRECTION           = 0
      RECIPIENT_OBJ                     =
      TARGETSERVER                      = ' '
      DONT_RELEASE                      = ' '
      DIRECT_START                      =
    IMPORTING
       JOB_WAS_RELEASED                  = JOB_RELEASED
    CHANGING
      RET                               =
    EXCEPTIONS
      CANT_START_IMMEDIATE              = 01
       INVALID_STARTDATE                 = 01
       JOBNAME_MISSING                   = 02
       JOB_CLOSE_FAILED                  = 03
       JOB_NOSTEPS                       = 04
       JOB_NOTEX                         = 05
       LOCK_FAILED                       = 06
       OTHERS                            = 99
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.

  • I wander where to set import job for transports

    I wander where to set import job for transports to be imported automatically. On transport domain controller I can not manage other job than the one for the system itself.
    On the system which is not transport domain controler I have only display function

    are you asking for 'automatic import' in QAS/PRD ?
    When you go to STMS import queue in a particular system like QAS, there you can see a button 'import all'. This will enable to you schedule automatic import periodically in intervals for eg. 15 min or whatever you want.
    just click on import all and it will ask for inputs and schedule
    OR, do you want to confirm for RDDIMPDP job ?
    Run report RDDNEWPP to schedule RDDIMPDP
    Edit: Note 11677 - Transports with event-controlled RDDIMPDP

  • Set background job - create dn automatically

    hi
    Pls advice how to set background job to create DN automatically
    thanks

    How you are saying that no Deliveries were created ?
    First of all make sure that they are sales orders due for delivery data on the day you are creating.
    -> Run VF04 in foreground with the variant that you used in Background and check whether there is any orders due for delivery or not?
    Make sure you have proper data.
    Hope you should get it.
    Regards,
    Ajai.

  • How to set web job like a ssis which can take xmil file from azure storage to up date azure sql

    Hi,
    I have xml files under azure storage, i would like to set up web job which should be scheduled and
    load xml to update/insert/delete azure database.
    I have done SSIS locally and but cant use in azure.
    According to several advices and forum pages,I need to create azure web job.
    Please advice link or advice.
    Thanks.
    Superman

    Hi,
    To get started with Azure webjobs you could refer the following link:
    http://azure.microsoft.com/en-in/documentation/articles/websites-dotnet-webjobs-sdk-get-started/
    The article shows how to create a multi-tier ASP.NET MVC application that uses the WebJobs SDK to work with Azure blobs in an Azure Website.
    Meanwhile, we will research regarding your specific requirement and revert with our finds.
    Regards,
    Malar

  • JS: How to make a script to print one page at a time and set print job name?

    What I want is to print one page at a time to the printer.
    Document.print(false, app.printerPresets.item(0)) almost get me there. But how do I get it to print page by page? There seems to be no way to set which page to print to printerPreset.
    Also, is it possible to change print job name from the default of using document name?

    >Is there any solution to this other than saving the document to a different name before each page print?
    Here is an altered and abriged version of the script that I use. I use print preset called "PS to PDF" in it, so you should change it to your own.
    if(app.documents.length == 0){
       alert("Please open a document and try again.");
       exit();
    var myFolder = Folder ("~/Desktop");
    var myDoc = app.activeDocument;
    var myNoExtention = getFileNameOnly (myDoc.name);
    var myPrintPrefs = myDoc.printPreferences;
    if (app.printerPresets.item("PS to PDF") == null) {
       alert("Preset \"PS to PDF\" has not been installed");
       exit();
    else {
       myPrintPrefs.activePrinterPreset = app.printerPresets.item("PS to PDF"); 
    myDoc.sections.everyItem().sectionPrefix = "";
    myDoc.sections.everyItem().includeSectionPrefix = false;
       var stop = myDoc.pages.length;
       var w = new Window ( 'window', 'Printing PS-files' );
       var pb = w.add ('progressbar', [12, 12, 300, 24], 0, stop);
       var txt = w.add('statictext');
       txt.bounds = [0, 0, 200, 20];
       txt.alignment = "left";
       w.show()
    for(var myCounter = 0; myCounter < myDoc.pages.length; myCounter++){
       curPage = myCounter + 1;
       pb.value = curPage;
       var myText = String("Page " + curPage + " of " + myDoc.pages.length);
       txt.text = myText;       
       var myPageName = myDoc.pages.item(myCounter).name;
       var cornumber = pagenum(myPageName);
       var myFilePath = myFolder + "/" + myNoExtention + "_" + cornumber + ".ps";
       var myFile = new File(myFilePath);
       myPrintPrefs.pageRange = myPageName;
       myPrintPrefs.printFile = myFile;
       myDoc.print(false);
    w.hide();
    alert("Done!");
    function pagenum(myNumber){
       if (myNumber >= 1 && myNumber <= 9)
       x =  "0" + "0" + myNumber;
       else if (myNumber >= 10 && myNumber <= 99)
       x = "0" + myNumber;
       else if (myNumber >= 100 && myNumber <= 999)
       x = myNumber;
    return x
    function getFileNameOnly (myFileName) {
       var myString = "";
       var myResult = myFileName.lastIndexOf(".");
       if (myResult == -1) {
          myString = myFileName;
       else {
          myString = myFileName.substr(0, myResult);
       return myString;
    Kasyan

  • Set 'Use Job server default' for Unmanaged disk destination

    Hi,
    I am using BO XI R2 SDK to schedule reports.
    I want to set all my reports destinations to Unmanaged disk to a particular folder. I have set these in reportjobserver's destination configuration too.
    Now i want create schedules through code for all my reports. I want these reports to use the job server defaults. I am unable to find a solution for this. The code i am currently using is as follows:
    Code:
    InfoObject diskObj = tempStoreForDisk.Query("SELECT * FROM  ci_systemobjects where si_name='CrystalEnterprise.DiskUnmanaged'")[1];
                    DestinationPlugin destDiskPlugin = (DestinationPlugin)diskObj;
                    DiskUnmanaged diskUnmanaged = (DiskUnmanaged)destDiskPlugin;
                    DestinationOptions destinationOptions = (DestinationOptions)diskUnmanaged.ScheduleOptions;
                    DiskUnmanagedOptions diskUnmanagedOptions = new DiskUnmanagedOptions(destinationOptions);
                    diskUnmanagedOptions.DestinationFiles.Add(path);
                    schedulingInfo.Destinations.Add("CrystalEnterprise.DiskUnmanaged");
                    schedulingInfo.Destinations[1].SetFromPlugin(destDiskPlugin);
    I want the italics line of code to be replaced with some code that enables the instance to use job server defaults.
    If a solution for the above query is not available, is it possible to set 'specific filename with extension' in the unmanaged destination through code?
    Could anyone please help me with any pointers?
    Thanks.

    Hello, Gayathri;
    I am not aware of a method to get defaults from the Job Server.
    You can use Visual Studio .NET to schedule to a disk file. We do have samples associated with our Developers Library on line.
    http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/devsuite.htm
    The sample I am thinking of is "Schedule Report".
    http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/en/BOE_SDK/sampleList.htm
    Here is a simple sample that schedules to disk:
    Imports CrystalDecisions.Enterprise
    Imports CrystalDecisions.Enterprise.Desktop
    Imports CrystalDecisions.Enterprise.Dest
    Public Class ScheduleDisk
        Inherits System.Web.UI.Page
        Dim ceSession As EnterpriseSession
        Dim ceEnterpriseService As EnterpriseService
        Dim ceInfoStore As InfoStore
        Dim ceReportObjects As InfoObjects
        Dim ceReportObject As InfoObject
        Dim ceReport As Report
        Dim sQuery As String
    #Region " Web Form Designer Generated Code "
        'This call is required by the Web Form Designer.
        <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
        End Sub
        Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init
            'CODEGEN: This method call is required by the Web Form Designer
            'Do not modify it using the code editor.
            InitializeComponent()
        End Sub
    #End Region
        Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
            'Put user code to initialize the page here
            Try
                'grab the Enterprise session
                If TypeOf Session.Item("ceSession") Is Object Then
                    ceSession = Session.Item("ceSession")
                    'Create the infostore object
                    ceEnterpriseService = ceSession.GetService("", "InfoStore")
                    ceInfoStore = New InfoStore(ceEnterpriseService)
                    'Create query to grab the desired report
                    sQuery = "Select SI_ID From CI_INFOOBJECTS Where SI_PROGID = 'CrystalEnterprise.Report' AND SI_Name='Consolidated Balance Sheet' AND SI_INSTANCE=0"
                    ceReportObjects = ceInfoStore.Query(sQuery)
                    'check for returned reports
                    If ceReportObjects.Count > 0 Then
                        ceReportObject = ceReportObjects.Item(1)
                        ceReport = CType(ceReportObject, Report)
                        'Create an interface to the scheduling options for the report.
                        Dim ceSchedulingInfo As SchedulingInfo
                        ceSchedulingInfo = ceReport.SchedulingInfo
                        'run the report right now
                        ceSchedulingInfo.RightNow = True
                        'run the report once only
                        ceSchedulingInfo.Type = CeScheduleType.ceScheduleTypeOnce
                        'When scheduling to all destinations except the printer, you must first retrieve
                        'the appropriate destination object. Each destination InfoObject is stored in the
                        'CMS system table (CI_SYSTEMOBJECTS) under the Destination Plugins folder
                        'Retrieve the DiskUnmanaged Plugin from CI_SYSTEMOBJECTS
                        Dim ceDestinationObjects As InfoObjects
                        Dim ceDestinationObject As InfoObject
                        ceDestinationObjects = ceInfoStore.Query("Select * from CI_SYSTEMOBJECTS Where SI_NAME = 'CrystalEnterprise.DiskUnmanaged'")
                        ceDestinationObject = ceDestinationObjects.Item(1)
                        'Create the DestinationPlugin object
                        Dim ceDisk As New DestinationPlugin(ceDestinationObject.PluginInterface)
                        'Create a diskUnmanagedOptions object and its ScheduleOptions from the Destination plugin
                        Dim ceDiskOpts As New DiskUnmanagedOptions(ceDisk.ScheduleOptions)
                        ceDiskOpts.DestinationFiles.Add("c:\ScheduledReports\ScheduledToDisk.rpt")
                        'Copy the properties from the Destination Plugin object into the report's scheduling
                        'information.  This will cause the file to be transfered to Disk after it has been run.
                        Dim ceDestination As Destination
                        ceDestination = ceSchedulingInfo.Destination
                        ceDestination.SetFromPlugin(ceDisk)
                        'schedule report
                        ceInfoStore.Schedule(ceReportObjects)
                        Response.Write("Report Scheduled Successfully with an Object ID of : " + ceReportObject.Properties("SI_NEW_JOB_ID").ToString)
                        Response.Write("<br>Report Scheduled to the following location: " + ceDiskOpts.DestinationFiles(1).ToString)
                    Else
                        'no objects returned by query
                        Response.Write("No report objects found by query <br>")
                        Response.Write("Please click <a href='Index.aspx'>here</a> to return to the logon page.<br>")
                    End If
                Else
                    'no Enterprise session available
                    Response.Write("No Valid Enterprise Session Found!<br>")
                    Response.Write("Please click <a href='Index.aspx'>here</a> to return to the logon page.<br>")
                End If
            Catch err As Exception
                Response.Write("There was an error scheduling the report: <br>")
                Response.Write(err.Message.ToString + "<br>")
                Response.Write("Please click <a href='Index.aspx'>here</a> to return to the logon page.<br>")
            End Try
        End Sub
    End Class
    Elaine

  • Need to set a job in crontab

    Hi
    Need to setup a job in crontab to run every 30 min from 8.00 am to 10.pm including both the timings.Any one can suggest it how that can be acheived?

    Hi,
    I have some good examples that describe how to set crontab execution times:
    http://www.dba-oracle.com/t_crontab_examples.htm
    Take a minute and read the basic rules. At forst it looks cryptic, but it's easy once you understand the columns:
    field allowed values
    minute 0-59
    hour 0-23
    day of month 1-31
    month 1-12
    day of week 0-7 (both 0 and 7 are Sunday)
    user Valid OS user
    command Valid command or script.
    The date fields can contain a number of patterns to form complex schedules, as shown below.
    * - All available values or "first-last".
    3-4 - A single range representing each possible from the
    start to the end of the range inclusive.
    1,2,5,6 - A specific list of values.
    1-3,5-8 - A specific list of ranges.
    0-23/2 - Every other value in the specified range.
    In Red Hat Linux, the month and day names can be used to specify these fields. The following examples show a selection of possible schedules:
    30 * * * * root echo "Runs at 30 minutes past the hour."
    45 6 * * * root echo "Runs at 6:45 am every day."
    45 18 * * * root echo "Runs at 6:45 pm every day."
    00 1 * * 0 root echo "Runs at 1:00 am every Sunday."
    00 1 * * 7 root echo "Runs at 1:00 am every Sunday."
    00 1 * * Sun root echo "Runs at 1:00 am every Sunday."
    30 8 1 * * root echo "Runs at 8:30 am on the first day of every month."
    00 0-23/2 02 07 * root echo "Runs every other hour on the 2nd of July."
    Hope this helps. . .
    Don Burleson
    Oracle Press author

  • How to set PDF Job option using FDK11?

    Hi,
    I have a tool to convert Framebook into PDF and this works good. But the generated pdf is not of the same size as it is generated through FrameMaker Save as PDF. With the FrameMaker API, I get a dialog box to choose the different PDF Job options available. I came across a similar provision with FDK which also has a property to set the PDF Job options but it doesnt work as expected. Please correct me if my approach is wrong.
                    params = F_ApiGetSaveDefaultParams();
                    i = F_ApiGetPropIndex(&params, FS_FileType);
                    params.val[i].propVal.u.ival = FV_SaveFmtPdf;
                    i = F_ApiGetPropIndex(&params, FP_PDFJobOption);
                    params.val[i].propVal.u.ival = F_StrCopyString ((StringT)"Smallest File Size");
    Thanks,
    Venkat

    As far as I know, the only way to specify PDF options is by programmatically displaying the PDF Options dialog (via WinAPI calls), "selecting" the options and "pressing" the OK button. There have been numerous discussions on this topic on the Yahoo frame_dev group ..
         http://groups.yahoo.com/neo/groups/frame_dev/search/messages?query=pdf%20options
    And here's some code ..
         http://groups.yahoo.com/neo/groups/frame_dev/conversations/messages/1578
    You may be able to set the options as you're doing, but I don't think they are "set" until you display the dialog and "press" the OK button.
    ...scott

  • SMW2 - Inbound , need to set STOP jobs to automatically delete

    Hi
    We set the system to receive data from ECC 6.0 system to SRM to inbound queue (SMQ2). There was specific data that we needed for processing and the other set to STOP in SMQ2. The ones that are in the QUEUE are holding back the the active one. We have to delete the STOP jobs to for the active one to process. Is there a way of setting a schedule for STOP job to automatically delete
    Regards
    Naziem Mahomed

    usually a queue is stopped , if there is any problem.
    You need to resolve the problem in the queue , and then once that is resolved... ,following queues will go through.
    how ever it is not possible to automatially remove the stop queues , unless you have custom program to remove the stopped entries...

Maybe you are looking for