Skip to Content
author's profile photo Former Member
Former Member

Extract data into a document attached to a characteristic value ?

Hi experts,

Could you help me to extract data from tables in my BI system and to put theses data into a document and linked it to a value of a characteristic ?

I would like to 'autodocument' my BI system, so I have created an infoobject 'ABAP Routine' and I would attached to each value of this infoobject a document including the complete ABAP code.

I have found this How to : https://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/8046aa90-0201-0010-5e99-962948c83331&overridelayout=true

Here is my code, I have no error message but in rsa1 I don't see any document for this value of characteristic.

DATA:
     characteristic TYPE  rschanm,
     cha_value TYPE rschavl,
     doc_name TYPE skwf_urlp,
     overwrite TYPE rsod_overwrite_mode,
     doc_info TYPE rsod_s_content_info,
     l_t_data_tab_asc TYPE sdokcntascs,
     l_t_return TYPE bapiret2.

characteristic = '/BIC/XTCRIDTP'.
cha_value = '3Y75K13IBGPRUP8RTOV9RLZ40'.
doc_name = 'Routine_3XUHH6WO'.
overwrite = '1'.
APPEND 'toto blablabla' TO l_t_data_tab_asc.

doc_info-mimetype = 'text/plain'.
doc_info-file_size = 10000.

CALL FUNCTION 'RSOD_DOC_MAST_CHANGE'
  EXPORTING
    i_chanm                       = characteristic
    i_chavl                       = cha_value
*   I_DOC_TYPE                    =
    i_description                 = 'Routine Code'
    i_name                        = doc_name
    i_langu                       = sy-langu
    i_overwrite_mode              = overwrite
    i_with_content                = 'X'
    i_s_content_info              = doc_info
*   I_WITH_URL                    =
*   I_URL                         =
*   I_COPY_URL_CONTENT            =
 IMPORTING
*   E_NAME                        =
    e_s_return                    = l_t_return
 TABLES
    i_t_file_content_ascii        = l_t_data_tab_asc
*   I_T_FILE_CONTENT_BINARY       =
          .

BREAK-POINT.
WRITE l_t_return-message.

Many thanks for your help

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Sep 04, 2009 at 12:32 PM

    Thanks to help me !

    Regards

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.