Creating a batch job for the sapscript

Hi folks,
I have a question of how schedule a batch job in the background for the sapscript? I have the print program and I am using  the following FM to read the output device which I pick up printer device from the pop up dialog box. How can i do that?
Here is the FM that I using in the print program.
  CALL FUNCTION 'GET_PRINT_PARAMETERS'
   EXPORTING
  ARCHIVE_ID                   = C_CHAR_UNKNOWN
  ARCHIVE_INFO                 = C_CHAR_UNKNOWN
  ARCHIVE_MODE                 = C_CHAR_UNKNOWN
  ARCHIVE_TEXT                 = C_CHAR_UNKNOWN
  AR_OBJECT                    = C_CHAR_UNKNOWN
  ARCHIVE_REPORT               = C_CHAR_UNKNOWN
  AUTHORITY                    = C_CHAR_UNKNOWN
     COPIES                       = 1
     COVER_PAGE                   = SPACE
     DATA_SET                     = 'LIST8S'
  DEPARTMENT                   = C_CHAR_UNKNOWN
  DESTINATION                  = C_CHAR_UNKNOWN
  EXPIRATION                   = C_NUM1_UNKNOWN
  IMMEDIATELY                  = C_CHAR_UNKNOWN
  IN_ARCHIVE_PARAMETERS        = ' '
  IN_PARAMETERS                = ' '
  LAYOUT                       = C_CHAR_UNKNOWN
  LINE_COUNT                   = C_INT_UNKNOWN
  LINE_SIZE                    = C_INT_UNKNOWN
  LIST_NAME                    = C_CHAR_UNKNOWN
  LIST_TEXT                    = C_CHAR_UNKNOWN
  MODE                         = 'CURRENT'
     NEW_LIST_ID                  = 'X'
  NO_DIALOG                    = C_FALSE
  RECEIVER                     = C_CHAR_UNKNOWN
  RELEASE                      = C_CHAR_UNKNOWN
REPORT                       = 'ZSAPFORM'
  SAP_COVER_PAGE               = C_CHAR_UNKNOWN
  HOST_COVER_PAGE              = C_CHAR_UNKNOWN
  PRIORITY                     = C_NUM1_UNKNOWN
  SAP_OBJECT                   = C_CHAR_UNKNOWN
  TYPE                         = C_CHAR_UNKNOWN
  USER                         = SY-UNAME
   IMPORTING
  OUT_ARCHIVE_PARAMETERS       =
      OUT_PARAMETERS               = i_pri_params
     VALID                        = w_valid
EXCEPTIONS
  ARCHIVE_INFO_NOT_FOUND       = 1
  INVALID_PRINT_PARAMS         = 2
  INVALID_ARCHIVE_PARAMS       = 3
  OTHERS                       = 4
  IF SY-SUBRC = 0 and w_valid ne space.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.
   write: / 'Pri params ', i_pri_params.
Thanks,
SK

Hi folks,
I have a question of how schedule a batch job in the background for the sapscript? I have the print program and I am using  the following FM to read the output device which I pick up printer device from the pop up dialog box. How can i do that?
Here is the FM that I using in the print program.
  CALL FUNCTION 'GET_PRINT_PARAMETERS'
   EXPORTING
  ARCHIVE_ID                   = C_CHAR_UNKNOWN
  ARCHIVE_INFO                 = C_CHAR_UNKNOWN
  ARCHIVE_MODE                 = C_CHAR_UNKNOWN
  ARCHIVE_TEXT                 = C_CHAR_UNKNOWN
  AR_OBJECT                    = C_CHAR_UNKNOWN
  ARCHIVE_REPORT               = C_CHAR_UNKNOWN
  AUTHORITY                    = C_CHAR_UNKNOWN
     COPIES                       = 1
     COVER_PAGE                   = SPACE
     DATA_SET                     = 'LIST8S'
  DEPARTMENT                   = C_CHAR_UNKNOWN
  DESTINATION                  = C_CHAR_UNKNOWN
  EXPIRATION                   = C_NUM1_UNKNOWN
  IMMEDIATELY                  = C_CHAR_UNKNOWN
  IN_ARCHIVE_PARAMETERS        = ' '
  IN_PARAMETERS                = ' '
  LAYOUT                       = C_CHAR_UNKNOWN
  LINE_COUNT                   = C_INT_UNKNOWN
  LINE_SIZE                    = C_INT_UNKNOWN
  LIST_NAME                    = C_CHAR_UNKNOWN
  LIST_TEXT                    = C_CHAR_UNKNOWN
  MODE                         = 'CURRENT'
     NEW_LIST_ID                  = 'X'
  NO_DIALOG                    = C_FALSE
  RECEIVER                     = C_CHAR_UNKNOWN
  RELEASE                      = C_CHAR_UNKNOWN
