06-17-2009 10:05 AM
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.
06-17-2009 10:09 AM
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 .
06-17-2009 10:20 AM
sneha singhania
I know what that condition mean. I need how that condition block...
06-17-2009 10:23 AM
06-17-2009 10:25 AM
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
06-17-2009 10:45 AM
Hi,
try this FM 'SD_KONP_CHANGE_DOCS_WRITE'
or,
SD_CONDITION_CHANGE_DOCS_WRITE
06-17-2009 10:54 AM
06-17-2009 11:04 AM
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..
06-17-2009 11:13 AM
Sneha Singhania
Yes, I want to set deletion falg, but I am a little afraid with that manuall fixing ...
This is tested solution ?
06-17-2009 11:22 AM
06-17-2009 11:34 AM
Hi Max.
Any details, any samples ? What file does this program need ?
Thx
06-17-2009 11:43 AM
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
06-17-2009 12:33 PM
Hi Max, I have 4.6D and I also doesn't have BAPI_PRICES_CONDITIONS FM.
Cheers.