Dear Members,
I am using the following code snippets to attaching the file in the parked journal entry.
Tcode:FB02
Document number:0100000013
Company code:0001
Fiscal period:2011
REPORT ZZZZZZZZ1.
DATA:
ls_object_identity TYPE borident,
lo_gos TYPE REF TO cl_gos_document_service.
ls_object_identity-objkey = '010000001300012011'.
ls_object_identity-objtype = 'BKPF'.
CREATE OBJECT lo_gos.
CALL METHOD lo_gos->create_attachment
EXPORTING
is_object = ls_object_identity
IMPORTING
ep_attachment = ls_object_identity-objkey.
COMMIT WORK.
My Program is running without any error and showing the message as "Document created" but when i am opening the journal entry using tcode as
fb02, i didnt find any attachments to the document no "0100000013".Please help me on urgent basis