Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Modify VBAP

Former Member
0 Likes
1,833

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.

8 REPLIES 8
Read only

Former Member
0 Likes
1,558

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

Read only

0 Likes
1,558

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

Read only

0 Likes
1,558

Hi

U can use the EXTENSIONIN to change a field not supported in the standard inteface of the BAPI

Max

Read only

0 Likes
1,558

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.

Read only

0 Likes
1,558

So

which is your problem?

Max

Read only

0 Likes
1,558

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.

Read only

0 Likes
1,558

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

Read only

0 Likes
1,558

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