REPORT                       = 'ZSAPFORM'
  SAP_COVER_PAGE               = C_CHAR_UNKNOWN
  HOST_COVER_PAGE              = C_CHAR_UNKNOWN
  PRIORITY                     = C_NUM1_UNKNOWN
  SAP_OBJECT                   = C_CHAR_UNKNOWN
  TYPE                         = C_CHAR_UNKNOWN
  USER                         = SY-UNAME
   IMPORTING
  OUT_ARCHIVE_PARAMETERS       =
      OUT_PARAMETERS               = i_pri_params
     VALID                        = w_valid
EXCEPTIONS
  ARCHIVE_INFO_NOT_FOUND       = 1
  INVALID_PRINT_PARAMS         = 2
  INVALID_ARCHIVE_PARAMS       = 3
  OTHERS                       = 4
  IF SY-SUBRC = 0 and w_valid ne space.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.
   write: / 'Pri params ', i_pri_params.
Thanks,
SK

Similar Messages

  • Is it possible to create a batch job for program RPRCCC00

    Dear All,
    I want to create a schedul batch job for program RPRCCC00. Have you come across with this scenario.
    Thanks in advance
    Regards
    Shanu

    Hi,
    Yes, you can create a batch job of the program RPRCCC00.
    Using SM36 transaction, you can create a batch job.
    Hope this helps.
    Thanks,
    Prashanth

  • How to create a batch job for transaction SM13 or SM37

    How to create a batch job for transaction SM13 or SM37?
    I want to create a batch job for t-code SM13/SM37, the jobs will send a email to my inbox when the errors occurred in SM13/SM37.
    How to do this? thanks in advance.

    Hi,
    Check the link:
    http://www.sdn.sap.com/irj/sdn/index?rid=/webcontent/uuid/30237989-0901-0010-70a4-944691eb5e52 [original link is broken]
    Make sure the CCMS agent installation is in place as per the Monitoring setup guide.
    Follow the link Central auto reactions for configuring alert mails.
    Regards,
    Srikishan

  • Help needed in creating a batch job for delivery

    Hi gurus
    Can somebody tell me the process of creating a batch job ..for creation of delivery.. is this the same process to create the batch jobs for invoices also?
    thankyou
    bj

    hello jaya ,gsl
    thankyou very much for ur help .. I have tried creating a variant .. in vl10batch.. and ive assigned it a scheduled time .. i craeted a open order..  and when the scheduled time has arrived and is over,i went to the order and still i dont see any delivery doc created .. and in sm37 its shows that the job is finished ..i even tried sm36 .. of creating a job for the variant.that ive craeted in vl10batch .and then assigning the job in sm37.. i can see the job that ive created in sm37 it is changing its status from released to finished .. as per the scheduled time but the delivery is not created .. i tried vf06 for a billing   variant.. and went to sm36 craeted a job for the variant..using the program name.. and next to sm37 i can  see the created  job in the spool also..but somehow it is  not creating the billing doc also..
    can u help me to find where it actually went wrong with me ?
    thanksalot in advance..

  • Creating a Batch Job for Executing Later

    Hi Experts!
    I was wondering if there was a way to create a batch job, but to have it executed at a later time, since we do not have an exact date and time we need these jobs executed.  My goal is to create 12 batch jobs (1 for each month), but have them excuted, when I need them too, when I choose it.  Is this even possible?.  I tried looking through SM36/SM37, but could not find anything on it.  Please advise and thanks in advance!
    WC

    Hi Will,
    The standard job scheduler will not do this (SM36/7).  You do not mention what release you are using, but SAP Central Job Scheduling with Redwood does provide the ability to create jobs with boolean conditions like you describe (plus much, much more).  See the Service Marketplace http://service.sap.com/job-scheduling or the SDN page https://www.sdn.sap.com/irj/sdn/docs?rid=/webcontent/uuid/abb91c2a-0b01-0010-6ca6-9f0f62268454. [original link is broken]
    Best Regards,
    Matt

  • Problem in creating Batch job for programs in different servers.

    Hi All,
    I have a requirement like i have 2 different programs ( PRG1,PRG2 ) running in 3 different SAP servers (SER1,SER2,SER3).
    I want to create a batch job for the programs.
    Here When I run the PRG1 in Server SER1,it will create a file1 in SER1 as well as the other 2 servers (SER2 and SER3).
    It just create a file and there is no content in the file.Once i start writing records to file1in SER1,the same record will be started writing in SER2 and SER3.This is using PRG1.
    Once PRG1 will complete writing records in file,Next PRG2 will run in SER2 using file created by PRG1.
    I want to create a batch job for PRG1.
    How to trigger the PRG2 after completing job1 for PRG1 without any manual interaction.
    Please help me for this.

    Hi Ambili
    You can set steps in these jobs in transaction SM36.
    You can define that Job 2 starts after Job1 complete sucessfully and same game for other jobs.
    Please, check attachment for detailed information about that
    Kind regards
    Edited by: Carlos Machado on May 27, 2010 6:01 PM

  • Batch job for collecting Blocked Deliveries

    Hi,
    Can anyone help me, i need to collect all the orders that have been blocked for delivery and send the results to an email address.
    I created a batch job gave the program for SD Documents blocked for deliveries, but it doesnt seem to work, can anyone please give a step by step procedure.
    Thanks alot,
    Michelle.

    1. T.code SM36- Here you will creating the job
    2. Give the appropriate variants and the back ground user id
    3. once this is done, go to the Spool receipient and give the email id where you want to send the mail to. Run the job now. You should receive the mail now, provide the connections are maintained.
    Hope this will resolve the issue.
    Mani

  • Duplicate deliveries getting created by batch job against STO

    Hi Experts,
    I am facing one issue where duplicate deliveries are getting created by batch job against Intercopmany STO.
    Scenario is PO having one line item with ordered qty of 8000kg.
    Through batch job, two deliveries got created on same day for PO line item.
    One delivery got created for 8000kg and another delivery has got created for 7000Kg. So user has deleted second delivery of 7000kg.
    Next day again the delivery got created for 8000kg for the same PO line item through batch job.
    I am wondering how the duplicate deliveries are getting created by batch job for PO even though it has no open items.
    All deliveries got created through batch job only as cross checked the user name in delivery.
    Kindly help to fix the issue.

    Hi Amit
    I assume you are talking about outbound deliveries.  In this case it would be worth checking the customer master record for the receiving plant.  In the sales area data there is a shipping tab which contains several settings used to control delivery creation for customers.
    It is possible to control how the system behaves when you have a stock shortage and restrict the number of partial deliveries.  This might help you control this situation and might be the cause.
    Regards
    Robyn

  • HOw to create a Batch file for java application and whats the use of this ?

    HI,
    How to create a Batch file for java application ?
    And whats the use of creating batch file ?
    Thanks in advance

    First of all, you're OT.
    Second, you can find this everywhere in the net.
    If you got a manifest declaring main class (an classpath if needed), just create a file named whatever.bat, within same directory of jar file, containing:
    javaw -jar ./WhateverTheNameOfYourJarIs.jar %*By the way, assuming a Windows OS, you can just double click the jar file (no batch is needed).
    Otherwise use:
    javaw -cp listOfJarsAndDirectoriesSeparedBySemiColon country/company/application/package/className %*Where 'country/company/application/package/' just stands for a package path using '/' as separator instead of '.'
    Don't specify the .class extension.
    Javaw only works on Windows (you asked for batch, I assumed .BAT, no .sh), in Linux please use java.exe (path may be needed, Windows doesn't need it 'cause java's executables are copied to system32 folder in order to be always available, see PATH environment variable if you don't know what I'm talking about) and use ':' as classpath (cp) separator.
    The '%***' tail is there in order to pass all parameters, it only works on Windows, refer to your shell docs for other OSs (something like $* may work).
    This way you have a command you can call to launch your code (instead of opening NetBeans just to see your app working). You could schedule tasks on it or just call it in any command prompt (hope you know what it is 'cause there have been people in this very same forum with no clue about it, if not just hold the 'Windows button' and press 'R', then type 'cmd' and run it).
    Finally add dukes and give 'hem away.
    Bye.

  • How to create a batch-job dynamically?

    Hello,
    I would like to create a batch-job from within my abap code.
    Therefore I want to determine a abap-report to be executed every X-Hours.
    Do you have some sample code for creating a batch job?
    I need to do it in abap because I want to create a TN to trigger the code creating the job.
    So the user interaction will be minimal to start a periodic batch job.
    thanks.

    Hi Daniel,
    select options could be stored by export/import to/from database:
          DESCRIBE TABLE t_vkpos LINES n.
          READ TABLE t_vkpos INDEX n.
          lastmaxvbeln = t_vkpos-vbeln.
          PERFORM get_varimemkey USING p_vari CHANGING vkposmemkey.
          EXPORT lastmaxvbeln TO DATABASE indx(zk) ID vkposmemkey.
          IF NOT sy-subrc IS INITIAL.
          PERFORM get_varimemkey USING p_vari CHANGING vkposmemkey.
          IMPORT lastmaxvbeln FROM DATABASE indx(zk) ID vkposmemkey.
          IF sy-subrc IS INITIAL.
            ls_vbeln-sign   = 'I'.
            ls_vbeln-option = 'GT'.
            ls_vbeln-low    = lastmaxvbeln.
            APPEND ls_vbeln.
          ENDIF
    FORM get_varimemkey USING    vari TYPE raldb_vari
                        CHANGING memkey TYPE char22.
      IF vari IS INITIAL.
        RAISE get_varimemkey_unexepected.
      ENDIF.
      CONCATENATE 'Z_VKPOS_' vari INTO memkey.
    ENDFORM.                    "
    regards
    Walter Habich

  • How to create a batch job in IW41

    Dear all,
    I would like to create a print program batch job on the following scenario with the use of RSNAST00.
    We have created an output type in which when it is triggered by backflush (i.e. GI-261) via IW41 transaction, a PO will be created automatically in the background from this output type.
    Now for testing purpose, we would like to use to use program RSNAST00 to schedule the creation or triggering of this output.
    May I know how to do this?
    I know in VF04, I can click the variant,HOWEVER in IW41, the menu does not allow variant creation?
    Without variant creation, I cannot go to SM36 to create a batch job.
    thanks
    tuff

    Hi,
    Check the link:
    http://www.sdn.sap.com/irj/sdn/index?rid=/webcontent/uuid/30237989-0901-0010-70a4-944691eb5e52 [original link is broken]
    Make sure the CCMS agent installation is in place as per the Monitoring setup guide.
    Follow the link Central auto reactions for configuring alert mails.
    Regards,
    Srikishan

  • Track the changes to the batch jobs in the PRD system.

    Hello Basis Guru's,
    Need your help in a Query. --> Is there any best practice that can be implemented to trace all the changes done to batch jobs in the past 3 months and going forward. Be it in its scheduling or its variant changes etc, i would like to track the changes to the batch jobs in the PRD system.
    Any pointers would be really helpful.
    Thanks in advance.
    Rgds,
    Sri

    Hello Raghu,
    Third party tools can only help you but not SAP. . A lot of us may think that for example if a Job 'X' runs daily then SAP considers this job as a single object.However actually SAP will treat each run of a job seperately infact as seperate jobs. If you would have noticed each job in SAP has a job id which is unique. So actually each run is unique. Now change logs can exist for only those objects that get changed. But change logs can not exist for objects that are newly created everytime !!
    If you would have noticed you can two jobs with the name A but running two different reports/variants whatver. This is because job name is not that important it is the job id.
    Every time a job runs a new entry gets stored in TBTCO,TBTCP etc.. tables. It is not that the existing entires are updated.However yes when a job is scheduled periodically there is some kind of a link that is created in the job series but it does not showo up in any of the tables!!
    As far as 3rd party tool is concerned I can name a tool like UC4. UC4 has its own database in which the job name will always be unique. For that you can easily find change logs. I think Chronicle (Redwood Scheduler) also supports this.
    Regards.
    Ruchit.

  • How to create a batch job through coding

    Hi Experts,
    How to create a batch job through coding?
    Regards
    Saroj

    Hi, below is the code.
    ***Create Variant for the job
    ***Get the dynamic variant name
      DATA: variant_name TYPE  varid-variant value 'test'.
      DATA: vari_desc LIKE varid,
            vari_contents LIKE rsparams OCCURS 0 WITH HEADER LINE,
            vari_text     LIKE varit    OCCURS 0 WITH HEADER LINE.
      CLEAR: vari_desc,vari_contents,vari_text.
      REFRESH: vari_contents[], vari_text[].
      vari_desc-mandt = sy-mandt.
      vari_desc-report = 'ZCTRAOBJECT_CAL_FILEDAMT_JOB'.
      vari_desc-variant = variant_name.
      vari_desc-transport = 'F'.
      vari_desc-environmnt = 'A'.
      vari_desc-version = 1.
      vari_desc-mlangu = sy-langu.
    ***Varint Text
      vari_text-mandt = sy-mandt.
      vari_text-langu = sy-langu.
      vari_text-report = 'ZCTRAOBJECT_CAL_FILEDAMT_JOB'.
      vari_text-variant = variant_name.
      CONCATENATE 'job' 'Background' INTO vari_text-vtext SEPARATED BY space.
      APPEND vari_text.
    ***Partner
      IF ( p_partner-low IS NOT INITIAL ).
        vari_contents-selname = 'PARTNER'.
        vari_contents-kind    = 'S'.
        vari_contents-sign    = 'I'.
        IF ( ( p_partner-low IS NOT INITIAL ) AND ( p_partner-high IS INITIAL ) ).
          vari_contents-option = 'EQ'.
          vari_contents-low = p_partner-low.
        ENDIF.
        IF ( ( p_partner-low IS NOT INITIAL ) AND ( p_partner-high IS NOT INITIAL ) ).
          vari_contents-option = 'BT'.
          vari_contents-low = p_partner-low.
          vari_contents-high = p_partner-high.
        ENDIF.
        APPEND vari_contents.
      ENDIF.
    ***Contract Account
      IF ( p_cont_acct-low IS NOT INITIAL ).
        vari_contents-selname = 'CA_ACC'.
        vari_contents-kind    = 'S'.
        vari_contents-sign    = 'I'.
        IF ( ( p_cont_acct-low IS NOT INITIAL ) AND ( p_cont_acct-high IS INITIAL ) ).
          vari_contents-option = 'EQ'.
          vari_contents-low = p_cont_acct-low.
        ENDIF.
        IF ( ( p_cont_acct-low IS NOT INITIAL ) AND ( p_cont_acct-high IS NOT INITIAL ) ).
          vari_contents-option = 'BT'.
          vari_contents-low = p_cont_acct-low.
          vari_contents-high = p_cont_acct-high.
        ENDIF.
        APPEND vari_contents.
      ENDIF.
    ***Contract Object
      IF ( p_cont_obj-low IS NOT INITIAL ).
        vari_contents-selname = 'CO_OBJ'.
        vari_contents-kind    = 'S'.
        vari_contents-sign    = 'I'.
        IF ( ( p_cont_obj-low IS NOT INITIAL ) AND ( p_cont_obj-high IS INITIAL ) ).
          vari_contents-option = 'EQ'.
          vari_contents-low = p_cont_obj-low.
        ENDIF.
        IF ( ( p_cont_obj-low IS NOT INITIAL ) AND ( p_cont_obj-high IS NOT INITIAL ) ).
          vari_contents-option = 'BT'.
          vari_contents-low = p_cont_obj-low.
          vari_contents-high = p_cont_obj-high.
        ENDIF.
        APPEND vari_contents.
      ENDIF.
    ***Account Category
      IF ( p_ctra_acc_category  IS NOT INITIAL ).
        vari_contents-selname = 'P_CAT'.
        vari_contents-kind    = 'P'.
        vari_contents-low    = p_ctra_acc_category.
        APPEND vari_contents.
      ENDIF.
    ***filed_freq_to_change_from
      IF ( p_filed_freq_to_change_from  IS NOT INITIAL ).
        vari_contents-selname = 'P_TO_CH'.
        vari_contents-kind    = 'P'.
        vari_contents-low    = p_filed_freq_to_change_from.
        APPEND vari_contents.
      ENDIF.
    ***req_filed_freq_change
      IF ( p_req_filed_freq_change  IS NOT INITIAL ).
        vari_contents-selname = 'P_CHANGE'.
        vari_contents-kind    = 'P'.
        vari_contents-low    = p_req_filed_freq_change.
        APPEND vari_contents.
      ENDIF.
    ***Test Run p_tstrun
      vari_contents-selname = 'P_TSTRUN'.
      vari_contents-kind    = 'P'.
      vari_contents-low    = p_test_run.
      APPEND vari_contents.
    ***Update Filing Frequency Checkbox
      vari_contents-selname = 'P_FIL_FR'.
      vari_contents-kind    = 'P'.
      vari_contents-low    = p_update_filing_frequency.
      APPEND vari_contents.
    ***Update Incoming Payment Channel Checkbox
      vari_contents-selname = 'P_PAY_CH'.
      vari_contents-kind    = 'P'.
      vari_contents-low    = p_update_payment_channel.
      APPEND vari_contents.
    ***Update Filing Channel Checkbox
      vari_contents-selname = 'P_FIL_CH'.
      vari_contents-kind    = 'P'.
      vari_contents-low    = p_update_filing_channel.
      APPEND vari_contents.
    ***Use Current Filing Period Checkbox
      vari_contents-selname = 'P_CU_PER'.
      vari_contents-kind    = 'P'.
      vari_contents-low    = use_curr_per.
      APPEND vari_contents.
    ****Create Variant thru Function Module
      CALL FUNCTION 'RS_CREATE_VARIANT'
        EXPORTING
          curr_report   = 'ZCTRAOBJECT_CAL_FILEDAMT_JOB'
          curr_variant  = variant_name
          vari_desc     = vari_desc
        TABLES
          vari_contents = vari_contents
          vari_text     = vari_text.
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ****Prepare all the date for scheduling job
    ***Get the print parameters
      DATA: params LIKE pri_params.
      CLEAR params.
      CALL FUNCTION 'GET_PRINT_PARAMETERS'
        EXPORTING
          mode           = 'CURRENT'
          no_dialog      = 'X'
        IMPORTING
          out_parameters = params.
      params-paart = 'X_65_255'."'X_PAPER'.
    ***Open The scheduling job
      DATA: job LIKE tbtcjob-jobname,
            jobcount LIKE tbtcjob-jobcount.
      CLEAR: job,jobcount.
      job = 'ZCTRAOBJECT_CAL_FILEDAMT_JOB'.
      CALL FUNCTION 'JOB_OPEN'
        EXPORTING
          jobname  = job
        IMPORTING
          jobcount = jobcount
        EXCEPTIONS
          OTHERS   = 4.
    ***Job Submit
      DATA: authcknam LIKE tbtcjob-authcknam.
      CLEAR: authcknam.
      authcknam = sy-uname.
      params-primm = space.
      CALL FUNCTION 'JOB_SUBMIT'
        EXPORTING
          authcknam = authcknam
          jobcount  = jobcount
          jobname   = job
          priparams = params
          report    = 'ZCTRAOBJECT_CAL_FILEDAMT_JOB'
          variant   = variant_name.
    ***JOB_CLOSE
      DATA: sdlstrttm TYPE tbtcjob-sdlstrttm,
            released LIKE btch0000-char1.
      sdlstrttm = p_job_start_time + 30.
      CALL FUNCTION 'JOB_CLOSE'
        EXPORTING
          sdlstrtdt        = p_job_start_date
          sdlstrttm        = sdlstrttm
          jobcount         = jobcount
          jobname          = job
        IMPORTING
          job_was_released = released.
    Regs
    Manas

  • Batch job for technically completing a production order

    Is there a way I can run COHV in batch mode for TECO ing orders
    thanks a lot

    Hi
    I assume you mean have a program run at pre-defined intervals to TECO your production orders.
    Easiest is to use SM36 --> batch job creation wizard to setup your batch job.
    The ABAP program you want to execute is PPIO_ENTRY (create a variant for the program first via SE38).
    Rgds

  • Set a batch job for LP21 transaction

    How to set up a batch job for LP21 transaction.

    first you call LP21.
    enter your selection criteria
    click save button
    give name and a description for the variant and save.
    leave LP21
    call SM36
    enter a job name e.g. "MY Replenishment run"
    click start conditons button
    click date/time button
    enter a date and a time when the job shall run
    click button for periodic value
    click daily
    click save
    click save
    now your back at define job
    click step button
    enter a user  that has the rights to run this job (maybe your own user id, maybe a functional user id)
    enter the ABAP name e.g. RLLNACH1
    enter the variant name of the variant you created earlier in LP21 (you can use F4 to find it)
    enter language
    SAVE
    now you are in the step list overview.
    you can leave this screen
    back on the job definition  just click the SAVE button
    thats all

Maybe you are looking for

  • Incorrect totals from cache with CustomRollupColumn and non-parent-child dimensions

    Hello. Before I start let me apologise for my English :) We have a very complex cube, with 2 (actually more, but only these 2 are important) parent-child dimensions. One of them has CustomRollupColumn defined. Not long ago we have decided to make ref

  • Cs6 updates error

    When I have been trying to install cs6 updates I have been getti g the same error for the past month, have tried over 50 times.  See below errors. Adobe Photoshop 13.0.6 There was an error downloading this update. Please quit and try again later. Err

  • Overriding standard functions in alv

    Hi all, I want to over ride " append row funtionality in alv grid. I am calling the grid in a custom container. I used the following code   METHODS HANDLE_BEFORE_USER_COMMAND     FOR EVENT BEFORE_USER_COMMAND OF CL_GUI_ALV_GRID     IMPORTING E_UCOMM.

  • C2D MacBook Pro or G4 PowerBook??

    In the Apple Refurb. store, both are available right now. I do nothing intensive on my laptop (email, surfing, iTunes, picture transfer...) but want to move up from my iBook. It needs to be small (12" or 15"), durable and speedy to rip CDs. Can you s

  • ABAP QUERY HEADER from "selection criteria"

    Dear Expert,            I would like to add coding for showing "billing date from - to" (selection criteria) to my ABAP QUERY Header. I used "SAP List Viewer" as my reports. Can anyone sharing idea and how to code it? Greate Thank, Prach