Skip to Content
0

ERROR AM054: Specify either person number or person handle

May 07 at 07:54 AM

64

avatar image

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

G Lakshmipathi
May 11 at 10:12 AM
1

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

Show 1 Share
10 |10000 characters needed characters left 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.
0