With a sorted table, it is not possible to use statement APPEND to add line in a table.
APPEND will resquest to add the line at the end, which will perturbate the sort of table.
Use statement INSERT, which will automatically manage in which index will be inserted the line.
Use this code:
DATA : li_table TYPE SORTED TABLE OF ts_structure WITH NON-UNIQUE KEY key_field,
ls_table TYPE ts_structure.
INSERT ls_table INTO TABLE li_table.
Search tag: table triée, insérer
Use FM GET_SERNOS_OF_DOCUMENT.
Search tag: n°, numéro de série
You can use FM SXPG_COMMAND_EXECUTE.
Use transaction SM69 to configure the command name.
It is stored into table DEVACCESS.
Search tag: dev access, clé de dev
Program: /SDF/CMO_TR_CHECK
/!\ It is delivered in updates of ST-PI component. You can run this program in the normal system or from SAP solution manager.
Search tag: TR, OT, transport order, transport request
Just after your authorization error, launch transaction SU53.
This is a basic example to sent mail using BCS class.
Read More