cancel
Showing results for 
Search instead for 
Did you mean: 

district/county on address of the partner on order

Former Member
0 Kudos

Hi All,

I want to populate district filed based upon postal code because whileorder is getting replicated to r/3. its erroring out tax jusrisdiction eroor.

to avoid this, i want to populate district.

and for this i think address_check badi will work out.

is any one worked on this before. if so what are the prequistes to implement this badi.

Thanks,

Saaru

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Thomas wagner for your reply,

you tested teh street with break point.

what iam looking is where in system, teh data is being picked. what are the prerequisites that have to be to configured/activated.

for county/dstrict, the filed is city2.

Thanks,

Saaru

Former Member
0 Kudos

Hello Saaru,

I don't know what is exactly your question.

Do you want to know how to implement the BADI? Do it like this:

- SE19

- Create implementation for classic BADI address_check.

- Enter implementation name

- Enter implementation short text

- Properties, Defined Filters, Insert Row

- Select your country

- Activate

- Tab interface

- Double click on ADDRESS_POSTAL_CHECK

- Add your logic to fill CH_ADRC_STRUC-CITY2.

- Activate the method.

That's it.

If you need additional data for the logic please tell me which. If you need data which is not available at that time then try to use another BADI like for BP-save (I don't know the technical name at the moment).

All this is very easy.

Best regards,

Thomas

Former Member
0 Kudos

Hello,

I have just tested this BADI in our test system:

I have created an implementation for this BADI (SE18 or SE19).

In the implementation I have added a filter for country = US.

In the coding of IF_EX_ADDRESS_CHECK~ADDRESS_POSTAL_CHECK I have added a break-point and have defaulted the street to "test" (just for testing reasons).

Then I have created a new company in transaction BP in the US, the break-point was reached, street was defaulted and everything is fine.

I don't know which field you need for the district. I have seen region and city2, for example. On other occasions I have seen a specific field county, but I can't find it in the changing structure CH_ADRC_STRUC.

Please ward points if helpful.

Best regards,

Thomas Wagner