How to create a JOb

Hi Experts,
Previously i waw using bdc and was creating session.
Now in place of BDC i am using BAPI .
Now i cannot create  a session  so i am creating a job.
Problem is that when i use bapi the record is created at same time.
So before execting Job  using transaction SM37
the records gets created.
Can any  body please explain me how to solve this issue.
Thanks & regards,
Chetan

Hi chetan,
To create a new batch job you can go to transaction Sm36,wherein you can define the job name,job class and target server..then you can go to start condition and select whether it is a periodic job,or immediate job and accordingly you can schedule the job..Also the very important thing is in the Step funtion you should have valid ABAP program or any external program which should be used at the background...
If you know the program then you can go to SE38 and create a variant for that program which can be later used in the newly created job.You can also copy an existing job and modify it according to the requirement by checking the job details in SM37.
Just to summarise the Key transactions are : SM36 and SE38.
JOB_OPEN: Create a Background Processing Job
Use JOB_OPEN to create a background job. The function module returns the unique ID number which, together with the job name, is required for identifying the job.
Once you have "opened" a job, you can add job steps to it with JOB_SUBMIT and submit the job for processing with JOB_CLOSE.
For more information, please see the online documentation in the function module facility (transaction SE37)
Sample Program: Creating a Job with JOB_OPEN
Create your job with JOB_OPEN. The module returns a unique job
number. Together with the jobname, this number identifies the
job. Other parameters are available, but are not required.
JOBNAME = 'Freely selectable name for the job(s) you create'.
CALL FUNCTION 'JOB_OPEN'
EXPORTING
JOBNAME = JOBNAME
IMPORTING
JOBCOUNT = JOBNUMBER
EXCEPTIONS
CANT_CREATE_JOB = 01
INVALID_JOB_DATA = 02
JOBNAME_MISSING = 03
OTHERS = 99.
IF SY-SUBRC > 0.
<Error processing>
ENDIF.
thanks
katrhik

