2012 Aug 31 1:18 PM
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.
2012 Sep 05 12:19 PM
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
2012 Sep 05 12:19 PM
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
2014 Jun 16 12:16 PM
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