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

VBEP Database Table Updation.

Former Member
0 Likes
3,100

Hi All

I have written an enhancement to determine schedule lines.

Same material on multiple lines.

Example: Material 'A' is ordered in 2 items

posnr Order Qty

10 20

20 30

ATP qty in supplying plant 25

Enhancement will confirm item 10-> Qty 20 is available

item 20-> Qty 5 will be confirmed

-> Qty 25 will be given next working date.

Before saving the sales order schedule lines are determined correctly after saving system is confirming both line items and redetermining the schedule lines.

I iam manipulating XVBEP table.

while saving the sales order iam debugging the system by update debugging and also checked the update tasks.

In include LV45UF0V at line 269 VBEP table is updated with the my enhancement values.

However here commit work is not there to update the table.Some where it is calling.

My issues is, upto end of the transaction VA01 XVEBP is retaining the enhancement values wonder from which table VBEP is updating.

Please help me to solve this issue.For any clarification plz reply.

Thank You.

13 REPLIES 13
Read only

former_member404244
Active Contributor
0 Likes
2,498

Hi,

Check for other enhancement point and one more option is to go for userexit incllude(MV45AFZZ), there in the subroutines you can find VBEP userexit or you can use "SAVE_DOCUMENT".This needs an access key , not sure if you people are going for userexit with access key.

Regards,

Nagaraj

Read only

0 Likes
2,498

Hi Nagaraj

Thanks for reply.Just now i have tried with an enhancement point to add the code few varaibles are not having references in include MV45AFZZ->userexit_Save_document.

Any inputs.

Thank you.

Read only

0 Likes
2,498

Hi,

is XVBEP structure is not visible there? please check one more userexit (move field to VBEP) and see..

Regards,

Nagaraj

Read only

0 Likes
2,498

Hi Nagaraj

XVBEP values are visible at this place.As i said earlier after saving XVBEP is having enhancement values.

However VBEP table is not updating by XVBEP table.

Thank you.

Read only

0 Likes
2,498

Did you update field XVBEP-UPDKZ = 'U'.

Read only

0 Likes
2,498

I am creating the sales order so it will be 'I'.

Read only

0 Likes
2,498

Hi,

Did you check the userexit_move_field_vbep (something l;ike this in MV45AFZZ) include.. also i hope you have modified the XVBEP structre after you pass the values.

Regards,

Nagaraj

Read only

0 Likes
2,498

Hi

I have checked the exit and iam modifying the MVERF_POS (type AV03V) from this standard code is filling XVBEP.

I am not at all changing XVBEP.

Thank You.

Read only

0 Likes
2,498

Hi,

Can you please paste your code here.

Regards,

Nagaraj

Read only

Former Member
0 Likes
2,498

Sounds spectacularly dangerous to me....good way to have confirmed VBEP rows in 50 different orders for the same 25 pieces that are on the shelf....How do you know other orders haven't had ATP scheduled based on the 25 you have? If you're doing this why the heck is the installation using ATP? Customers will soon hate your organization, I'll bet.

Read only

0 Likes
2,498

I am taking care that one sales order is created at a time.This is a client requirement and Its just a trial and error.

Read only

0 Likes
2,498

Okay...one order at a time...today i create order 1 for 50 and I have 25 on the shelf.....later today, I create an order 2 for 100 of the same material....I then screw up VBEP, by abandoning ATP logic and by determing that order 2 can also deliver the 25 that I have on the shelf?

Or, did you mean that you wouldn't accept order 2 until order 1 had been completely delivered?

Read only

0 Likes
2,498

I am not changing the ATP qty, using for the calculation and determining schedule lines.

Its a trail and error only.Any how my problem is solved.

I have find out where schedule lines are redetermined after saving.

Thank You.