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

BDC

Former Member
0 Likes
621

Hi all,

How can we delete 10 vendors from database?

can we use BDC or directly from database tables?

Or any other method can we follow?

Thanks in advance,

K P

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
600

First of all to delete vendors from database you will need archiving program . With BDC of XK02 you can only mark vendor for deletion ( LFA1-LOEVM ) but not delete the lines from LFA1 .

For archiving the tcode is SARA and object for vendor is FI_ACCPAYB.

Cheers.

Sanjay

6 REPLIES 6
Read only

Former Member
0 Likes
601

First of all to delete vendors from database you will need archiving program . With BDC of XK02 you can only mark vendor for deletion ( LFA1-LOEVM ) but not delete the lines from LFA1 .

For archiving the tcode is SARA and object for vendor is FI_ACCPAYB.

Cheers.

Sanjay

Read only

Former Member
0 Likes
600

Hi K.P,

Best way is use BDC.Its is better to never

insert/delete data from mastert tables directly.

Thanks&Regards.

Siri.

Read only

hymavathi_oruganti
Active Contributor
0 Likes
600

with BDC u can just mark for deletion.

after marking, u can write

DELETE FROM <DBTAB>

Read only

Former Member
0 Likes
600

Use this bapi,

BAPI_VENDOR_DELETE

This BAPI sets Deletion Indicator Online for Vendor Set the delete indicator online for the vendor to be transferred.

Read only

Former Member
0 Likes
600

Hi,

SAP recommends that data to be inserted or

deleted from table using transacton. Write a bdc

for xk02 and mark the vendor as deleted.

Further selection take records where loevm <> 'X'.

Regards

Amole

Read only

Former Member
0 Likes
600

Hi,

Thanku to all

regards,

K P