Hi experts!
I will archiving a smartform, in archiv T1. That works fine, but now i want to link this smartform with the BOR object BUS7030. Please have a look at my archiv-parameters and let me know, how i can solve it. BUS7030 would have a key with 55 characters. The field toa_dara-object_id is defined by char50. Now the document will be archived with the key 01P00005744, but not linked to the transaction pa20 infotype 0024.
Why is the key just char50? In TA ooad or in the class CL_GOS_ATTACHMENTS there is used a key with char70.
I hope i could explain my problem.
Thanks in advance,
Mario Ecker
key(2) = '01'. "TYPE SAEOBJID (char50)
key+2(2) = 'P '.
key+4(45) = sobid.
* key+49(2) = 'PD'.
* key+51(4) = '0000'.
ssfcompop-tdarmod = '2'.
ssfcompop-tddest = 'EDV2'.
toa_dara-no_dialog = abap_true.
toa_dara-sap_object = 'BUS7030'.
toa_dara-ar_object = 'ZHRQUAL'.
toa_dara-object_id = key.
toa_dara-formarchiv = 'T1'.
APPEND toa_dara TO tsfdara.
arc_param-sap_object = 'BUS7030'.
arc_param-ar_object = 'ZHRQUAL'.
arc_param-PRINTER = 'EDV2'.
arc_param-DOC_TYPE = 'PDF'.
arc_param-archiv_id = la_archive-formarchiv.