Skip to Content

ERROR AM054: Specify either person number or person handle

Hi! I'm trying update user's emails of USR21 table but I have error AM054: Specify either person number or person handle when

CALL FUNCTION 'ADDR_PERS_COMP_COMM_GET' 
    EXPORTING 
       address_number = gw_usr21-addrnumber 
       person_number = gw_usr21-persnumber 
       table_type = 'ADSMTP' 
    TABLES 
       comm_table = lt_smtp.

Does anybody know what's the problem? Thanks

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • May 11 at 10:12 AM

    Check whether you need to carry out code changes as recommended in OSS note 1085355

    Add comment
    10|10000 characters needed characters exceeded

    • Thanks for your help. Finally, I solved the problem adding parameters returncode and error table, like this:

      CALL FUNCTION 'ADDR_PERS_COMP_COMM_GET' 
      EXPORTING
          address_number = gw_usr21-addrnumber
          person_number = gw_usr21-persnumber
          table_type ='ADSMTP'
      IMPORTING
          returncode= lv_returncode
      TABLES
          comm_table = lt_smtp
          error_table = lt_error
      EXCEPTIONS
          parameter_error =1
          address_not_exist =2
          person_not_exist =3
          internal_error =4
          contact_person_blocked =5
          others=6.