on 09-02-2008 6:39 AM
Hi All,
I am using 'BAPI_USER_CHANGE' to change user data. Everything gets change accept country in Maintain telephone numbers. Following is my code
WA_ADDRESS-COUNTRY = 'ZW' .
WA_ADDRESS-TEL1_NUMBR = '8888'.
WA_ADDRESS-TEL1_EXT = '88' .
WA_ADDRESSX-COUNTRY = 'X' .
WA_ADDRESSX-TEL1_NUMBR = 'X'.
WA_ADDRESSX-TEL1_EXT= 'X'.
CALL FUNCTION 'BAPI_USER_CHANGE'
EXPORTING
USERNAME = W_USERNAME
ADDRESS = WA_ADDRESS
ADDRESSX = WA_ADDRESSX
TABLES
RETURN = IT_RETURN[]
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = '2'
Edited by: Swarup basagare on Sep 2, 2008 7:42 AM
Swarup,
In ADDRESS table you need to pass some more parameter like
PERS_NO
ADDR_NO
FIRSTNAME
LASTNAME
along with country.
more over You can use the function module BAPI_COMPANY_CLONE
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Swarup,
Are u getting any messages in Return table(Success/Failure)?
Probably u r passing wrong country code. Check this once.
Thanks,
Vinod.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What do you really want to change ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Use WA_ADDRESS-NAMCOUNTRY instead of WA_ADDRESS-COUNTRY as there are no COUNTRY field in structure ADDRESS.
and it should be like this :
WA_ADDRESS-NAMCOUNTRY = 'ZW' .
WA_ADDRESS-TEL1_NUMBR = '8888'.
WA_ADDRESS-TEL1_EXT = '88' .
WA_ADDRESSX-NAMCOUNTRY = 'X' .
WA_ADDRESSX-TEL1_NUMBR = 'X'.
WA_ADDRESSX-TEL1_EXT= 'X'.
User | Count |
---|---|
7 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.