Skip to Content
avatar image
Former Member

In 'BAPI_USER_CHANGE' country is not updating

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Sep 02, 2008 at 05:53 AM

    What do you really want to change ?

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 02, 2008 at 06:02 AM

    Hi Swarup,

    Are u getting any messages in Return table(Success/Failure)?

    Probably u r passing wrong country code. Check this once.

    Thanks,

    Vinod.

    Add comment
    10|10000 characters needed characters exceeded

    • Hi,

      Are u passing Address number and person number. I think u have to pass these and COUNTRYISO field aswell.

      Also which transaction u r using to view the user details?

      Use BAPI BAPI_USER_GET_DETAIL for getting address and person numbers.

      Thanks,

      Vinod.

  • Sep 02, 2008 at 06:16 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

    Add comment
    10|10000 characters needed characters exceeded