‎2011 Aug 24 9:22 AM
Hello Everybody,
I currently have a customer that wants a modification made to sales items involving requirement categories (VBAP-J_4KRCAT). The original idea was to change the customer indicator at schedule level in VBEP, however each item for a sales order in VBAP has to have the same requirement category, and if it's changed otherwise an existing user-exit changes it back to match the category in VBAP.
There are were some other bapi's I saw avaliable however they also only modify the VBEP table, and I need to make the change in VBAP. Manually updating the SQL table is an option, but I'd rather avoid that one if possible since. Does anybody know of any other possible options?
Thank you for your time.
‎2011 Aug 24 9:37 AM
Hi
BAPI_SALESORDER_CHANGE or (perhaps your system is AFS) /AFS/BAPI_SALESORD_CHANGE iare not good for you?
They can change item data
Max
‎2011 Aug 24 9:40 AM
Hi Max,
Sadly no, I've already tried with this bapi. The problem is the information needs to be changed on the sales document level, not the item level.
EDIT: Sorry I've made a bit of a mistake in my original message. The information has to be changed on VBAP level, which is also the item level. That function module changes VBEP. The values in VBEP are taken from VBAP so it has to stay that way.
Edited by: Bryan Abrams on Aug 24, 2011 10:41 AM
‎2011 Aug 24 9:46 AM
Hi
U can use the EXTENSIONIN to change a field not supported in the standard inteface of the BAPI
Max
‎2011 Aug 24 10:04 AM
Hi Max,
The field is already supported, that isn't the problem. There is a userexit created inside VA02 that makes all the requirement categories in VBEP the same as the related sales document in VBAP.
‎2011 Aug 24 10:10 AM
‎2011 Aug 24 10:21 AM
I need to make a modification to VBAP-J_4KRCAT without using an update statement if possible. The BAPI that you supplied only allows me to make that modification in VBEP.
‎2011 Aug 24 10:26 AM
Sorry, but Max is right
The bapi is correct, you have table ORDER_ITEM_IN that change ITEM information
On which release are you working?
In my ECC 6.0 i cannot find VBAP-J_4KRCAT field
‎2011 Aug 24 10:35 AM
Hi Simone (Do you remember me?)
VBAP-J_4KRCAT is an extra-field for AFS, I suppose your system doesn't have it
Now I can't understand if the BAPI is not good because of the user-exit or something else
Max