‎2010 Dec 21 10:03 AM
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
‎2010 Dec 21 10:11 AM
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
‎2010 Dec 21 12:32 PM
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 dataEdited by: Priyanka Chowdry on Dec 21, 2010 6:04 PM