My requirement is read text files from content repository in sap abap.I used SCMS_DOC_READ
FM to read image file and creating url DP_CREATE_URL
for creating image url but SCMS_DOC_READ
not working for text.
Can any one suggest some code, FM or class .
There are two options based on your requirement:
Option 1: Use READ DATASET to read file.
Option 2: Use Class CL_ABAP_CONV_IN_CE to read file.
Refer this tutorial page to get more information on this class.
You can easily find the answer there: http://scn.sap.com/thread/525075
If you want the short answer, you should use this(Note: I am not the author of this part):
Note : Internal table structure should be same as text File.