How can I erase a job in SM35 using the job_open and job_close functions?

Hi!
I call and execute a job in the SM35 transaction with the functions below, but how can I erase the job from SM35. Because when the functions are executed in the JOB_CLOSE the variable jobrele return me an 'X' that means that the job is executed but I see that the job is not erased from the transaction.
Thanks for the help.
  CALL FUNCTION 'JOB_OPEN'
    EXPORTING
      jobgroup         = bi
      jobname          = jname
    IMPORTING
      jobcount         = jnumb
    EXCEPTIONS
      cant_create_job  = 1
      invalid_job_data = 2
      jobname_missing  = 3
      OTHERS           = 99.
CALL FUNCTION 'JOB_SUBMIT'
  EXPORTING
    authcknam                         = sy-uname
    jobcount                          = jnumb
    jobname                           = jname
    REPORT                            = sy-repid
IMPORTING
   STEP_NUMBER                        = v_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 SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
  CALL FUNCTION 'JOB_CLOSE'
    EXPORTING
      jobcount                   = jnumb
      jobname                    = jname
      strtimmed                  = 'X'
      targetsystem               = batchsys
    IMPORTING
      job_was_released           = jobrele
    EXCEPTIONS
      cant_start_immediate       = 1
      invalid_startdate          = 2
      jobname_missing            = 3
      job_close_failed           = 4
      job_nosteps                = 5
      job_notex                  = 6
      no_release_privilege_given = 7
      OTHERS                     = 99.

hi
try this FM
<b>BP_JOB_DELETE</b>
the same  FM is also called in
<b>
SCMA_DELETE_JOB</b>
plz reward if useful

