MATERIAL event CHANGED - can I get old and new values

Sheth, Neeraja Neeraja.Sheth at fnc.fujitsu.com
Fri Sep 27 14:31:42 EDT 2002


I have applied 544517, and created event parameters as per the
documentation, but I am not able to get the old and new values. The object
is delegated. The event container contents are attached below. I have
defined attributes for subtype ZBUS1001 as database field attributes based
on MBEW-ZPLP1 and MBEW-PEINH. The event container elements are also
multi-line, and have the same name [PlannedPrice1] and [PriceUnit] and the
same data type reference as the attributes. When the event gets raised, the
values do not get written to the event container as shown below. I have
checked the same things over and over again for the last 2 days. What am I
missing? Any help is much appreciated.
 
If I execute transaction MM04, I can see the changes and the old & new
values, but when I do SE16 and look up CDPOS, I get a message saying "Field
VALUE_OLD is too wide to display (field will be truncated)", and the
explanation for this message says that the field is longer than 200
characters. ( If I change BISMT which is a character field, I get the same
message but I do see the values. )
 
I also looked at KOSTL as per Swami's suggestion, and tried with the
creation of element CHANGEDFIELDS in the container, but could not grab
values there either, though it recognizes that ZPLP1 and PEINH have changed.
 
 
Thanks
 
Neeraja
 
 
CD_CHANGENR                     000000010C0015211451
CD_OBJECTCLAS                   000000015CMATERIAL
CD_OBJECTID                     000000090CTA46002-2522
CHANGEDFIELDS                   000001255CMBEW
LPLPR
CHANGEDFIELDS                   000002255CMBEW
PEINH
CHANGEDFIELDS                   000003255CMBEW
STPRS
CHANGEDFIELDS                   000004255CMBEW
STPRV
CHANGEDFIELDS                   000005255CMBEW
VERPR
CHANGEDFIELDS                   000006255CMBEW
ZPLP1
PLANNEDPRICE1                   000001255C
PLANNEDPRICE1                   000002255C
PRICEUNIT                       000001255C
PRICEUNIT                       000002255C
_EVT_CREATION_DATE              000000008D20020927
_EVT_CREATION_TIME              000000006T131535
_EVT_CREATOR                    000000014CUSNSHETH
_EVT_ID                         000000020N00000000000003089524
_EVT_LANGUAGE                   000000001CE
_EVT_LOG_UPDATE                 000000001CX
_EVT_NAME                       000000032CPLANNEDPRICECHANGED
_EVT_OBJECT                     000000090oD01CLNT300BUS1001   TA46002-2522
_EVT_OBJKEY                     000000070CTA46002-2522
_EVT_OBJTYPE                    000000010CBUS1001
_EVT_RECEIVER_ID                000000090C
 
 
 
 -----Original Message-----
From:   Dart, Jocelyn [mailto:jocelyn.dart at sap.com]
Sent:   Tuesday, September 24, 2002 11:40 PM
To:     SAP-WUG at MITVMA.MIT.EDU
Subject:        Re: MATERIAL event CHANGED - can I get old and new values
 
Hi Neeraja,
There is a standard technique for capturing old/new change document values
as event parameters. You can find it in the workflow "reference" section of
the SAP library - the section is called "Creation of Additional Event
Parameters
With Event Creation".
 
Make sure you have implemented OSS note 544517 first.
 
Regards,
        Jocelyn Dart
Consultant (SRM, EBP, Workflow)
and co-author of the book
"Practical Workflow for SAP"
SAP Australia
email: jocelyn.dart at sap.com
phone: +61 412 390 267
fax:   +61 2 9935 4880
 
 
 
 
-----Original Message-----
From: Sheth, Neeraja [mailto:Neeraja.Sheth at fnc.fujitsu.com]
Sent: Wednesday, 25 September 2002 8:05 AM
To: SAP-WUG at MITVMA.MIT.EDU
Subject: MATERIAL event CHANGED - can I get old and new values
 
 
I have designed a workflow to be triggered when the planned price on a
material changes by creating an event BUS1001.PlannedPriceChanged with a
field restriction of MBEW-ZPLP1, using change object MATERIAL.
 
Is there a way to be able to display the old price and new price without
having to build some custom code to read change documents? Since the
condition in SWEC is actually comparing ZPLP1_VALUE_OLD and ZPLP1_VALUE_NEW,
I was wondering if I could trap those values.
 
Thanks in advance,
 
Neeraja
 


More information about the SAP-WUG mailing list