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

Invoice split due to different partner data

Former Member
0 Likes
672

Hi,

Based on two sales orders, we would like to create one billing document. Here's the case:

Sales order 1 (and delivery 1) has customer number A as sold-to party and customer number C as bill-to party and payer

Sales order 2 (and delivery 2) has customer number B as sold-to party and customer number C as bill-to party and payer

Using the "Simulate" option in VF04 causes the system to propose two different billing documents, due to the following (info from the split analysis):

Split due to different partner data:

Customer Number 1

Address

Split due to different header data:

Sold-to party

We have attached a VOFM routine to the processing, in which we clear out the sold-to party:

clear: vbrk-kunag

This eliminates the "split due to different header data", but how do we clear out the fields "Customer Number 1" and "Address"? I have tried the following code in the same VOFM routine, but with no luck:

clear: vbpa-kunnr

-> How can we clear out the customer number and the address to eliminate the split?

All helpful answers will be rewarded.

Best Regards,

MV

3 REPLIES 3
Read only

Jelena_Perfiljeva
Active Contributor
0 Likes
481

OMG! This is crazy - I don't think you're supposed to do this... It will mess up the standard functionality - reports, index tables, etc.

Tell your SD consultant to configure partners differently, so that Sold-to is the same but Ship-to or something else is different. Or, in the worst case, you can always create a custom program and Smartform to print several invoices together, if your customers require.

Read only

Former Member
0 Likes
481

Have you solved your problems?

Read only

Former Member
0 Likes
481

Hi Mari Virik,

Even I need the same functionality.Could you please let us know the solution if you have achieved in the Partner data.

Thanks