Similar Messages

  • How to create a job card and how to add waranty card in sales order

    I have one scenario for CS.the scenario is realted to automotive industry. Basically its a trading industry of HCV,MCV,LCV apart from that they will do servicing also. First the customer comes for a service.he is having free services. he will have waranty for spare parts of the vehicle. once he comes for servicing first the executive will take complains from the customer after that a Job card will be issued to the customer. there his chasis no ,engine no and registration no will be there. once enter the chasis no entire customer details has to come. how many free services he is having for how many kilo meters.then job card will go to the spare parts dept.that dept will issue the spare parts.then they will invoice the customer. he will pay the payment.and finally the gate pass will be given to the customer to deliver the vehicle.
    painful area is how to create a job card and how to add waranty in sales order.
    Regards,
    Venkat

    Hi,
    Have u resolved it then Please let me know !!! It is a very interesting problem and owuld like to know the solution...
    Regards
    Krishna

  • How to create a job in OEM and schedul it ?

    Hi,
    in 10g 2, I'm looking in the following documents :
    Enterprise Manager Concepts and Oracle Database 2 Day DBA
    http://download.oracle.com/docs/cd/B19306_01/em.102/b31949.pdf
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14196.pdf
    but I can not find any explanation to know how to create a job and schedul it.
    Where can I find ?
    Thanks.

    From Enterprise Manager, click on Administraion Tab, Click on the Jobs link under Database Scheduler. Click the Create button and follow the screens and prompts as required.
    <br>
    Enterprise Manager Documentation
    </br>
    <br>
    Oracle Database FAQs
    </br>

  • How to create batch job via a program

    hi
    i need to know how to create batch job via a program please suggest
    arora

    Wow!
    > Total Questions:  234 (138 unresolved) 
    ...and now you ask this?
    Please accept our apologies for not pointing out to you way-back-when already that there is a search functionality here at SDN and that the correct forum should be used to post questions to.
    Please read "the rules" at the top of the forum page, and search first => ask questions later.
    I take the liberty of closing your question for you.
    Kind regards,
    Julius

  • How i create a job to clear a rubbish idocs

    Hi friends,
    How i create a job to clear a rubbisch idocs, for 2 weeks ago or more?

    I guess from sm36...
    Thanks,

  • How to create a Job portal in dreamweaver

    I want to create a job and recruitment website using mysql database
    Please how do i do that.
    thanks

    ernibe wrote:
    I want to create a job and recruitment website using mysql database
    Please how do i do that.
    thanks
    Hummm.... how much do yu know about html/css and a server language like php/mysql/phpMyAdmin???
    For someone who has little experience this is going to be a complete nightmare and best left to someone with more knowledge.

  • How to create a job in sm36

    How to create a new job in sm36 and how do we know the job has been created. where to look for that job name.
    please explain.
    thanks,
    phyrose

    Hi,
    Save the variant of report.
    Go to sm36. create a new job.
    In start condition, specify all the day and time.
    and in Step specify the report name and variant.
    and then go to sm37 and run that report..........
    In sm37, got to that job, select that job and click on display spool list to see the output of that job.
    See the status of the JOB whether it is finised or executed with errors etc
    If it is executed and the status shows FINISHED then go to the related transaction and see the output of that Report.
    see the details for JOb secheduling
    Scheduling JOB in background:
    Go to SM36 create a Job
    click on Start Condition
    Click on DATE and TIME enter date scheduled Start and END times
    click on Period Values
    Click on HOURLY/WEEKLY etc
    CLick on RESTRICTIONS also to use further criteria.
    so your job will be scheduled and run as per your requirement.
    and in SM37 Transaction check the status of that JOB
    Check this link for scheduling jobs..
    http://help.sap.com/saphelp_nw2004s/helpdata/en/c4/3a7f87505211d189550000e829fbbd/content.htm
    regards,
    Ruchika
    reward if useful........

  • How to create a job thru ABAP program for calling a program with variant???

    Hello experts,
    can u give me step wise procedure to create jobs for  a program with a variant name thru ABAP???
    Also, can a transaction can be scheduled as a job to run in background with a variant name???
    Edited by: SAP USER on Jul 22, 2008 6:08 AM

    Hi,
    To create a job through ABAP program you can do the following.
    Go to Menu bar.
    In there, go to   SYTSTEM> SERVICES> JOBS--> DEFINE JOB.
    Then give the JOB NAME and CLASS in the screen that comes up.
    This is how we schedule a program.
    Now, to create a variant for a program -
    First activate your program in SE38. Then execute it .
    Now, click on SAVE button. It will open up  the variant creation screen. Give the details there like variant name and value for the fields. Save and come back.
    Hope this helps.
    Regards,
    Hari Kiran

  • How to create Background job for Dialog program

    Hi Experts,
    I have copied Standard tcode to Z-tcode (CS12 tcode).
    Now my requirement is to create background job for this program (but program is not a 'E' type its 'I').
    How we can schedule Dialog program to Background.
    Pls suggest me.
    Regards
    SK

    Hi do as below :
    Reefer below :
    Bakcground Job Creation
    You will have to submit your report using Submit statement ,
    then inside the submitted report write open_job.
    Regards,
    Uma

  • How to create batch job based on sales organization?

    I am Sending data using RFC function module, within a report program.
    Now according to functional requirement I have to create two batch job scheduling scenarios:
    1. Provide a batch job to be run towards month end (2X, 1X) to sent a delta record message using Report.  This is scheduled on demand or requested on demand.  Recommend 1 message per sales org.
    Q: What does it mean by scheduled on demand or requested on demand?? Second thing is that like we have 10 sales org. and in variants for job scheduling we can assign only 1 at a time......how can i schedule per sales organization? do i need to create different job for each sales organization??
    (2X, 1X) what is the meaning of this notation??
    2. Create a new nightly batch job, run after daily billing batch, to send a delta records message of Report. Recommend 1 message per sales org.
    Anyone please provide me some details on this issue.......
    Regards
    Anshul

    I am Sending data using RFC function module, within a report program.
    Now according to functional requirement I have to create two batch job scheduling scenarios:
    1. Provide a batch job to be run towards month end (2X, 1X) to sent a delta record message using Report.  This is scheduled on demand or requested on demand.  Recommend 1 message per sales org.
    Q: What does it mean by scheduled on demand or requested on demand?? Second thing is that like we have 10 sales org. and in variants for job scheduling we can assign only 1 at a time......how can i schedule per sales organization? do i need to create different job for each sales organization??
    (2X, 1X) what is the meaning of this notation??
    2. Create a new nightly batch job, run after daily billing batch, to send a delta records message of Report. Recommend 1 message per sales org.
    Anyone please provide me some details on this issue.......
    Regards
    Anshul

  • Please can anybody help me  how to create the job by using HR_JOB_API?

    hi,
    actually i tried by using this,but iam not able to do that.
    1.should we create job definition before job creation?
    2. should we create flexfield segment values before job definition?
    3. what are the parameters we have to give mandatatory?
    up to my knowledge when we crate job from front end then automatically job definition and job will be created.
    but here how to do that please let me know.
    and if u have any sample code please send me as soon as.
    if jobdefinition and flexfield vlues must be defined before job creation then let me know how to create jobdefinition and flexfield values.

    ever thought about attending a training? When you think this is not needed, please read the flex guide, then the hr guide, and then scan some metalink notes on hrms api's.
    good luck,
    thierry

  • How to create a job in Autosys?

    Hello All,
    I have a requirement wherein Client wants to run a job in Autosys.
    Need to create a job for ABC plant and 123 MRP controller. Now there are 3 MRP controllers 345, 231, 123 for indirect materials.
    Now Job should run after checking 345,231 and then 123 every wednesday at 10 am.
    let me know the steps to create the job.
    Thanks in advance.
    Forum

    Hello Sir,
                  There must be some standard Template for the sam with the Basis Team, ask for the same anf give in the program name and the time of run that is you need on weekly basis, and also give in the time for the run.
    they will schedule the job and send the spool to you.
    Hope it helps you.
    Regards,
    Yawar Khan

  • How to create a job for proces chain

    Hi All,
    I have a process chain that gets a trigger (.txt Trigger file) in AL11 inbound foulder.....
    we will check for the same trigger in AL11...if it is available..we will trigger the chain using sm64 ...
    now, i want to create a job for the same and schedule it automatically everyday.....
    Any help will be appreciated....

    Dear Sam2027,
    you can set a "recurrence" within the schedule options where you can decide not only the day but also the time.
    The recurrence can also be use in conjunction with your trigger .txt (which I believe it's a file event): in this case both of them need to be satisfied in order for your schedule to run.
    I hope this will help.
    Regards,
    Samanta

  • How to create the JOB SEARCH INDEX in multi-language?

    Hi, my company is using Peoplesoft HRMS 8.8 with the recruiting solution. We have a problem in job searching for the langauage other than English. The problem is that the index for other language can't be built. Do anyone know how to do it?

    Hi Ashutosh,
    If you need to run only Info Package, you can schedule it in background. Otherwise if it needs to be followed by further processes like Data Activation or Compression, better you can create a Process Chain.
    To schedule an Info Package in Back Ground, go through the following steps.
    1. Go to the Scheduler Tab of InfoPackage.
    2. Select the Radio Button "Start Later in Back Ground"
    3. Click on "Scheduling Options".. Here you can schedule it in   Five differeng ways. a)Immediate  b)Data/Time c)After Job 4)After Event 5) At Operation Mode
    4. Select the desired option and enter the values. If you want this load to run repetitively, you can select the option periodic job. (Like hourly, daily, weekly etc..)

  • How to create schedule job and event trigger in XI to start a ABAP program?

    Dear All:
    Here are what i need to do:
    1.To run a ABAP program to start an XI scenario per hour.
    2.To run a ABAP program to start an XI scenario per day at 6 PM.
    3.To run a ABAP program used event trigger to make sure that XI scenario has finished the process and after that wait for 10 min later and run again.
    only i know is used sm36 & sm37 to set up a schedule job.
    but what i don't know is how to do it step by step.
    especially point 3.
    are there any step by step example can show me how?
    it better be simple and details...
    thanks you all
    Regards
    Jack Lee

    Hi,
    If you want to trigger the event manually from within SAP, use transaction
    SM64
    in SAP this is done by scheduling a job
    once a new customer is entered
    your scheduled report sends customer master data
    you can schedule your report (TCODE - BD12 I think) to one day or every 5 minutes... it depend on your needs and the system performence
    Regards,
    Surya

