I would like to call my customized program in the Journal entry(fb50).
My program is:
REPORT ZFILETEST.
CALL FUNCTION 'ARCHIVFILE_CLIENT_TO_SERVER'
EXPORTING
path = 'D:\HP R2R\Setup\Java_SAP_Integration.pdf'
TARGETPATH = 'E:\usr\sap\OF1\tmp\Java_SAP_Integration.pdf'
EXCEPTIONS
ERROR_FILE = 1
OTHERS = 2
.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
I developed a program that could upload the pdf file in the application server path.Once file has been uploaded in the server that needs to be linked/associated with newly creating Journal voucher(SAP doc id) of the tranactions in the Financial accounting group.
I want to associate the customized program to the FB50(as similiar to the attachments given)