<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
<RTE_TEXT>Dear WUG,<BR>
&nbsp;<BR>
I have a&nbsp;situation where I am unable to&nbsp;correct the key of BO.<BR>
&nbsp;<BR>
First of all why do I need to correct the key?<BR>
&nbsp;<BR>
Here is what's happening.<BR>
&nbsp;<BR>
ECC 6.0 <BR>
Object VBAP is subtyped to ZVBAP and delegated system wide.<BR>
&nbsp;<BR>
Event "SO Item Cancelled" is created in ZVBAP and the condition is when the item is set to rejection code = 99 ( for example ).<BR>
&nbsp;<BR>
I used the change document object VERKBELEG to capture the event. This is where I think i am wrong.<BR>
&nbsp;<BR>
in SWEC , I created a FM and am trying to change the key from Sales Document alone to Sales document and Item for the BO VBAP.<BR>
&nbsp;<BR>
May be I wrote this FM wrong...I am still not able to create the right key for VBAP.<BR>
&nbsp;<BR>
I am gettign the key as 2000036 / 000000<BR>
&nbsp;<BR>
But I need the key to be 2000036 / 000010 when line 10 is rejected.<BR>
&nbsp;<BR>
But I am able to access the change document number though the FM interface.<BR>
&nbsp;<BR>
Even If I&nbsp; construct a new BO VBAP with the key resolved from CDPOS, when more than one SO items are changed under one cHANGNR, how should I take care of this.<BR>
&nbsp;<BR>
&nbsp;<BR>
I essence how should a trigger SO item related WF, with change docuemnt VERKBELEG..<BR>
&nbsp;<BR>
I have succesfully triggered other WFs for SO Item using "Customer Status profile" with txn BSVW..but here I am unable to use that functionality.<BR>
&nbsp;<BR>
Your thoughts are very well appreciated.<BR>
&nbsp;<BR>
Thanks<BR>
Ramanan<BR>
</RTE_TEXT><BR><br /><hr />Windows Live™: Keep your life in sync.  <a href='http://windowslive.com/explore?ocid=TXT_TAGLM_WL_t1_allup_explore_022009' target='_new'>Check it out.</a></body>
</html>