I am going to show, how we can add documentation in Custom program.
I have searched in SCN network too many times, to achieve this functionality but not get any clue, so i have decided once i will achieve this functionality in my program. I will write regarding this functionality, I know this is very small thing however i have spoiled one day for this.
1. Need Developer rights
2. Require a custom Program
To Add Document in SAP use Transaction Code SO72
Select the document class: 'Chapter of a structure in WinWord format'.
Language : According to your requirement
Document Class 'WORD'
Document Name : According to your requirement
Click on create and insert/ paste your document.
After inserting Save it and assign to transport request.
Now go to SE38
Enter your custom program name:
in change mode insert the below command:
AS <DS:WORD.ZFI043(Prgram Name)>Click here for Documentation(Free Text)</>