‎2006 Jun 28 1:00 PM
Hello friends,
I need to create the same sales orders for various countries. so in the shipping address, i need to know which fields are manadatory for address.
How can I find out which name and address fields(first name, title, postal code etc) are mandatory for different countries?
Thanks for your help.
‎2006 Jun 28 1:02 PM
u get adrnr(addres number) from vbPA .
from this addres number u get all details from table ADRC.
‎2006 Jun 28 1:02 PM
u get adrnr(addres number) from vbPA .
from this addres number u get all details from table ADRC.
‎2006 Jun 28 1:08 PM
Address Number is important.
Then U use FM 'SD_ADDRESS_GET'. u can get the adress. in this u have to pass the Language.
get the address number from VBPA for partner function 'WE'.
SELECT SINGLE * FROM VBPA WHERE VBELN = VBDKR-VBELN
AND PARVW = C_PARVW1. "WE
IF SY-SUBRC = 0.
V_KUNNR = VBPA-KUNNR.
Get the Consignee's Address
CALL FUNCTION 'SD_ADDRESS_GET'
EXPORTING
FIF_ADDRESS_NUMBER = VBPA-ADRNR "Address number
FIF_PERSONAL_NUMBER =
FIF_ADDRESS_TYPE =
IMPORTING
FES_ADDRESS = LVS_VBADR_CONSIGN
EXCEPTIONS
ADDRESS_NOT_FOUND = 1
ADDRESS_TYPE_NOT_EXISTS = 2
NO_PERSON_NUMBER = 3
OTHERS = 4.
- Selvapandian Arunachalam
‎2006 Jun 28 1:11 PM