how to read text files from content repository in sap abap -


my requirement read text files content repository in sap abap.i used scms_doc_read fm read image file , creating url dp_create_url creating image url scms_doc_read not working text.

can 1 suggest code, fm or class .

there 2 options based on requirement:

option 1: use read dataset read file.

data : fname(60) type c value 'myfile.txt',        text2(5) type c.         open dataset fname input in text mode.         do.         read dataset fname text2 length leng.         write: / sy-subrc, text2.          if sy-subrc <> 0.              exit.          endif.       enddo.       close dataset fname. 

option 2: use class cl_abap_conv_in_ce read file.

refer tutorial page more information on class.


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -