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

VA01/VA02 split items

Former Member
0 Likes
751

Dear friends,

On sales order creation/change I need to split the items in case some certain criterias are met (those criterias are not the subject of this topic).

The difficulty of this topic consist in the fact that when we are doing the split we have to ensure that also the pricing and the schedule lines are updated.

thanks and BR,

Cristian

PS: In case you suggest to use userexits like USEREXIT_MOVE_FIELD_TO_VBAP or USEREXIT_MOVE_FIELD_TO_VBEP please provide some additional info .. maybe some piece of code.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
629

Solution Found!

I have implemented in routine "fcode_bearbeiten" the enhancement point es_sapmv45a-fcode_bearbeiten_01

Following tables need to be updated: xvbap, ivbap, svbap, xvbep, ivbep1, ivbep, svbep

For pricing update  you need to call the subroutine:  perform preisfindung_gesamt(sapmv45a) using 'C'.

All the best!

Cristian

2 REPLIES 2
Read only

Former Member
0 Likes
630

Solution Found!

I have implemented in routine "fcode_bearbeiten" the enhancement point es_sapmv45a-fcode_bearbeiten_01

Following tables need to be updated: xvbap, ivbap, svbap, xvbep, ivbep1, ivbep, svbep

For pricing update  you need to call the subroutine:  perform preisfindung_gesamt(sapmv45a) using 'C'.

All the best!

Cristian

Read only

0 Likes
629

Hi Cristian,

I just checked your reply and it gave me an insight of all the tables to be updated. Thanks for that but I am struggling with a little more complex issue here. I need to split and play with line items at various places (where substitution happens, then in userexit_check_vbap, and then in move_field_to_vbap). At all the places line items could be split or deleted. So I need to be really sure of the considerations to be kept in mind while playing with these vulnerable creatures in Sales.

I could not find any help document first. I was just wondering if there would be any such doc at the first place.

Hope you could help me with your experience.

Thanks in advance!

Cheers,

Shreya