Function Module to Release Scheduled Jobs

Dear All,
I have a requirement to create all the background jobs in SCHEDULED status, this is achieved by using the function modules JOB_OPEN, JOB_SUBMIT and JOB_CLOSE.
Now at a later point of time, i want to release only a few jobs, which were created using the above mentioned procedure. Insead of doing it manually, is there any way to automate this step ??
Regards,
kartik

Dear Mr. Parupalli,
That solved my problem. Thank you.
Regards,
kartik

Similar Messages

  • Function module not released

    Hi,
    I have a requirement where I need to insert/delete international versions of BP standard Address.(This is not the International Address Usage in the Address Overview tab. The international versions can be added by the international versions button in the Address tab.)
    I was tryng to use the following function modules for the same:-
    ADDR_VERSION_INSERT,
    ADDR_VERSION_DELETE,
    ADDR_SINGLE_SAVE.
    I am able to do the verion insert/delete using these function modules but the problem is none of these function modules are released . I was trying to get the correct function modules by debugging the BP transaction and setting the breakpoint at the 'CALL FUNCTION' statement.Also I tried using the report program 'RS_ABAP_SOURCE_SCAN'.But none of them were successful. Also I am not able to get these information from the where-used list of the function modules.
    Please let me know how to go about this.
    Thanks,
    Samrat.

    it's not clear what is released, what is not released. If it's somewhere in the documentation, I consider it released, even though technically it is not released. See [sap library - working with the BAS|http://help.sap.com/saphelp_nw70/helpdata/EN/12/ad79815c5811d3b4ea006094192fe3/frameset.htm]. Even if not released, you may take the small risk to use it, just discuss with your project/maintenance teams.

  • Scheduling function module execution in background jobs

    Hi,
    I have requirement where in after obtaining all the required inputs from the user we will call an function module to execute it.
    The requirement is that the execution of fm shld happen in background and a log must be created showing the user whther it was successful or if it failed with the list of errors.
    Can you kindly give some input on how to schedule the execution of function module in background job and if scheduled how to create the logs to display the success or error message.
    Warm Regards,
    Naveen M

    Hi,
    Just create a simple program where you have to call this FM.
    Pass the values to FM either by declaring some internal table of selection screen and execute the program in background.
    For Message Log, you can use structurre BDCMSGCOLL
    DATA:   MESSTAB LIKE BDCMSGCOLL OCCURS 0 WITH HEADER LINE.
    After Call to FM, read from this internal table as follows
    READ TABLE MESSTAB WITH KEY MSGTYP = <Message Type>
                                            MSGNR  = <Message Number>.
    regds,
    Anil

  • BAPI/Function module to release request.

    Hi All,
    I want to release the request from my ABAP program. Can anybody suggest me Function Module or BAPI for that. I tried BDC for the same but release get canlled.

    I want to release the request from my ABAP program.
    Not suggested.
    Reason:No consistency no object test no inactive object test been take place with this method.may be on the edge.
    Amit.

  • Function Module to show all jobs in that Org Unit.

    Does any one know is there any Function Module which gives all the jobs that comes under that Org Unit. for example if org unit 10 has 2 Sub Org Units(11 and 12) and 3 jobs(20, 21 and 22) under it. and the Sub Org Unit 11 and 12 has 1 job each( 30 and 40). When you run for org unit 10 it should give all 5 jobs (20, 21, 22, 30 and 40).

    Hi Fayyaz
    Well you use a FM RH_READ_INFTY_1001 to discover the relationships between an ORG Unit and Jobs.
    Alternative, you can write a simple query to extract data from HRP1001 to find the jobs under an Org Unit. Because Jobs are related to an Org Unit and this relationship is stored in Infotype 1001/HRP1001.
    Reward Points, If helpful.
    Regards
    Waz

  • Function module to release a work permit attached to a service order.

    Hi,
    We have a requirement of automating the process of work permit release attached to service order.
    I am looking for a function module / BAPI for releasing the work permit attached to a service order by passing service order number and permit ID/Name.
    If any of you have come accrose such one please share.
    Thanks
    Achuthanandan

    Hello Philip
    The following function modules should be useful:
       - CY_PRIMARY_SELECTION            - Function module for selection of orders for the work center
       - CY_SECONDARY_SELECTION          - Check for additional criteria
       - CR_CAPACITY_AVAILABLE_PERIODS   - Reads the available capacity from work center
       - HR_PERSON_READ_TIME_INFO        - Reads the available capacity from person (modification)
       - CY_GET_PART_CAPACITY            - used only for the first period to read backlog
       - CY_LOAD_DISTRIBUTION            - Distribution key
    Please observe that these are simple function modules, not BAPIs, That means, they were developed to be used on the SAP internal programs and they are not supported by SAP when used in custom programs.
    BR
    Caetano

  • Function Module not released yet. Has anybody used them in their programs?

    Hi
    I am trying to use the barcode functionality during a goods movement 101 (using MIGO). As we donu2019t have any control of SAPu2019s barcode functionality thru configuration in MIGO I have developed a custom popup and I am calling this in a BADI implementation MB_MIGO_BADI. Once the user enters the barcode then I call Function module ARCHIV_BARCODE_GLOBAL to save the barcode to the standard tables.
    This Function module is not released to the customers and it was last changed on 11/12/2004.
    My question is should I be using this Function module in my BADI implementation even though it is not released (does not have a release date) ?. Has anyone of have used a unreleased Function module in your programs?.
    Additionally I need this info
    I am using ECC 5.0. If anyone of you is using ECC 6.0 or higher can you please check and let me know if this FM ARCHIV_BARCODE_GLOBAL is released or not or when was it last changed.
    Please advice me at you earlist
    Thanks of your time
    SHraj

    Hi,
    We are not using the above FM. But I can give some Info from ECC 6.0.
    In ECC 6.0 the above FM is realeased for customers.
    Last changed on:28.12.2004 18:28:16.
    You can use the same code in ur Z function module.
    Thanks and Regards

  • Function Module to Dealy the JOB

    Hi,
    I have a program and inside it submiting one JOB. So i have wait for execution of further program till the previous job finises. So how can i do this? Is there any function module to wait for the JOB.
    Thanks
    Ku

    Hi Sunil,
    You can do this
    Go to Table tbtco and give the job name and select all the details of the job.
    Pass the Job count to the function module as
    call function 'BP_JOB_CHECKSTATE'
                   exporting
                        dialog                       = 'N'
                        jobcount                     = t_tbtco-jobcount
                        jobname                      = t_tbtco-jobname
                   importing
                        actual_status                = l_status
                   exceptions
                        checking_of_job_has_failed   = 1
                        correcting_job_status_failed = 2
                        invalid_dialog_type          = 3
                        job_does_not_exist           = 4
                        no_check_privilege_given     = 5
                        ready_switch_too_dangerous   = 6
                        others                       = 7.
    check the ststus for F or A. Do it in a whil eloop and when it finishes continue your program.
    Thanks
    Lincon

  • Function module needed to schedule a report to run in background.

    Hi,
    I am in need of a basis fm ro schedule a report to run in the background.
    There exists a function group BTCH with fm MINI_JOB_WIZARD which is what I need.The problem is that all the import parameters is mandatory
    IN_JOBNAME
    IN_REPVARNT
    IN_REPORT
    The problem with the above fm is that it requires a report variant which my report doesnt have since my report has no selection screens.
    Can you please suggest me any alternative fms which does the above wizard like stuff without the annoyance of supplying a variant .
    Thanks

    Try to use the standard FM for submit of jobs :
    - [JOB_OPEN: Create a Background Processing Job|http://help.sap.com/saphelp_nwce711core/helpdata/en/fa/096ce5543b11d1898e0000e8322d00/frameset.htm]
    - [GET_PRINT_PARAMETERS|http://help.sap.com/saphelp_40b/helpdata/pt/9f/dba5d535c111d1829f0000e829fbfe/content.htm] for ... print parameters.
    - [JOB_SUBMIT, ABAP SUBMIT: Add a Job Step to a Job|http://help.sap.com/saphelp_nwce711core/helpdata/en/fa/096ce5543b11d1898e0000e8322d00/frameset.htm] -  Use the FM if you have a variant (or call an external program), else use a ABAP [SUBMIT |http://help.sap.com/abapdocu_70/en/ABAPSUBMIT.htm] [selscreen_parameters|http://help.sap.com/abapdocu_70/en/ABAPSUBMIT_SELSCREEN_PARAMETERS.htm] [job_options|http://help.sap.com/abapdocu_70/en/ABAPSUBMIT_VIA_JOB.htm] [spool_options|http://help.sap.com/abapdocu_70/en/ABAPSUBMIT_PRINT_PARAMETERS.htm], you can pass parameters with the [WITH expr_syntax1 WITH expr_syntax2 ... |http://help.sap.com/abapdocu_70/en/ABAPSUBMIT_SELSCREEN_PARAMETERS.htm#&ABAP_ADDITION_4@4@] option.
    - [JOB_CLOSE: Pass a Job to the Background Processing System|http://help.sap.com/saphelp_nwce711core/helpdata/en/fa/096eff543b11d1898e0000e8322d00/frameset.htm]
    Regards,
    Raymond

  • Reg: Function Module thats used to check the status of JOBS and mail it

    Hi Experts,
    Is there any Standard Function module thats going to find the status of the jobs and mail this status to specied email ID in .xls format. While checking status function module should give whether job is - Aborted, Successful, Running, Waiting, Locked, Error, Warning, Starting Date, Ending Date of the Job.
    Please help me,

    Hello Nagaraj,
    You can find out the status of a job with the SHOW_JOBSTATE function module. You provide this function module with a job name and job number. It returns one of the six possible statuses of the job:
    ABORTED TYPE C,
    FINISHED TYPE C,
    PRELIMINARY TYPE C,
    READY TYPE C,
    RUNNING TYPE C,
    SCHEDULED TYPE C.
    Following is the link for the same:
    http://help.sap.com/saphelp_sm32/helpdata/en/fa/096e10543b11d1898e0000e8322d00/content.htm
    Warm Regards,
    Riki Dash

  • Function module to hold and release lock on MARD table entry

    Hi Gurus,
    Can you please tell me Function module to HOLD lock on MARD table and the Function Module to release lock on MARD table entry.
    Thanks and Regards,
    Sudipto

    Look via SE11 lock objects, use F4 for tables MAR*, the best for your request is on MARC table with object EMMARCS, so use FM ENQUEUE_EMMARCS and DEQUEUE_EMMARCS.
    Regards,
    Raymond

  • Function module to schedule actions

    Is there any function module available for scheduling actions programmatically; ( like done in T-CODE CRMC_ACTION_JOB)
    Thanks,

    Hi,
    There are couple of FM.
    SMOE_ACTIVATE_SCHEDULED_ACTION Function Module which starts Scheduled Actions
    SMOE_CALC_SCHEDULED_ACTION     Function module which calculates the scheduled actions to be performed
    SMOE_UNDO_SCHEDULED_ACTION     Function Module which finishes the actions started by SMOE_ACTIVATE_SC
    SMOE_UPDATE_SCHEDULED_ACTION   Function module which updates running scheduled actions
    But we can also write the code using FM:CRM_ACTION_CONTEXT_CREATE and 'CRM_ACTION_DETERMINE  and method of the class:cl_manager_ppf
    Regards,
    ruchi

  • Function module to retrieve the account number linked to an SD invoice item

    Hi all,
    I should retrieve the gl account number linked to a certain SD invoice item. The
    program starts from VBRK and VBRP data. Is there a function module which
    enables to get it starting from these header lines? I already used the function
    module: RV_INVOICE_ACCOUNT_DETERM ( release: 4.0 ), but in some cases it
    doesn't seem to function properly ( the export table TKOMV doesn't contain a
    value for the SAKN1 field ). For the invoices for which the function isn't able to
    retrieve the account number, the standard accounting analysis functionality returns
    the following message: account determination carried out via KOFI type. So I'm
    searching for a function module that's able to retrieve the account number in these
    cases also.
    Thanks in advance.
    Adriano.

    Dear Adriano,
    Try with Function Module 'SD_DETERMINE_ACCOUNT_INVOICE '.
    Additional Info:
    BAPIs related salesorder:
    BAPI_SALESORDER_CHANGE Sales order: Change Sales Order
    BAPI_SALESORDER_CONFIRMDELVRY Sales Order: Confirmation of Delivery; Document Flow Update
    BAPI_SALESORDER_CREATEFROMDAT1 Sales order: Create Sales Order
    BAPI_SALESORDER_CREATEFROMDAT2 Sales order: Create Sales Order
    BAPI_SALESORDER_CREATEFROMDATA Create Sales Order, No More Maintenance
    BAPI_SALESORDER_GETLIST Sales order: List of all Orders for Customer
    BAPI_SALESORDER_GETSTATUS Sales Order: Display Status
    BAPI_SALESORDER_SIMULATE Sales Order: Simulate Sales Order
    FM:
    MB_ADD_PURCHASE_ORDER_QUANTITY (Reading and adding open purchase order quantities)
    SD_SALES_ORDER_STATUS_WWW for complete details including the delivery information.
    Hope this will help.
    Regards,
    Naveen.

  • Function module to retrieve the account linked to an SD invoice item

    Hi all,
    I should retrieve the gl account number linked to a certain SD invoice item. The
    program starts from VBRK and VBRP data. Is there a function module which
    enables to get it starting from these header lines? I already used the function
    module: RV_INVOICE_ACCOUNT_DETERM ( release: 4.0 ), but in some cases it
    doesn't seem to function properly ( the export table TKOMV doesn't contain a
    value for the SAKN1 field ). For the invoices for which the function isn't able to
    retrieve the account number, the standard accounting analysis functionality returns
    the following message: account determination carried out via KOFI type. So I'm
    searching for a function module that's able to retrieve the account number in these
    cases also.
       Thanks in advance.
       Adriano.

    Hi
    Try using FM SD_DETERMINE_ACCOUNT_INVOICE or  WLF_INVOICE_ACCOUNT_DETERM.
    Thanks
    Sandeep
    Reward if helpful

  • Is it necessary to use the standard function modules always?

    Hi All,
       Suppose i can retrieve the BUSINEES PARTNER ID from the table BUT000 with the help of 'BP_GUID' field through a select query statement. 
    Now is it necessary to use a standard function module to retrieve the same data. what about the performance? which is the better solution. to implement our own code or to use the function module available.
    Please someone clarify me about this issue.
    Regards,
    Sharry.

    If you'd ask the question in general it's obvious that there is no good answer as it always would depend on the circumstance. However, as you've posted your question in the performance tuning forum, let's look at your question in this context first. I think it's fairly safe to say, that in almost 100% of the cases a standard function module will not be as fast as any well implemented and custom tailored code. If in doubt, just try reading the code of the function module you want to read; most likely you will find lots of unnecessary fluff in there, often they read data that you don't even need.
    And as far as buffering is concerned, that can also be an issue. E.g. let's say you do a massive read of distinct business partners and you only need the data once for each partner. Obviously buffering is silly in this case and it might even slow down your program, because the implemented buffering is not necessarily well implemented. I've come across a few cases, where the buffer tables where standard tables with no efficient read access (so no sorted table or hash table) and once tons of data were buffered, it actually took a moment to look up if the record already was buffered (just to find it wasn't there yet).
    Now most of the times this slowdown is not an issue as the lookup is still fast compared to the (usually) prevalent database accesses with their slower IO timing. But another factor to consider is memory consumption and why buffer data in memory (and waste it), if you can't use the buffer anyway? So when I do use standard function modules, I usually try to see what they retain in global memory, to better understand if I need to call some initialization/clearing/refresh function...
    Note also that often you need to process lots of data, but don't find a standard function module for "mass access", so you need to read your object one by one. Obviously that's another good candidate for implementing your own queries, where you can process the data in packages.
    So what might be the reason to use a standard function module? Well, often it's required because the logic is so complex that it would take you too much time to implement it (not to mention that we often simply don't know all the logic that's coded in there). Another advantage is that you might get independent of the data model. E.g. for IDoc interfaces SAP switched in some release the tables where the data is stored. So if you had coded your own queries to get IDoc data, they wouldn't have worked after this particular release upgrade. The standard function on the other hand, checks both the old and new tables, so by using it you would have been fine.
    The one major caveat I'd give though is to always check whether the function module is released or at least documented to some degree. I.e. if it's not released, SAP won't support it and does not guarantee that the interface or logic stays the same. In my experience lots of functions I do want to use are not released (or documented), but I will still use them because they seem to be the best alternative in certain scenarios.
    Cheers, harald

Maybe you are looking for

  • If I pay for extra iCloud storage will I be able to download more of my magazines?

    If I pay for extra iCloud storage will I be able to download more of my magazines?

  • Site no longer works

    I have designed our school website using iweb and this has worked well for the past few months until now. It's hosted by an education dept. server. After adding a few pages I decided to upload the entire site again. Suddenly it can't find the url? I

  • Q190 Windows 7 drivers don't work

    Just received a pair of Q190s in the post and I immediately imaged them with our office's standard Win7 64 bit image. None of the Windows 7 drivers work. Not one. I ended up going to Realtek's site to get the NIC's driver. Any help would be appreciat

  • Activation problem after several years of use

    I have used Photoshop cs v8.0 for several years on the same computer.  Yesterday when I tried to open Photoshop a popup windo said I needed to register my product to get my activation code.  The online method would not work, the phone method went to

  • OneNote 2010 navigating pages moves the view around.

    I am using Windows 7 64bit OneNote 2010.  The problem I am having is when navigating from different pages or sections in the notebook.  I scroll or zoom on page 1 navigate to page 2 and scroll or zoom in on something then navigate back to page 1 and