Skip to Content
0
Jun 21, 2018 at 08:56 AM

Refresh sales order line via ABAP code

313 Views Last edit Jun 23, 2018 at 12:52 PM 3 rev

Hi Experts,

We have a requirement to update the item category in sales order line item depending upon the parameters chosen for a VC material. We have found below suitable user exits to achieve this requirement and the item category is also getting updated at the sales order line level-

  • EXIT_SAPLCEI0_001 (include fields in structure VCSD_UPDATE)
  • EXIT_SAPFV45S_002 (process changed field values

The problem here is, only the item category field is getting updated but its related characteristics are not refreshing as per the item category configuration in VOV7. For example, Revenue recognition, pricing relevance etc are of the item category which was determined by the system earlier but not of the item category which was replaced by the ABAP code in the above user exits.

Question is, how can we refresh the sales order line in the above code so that all the characteristics of the new item category get refresh? It should be as good as we are changing the item category manually from front end in SO line and hit enter...this action redetermines all characteristics of the new item category.

Kindly assist.

Best regards,

Chetna