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

Bank BAPI Delete

Former Member
0 Likes
2,323

Dear all,

I want to delete Bank in same way as with BAPI_BANK_CREATE but delete.

how can I do it? I didn't find the proper one BAPI for this purpose.

Thanks

Regards

Vladislav

10 REPLIES 10
Read only

PeterJonker
Active Contributor
0 Likes
1,682

Use BAPI_BANK_CHANGE

BANK_DETAIL-BANK_DELETE = 'X'.

Read only

0 Likes
1,682

Hello Peter,

I 'deleted' bank in such way, by means of BAPI_BANK_CHANGE,

but it has no effect, also when I use BAPI_TRANSACTION_COMMIT.

Does it take long time to delete a bank?

Regards

Vladislav

Read only

0 Likes
1,682

I guess it will not delete a bank if it is still used somewhere. Did you check the return values for error messages after the bapi call ?

And since it is a deletion indicator, the data is not deleted but FLAGGED for deletion.

An archiving program can delete it permanently.

Read only

Former Member
0 Likes
1,682

Hi,

You can use the Tcode   FI06 to delete the bank.

Thanks

Pavan.N

Read only

0 Likes
1,682

Hi,

I would like to use a function or bapi to delete bank automatically, without any user actions, is it possible?

Regards

Vladislav

Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,682

Did you try BAPI_BANK_SAVEREPLICA  as well as BAPI_BANK_CHANGE setting field BANK_DETAIL-BANK_DELETE (moved to BNKA-LOEVM), did you check RETURN values, were you able to simulate deletion of the bank with transaction FI06 ?

Regards,

Raymond

Read only

0 Likes
1,682

Hello,

how can I use this transaction 'FI06' to delete a bank? I could not do it.

Regards

Vladislav

Read only

0 Likes
1,682

BAPI and transactions will not delete records in database but set a flag for suppression.

To actually delete records from database, you must execute SARA transaction "Archiving".

Of course SAP put some constraints on this (no more documents/master data using this reference for database integrity) Read some documents like Introduction to Data Archiving (CA-ARC) til you read Step 3: Running Delete Program.

Regards,

Raymond

Read only

SujeetMishra
Active Contributor
0 Likes
1,682

Hi,

Please use FM BANK_MARK_FOR_DELETION and also read documents available for this function module.

If you do not want to set deletion flat and you want to delete it from the table BNKA, then use SAP Standard Archiving functionality, use Transaction Code F61A and create a variant to archive bank data.

Regards,

Sujeet

Read only

0 Likes
1,682

Can I set some flag to set the bank invisible? When I use BAPI_BANK_GETLIST I should not see the bank, which was marked for deletion.

Regards

Vladislav