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

Split sales return document line items by price

Former Member
0 Likes
361

Hi,

I need to dynamically split line items in a sales return document based on certain conditions. The added line items would have the same material and details of the first line item but would be different only on return price.

I tried to add lines to xvbap in USEREXIT_MOVE_FIELD_TO_VBEP(in MV45AFZZ. Note that xvbap is not populated at userexit_move_field_to_vbap)but this approach does not produce the desired results. I have also tried it at userexit_save_document_prepare and at userexit_check_vbap but it's not possible to modify xvbap correctly in these exits.

Do you know of a way to handle this?

Regards,

Aravind

Hi,

I need to dynamically split line items in a sales return document based on certain conditions. The added line items would have the same material and details of the first line item but would be different only on return price.

I tried to add lines to xvbap in USEREXIT_MOVE_FIELD_TO_VBEP(in MV45AFZZ. Note that xvbap is not populated at userexit_move_field_to_vbap)but this approach does not produce the desired results. I have also tried it at userexit_save_document_prepare and at userexit_check_vbap but it's not possible to modify xvbap correctly in these exits.

Do you know of a way to handle this?

Regards,

Aravind

1 REPLY 1
Read only

Former Member
0 Likes
333

Hi Aravind ,

first thing is Clear and refresh XVBAP table and add ur own data , i think in this case XVBAP will take the new data.

Regards

Prabhu