Hello Experts,
I'm implementing MDGC 7 in a demo system. I am using this guide: http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/60f0cc68-5884-2e10-b8a9-a71ba25ad1ad?QuickLink=index&…
but I would like to direct my workflow based on the account group specified in the CR (I'm using customer like UI). I've copied the sample badi implementation of BADI "USMD_SSW_RULE_CONTEXT_PREPARE" that was designed for MDG material, I changed the constants to fit to my requirements, but my badi is not working. I've checked the code and the method "READ_ACCOUNT_GROUP" that I have created by copying the code (and replacing the constants) of READ_MATERIAL standard method (this method was created to retrieve material number from the CR). The problem is that this method cannot retrieve the account group (field KTOKD) value from my CR. (I couldn't really find out what is the exact reason of the error in the code, the code is quite complex and I'm not really good in object oriented ABAP...)
So my question would be the following: is there any sample methods that I can use for MDGC to retrieve certain data from my CR (preferably account group value)? I have an idea how could I solve that by simply writing a few lines of codes that directly selects from my staging area table, but I would much better like to use some standard SAP code as a template (which I can also use during a client implementation or which could be compliant in case of system upgrades.)
Thank you in advance,
Tamas