Problem creating job steps variants

Hi Gurus!
I have a problem with job steps creation.
In my program I need to copy the exist job with some condition accords to job steps variants.
But when I create the new job and it steps and variants in SM37, I can not see the variants names, only number.
For example in template that I am copying it looks like that:
No. Program name/command      Prog. type  Spool list   Parameters              User Lang.
1              RMCVNEUA                  ABAP                        BW_TEMPLATE       aaa     EN
But in job that I create it is:
Program name/command      Prog. type   Spool list   Parameters               User  Lang.
RMCVNEUA                          ABAP                           &0000000000271     ddd     EN
How can I create steps with variant names instead of numbers/indexes?   BW_TEMPLATE instead of &0000000000271.
My code:
CALL FUNCTION 'JOB_OPEN'
    EXPORTING
      jobname          = lv_jobname
      sdlstrtdt        = lv_date
      sdlstrttm        = lv_time
    IMPORTING
      jobcount         = lv_jobcount
    EXCEPTIONS
      cant_create_job  = 1
      invalid_job_data = 2
      jobname_missing  = 3
      OTHERS           = 4.
SUBMIT (ps_tbtcp-progname) VIA JOB pv_jobname NUMBER pv_jobcount
                                 USING SELECTION-SET ls_cat-variant
                                 AND RETURN.
CALL FUNCTION 'JOB_CLOSE'
    EXPORTING
      jobcount                          = lv_jobcount
      jobname                           = lv_jobname
     direct_start                      = lv_imm_run
   EXCEPTIONS
     cant_start_immediate              = 1
     invalid_startdate                 = 2
     jobname_missing                   = 3
     job_close_failed                  = 4
     job_nosteps                       = 5
     job_notex                         = 6
     lock_failed                       = 7
     invalid_target                    = 8
     OTHERS                            = 9
Edited by: Dani_K on Oct 27, 2010 4:35 PM

No any suggestions?

