BUS2009 BANF missing item number
Niculae, Madalina
madalina.niculae at sap.com
Tue Dec 10 11:53:37 EST 2013
Hello Liz,
I am guessing that your issue here comes from the incomplete key of the change document BANF.
The OBJECTID field of CDHDR is holding the reference to the PR number but not the item .
When linking BANF to your BUS2009 in SWEC the system will by default take the OBJECTID and pass it over to the BUS key. In this case it will not find any value for the item and it will not fill it in .
You can define your own object key via a custom FM in transaction SWED. The custom FM has a standard interface as bellow.
*"----------------------------------------------------------------------
*"*"Lokale Schnittstelle:
*" IMPORTING
*" VALUE(CHANGEDOCUMENT_HEADER) LIKE CDHDR
*" STRUCTURE CDHDR
*" VALUE(OBJECTTYPE) LIKE SWOTOBJID-OBJTYPE
*" VALUE(OBJECTKEY) LIKE SWOTOBJID-OBJKEY
*" EXPORTING
*" VALUE(OBJECTKEY) LIKE SWOTOBJID-OBJKEY
*" TABLES
*" CHANGEDOCUMENT_POSITION STRUCTURE CDPOS
*" EXCEPTIONS
*" ERROR_OCCURRED
*"----------------------------------------------------------------------
I think from the CDPOS-TABKEY available in the FM interface you could take the item number and change your object key.
Hope this helps,
Madalina
From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf Of Halladay, Liz (Calgary)
Sent: 10 December 2013 18:14
To: ' (sap-wug at mit.edu)'
Subject: BUS2009 BANF missing item number
I am trying to start a custom workflow using an event I created ZBUS2009.blocked. I'm linked this event to the change document BANF using the object BUS2009 on change with field restriction eban-BLCKD. The event gets raised and a workflow starts. The issue is the item number on the requisition is not being passed to the event container. I've checked my bindings and I don't see any issues there.
I've also removed the workflow and just created the event on the change document. The event is getting raised, but only the purchase requisition number is in the object. The item number is not there.
Liz Halladay
************************************************************
IMPORTANT NOTICE: This message is intended for the individual or entity to which it is addressed and may contain information that is privileged, confidential, and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that copying, forwarding or other dissemination or distribution of this message is prohibited and that taking any action in reliance on the content of this message is to be avoided. Should you receive this e-mail in error, please notify the sender immediately via e-mail or call (403) 699-4000 and delete this message from your system. Thank you.
************************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20131210/d4759269/attachment-0001.htm
More information about the SAP-WUG
mailing list