Thank you for the response.
Here is my exact scenario:
The external number for the vendor has certain format and will hold the Company code number (Last 3 digits in vendor number). Based on the 3 digits, the address details must be fetched from T001, ADRC tables and defaulted on the UI. We have validation to avoid duplicate scenarios. Additionally user will/can change the address on the Supplier UI and we have address cleansing and duplicate check enabled on address with DQM.
I have already started implementing the approach and I can default the address if the user fill the country in the UI manually first and then provide the vendor number. But the issue is with defaulting the Address information on the Supplier UI, if the user did not fill any address field in UI.
Reason:
Address has it own ID and has 2 key fields (BP_HEADER and ADDRNO). These numbers are auto generated. BP_HEADER is always generated once we launch the UI. ADDRNO will be only generated, if one of the fields in address has value. Otherwise no ADDRNO is generated. Without the ADDRNO, I could not set the address details on the Address entity in MDG.
Below are the alternate options I wanted to try.
1. Default the country on launch of the UI (Again, I do not have the ADDRNO to set the country)
2. Generate the ADDRNO number on the fly and set it to Address Entity ( I do not know if this is possible on the Supplier Framework )
3. Any other alternate options to overcome this scenario?