Similar Messages

  • How can I create an csv/excel file using pl/sql and then sending that file

    How can I create an csv/excel file using pl/sql and then sending that file to a clients site using pl/sql?
    I know how to create the csv/excel file but I can't figure out how I would get it to the clients site.

    968776 wrote:
    How can I create an csv/excel file using pl/sql and then sending that file to a clients site using pl/sql?
    I know how to create the csv/excel file but I can't figure out how I would get it to the clients site.You are trying to do it at a wrong place..
    Whay do you want database (pl/sql) code to do these things?
    Anyhow, you may be interested in :
    {message:id=9360007}
    {message:id=9984244}

  • How can I view my full billing history for the app and music stores without iTunes installed?

    I just received an email receipt from Paypal showing a $12.99 purchase from iTunes. I almost NEVER purchase anything over around five dollars in the app or music store. Since PayPal does not show what this purchase was for, I have not received the receipt from Apple yet, and I cannot find anyway to look up online what this purchase was for....I need help to find out ASAP what this purchase was. If my account has been compromised or if I have been incorrectly charged for something, I would like to get the issue handled immediately. I do not want to install iTunes on my PC (nor should I have to for Pete's sake), but I cannot see anything recent at all in my app or music history on my iPad (not that I would ever purchase anything for $12.99 anyway...I just don't). Thanks in advance for any tips!

    How can I view my full billing history for the app and music stores without iTunes installed?
    No.
    If my account has been compromised
    If you even think this may have happened, immediately change your password.
    See this -> Apple ID: Changing your password

  • I lost my Iphone 3GS. My brother has given me his Iphone 4 now. We both use the same notebook to update and sync our phones. I would like to know how can i reconnect back to my account using the Iphone which was previous used by my brother.

    I lost my Iphone 3GS. My brother has given me his Iphone 4 now. We both use the same notebook to update and sync our phones. I would like to know how can i reconnect back to my account using the Iphone which was previous used by my brother.

    If you are saying that you both have iCloud accounts and use the same icloud ID, then yes, the contacts will be deleted.  The idea is that all devices using the same icloud ID are kept in sync.  You need to use different IDs.  You can keep the same iTunes ID so you can share the songs and apps.  But use different icloud IDs.

  • I have bought an iMAC second hand but when updates to purchased (not by me) Apps I cannot download the updates as it is asking for the original owners password. How can I amend this or could I delete the Apps and download new ones in place under my email

    I have bought an iMAC second hand but when updates to purchased (not by me) Apps I cannot download the updates as it is asking for the original owners password. How can I amend this or could I delete the Apps and download new ones in place under my email

    If the machine was upgraded to Lion 10.7.x by the original owner then you bought an illegal license of Lion and also of any other applications that the seller  said came pre-installed, this assumes the seller did not include original install media. In that case you need to contact the seller for the original install DVDs that came with the machine re-install up to Snow Leopard 10.6.8 and then purchase Mountain Lion ($20) and the applications you want or need. If the seller cannot come up with the original install discs then you can buy them from a nominal cost from AppleCare..

  • How can I view just music - not videos - in the libary and playlists?

    I've noticed that when creating smart playlists and viewing the libarary I cannot filter out videos... is there a way to do this without having to just uncheck the videos and pretend they aren't there or is this something that apple didn't think of?
    I want to create smart playlists to listen to in my car and want to back up my library on dvd-roms, that is where this becomes a problem. If anyone knows how to change the settings so that videos don't show up in certain playlists or on the libarary I would appreciate it a lot.

    How can I view my full billing history for the app and music stores without iTunes installed?
    No.
    If my account has been compromised
    If you even think this may have happened, immediately change your password.
    See this -> Apple ID: Changing your password

  • How Can You Track Your Ipod If Lost Using The Serial Number

    How Can You Track Your Ipod If Lost Using The Serial Number?

    The find my iphone app has nothong to do with it.
    That app simply allow you to find other devices using your ipod.  It has nothing to do with fining the device on which it is installed.
    If you set up the find my ipod feature that is built into your ipod and the ipod is on and it is connected to wi-fi and it has not been restored, then you may be able to get an approximate street address using icloud.
    Othrewise, it cannot be tracked.

  • How can I convert .pdf file to .doc using the free adobe reader app? when I try to convert the .pdf file it asks me to sign in. when I click on "sign in", I am taken to a service subscription page. So, no free conversions using free adobe reader app?

    how can I convert .pdf file to .doc using the free adobe reader app? when I try to convert the .pdf file it asks me to sign in. when I click on "sign in", I am taken to a service subscription page. So, no free conversions using free adobe reader app?

    As has been mentioned Adobe Reader cannot export PDF page content. Nor can it create PDF or manipulate PDF page content.
    What you can do is use one of Adobe's online subscription services. Two provide for PDF  to Word export.
    There's ExportPDF and PDF Pack.
    Be well...

  • How can I configuration MBean in weblogic server  using the console ?

    How can I configuration MBean in weblogic server using the console ?
    I hear people talking about mbeans in weblogic server I have look in the console I can not find where , or how to do it.
    can some body explain that or a link that explain it, how to do it on the console ?

    Hi,
    Registering Custom MBeans from Admin Console is not yet possible. But yes there are ways to Configure and Utilize Custom MBeans ...
    http://weblogic-wonders.com/weblogic/2010/02/16/registering-and-invoking-custommbeans/
    Thanks
    Jay SenSharma

  • If I download a video from my video camera to a new (current 1/12) iMac 21 inch, how can I burn it to a DVD using the computer itself. Is this possible? Do I need to buy additional software. Two salespeople at the Apple were a little confused about this.

    If I download a video from my video camera to a new (current 1/12) iMac 21 inch, how can I burn it to a DVD using the computer itself. Is this possible? Do I need to buy additional software. Two salespeople at the Apple were a little confused about this. Thank you.

    The DVD recorder I'm referring to is one I've use for years. It is not attached to my aging iMac in any way. I simply play the video from my camcorder (mini-dv tape based Canon HV20)  into the DVD recorder and create a DVD that can be played in any DVD player. I can only do minimum editing so what goes in is what I get. This has been fine for creating dupes of the various things I shoot.
    If I buy a new iMac (21 inch), I'd like to be able to download the video to the iMac through iMovie, work with it to whatever degree I wish, and burn it to a DVD that can also be played in any DVD player -- or to use as a master to dupe copies.
    What I'm understanding from you and others is that this would be possible if Apple had included iDVD in the software that comes with the iMac, or if I purchase the iLife Family Pack, or buy the correct version of Toast. I'm hoping I can persuade Apple to sell me an iMac with iDVD installed.
    Essentially I want to move from a basic process of creating DVD copies to the more sophisticated process of creating one from an iMac.
    Thank you again for your help and wisdom.

  • How can i know if my query is using the index ?

    Hello...
    How can i know if my query is using the index of the table or not?
    im using set autotrace on...but is there another way to do it?
    thanks!
    Alessandro Falanque.

    Hi,
    You can use Explain Plan for checking that your query is using proper index or not. First you need to check that Plan_table is installed in your database or not. If it is not there THEN THE SCRIPT WILL BE LIKE THIS:
    CREATE TABLE PLAN_TABLE (
    STATEMENT_ID VARCHAR2 (30),
    TIMESTAMP DATE,
    REMARKS VARCHAR2 (80),
    OPERATION VARCHAR2 (30),
    OPTIONS VARCHAR2 (30),
    OBJECT_NODE VARCHAR2 (128),
    OBJECT_OWNER VARCHAR2 (30),
    OBJECT_NAME VARCHAR2 (30),
    OBJECT_INSTANCE NUMBER,
    OBJECT_TYPE VARCHAR2 (30),
    OPTIMIZER VARCHAR2 (255),
    SEARCH_COLUMNS NUMBER,
    ID NUMBER,
    PARENT_ID NUMBER,
    POSITION NUMBER,
    COST NUMBER,
    CARDINALITY NUMBER,
    BYTES NUMBER,
    OTHER_TAG VARCHAR2 (255),
    PARTITION_START VARCHAR2 (255),
    PARTITION_STOP VARCHAR2 (255),
    PARTITION_ID NUMBER,
    OTHER LONG,
    DISTRIBUTION VARCHAR2 (30))
    TABLESPACE SYSTEM NOLOGGING
    PCTFREE 10
    PCTUSED 40
    INITRANS 1
    MAXTRANS 255
    STORAGE (
    INITIAL 10240
    NEXT 10240
    PCTINCREASE 50
    MINEXTENTS 1
    MAXEXTENTS 121
    FREELISTS 1 FREELIST GROUPS 1 )
    NOCACHE;
    After that write the following command in the SQL prompt.
    Explain plan for (Select statement);
    Select level, SubStr( lpad(' ',2*(Level-1)) || operation || ' ' ||
    object_name || ' ' || options || ' ' ||
    decode(id, null , ' ', decode(position, null,' ', 'Cost = ' || position) ),1,100)
    || ' ' || nvl(other_tag, ' ') Operation
    from PLAN_TABLE
    start with id = 0
    connect by
    prior id = parent_id;
    This will show how the query is getting executed . What are all the indexes it is using etc.
    Cheers.
    Samujjwal Basu

  • How can I keep synchronized my macbook pro at the office and a traveling macbook air?

    How can I keep synchronized my macbook pro at the office and a traveling macbook air?

    Have you tried doing the sync via Time Machine?
    I thought it would be possible to backup the travelling machine and restore the machine at the office from the new backup.
    I read a warning from Apple that it is not advisable.
    I would be very interested in your opinion.

  • How can you start up your ipod if holding the hold and home button does not work?

    how can you start up your ipod if holding the hold and home button does not work?

    Remi,
    How long did you hold these buttons for? Did you try more than once?  Have you tried letting it charge for a bit and trying again?
    If nothing else, see this article for more troubleshooting assistance.
    http://support.apple.com/kb/TS2771
    B-rock

  • HT4623 How can i download ios 7.1 without using my iphone and itunes

    How can i download ios 7.1 without using my iphone and itunes

    If you don't use your phone and you don't use iTunes, what are you expecting to use? Your options to update your device are Over The Air through Settings>General>Software Update or by connecting the device to iTunes and updating.
    Best of luck.

  • How can I find out what is running in the background and running my batterie down

    How can I find out what is running in the background

    Hi simpbarby,
    Welcome to the Support Communities!
    The links below will help you understand what apps are running on your iPhone.  You can quit the ones that you aren't using.
    iOS: Understanding multitasking
    http://support.apple.com/kb/ht4211
    This link will provides tips to conserving battery life:
    Apple - Batteries - iPhone
    http://www.apple.com/batteries/iphone.html
    Optimize Your Settings
    Depending on how they are set, a few features may decrease your iPhone battery life. The tips below apply to an iPhone running iOS 7.0 or later.
    Enable Wi-Fi: Having Wi-Fi enabled helps consume less power when doing activities that access data. Go to Settings > Wi-Fi and log in to a Wi-Fi network.
    Adjust brightness: Dim the screen or turn on Auto-Brightness to extend battery life. Turning on Auto-Brightness allows the screen to adjust based on lighting conditions.
    Fetch new data less frequently: The more frequently email or other data is fetched, the quicker your battery may drain. To fetch data manually: Go to Settings > Mail, Contacts, Calendars > Fetch New Data and tap Manually.
    Turn off push notifications: Apps with Push Notification alert you of new data, which may impact battery life. To disable, go to Settings > Notifications, choose the app you want to disable, and do the following:
    Change Alert Style to None.
    Turn Badge App Icon off.
    Turn Sounds off.
    Note: New data will be received when you open the app.
    Minimize use of location services: Apps that actively use location services, such as Maps, may reduce battery life. You can see which applications have recently used location services by going to Settings > Privacy > Location Services.
    Use Airplane Mode in low- or no-coverage areas: Your iPhone always tries to maintain a connection with the cellular network, which may use more power in low- or no-coverage areas. Turn on Airplane Mode to increase battery life in these situations.
    Viewing Usage StatisticsKnowing and understanding your iPhone usage can help you better manage your battery life. To view your iPhone usage statistics, go to Settings > General > Usage. Under “Time since last full charge”:
    Usage: Amount of time iPhone has been awake and in use since the last full charge. iPhone is awake when you’re on a call, using email, listening to music, browsing the web, or sending and receiving text messages, or during certain background tasks such as auto-checking email.
    Standby: Amount of time iPhone has been powered on since its last full charge, including the time the phone has been asleep.
    I hope this information helps ....
    Have a great day!
    - Judy

Maybe you are looking for