Application Development 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: 

How to edit KONP table

daniel_duras2
Participant
0 Kudos

Hi all,

I have a little problem with KONP items.

In MEK2 transaction I can block some items, is there any possibility to block existing condition items (set variable loevm_ko to 'X') from FM or else ?

Regards.

12 REPLIES 12

Former Member
0 Kudos

Hi,

Yes, If you set the field 'LOEVM KO' to 'X' it means that the condition record is deleted and it will not be taken into account .

0 Kudos

sneha singhania

I know what that condition mean. I need how that condition block...

Former Member
0 Kudos

Hi,

can you be more specific in your requirement...

0 Kudos

How to set loevm_ko to 'X' not from MEK2 transaction? . Function module will be the best solution.

Edited by: Danielek on Jun 17, 2009 11:31 AM

0 Kudos

Hi,

try this FM 'SD_KONP_CHANGE_DOCS_WRITE'

or,

SD_CONDITION_CHANGE_DOCS_WRITE

0 Kudos

Is there any chance for example?

0 Kudos

Hi,

You need to send the KONP structure to the FM.. But, what i have understood from your requirement is that you want to set the deletion flag for some of the records for your condition type.. If this is what you are looking for then there is not existing FM for this... best way to achieve this is to select the records from the table depending on the 'KNUMH' field .. Modify the deletion record flag and update the table again..

Please let me know if this is what you want so that i can help you with some sample code..

0 Kudos

Sneha Singhania

Yes, I want to set deletion falg, but I am a little afraid with that manuall fixing ...

This is tested solution ?

0 Kudos

Hi

There's BI std RV14BTCI

Max

0 Kudos

Hi Max.

Any details, any samples ? What file does this program need ?

Thx

0 Kudos

Hi

That program elaborates a file arranged on the following strcutures:

BGR00 - Session data

BKOND1 - Header data: trx code, condition table name, condittion,....

BKOND2 - Condition data, in particular flag for deletion.

So the file should have

First record - BGR00

Block for every condition to be updated

First record - BKOND1

Second record - BKOND2

Anyway u can read the program documentation.

There's also the BAPI BAPI_PRICES_CONDITIONS

Max

0 Kudos

Hi Max, I have 4.6D and I also doesn't have BAPI_PRICES_CONDITIONS FM.

Cheers.