Question:
it may not be a bug but a "feature".
better open an OSS message and ask them to investigate.
_________________
SapFans Moderator
NetWeaver ‘04–SAP Web AS for ORACLE certified
Search: /forums/search.php
SAP Notes: http://service.sap.com/notes
SAP Help: http://help.sap.com
Basic Rules: /forums/viewtopic.php?t=222759
Answer:
Message sent. I will keep you posted.
Thanks
Answer:
When the badi is invoked, does it normally require user intervention?
Answer:
Hi,
Here what we can read in the documentation of this badi:
The methods: SUGGEST_ITEM_DATA and SUGGEST_STANDARD_SALES_PRICE are called if new items are included in a promotion in transactions WAK1, WAK2 or WAK12, or if a promotion is created with reference to a reference promotion. The method, SUGGEST_STANDARD_SALES_PRICE, is also called in the BAPI methods, Promotion.CreateFromData and Promotion.Change. It is also called if the user allows the system to determine the standard sales price again.
SSII
Answer:
I know my OOP course was long ago but not that much!!!
SAP replied to me that I have to call the BADI first and then call the BAPI
This is weird.
This could have been possible(but far fetched) if the method had been static. Then you don't need an object to call it. But anyway I wonder how the bapi could even access that information unless it would have been in the same memory space(like when you call two consecutive functions of the same function group and F2 can see a variable modified by F1 since they share the same globals), but this is not even the case!!!
But it is not a static method, it is an instance one. So I create an objet, call the badi and then what? If I call the BADI, there is not even a parameter to pass in my previously created objet.
This does not make sense at all.
So I don't know if it's me that smoke good stuff or them, but one of us definitively did!!!
Somebody can tell me if they make sense or not?
Thanks.