Maybe you are looking for

  • Display a sum of a column(field) in the view

    Hi I would like to show the sum of a revenue field(currency) in any view of the opportunity entity(only when revenue field exist in the view) , may be at the end of the view or as a alert message on button click., but sum should change dynamically ba

  • What is the proceedure for replacing a hard drive (after failure) for RAID 5 with IX4-300D?

    I have the IX4-300D with 4 hard drives (identical Seagate drives) using RAID 5. Someday a hard drive will fail and I and I have to replace it. I read through the users manual briefly and I didn't see any documentation on how to perform a hard drive r

  • -ve as on stock figures in stock reports

    Hi experts, I would need some help regarding Inventory management subject in BW. I had followed the pocedure given in " How to ..manage inventory in BW" for reconstruction of stock cube. I am getting -ve stock values as on date in some of the cases.

  • Fetch LONG column into String -- null pointer

    Case 1/ Fetch a LONG column directly from embedded SELECT statement Result: iterator.my_long_column() returns the expected data Case 2/ Fetch the same LONG column from a REF CURSOR that was returned by a stored function Result: For the first row fetc

  • Substring in HFR

    Hi Im trying to extract a part of the member of year dimension and use it in the Report Header. Can it be done in HFR? If not, is there a workaround? Thanks, Vibhuti