Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Load Documentation to Data elements

Former Member
0 Likes
376

Hi,

I'm looking for a smart standard solution (BAPI?) to load documentation in DDIC to data elements.

The data which should be loaded is provided by an excel-file .

How knows a standard report or a BAPI/function module ?

Thx in advance

Peter

2 REPLIES 2
Read only

Former Member
0 Likes
331

I think a BDC can be done on transaction SE61 with appropriate input......Unfortunately, I can't check the feasibility as I don't have authorization for the transaction as of now........

Got a FM for this.......Chcek the code below...


DATA: i_lines  TYPE TABLE OF tline,
      wa_lines TYPE tline.

* Create Documentation
wa_lines-tdformat = '*'.
wa_lines-tdline   = 'TEST'.

DO 50 TIMES.
  APPEND wa_lines TO i_lines.
ENDDO.

* Create Document
CALL FUNCTION 'DOCU_UPD'
  EXPORTING
    id       = 'DE'            "For Data Element
    langu    = sy-langu
    object   = 'YA038539TEST5' "Data Element Name
  TABLES
    line     = i_lines
  EXCEPTIONS
    ret_code = 1
    OTHERS   = 2.

IF sy-subrc EQ 0.
  WRITE 'Documentation Update Successful'.
ENDIF.

Edited by: Satyajit on Dec 21, 2010 5:07 PM

Read only

Former Member
0 Likes
331

Follow the steps to do it

"1. Save excel file to a text file.
"2. Goto SE11 and display the data element
"3. Menupath GoTo -> Documenation -> Change
"4. Now you see the documenation. Select Menupath Document -> Upload -> ASCII
"5. Provide the saved file location.

OR

"1. Goto SE11 and display the data element
"2. Menupath GoTo -> Documenation -> Change
"3. Now goto Menupath 'GoTo -> Change Editor'. Do it till you see an editor like MS word
"4. Now enter the excel file data

Edited by: Priyanka Chowdry on Dec 21, 2010 6:04 PM