09-28-2011 3:57 PM
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
09-28-2011 4:05 PM
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
09-28-2011 4:28 PM
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
09-28-2011 4:33 PM
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
09-28-2011 4:38 PM
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.
09-28-2011 5:06 PM
Can you post the code where you transfer the data for the partner?
Max
09-29-2011 12:35 PM
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
09-30-2011 1:49 PM