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

Delete Purchasing Conditions - MEK2

Former Member
0 Likes
3,099

Hi Team,

We want to delete purchasing condition records for Materials provided in a text file for a specific validity date range. The standard transaction to achieve this is MEK2. I tried doing a Batch Input for MEK2 but it is actually a report with checkboxes in the result list. the batch input recording is not handling the checkboxes (it is an interactive report and when we take an F1 on the checkbox, no information about the field is displayed). Specific questions are:

1) Is there a BAPI or Function module to delete the Condition record. (We have written a program where the flat file is read and can pass each Material to the function module. No user interaction is required. We already tried RV_CONDITION_MAINTENANCE but it calls a screen)

2) Is there a way to manage the batch input for the checkbox. The report always shows more then one lines and we have to select the checkbox pertaining to the A017 records (PB00 condition type).

3) Can we use an IDOC instead.

I've tried everything from my end and looked at various posts but have no other thoughts. Please help.

Thanks for your time.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,979

hi

try transaction MEMASSIN

regards

serge

3 REPLIES 3
Read only

Former Member
0 Likes
1,979

Any thoughts please? I'm assuming that there is a simple way to delete condition records in mass? Other clients must have similar requirements?

Please help.

Thanks

Read only

Former Member
0 Likes
1,980

hi

try transaction MEMASSIN

regards

serge

Read only

former_member689132
Discoverer
0 Likes
1,979

Hi,

You can use this function after check KONP table.

RV_KONDITION_SICHERN_V13A

DB_XKONP tables.

MANDT=210

KNUMH =0000069

KOPOS =01

KAPPL =M

KSCHL =ZX01

STFKZ = A

KZBZG=C

KPEIN=1

KMEIN=ADT

LOEVM_KO=X

UPDKZ=U

regards.