on 05-07-2018 8:54 AM
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
Check whether you need to carry out code changes as recommended in OSS note 1085355
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
User | Count |
---|---|
105 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.