Application Development 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: 

How to avoid XVBPA line item values while creating sales order

former_member1050074
Participant
0 Kudos

Hi Friends

I am creating Sales order using function module IDOC_INPUT_ORDERS, for that I am passing partner details through segment E1EDKA1.If I pass the same partner details(Partner number, name1,name4,city,postel code) which is same like customer master,

I can able to book the order and entries are coming only one time in VBPA table(Header Item level).But if I change any value for the particular partner in the Input(For example Name4, there is no value in customer master but I added through program).Now its creating an order but its showing the entered partner informations in header level.When I checked the same in line item level, its not picking the values from header, its picking the values from customer master for that particular partner.

So this line item also coming in VBPA table, because its different from header data.

Anyone guide me, how to avoid this problem while booking order through program.

Thanks

Gowrishankar

7 REPLIES 7

Former Member
0 Kudos

Hi

If a partner is also transfered to item level it means there's a different data between header and item, so try to repeat the modification for every item, because I suppose you're changing some data for a partner loaded automatically by the system.

Max

0 Kudos

Yes Max.I am passing data to particular partner in header level but for the same partner its picking the Line item values from

customer master.So both header and line item having different values, so its coming in VBPA table.

Thanks

Gowrishankar

0 Kudos

Try to check which address number you can see in VBPA table

If you change an address data, the system should generate a new address for that partner and for that document only

Max

0 Kudos

Yes Max, for header its generating new address and line item its picking the same address which is available in customer master.

But if both the values are different I have a problem while creating delivery.

0 Kudos

Can you post the code where you transfer the data for the partner?

Max

0 Kudos

I am updating Ship-To-Party value in segment E1EDKA1 and calling IDOC_INPUT_ORDERS function module to create the sales order.

In this case for the particular partner there is no NAME4 value in KNA1, I am passing some value through this segment E1EDKA1.

So its creating an order with this new addresses , so its generating new ADRNR in VBPA header level.Thats fine.But the same time

its not copying the same value from header to line item.

In Line item level again its picking the address details from KNA1 for the particular partner number.So its showing Blank value in NAME4 field of line items.Its creating and spllitting issue, while creating delivery.

Thanks

Gowrishankar

0 Kudos

Any clue friends?