Skip to Content
avatar image
Former Member

How can I save a flat file generated from SAP ABAP on SAP BPC 10?

Hi!

I have a program in SAP ABAP, the program creates a flat file on the same server but when i wants search the file on EPM, I can't find the folder host.

When I search the host that I view in the tx AL11 (\ROOT\WEBFOLDERS\DATAMANAGER\DATAFILES\) I can not find this host in the Server Aplication.

How can I save this file on Server Aplication and view this file on the EPM of SAP BPC 10?

I have a host on Server Aplication: /root/interfaces/folder

And SAP BPC have on Host to file: /root/webfolders/datamanager/datafiles/

thanks experts!

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Jul 03, 2017 at 10:05 PM

    Use the method cl_ujf_file_service_mgr->put_document_data_mgr

    DATA:   ls_user TYPE uj0_s_user,
     ls_appset TYPE ujf_doc-appset,
     lv_docname TYPE ujf_doc-docname,
            gcl_objeto TYPE REF TO cl_ujf_file_service_mgr,
    
    lv_docname = '\ROOT\WEBFOLDERS\APPSET_NAME\DIMENSION_NAME\DATAMANAGER\DATAFILES\FLATFILE'.
    lv_append = 'X'.
    ls_user-user_id = sy-uname.
    ls_appset = 'APPSET_NAME'.
    
    cl_ujf_file_service_mgr=>factory(
     EXPORTING
     is_user = ls_user
     i_appset = ls_appset
     RECEIVING
     r_manager = gcl_objeto ).
    
    CALL METHOD gcl_objeto->put_document_data_mgr
     EXPORTING
     i_docname = lv_docname
     i_append = lv_append
     i_doc_content = lt_dm_rec.
    Add comment
    10|10000 characters needed characters exceeded