Similar Messages

  • Creating Job with CmdExe Step failed with error Reason : 5

    Hi, I setup a job with Type = Operating System (CmdExec) and Run as 'SQL Server Agent Service Account' , it failed to run with Message below :
    Message
    Executed as user: PROD\sqlserveragent. The process could not be created for step 4 of job 0x5A83AE4A12AEF649888E85F4072604F6 (reason: 5).  The step failed.
    1. I couldn't find what is meaning of Reason 5 here.
    2. This step used to work previously and it 'not working' suddenly these few days. I wondering anyone make the changes but I am not able to trace it. Any guide to troubleshoot would be helpful.
    Thanks .

     Operating System ... (reason: 5).  The step failed.
    Operating System Error code 5 = Access denied, seems to be a permission issue.
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • How to create a new variant and a job sheduled to use it for the ......

    How to create a new variant and a job sheduled to use it for the exisisting programs

    Hi
    1. The ALV Grid Control is a tool with which you can output non-hierarchical lists in a
    standardized format. The list data is displayed as a table on the screen.
    The ALV Grid Control offers a range of interactive standard list functions that users need
    frequently (find, sort, filter, calculate totals and subtotals, print, print preview, send list,
    export list (in different formats), and so on. These functions are implemented in the
    proxy object class. You as the programmer have the possibility to turn off functions not
    needed. In most cases the implementations of the standard functions provided by the
    control are sufficient. However, if required, you can adjust these implementations to
    meet application-specific needs.
    You can add self-defined functions to the toolbar, if necessary.
    The ALV Grid Control allows users to adjust the layout of lists to meet their individual
    requirements (for example, they can swap columns, hide columns, set filters for the
    data to be displayed, calculate totals, and so on). The settings (list customizing) made
    by a specific user are called a display variant. Display variants can be saved on a userspecific
    or on a global basis. If such display variants exist for a list, they can be offered
    to the user for selection. If a display variant is set as the default variant, the associated
    list is always displayed based on the settings of this variant.
    2. REUSE_ALV_LIST_DISPLAY
    REUSE_ALV_GRID_DISPLAY
    REUSE_ALV_FIELDCATALOG_MERGE
    REUSE_ALV_COMMENTARY_WRITE
    3. Use of Field Catalog is to determines the technical properties & add formating information of the column.
    6. all the definition of internal table, structure, constants are declared in a type-pool called SLIS.
    7.fieldcat-fieldname
    fieldcat-ref_fieldname
    fieldcat-tabname
    fieldcat-seltext_m
    5. Form user_command using r_ucomm like sy-ucomm rs_selfield type slis_selfield.
    Sap provides a set of ALV (ABAP LIST VIEWER) function modules which can be put into use to embellish the output of a report. This set of ALV functions is used to enhance the readability and functionality of any report output. Cases arise in sap when the output of a report contains columns extending more than 255 characters in length.
    In such cases, this set of ALV functions can help choose selected columns and arrange the different columns from a report output and also save different variants for report display. This is a very efficient tool for dynamically sorting and arranging the columns from a report output.
    The report output can contain up to 90 columns in the display with the wide array of display options.
    <b>The commonly used ALV functions used for this purpose are;</b>
    1. REUSE_ALV_VARIANT_DEFAULT_GET
    2. REUSE_ALV_VARIANT_F4
    3. REUSE_ALV_VARIANT_EXISTENCE
    4. REUSE_ALV_EVENTS_GET
    5. REUSE_ALV_COMMENTARY_WRITE
    6. REUSE_ALV_FIELDCATALOG_MERGE
    7. REUSE_ALV_LIST_DISPLAY
    8. REUSE_ALV_GRID_DISPLAY
    9. REUSE_ALV_POPUP_TO_SELECT
    Purpose of the above Functions are differ not all the functions are required in all the ALV Report.
    But either no.7 or No.8 is there in the Program.
    <b>
    How you call this function in your report?</b>
    After completion of all the data fetching from the database and append this data into an Internal Table. say I_ITAB.
    Then use follwing function module.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
    I_CALLBACK_PROGRAM = 'Prog.name'
    I_STRUCTURE_NAME = 'I_ITAB'
    I_DEFAULT = 'X'
    I_SAVE = 'A'
    TABLES
    T_OUTTAB = I_ITAB.
    IF SY-SUBRC <> 0.
    WRITE: 'SY-SUBRC: ', SY-SUBRC .
    ENDIF.
    ENDFORM. " GET_FINAL_DATA
    The object F_IT_ALV has a field, the activity ACTVT, which can
    contain four permitted values: 01, 02, 03 and 70. Each of the
    activities 01, 02 and 70 controls the availability of particular
    functions (in the menu and the toolbar) of the ALV line item list:
    a) 01: "Settings -> Display variant -> Save..."
    b) 02: "Settings -> Display variant -> Current..." and
    "Settings -> Display variant -> Current header rows "
    c) 70: "Settings -> Display variant -> Administration..."
    Activity 03 corresponds to the minimum authorization, which is the
    most restricted one: The user can only select layouts which have
    been configured already. In particular, all of the other functions
    named above are inactive with activity 03.
    Now if you want to permit a user to change the column selection and
    the headers as well as to save the layout thus created, for example,
    but if you do not want to permit the user to administrate the
    layouts, you grant him or her the authorization for activities 01
    and 02.
    Check this link it will be mosty usefull for u
    http://www.sap-img.com/fu017.htm
    Reward all helpfull answers
    Regards
    Pavan

  • Background Job step and Variant

    Hi,
       We are undergoing process of renaming user IDs(Eg from ABC to XYZ). I would like to know the effect on Background jobs due to renaming. I am sure we need to update the job step(s) with the new user ID. Do we need to do anything with variants too or will they work for new IDs also. Your help is highly appreciated.
    Thanks,
    Venu.

    Hi,
    This is SAP Business one system administration forum. Please find correct forum and repost your discussion to get quick assistance.
    Please close this thread here with helpful answer.
    Thanks & Regards,
    Nagarajan

  • Create Job problem

    Hi,
    I like to create job using Scheduler Jobs > Create Job with Command Type Stored Procedure! But the problem is that I can't see (user sys) procedures on schema i wish to create job on! So i can't pick procedure from Search and Select: Procedure values!?
    Is someone know what is the problem?
    Thanks, Kristjan

    OK. It is a "Package" and not a Procedure like you mentioned above.
    So, you have to do a different thing from a normal stored procedure. What you need is to use a Command Type of PLSQL Block
    Assuming the Package TEST_PACLAGE with PACKAGE BODY containing procedure TEST_PROC and is owned by user SYS.
    Select SYS as the owner under General
    Inside the PL/SQL box enter.
    BEGIN
    test_package.test_proc;
    END;
    This should work

  • Creating a Step for Background Job from within ABAP Program

    Step-1: I have a Report in ECC, which is scheduled as Background Job, which writes the file to the Application Server(UNIX)
    Step-2:  Trigger a Unix Command to ftp the file to other server.
    Both Step-1 & Step-2 can be done from SM36. 
    Another Scenario:
    Users can run the report in background from SE38 or using the transaction code for the report, In this case we want to call the external command.
    Instead of calling the External Command as below in the report, I want to create a Step from within the program when it is scheduled in background mode.
    CALL 'SYSTEM' ID 'COMMAND' FIELD lc_unixcom.    [ Here lc_unixcom has the External Command ].
    Any ideas??? Appreciate help.

    Hi,
    For submitting a report step, you may use either SUBMIT ... VIA JOB ... or JOB_SUBMIT function module.
    For external commands, this should be done only by calling JOB_SUBMIT function module.
    Sandra

  • Problem in creating job

    Hey to all
    I wanted to create a job that shrink my temp tablespace after one week. Due to huge data loading I get filled. When i create job through EM I could not understand where I put Alter tablespace temp shrink space command . For database home page click server click job link and create button under the command section where I put this command. Plz help I tried to this IN Pl/Sql but job fail
    DECLARE
    SQLSTMT VARCHAR2 (500);
    Begin
    SQLSTMT:= ALTER TABLESPACE temp SHRINK SPACE';
    execute immediate (sqlstmt);
    END;

    I would not waste my time on creating such jobs.
    Main reason: they don't resolve anything. You shrink the tablespace and it will definitely start to grow again.
    You are only fighting symptoms. Maybe you want to earn your living out of fighting symptoms, I don't.
    Apart from the the syntax of execute immediate is
    execute immediate &lt;variable&gt;|&lt;hard coded literal&gt;;
    Before asking syntax questions please use the docs (in this case the PL/SQL reference manual) to verify your usage of a construct is syntactically correct.
    Also this line
    SQLSTMT:= ALTER TABLESPACE temp SHRINK SPACE';
    is lacking a '
    Sybrand Bakker
    Senior Oracle DBA

  • How to create a  temporary variant - urgent

    I suppose to schedule a batch job with a temporary variant or as a real variant. can anybody guide me how to create a temp. variant for a batch job..
    Thanks
    Thirumalairajan

    Hi Thirumal,
                      First run your program through se38. Then enter your values which u
                      want to use. Then save that by using the save button. Then goto
                      SE36 and define your job while defineing when you define the step
                      give the name of the program then down of that you will have an option
                      of giving the variant use f4 then it will show the value which you have
                      saved while executing the program through se38.Now save your job it
                      will run with the variant.
    Reward points if helpfull.
    Regards,
    Vamshi.

  • Account is SysAdmin - but Non-SysAdmins have been denied permission to run DTS Execution job steps without a proxy account.

    Hi,
    I have a SQL Agent Job that executes an SSIS package.  However when I manually execute the SQL Agent job from SSMS I get the following seemingly common error:
    "Non-SysAdmins have been denied permission to run DTS Execution job steps without a proxy account."
    However, the job owner is a member of both the SQL SysAdmin role, and also a member of the operating system's Administrators group.
    The SQL Agent Service is running under Local Service (not something within my control unfortunately).
    I have found many posts suggesting setting up a proxy account etc, but that seems to be for the case where the job owner is not a sys admin.  To be clear, the job owner IS a sysadmin.
    This is occurring in the Production environment.  I have two other, seemingly identical environments that are working fine, so i am wondering if I have missed something obvious.
    Any idea what I've missed?
    details:
    Windows Server 2008 R2 Standard
    SQL Server 2008 R2 (SP2) - 10.50.4000.0 (X64)    Enterprise Edition
    Note - the jobs were migrated to the broken environment by scripting them from Env 1, with If exists, drop, create etc.
    Thanks
    Guy
    Guy

    Obviously, as soon as I post this I figure out the issue:
    In the script i had provided for migrating the job to the new environment (to which I have no access) the DBA replaced the @owner_login_name value with a different login.  The account he used does have SysAdmin privileges  but for some reason
    changing the account in the script did not correctly update in the job.
    On opening the job in SSMS it appeared to have the correct owner account, but using GUI to look up the specific account and adding it this way, while appearing to make no difference, has in fact solved the problem.
    My assumption therefore is that updating the @owner_login_name when scripting the job is not the same as actually editing the job owner itself.
    Guy
    Guy

  • MiniSAP - SE80 Prompts Error "Printer not suitable for job step..."

    Hi all,
    I bought an ABAP Objects book. I installed the MiniSAP. When I run SAP GUI and SE80, both with BCUSER and DDIC, it gives me error message "Printer not suitable for job step. Automatic printing not possible."
    If I double-click on the message, it does not show the description of the error message, instead it displays an Internet Explorer error message "The page cannot be found."
    Furthermore, the same error message, "The Page cannot be found", also appears in the area where the listbox and textbox for selecting Development Class, Program, Function Group, etc. Making these function becomes unavailabale. I cannot see the listbox and textbox in the Object Navigator. The only development class show is "$_TMP_BCUSER" (if I recall correctly). But nothing is in the development class.
    How do I solve this problem?
    OS: Windows XP Professional
    Browser Installed: Internet Explorer and Firefox
    Other info: I put incorrect IP Address in the Hosts file while installation was in progress. This created error. I then correct the IP Address in the Hosts file and resume installation. I still encountered error until I restarted my computer and resume installtion. I use IP Address 10.10.0.10.
    Thanks in advance.
    Regards,
    Goh Tiam Tjai

    I searched the solution in the other SDN sub forum (ABAP Programming). The following patch solves the problem.
    http://www.sap-press.de/download/dateien/473/sapgui_patch.zip
    Regards,
    Goh Tiam Tjai

  • Different recipients in different job steps

    I want to create a job with multiple steps and i'd like to send each step to different recipient.
    The problem is that recipient can only be defined at job level but i'd like to define different recipients for each job-step.
    How can i slove this one?

    Hi Paula,
    Under each Job Step,On the screen where you define step, you can specify its specific print parameters/spool recipient.
    This way you can have different parameters for each step.
    Hope this helps.
    Puneet

  • Job steps

    Hi Gurus
    I have some question that I can not resolve, maybe you can help me.
    I have to create several job steps in a background job.
    Let say:
    1 step program ztest01.
    2 step program ztest02.
    I want my 2nd step (ztest02) always executed regardless what happend in 1 step (ztest01).
    My problem is it happened that a message error of type 'E' in my 1st step (ztest01) has been triggered resulting  my 2nst step never executed. How to resolve that?
    Thank you

    If the second step job does not need to be dependent on first one, it is always better to create two different jobs.
    Regards,
    Aravind

  • Creating job

    Hi Experts,
    I am about to create a batch job. I used FM JOB_OPEN, JOB_SUBMIT and JOB_CLOSE. However, whenever I run the program it creates job for every 1 second. It will not stop creating jobs unless you completely exited in the program. The code is not inside the loop.

    mariposa,
       Suppose you have 100000 records which is going for dump in background also.
    Taht time decided to create a job for every 20000 records.
    select * from database table
      into itab
    packaze size 20000
    where x  =  s_x.
       your functionality here if required and moved to final internal table.
    Now  you have to pass this final internal table data to your submit program selection screen.
    CALL FUNCTION 'JOB_OPEN'
          EXPORTING
        DELANFREP              = ' '
        JOBGROUP               = ' '
            jobname                = csm_std_reconciliation_job
        SDLSTRTDT              = NO_DATE
        SDLSTRTTM              = NO_TIME
         IMPORTING
            jobcount               = jobcount
    EXCEPTIONS
       cant_create_job        = 1
       invalid_job_data       = 2
       jobname_missing        = 3
       OTHERS                 = 4
        IF sy-subrc <> 0.
    MESSAGE ID 'CSM' TYPE 'W' NUMBER '045' WITH csm_std_reconciliation_job.
          EXIT.
        ENDIF.
        CALL FUNCTION 'JOB_SUBMIT'
          EXPORTING
        ARCPARAMS                         =
            authcknam                         = sy-uname
        COMMANDNAME                       = ' '
        OPERATINGSYSTEM                   = ' '
        EXTPGM_NAME                       = ' '
        EXTPGM_PARAM                      = ' '
        EXTPGM_SET_TRACE_ON               = ' '
        EXTPGM_STDERR_IN_JOBLOG           = 'X'
        EXTPGM_STDOUT_IN_JOBLOG           = 'X'
        EXTPGM_SYSTEM                     = ' '
        EXTPGM_RFCDEST                    = ' '
        EXTPGM_WAIT_FOR_TERMINATION       = 'X'
            jobcount                          = jobcount
           jobname                           = csm_std_reconciliation_job
        LANGUAGE                          = SY-LANGU
        PRIPARAMS                         = ' '
            report                            = csm_std_reconciler
            variant                           = csmvari
      IMPORTING
        STEP_NUMBER                       =
         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
        IF sy-subrc <> 0.
    MESSAGE ID 'CSM' TYPE 'W' NUMBER '045' WITH csm_std_reconciliation_job.
          EXIT.
        ENDIF.
        strttime = sy-uzeit + timepad.
        CALL FUNCTION 'JOB_CLOSE'
          EXPORTING
            jobcount                          = jobcount
            jobname   = csm_std_reconciliation_job
           sdlstrtdt                         = sy-datum
           sdlstrttm                         = strttime
    IMPORTING
      JOB_WAS_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                            = 8
        IF sy-subrc <> 0.
          MESSAGE ID 'CSM' TYPE 'W' NUMBER '045'
             WITH csm_std_reconciliation_job.
          EXIT.
        ELSE.
          MESSAGE ID 'CSM' TYPE 'I' NUMBER '104' WITH
              csm_std_reconciliation_job.
        ENDIF.
    endselect.
    Now for every 20000 records it will create one batch job.
    Pls. reward if useful.

  • Creating Job Order without Assembly Routing

    How can you prevent Users from Creating Job Order without creating routing to the Assembly used
    Regards

    Hi Laxmikant
    Please note the steps
    Create a BOM Application in OS30
    Create a new BOM ID in OS31 with BOM Usage as Production
    Assign this BOM ID in BOM Application
    Ensure that ID is responsible for Production planning alone.
    Then in that ID maintain a BOM alone without any items.
    Assign this BOM Application in Order type dependent parameters in OPL8
    Now u can create a production order w/o BOM
    Rgds

  • Pass value from SQL agent job step

    Hi 
    I have created one SSIS package and I am scheduling the same using SQL Agent job. Now I want to pass one value from SQL job agent and want to use that value in SSIS package and then run that package.  Can someone point to the solution.
    Aniruddha http://aniruddhathengadi.blogspot.com/

    I have created one parameter on SSIS package named strValue and assigned a empty value "". After that I have created one SQL job and step wherein I have set the value to "Nike" for parameter under Parameters tab.
    Now I am expecting Nike value which I have set on SQL job step should get reflected on SSIS package when I am running my job. Am I doing anything wrong ?
    Aniruddha http://aniruddhathengadi.blogspot.com/
    Not sure what's going wrong but you can have quick look at below step by step tutorial:
    Parameterizing Connections and Values at Runtime Using SSIS Environment Variables (via SQL Agent)
    Cheers,
    Vaibhav Chaudhari

Maybe you are looking for

  • Performance considerations for XI

    Hello Suppose if we have scenario where there are around 1000 IDocs to be pumped into XI (say everyday 100 orders are getting generated and sent to different vendors at a time) are posting orders and we should create at  what typical performance prob

  • Adobe AIR compatible devices/versions?

    I was wondering which android devices and/or versions work with Adobe AIR. I was also wondering this due to the error messages I receive when I try to download it. Attached is a screenshot of the tech specs of my tablet as well as screenshots of the

  • Synchronize problem for DAQ cards

    I am trying to synchronize 4 PCI-6071 DAQ cards through cables using SCNCLK pin. I know the DAQ will send a pulse through that pin. but what is the frequency of the pulse? Also, I would like to know how to avoid the phase delay generated by the cable

  • LR 3 Exports listed in History

    I see that in LR 3, export actions are now listed in the Development History of a photo. I don't consider exporting to be a change to an image and I don't want my history cluttered up with export activities. Is there a way of turning this feature (wr

  • Capture excise inv for movement type 301

    Hi All, can we capture and post excise invoice for movement type 301. If "YES" so plz give me detail. Thanx.... Trupti