cancel
Showing results for 
Search instead for 
Did you mean: 

ERROR AM054: Specify either person number or person handle

0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Lakshmipathi
Active Contributor

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

0 Kudos

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.