Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Batch deletion

Former Member
0 Likes
1,605

Hi Gurus,

I am creating the batch using BAPI_BATCH_CREATE. batch gets created. After some condition fails, now I want to delete the batch created. I dont want to set the deletion flag, but i want to completely remove the batch from the system. What can I do?

Please help

Thanks

Rohit

Hi Gurus,

I am creating the batch using BAPI_BATCH_CREATE. batch gets created. After some condition fails, now I want to delete the batch created. I dont want to set the deletion flag, but i want to completely remove the batch from the system. What can I do?

Please help

Thanks

Rohit

3 REPLIES 3
Read only

Former Member
0 Likes
961

Hi,

bapi_batch_delete fm is for deletion indicator of batch

BALVBT01 Example SAP program for displying multiple ALV reports on one page BCALV_GRID_DEMO ALV Dialog grid demo (4.6) SHOW_COLO Displays all colours available SHOW_ICON Displays all icon available RGUGBR00 Substitution/Validation and rules utility RKCTSEAR Search source code of various programs for up to two strings. Also see RPR_ABAP_SOURCE_SCAN or use search in source functionality via SE80 RPCIFU01 Display File RPCIFU03 Download Unix File to PC RPCIFU04 Upload PC File to Unix File RPR_ABAP_SOURCE_SCAN Search ABAP code for a string. Much more flexible than RSRSCAN1 or RKCTSEAR RSBDCBTC Submit a BDC job with an internal batch number and wait for the end of the batch input session RSBDCDRU Prints the contents of a Batch Input session. No options for error transactions only RSBDCOS0 Execute OS Command (Logged in SYSLOG and Trace Files) RSBDCSUB Process batch input sessions automatically RSBTCDEL Delete batch jobs RSCONN01 SAPconnect: Start Email Send Process RSCSAUTH Maintain/Restore Authorization Groups RSINCL00 Extended ABAP Program Reference List RSMODRES Restore enhancement projects after upgarde RSORAREL Check Oracle Version RSPARAM Display all instance parameters RSPO0041 Delete Old Spool Requests RSSNAPDL Reorganization Program for Table SNAP of Short Dumps RSTRANSP Transport Report Variants RSTXFCON SAPscript: Conversion of Page Format for Forms RSTXPDFT4 Convert spool request to PDF document RSTXPDFT5 GUI download of a spool request RSTXSCRP SAPscript Export to Dataset / SAPscript Import from Dataset (Upload and download SAPScript layout sets) RSTXTRAN Transfer of SAPscript Texts(standard texts) to a transport RSUSR003 Check the Passwords of Users SAP* and DDIC in All Clients RSUSR006 List of Users with Incorrect Logons RSVARFIT Adjust Variants to Modified Selections RSVTPROT Evaluation of change logs RSWBO052 Change Object Directory Entries RSWBO060 Include Objects in a Transport Request SAPMSUU0 Program for user maintenance(SU01), Maybe useful if you do not have access to the actual SU01 transaction code.

Edited by: jeevitha on May 8, 2008 12:55 PM

Read only

Former Member
0 Likes
961

Hi

Description

In Batch Management, you can use the following methods for object Batch . The names of the corresponding function modules can be found after the methods in brackets.

Batch.Create (BAPI_BATCH_CREATE)

You use this method to create a new batch.

Batch.Change (BAPI_BATCH_CHANGE)

You use this method to change an existing batch.

Batch.GetDetail (BAPI_BATCH_GET_DETAIL)

You use this method to read detailled data related to a batch.

Batch.SaveReplica (BAPI_SAVE_REPLICA)

You use this method to replicate a batch.

Batch.LevelGet (BAPI_BATCH_LEVEL_GET)

You use this method to determine a batch level.

Batch.Replicate (BAPI_BATCH_REPLICATE)

You use this method to distribute a batch.

Batch.ExistenceCheck (VB_BATCH_GET_DETAIL)

You use this method to check whether a batch exists.

Batch.Display (Transaktion MSC3)

You use this method to display batch data (transaction call).

For further information on the individual methods, see the Business Object Repository (BOR).

Read only

former_member156446
Active Contributor
0 Likes
961

Hi Rohit..

based on that condition... call the bapi_transaction_commit.

if condition is yes..

bapi_transaction_commit

else.

exit.

endif.