Hi
Thanks for the reply.
As per your question
"Do you want to check if any record exists in the DSO with the same ebeln/ebelp?"
Yes i need to check in DSO with same EBELN and EBELP.
2)afterwards you again check confline = 2 which is not necessary (In the previous step we will be deleting whole data with confline = 2, so if confline = 2 it will never come to this point of the code).
aCTUALLY,IT contains lots of data with same condition.So,we must put the data in loop.and each time it checks ,it must remove the confline=2 and conftype=cd..
3)delete source_package where confline = 2 and conftype = 'cd'.
that is all. You don't need to check with DSO right?
I need to check the DSO if CONFLINE =2 and conftype=cd condition gets failed.
and this steps will be followed:
CHECK 2:check condition confline>1 and conftype=ef.
if its true,
then check in dso target record with key ebeln/ebelp
if yes then chek the condition
CONFLINE =2 and conftype=cd
if yes,then delete the curent record where confline=2.
else it has to check own data package(source) record with key ebeln/ebelp
if yes then chek the condition
CONFLINE =2 and conftype=cd
if yes,then delete the curent record where confline=2.