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

When does VBPA-ADRNR gets updated?

Former Member
6,201

Hi All,

We have a case in which in the invoice output ,delivery address appearing is incorrect(for one customer only,rest all customers address display is correct).When checked we could find that address number appearing in VBPA table is wrong.that is why a incorrect address is displayed.

So I want to check why a wrong address number is updated in the VBPA table.

the document flow is,

PO-Delivery-Invoice.

where i will check for the updation of address number in vbpa??

any user-exits??

awaiting reply......

Hi All,

We have a case in which in the invoice output ,delivery address appearing is incorrect(for one customer only,rest all customers address display is correct).When checked we could find that address number appearing in VBPA table is wrong.that is why a incorrect address is displayed.

So I want to check why a wrong address number is updated in the VBPA table.

the document flow is,

PO-Delivery-Invoice.

where i will check for the updation of address number in vbpa??

any user-exits??

awaiting reply......

5 REPLIES 5
Read only

sjeevan
Active Contributor
3,297

In VBPA table check the field ADRDA if it is D for every other correct address and also if it is D for the wrong one also.

Read only

Former Member
0 Likes
3,297

Hi,

I checked it.

It is D for all cases.

Read only

sjeevan
Active Contributor
0 Likes
3,297

It could most probably master data problem. I suggest you to take a customer number which is working fine and the one which is giving you the problem, go to all the tables of customer master (KNA1, KNA2, ADRC etc) in SE16N and then compare the fields of both customers and see what's different.

Read only

andrea_olivieri
Contributor
3,297

Hi,

The field-VBPA ADRNR, contains the address instance of the sales documentu2019s partners.

Initially, when you generate a new document, the application gets the partneru2019s address data from the customer/vendor master data, so the instance number in VBPA corresponds to the instance number in KNA1/LFA1 .

When you change the partneru2019s address data in the sales document, the application creates a new instance number, and the value in the field VBPA-ADRNR changes while the VBPA-ADRNA (address change indicator) changes its value from 'D' (ADRC address from master data) to 'E' (ADRC Entered address manually in document).

The print program should always consider the address given in the document by detecting the field-VBPA ADRNR without taking care if the value is changed in this field

Regards,

Andrea

Read only

former_member193284
Active Participant
3,297

Hi Anju,

VBPA-ADRNR is updated when you change the partner address in the sales order transaction. These address details are not updated in customer master KNA1 table.

So logic to display partner address will purely rely on the functional requirement.

At times users change the address while creating sales order by double clicking on the partner number in VA02 and re assign a new address. this address will be picked up using VBPA-ADRNR field.

when you want to display customer address on the form pick up the customer number and take the address number from KNA1 table.

Hope this helps.