Submit via JOB job NUMBER n

I have an ABAP wrapper program that generates a job with multiple steps using JOB_OPEN, SUBMIT...VIA JOB and JOB_CLOSE. The generated job will have multiple steps and each step can have an error message. How do I code SUBMIT statement to allow processing of subsequent steps even if error or do I have to use JOB_SUBMIT and then what setting would I then use for that scenario?

I think it will not be possible to continue to the next step in a multi-step job if the previous one has ended in error.
If you need this, you shall probably define these as independent jobs.

Similar Messages

  • SUBMIT VIA JOB MESSAGE TYPE 'E'

    Hi!
    Please help me, I can't use submit via background job, because he can't handle message errors of type 'E'. When this kind of message occurs, all background processing stops and I get a report screen with this message in the status bar.
    Is there any solution?

    Let me understand this. You have a program A from which you submit a program B in the background and if in program B an error is raised, your program A execution stops. Is this true?
    Did you do a job close in your code. Here is a sample program ZTEST1 that submits another program ZTEST2 in the background. If there is an error message thrown out in ZTEST2, the job submitted is cancelled, with the job log showing the error message. The processing of ZTEST1 continues even after that.
    I don't know why yours is not. Please let us know.
    <u>Program ZTEST1</u>
    REPORT ztest1 .
    PARAMETERS: p_matnr1 LIKE mara-matnr.
    DATA: v_jobcount LIKE tbtcjob-jobcount,
          v_jobname  LIKE tbtcjob-jobname.
    START-OF-SELECTION.
      v_jobname = 'TESTJOB'.
    *-- open the job
      CALL FUNCTION 'JOB_OPEN'
           EXPORTING
                jobname          = v_jobname
           IMPORTING
                jobcount         = v_jobcount
           EXCEPTIONS
                cant_create_job  = 1
                invalid_job_data = 2
                jobname_missing  = 3
                OTHERS           = 4.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    *-- submit the report
      SUBMIT ztest2 WITH p_matnr2 = p_matnr1
                    USER sy-uname VIA JOB v_jobname
                  NUMBER v_jobcount AND RETURN.
    *-- close the job
      CALL FUNCTION 'JOB_CLOSE'
           EXPORTING
                jobcount             = v_jobcount
                jobname              = v_jobname
                strtimmed            = 'X'
           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 ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
      WRITE:/ 'Job submitted successfully.'.
    <u>Program ZTEST2</u>
    REPORT ztest2 MESSAGE-ID zz.
    PARAMETERS: p_matnr2 LIKE mara-matnr.
    DATA: itab LIKE mara OCCURS 0 WITH HEADER LINE.
    START-OF-SELECTION.
      SELECT * INTO TABLE itab FROM mara
                              WHERE matnr = p_matnr2.
      IF sy-subrc <> 0.
        MESSAGE e000 WITH 'Invalid material number'.
      ENDIF.
      LOOP AT itab.
        WRITE:/ itab-matnr.
      ENDLOOP.

  • Problem Submit Via Job in BADI

    Hello All
    I am using SUBMIT VIA JOB in BADI "work order update" and but no job is created....also sy-subrc is 0.
    Here is the code
      call function 'JOB_OPEN'
        exporting
          jobname          = name
        importing
          jobcount         = number
        exceptions
          cant_create_job  = 1
          invalid_job_data = 2
          jobname_missing  = 3
          others           = 4.
      if sy-subrc = 0.
        submit z_idoc_create_process_order and return
                              via job name number number
                                   with p_aufnr = it_header1-aufnr
                                   with p_werks = it_header1-werks
                                   with p_autyp = c_autyp
                                   with p_auart = it_header1-auart
                                   with p_dispo = it_header1-dispo
                                   with p_opt   = c_opt
                                   with p_mestyp = c_mestyp.
        if sy-subrc = 0.
          call function 'JOB_CLOSE'
            exporting
              jobcount             = number
              jobname              = name
              strtimmed            = 'X'
            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.
          endif.
    Any reason why job is not created?
    Thanks in advance.
    regads
    VInit

    Hi guys,
    I tried this
        SUBMIT z_idoc_create_process_order USER creator using selection-set lv_variant TO SAP-SPOOL
                               SPOOL PARAMETERS print_parameters
                               WITHOUT SPOOL DYNPRO
                               WITH p_aufnr EQ it_header1-aufnr
                               WITH p_werks EQ it_header1-werks
                               WITH p_autyp EQ c_autyp
                               WITH p_auart EQ it_header1-auart
                               WITH p_dispo EQ it_header1-dispo
                               WITH p_opt   EQ c_opt
                               WITH p_mestyp EQ c_mestyp
                               VIA JOB name NUMBER number
                               AND RETURN.
    Now the job is getting created but my Variant has no values
    How to pass values to variant? below values are not getting tranferred.
                               WITH p_aufnr EQ it_header1-aufnr
                               WITH p_werks EQ it_header1-werks
                               WITH p_autyp EQ c_autyp
                               WITH p_auart EQ it_header1-auart
                               WITH p_dispo EQ it_header1-dispo
                               WITH p_opt   EQ c_opt
                               WITH p_mestyp EQ c_mestyp

  • Submit via job without popups

    Hello everyone,
    I have a problem with the submit statement. I am submitting a report in the background so it won't show popup messages. The problem is that the popup messages are still displayed. When I debug, the report gets executed immediately at the submit statement, and possibly also afterwards in the background.
    There are a few similar threads here, but none seem to have a solution. Here is my code:
    CONCATENATE 'Create_material_' i_stockid INTO v_jobname .
      CALL FUNCTION 'JOB_OPEN'
        EXPORTING
      DELANFREP              = ' '
      JOBGROUP               = ' '
          jobname                = v_jobname
      SDLSTRTDT              = NO_DATE
      SDLSTRTTM              = NO_TIME
      JOBCLASS               =
       IMPORTING
         jobcount               = v_jobcount
    CHANGING
      RET                    =
       EXCEPTIONS
         cant_create_job        = 1
         invalid_job_data       = 2
         jobname_missing        = 3
         OTHERS                 = 4
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      SUBMIT zfl046_mm_flex_stock_matact AND RETURN
             USER sy-uname
             WITH pa_stid = i_stockid
             VIA JOB v_jobname
                 NUMBER v_jobcount
             TO SAP-SPOOL KEEP IN SPOOL 'X'
             WITHOUT SPOOL DYNPRO.
      CALL FUNCTION 'JOB_CLOSE'
           EXPORTING
                jobname              = v_jobname
                jobcount             = v_jobcount
                strtimmed            = 'X'
           IMPORTING
                job_was_released     = v_job_released
           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               = 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.
    Any ideas why the popups still show, or why it executes the submit in the foreground?
    Thanks for everything that might help
    Message was edited by: Vandersteen Jorg
    Message was edited by: Vandersteen Jorg

    I've tried your suggestions, but it does not seem to help.
    This is my code now:
    DATA: v_jobcount     TYPE tbtcjob-jobcount,
             v_jobname      TYPE tbtcjob-jobname,
             v_job_released TYPE  btch0000-char1,
             g_print_params LIKE pri_params,
             g_valid_flag.
      CONCATENATE 'Create_material_' i_stockid INTO v_jobname .
      CALL FUNCTION 'GET_PRINT_PARAMETERS'
           EXPORTING
                archive_mode   = '1'
                mode           = 'BATCH'
                report         = 'ZFL046_MM_FLEX_STOCK_MATACT'
                no_dialog      = 'X'
           IMPORTING
                out_parameters = g_print_params
                valid          = g_valid_flag.
      CALL FUNCTION 'JOB_OPEN'
        EXPORTING
      DELANFREP              = ' '
      JOBGROUP               = ' '
          jobname                = v_jobname
      SDLSTRTDT              = NO_DATE
      SDLSTRTTM              = NO_TIME
      JOBCLASS               =
       IMPORTING
         jobcount               = v_jobcount
    CHANGING
      RET                    =
       EXCEPTIONS
         cant_create_job        = 1
         invalid_job_data       = 2
         jobname_missing        = 3
         OTHERS                 = 4
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      SUBMIT ZFL046_MM_FLEX_STOCK_MATACT
             TO SAP-SPOOL SPOOL PARAMETERS g_print_params
             WITHOUT SPOOL DYNPRO
             USER sy-uname
             WITH pa_stid = i_stockid
             VIA JOB v_jobname
                 NUMBER v_jobcount
             AND RETURN.
      CALL FUNCTION 'JOB_CLOSE'
           EXPORTING
                jobname              = v_jobname
                jobcount             = v_jobcount
                strtimmed            = 'X'
           IMPORTING
                job_was_released     = v_job_released
           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               = 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.

  • Submit via Job- problem in code

    I need to convert the PR to PO automatically, we can do this by me59n, so iam scheduling the job for the me59n program. here iam using Badi's, iam getting the PR, plant, vendor from IM_Eban from the method of Badi, reading this in internal table, zeban. now when the execute the transaction(va01) and saving, PR shouls be converted to PO. i would like to have guys look into the code, and pl correct this.
    method IF_EX_ME_REQ_POSTED~POSTED .
      DATA: ACTUAL_JOBNAME type tbtcjob-JOBNAME value 'Z_TEST2',
            JOBCOUNT type tbtcjob-JOBCOUNT,
            MSG(60) TYPE C,
            STIME TYPE SY-UZEIT.
      DATA: ZEBAN TYPE UEBAN.
      DATA: P_BANFN(10) TYPE N.
      read table IM_EBAN into Zeban index 1.
    *Open the Job
      CALL FUNCTION 'JOB_OPEN'             " OPENING JOB
             EXPORTING
                  JOBNAME  = ACTUAL_JOBNAME  " JOB NAME
             IMPORTING
                  JOBCOUNT = JOBCOUNT.
      DATA SELTAB type table of RSPARAMS.
      data : sel_wa type rsparams.
    Populate internal table.
      MOVE: 'S_EKGRP'       TO SEL_wa-SELNAME,
            'I'             TO SEL_WA-SIGN,
            'EQ'            TO SEL_WA-OPTION,
            'S'                 TO SEL_wa-KIND,
             Zeban-ekgrp         TO sel_wa-LOW.
      APPEND sel_wa to  SELTAB.
      CLEAR SEL_WA.
      MOVE: 'S_FLIEF'       TO SEL_wa-SELNAME,
            'I'             TO SEL_WA-SIGN,
            'EQ'            TO SEL_WA-OPTION,
            'S'                 TO SEL_wa-KIND,
             Zeban-flief         TO sel_wa-LOW.
      APPEND sel_wa to  SELTAB.
      CLEAR SEL_WA.
      MOVE: 'S_WERKS'       TO SEL_wa-SELNAME,
      'I'             TO SEL_WA-SIGN,
            'EQ'            TO SEL_WA-OPTION,
            'S'                 TO SEL_wa-KIND,
             Zeban-werks         TO sel_wa-LOW.
      APPEND sel_wa to  SELTAB.
      CLEAR SEL_WA.
      MOVE: 'P_GBANFN'          TO SEL_WA-SELNAME,
            'P'                 TO SEL_WA-KIND,
            'X'                 TO SEL_WA-LOW.
      APPEND SEL_WA TO SELTAB.
      CLEAR SEL_WA.
      MOVE: ZEBAN-BANFN TO P_BANFN.
      MOVE: 'S_BANFN'       TO SEL_WA-SELNAME,
            'I'             TO SEL_WA-SIGN,
            'EQ'            TO SEL_WA-OPTION,
            'S'             TO SEL_WA-KIND,
            P_BanfN          TO SEL_WA-LOW,
            SPACE            TO SEL_WA-HIGH.
      APPEND SEL_WA TO SELTAB.
    CLEAR SEL_WA.
    MOVE: 'P_VRTYPK'         TO SEL_WA-SELNAME,
           'P'                TO SEL_WA-KIND,
           'X'                TO SEL_WA-LOW.
    APPEND SEL_WA TO SELTAB.
      SUBMIT RM06BB30 VIA JOB ACTUAL_JOBNAME
                                        NUMBER JOBCOUNT
                                     TO SAP-SPOOL DESTINATION 'NULL'
                                     WITHOUT SPOOL DYNPRO
                                        WITH  SELECTION-TABLE SELTAB
                                        AND RETURN.
    STIME = SY-UZEIT + 900.
    *Schedule the job after 15 min and Close the job.
      CALL FUNCTION 'JOB_CLOSE'            " CLOSING JOB
             EXPORTING
                  JOBNAME      = ACTUAL_JOBNAME
                  JOBCOUNT     = JOBCOUNT
                  STRTIMMED    = 'X'
                  TARGETSYSTEM = SY-HOST.
                 LASTSTRTTM   = STIME.
    endmethod.

    Hi,
    Could you please let us know, what is the error you are getting.
    Best regards,
    Prashant

  • Submit via Job

    Hello all
    I m creating a program to delete old entries from tables.This can be done
    1. Foreground
    2. Background
    I have created 2 reports
    Report A - MAin report
    Report B -has the following stmts
    REPORT b.
    DATA: i_JOBCOUNT LIKE TBTCJOB-JOBCOUNT,
              i _JOBNAME LIKE TBTCJOB-JOBNAME .
    SUBMIT A  AND RETURN
    USER SY-UNAME
    VIA JOB I_JOBNAME NUMBER I_JOBCOUNT
    In the background option of report A I have used
    job_open with jobname as Report A.
    Submit B
               user sy-uname
               via jobname jobnumber
               and return.
    Job_close
    with jobname, jobnumbr and start immediately = 'x'.
    Now when I execute this pgm with foreground option,
    I get the records deleted from the table
    but the same does not happen in background option.
    kindly guide me.
    Thanks
    Tharani

    Hi
    Why don't you run the report A directly in background mode?
    Anyway your report should be:
    va_jobname = <REPORT B>
      CALL FUNCTION 'JOB_OPEN'
           EXPORTING
                JOBNAME          = VA_JOBNAME
           IMPORTING
                JOBCOUNT         = VN_JOBCOUNT
           EXCEPTIONS
                CANT_CREATE_JOB  = 1
                INVALID_JOB_DATA = 2
                JOBNAME_MISSING  = 3
                OTHERS           = 4.
      IF SY-SUBRC = 0.
        SUBMIT <REPORT A> USER SY-UNAME
                          VIA JOB VA_JOBNAME NUMBER VN_JOBCOUNT
                          AND RETURN.
       CALL FUNCTION 'JOB_CLOSE'
           EXPORTING
                JOBCOUNT             = VN_JOBCOUNT
                JOBNAME              = VA_JOBNAME
                STRTIMMED            = 'X' 
           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 NE 0.
        MESSAGE E999 WITH TEXT-E05.
      ENDIF.  
    ENDIF.
    Max

  • SUBMIT...JOB..RETURN

    Hi folkss,
       I am trying to call SUBMIT zrepid via job jobname number jobnumber and return from another executable program. The control transfers to main prog immediately after triggering job. I want the control to return back after the job executes completely in FINISHED status, so that i can export the LIST from memory and import into the calling program. I dont want to use the spool list.
    Also,  whenever SUBMIT is being used , does the execution happens in background all the time irrespective of JOB or REPORT calling???
    thanks.

    Hello Thomas,
         Thanks for responding. I am working on performance issue, and user wants list output in foreground only. If i see the timestamp of program having SUBMIT...EXPORTING LIST...RETURN with that of program having  SUBMIT..VIA JOB..RETURN,
    the spool list is obtained very quicker than foreground list output.
    I tried with
    SUBMIT...VIA JOB..RETURN
    COMMIT WORK AND WAIT.
    WAIT UP TO 60 SECONDS.  "waiting for job to get finished
    But listoutput is lost!!!!!
    If there is a way to bring to spool list back to memory in calling program, it will solve my problem. I am working in RETAIL, the user executes this report across all sites at the sametime, so timeouts occurs frequently!

  • Need help using dbms_scheduler to submit an immediate job on the database

    Hi. I need help using dbms_scheduler to submit an immediate job on the database. Essentially I want to issue a one-time call to an Oracle Stored Procedure - this procedure will then send an email. I've never used dbms_scheduler before, but here's what I have so far.
    So my Program is a stored database procedure named 'TTMS.dropperVacationConflict_Notify', but my problem is that I need to pass 3 parameter values to this job each time I run it. This is what I can't figure out. The procedure expects an 'Id' as number(5), begin_dt as a date, and end_dt as a date.
    How do I pass these values when I run my job? Can anyone help?
    begin
        dbms_scheduler.create_program(program_name=> 'PROG_DROPVACCONFLICTS_NOTIFY',
         program_type=> 'STORED_PROCEDURE',
         program_action=> 'TTMS.dropperVacationConflict_Notify',
         number_of_arguments => 3,
         enabled=>true,
         comments=> 'Procedure to notify PCM of a Dropper Vacation Conflict. Pass in Dropper Id, Begin_dt, and End_dt');
    end;
    begin
        dbms_scheduler.create_schedule
        (schedule_name=> 'INTERVAL_EVERY5_MINUTES',
         start_date=> trunc(sysdate)+18/24,
         repeat_interval => 'freq=MINUTELY;interval=5',
         end_date => null
         comments=> 'Runtime: Every day all 5 minutes, forever'
    end;
    begin
        dbms_scheduler.create_job
        (job_name => 'JOB_DROPVACCONFLICTS_NOTIFY',
         program_name => 'PROG_DROPVACCONFLICTS_NOTIFY',
         schedule_name => 'INTERVAL_EVERY5_MINUTES',
         enabled => true,
         auto_drop => true,
         comments => 'Job to notify PCM of Dropper Vacation Conflicts'
    end;
    /And I use this to execute the job as needed...
    begin
        dbms_scheduler.run_job('JOB_DROPVACCONFLICTS_NOTIFY',true);
    end;
    /

    Duplicate Post
    Need help using dbms_scheduler to submit an immediate job on the database

  • Delete retail material via batch job?

    Hey guys,
    is there a way to delete a retail material via batch job? I know with transaction MM16 you can schedule a job to do that. But how can i do that without using transaction MM16. Is it possible to this via IDoc?
        thx,
          Wei-Ming

    Check OSS 35615 & 93732.
    Cheers

  • Submit a SAP job and it is erroring out as "instance/client not found"

    I am trying to submit a SAP job and it is erroring out as "instance/client not found"
    as soon as I  enter the instance/client value and click on next  I am getting this error
    please help

    Hi,
    Then maybe there is a problem with another parameter, and the error is obscured by this error message.
    You did specify valid values for all other parameters ?
    Maybe you can try the following:
    - create a simple job in SAP, you do not have to execute it only save it
    - import this job using RSI_IMPORT_CCMS_JOBS and specify the exact job name
    - run the imported job (it will have the same name as in SAP) and see if this works
    - if this works, try your job again directly from CPS and compare your parameters with those on the imported job (especially which ones are filled or not filled, that sometimes is more important than the exact value chosen)
    Regards,
    Anton.

  • Reg: File Extraction from SAP Queries via background job

    Hi ,
    Is it possible to Extract a file to the presentation Server by running the ABAP Query's through SQ01 as a back ground job to generate a file automatically without running it manually.
    I have tried recording the query's thru SQ01 with the File store Option to download it to Excel on the Presentation server.I have used CAll Transaction for SQ01 in the Zprg and submitted that Query to be able to download that Query in the mentioned path .The Zprg was executed via Background job.The file is extracted to the presentation server when the Zprg was executed via Foreground,but its not getting Downloaded to Excel Via Back ground job.
    Please provide me the solution.
    Thanks in advance,
    Prem

    Hi
    u cannot get file in presentation server.. in background..
    if you are scheduling any background jobs it should be out of any gui interface.. like gui_dowload , gui_upload// ur need to replace then with cl_gui_fronend_services Class
    or u have a option of writing file to application server in background using open dataset syntax.

  • How should i execute file transfer via batch job scheduling

    Hi guys,
        i want to call unix transfer script via batch job scheduling. Executing the system commands witin ABAP is as below:
             DATA: BEGIN OF ITAB occurs 0,
                         LINE(200),
                        END OF ITAB.
            UNIXCOMM = '/usr/sap/trans/data/*******'
            CALL 'SYSTEM' ID 'COMMAND' FIELD UNIXCOMM
                    ID 'TAB'     FIELD itab-sys.
    Now i plan to assign application server ('Exec Target') to it and let it implement in the background.
      Should i do it via batch job?
    Any info is appreciated very much.

    Instead of using
    CALL 'SYSTEM' u can use FM..
    SXPG_COMMAND_EXECUTE  .. in which u have to pass a command name which u can create or get from SM49...
    In CALL 'SYSTEM' .. u can not catch exceptions.. but in FM given above u can check
    SY-SUBRC, STATUS and EXITCODE  for successful  command execution..
    for successful command execution..
    sy-subrc = 0
    STATUS = 'O'  " Capital O
    exitcode = 0
    For batch scheduling, you can use this FM in a report  with one parameter for additional parameter which u need to pass to this FM  and create a JOB for that report and schedule it..
    I've used it and  find it useful even for batch scheduling..
    Reward if useful
    Regards
    Prax

  • BO4 - Lifecycel Management Console to export all content via scheduled job

    Hi,
    We wish to export the entire content of our repository to a lcmbiar file via scheduled job every week.
    Whilst could do this manually, want this to be a periodic refresh.
    The purpose of this is to have a developemnt system which has the content of the production system as of a week ago.
    So would want this job to be dynamic, exporting entire content including any new content on weekly basis at week-end during quiet time on servers.
    Anybody know if this can be done via lcmbiar file automatically?
    I'm thinking say sales folder week 1 10 reports, week 2 somebody creates another 2 reports, would want lcmbiar file to automatically pick up the new reports which have been added in week 2.
    Is this possible via lifecycle management console?
    Can't simply export cms database to development system as contains the production host embedded within it and don't want the development system to have reference to the physical production host.
    Many Thnaks

    Hi,
    Yesterday ASUG conducted webinar on LCM 4.0 FP3. URL for webbex session
    http://www.asug.com/Default.aspx?tabid=124&vp_url=http://jive.asug.com/docs/DOC-32206
    summary:
    1. We can not schedule to export LCMBIAR file in 4.0 SP2
    2. When ant file added to folder, automatically scheduled job do not pick the file in 4.0 SP2
    But above two options are good and working in FP3 as per SAP.

  • Prevent Duplicate Job Card Number

    Hi, I am using the below SBO code which tries to block users inputting duplicate job card number when issuing items from after sales warehouses, but it doesn't seem to be working.
    6)Block Duplicate Job Card No's in After Sales Deliveries
    IF @transaction_type IN (N'A', N'U') AND (@Object_type = N'60')
    Begin
    IF  EXISTS(SELECT T0.DocEntry FROM dbo.[@SBO_SP_NOTIFICATION] T0 where IsNull(T0.U_Active,'')in('Yes') and T0.U_QueryNo = 'GI012') 
    BEGIN
    IF EXISTS (SELECT T0.DocEntry FROM [dbo].[IGE1] T0, dbo.[OIGE] T1 WHERE T1.U_DocType = 'After Sales Delivery' AND T1.DocEntry = T0.DocEntry   AND  T1.DOCENTRY= @list_of_cols_val_tab_del)
    BEGIN
    declare  @JCNo int
    set @JCNo=-1
    set @JCNo=(SELECT T0.LineNum+1 FROM IGE1 T0
    WHERE T0.DocEntry =@list_of_cols_val_tab_del
    and exists(select linenum from IGE1
              where WhsCode in ('NAWW_KE','MASW_KE') and BlockNum=T0.BlockNum
                   and DocEntry<T0.DocEntry) )
    If @JCNo<>-1
    begin
    SET @error = 10
    SET @error_message = N'SBO: GI012-Duplicate Job card No '
    end
    end
    END
    END
    Please help.

    Thanks,
    It now works after I added unique constraints to each of the fields.
    Google results showed me that ORA-00001 is Oracle's Duplicate message and I added a condition in the SQLException Catch area and it catches all my Duplicate entry attempts and shows message to the user.
    Here is what I have and would like to know if this is an efficient way I am doing this??
    try
    // db stuff
    catch (SQLException sqle)
        String message = sqle.getMessage();  
        if (message.indexOf("ORA-00001") != -1)
            out.println("Duplicate Data entry.");  
        else
          out.println("some other ORA error");  
    }

  • Submit via email without an email program

    I want to submit via email without an email program like in windows using the maildoc()  it uses outlook but i want to make it more universal(for use on computers where outlook, iMail, or some sort of program set up to send and multi-OS) where it will login to my own SMTP server to send the whole pdf as an attachment. I am using Acrobat X Pro

    You can't set up a form to do that, but you can set it up so that it submits to a web server, which can do the job of forwarding it along in an email. You just need to program the web server to do so.

  • How do I get my messages to come through on my ipad Via my mobile number? They always used to but I've had to change all my Apple ID if that has anything to do with it? In iMessages it will only take an email address!

    How do I get my messages to come through on my ipad Via my mobile number? They always used to but I've had to change all my Apple ID if that has anything to do with it? In iMessages it will only take an email address!

    Hi EmilyWick123!
    Here is an article that will help you address this question about linking your Apple ID and phone number:
    iOS and OS X: Link your phone number and Apple ID for use with FaceTime and iMessage
    http://support.apple.com/kb/ht5538
    Thanks for being a part of the Apple Support Communities!
    Regards,
    Braden

Maybe you are looking for

  • Channel error when working with BlazeDS and JBoss

    I am getting this error... can someone just help me on this front this is the mxml <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"> <mx:Script> <![CDATA[ import mx.rpc.events.ResultEv

  • Error message for profit center

    Hello, The requirement is that the user should not be able to save the sales order without entering the profit center at the item level. I have tried to make the profit center mandatory for a particualr company code:- 1.Sales - Item and double click

  • Help! Flash won't open!

    Help! I need to finsh a project ... I'm still suing Flash MX. Everything was fine until I reinstalled OS X 4.9. Now Flash Quits on startup. Am I missing a font or something? Here's the first part of the error log: Date/Time: 2007-03-27 10:55:15.836 -

  • Ipad won't let me configure my email account as iMAP

    This is a very strange one.   For many years, I had my office email configured to both my iphone and my Ipad with no problems.  All of the sudden, and without any change, it said that  either the user id or password was wrong.   Strange.   I deleted

  • Only speaker works, iphone won't generate sound

    AT&T, iPhone 4, ios5. Text, email, reminders, etc. only vibrate, they do not generate sound as well. No headphones have been connected recently. The phone worked normally this morning. Went to call this afternoon with no success. It will dial out and