Application Development 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: 

Upload of Sections in Word Document into SAP SE38 editor

Former Member
0 Kudos

Hi

I was wondering if we can build a ABAP tool which would read different sections within the 'Technical Specification Document' word document and

- Create ABAP program in SE38

- pull content from various sections of Word document under the respective event in SE38

e.g program could pick up the content written under section '1.1- Input Selection' and have it replicated in ABAP editor before 'Initialization' Event.....

To make this happen, i am currently struggling to read the content from Word Document. Would apprecaite if you can help /share some light on this subject.

thanks

3 REPLIES 3

MarcinPciak
Active Contributor
0 Kudos

First of all I am wondering who places all the code in techinical documenation. For me it should be just a summary of all things done in the program, so it actually should be created after the report is ready, not before.

Secondly generating the code from some input stream is highly risky. Word or other applications don't have syntax checker for ABAP, right? So how do you know this coding doesn't dump once loaded to the report.

Next, dynamic report generation is of course possible with at least two ways, one would be using [generate subroutine pool|http://help.sap.com/abapdocu_70/en/ABAPGENERATE_SHORTREF.htm] but it would require whole program to be self-written not just part of it. Another way with [READ REPORT|http://help.sap.com/abapdocu_70/en/ABAPREAD_REPORT_SHORTREF.htm] and then insert your part using [INSERT REPORT|http://help.sap.com/abapdocu_70/en/ABAPINSERT_REPORT_SHORTREF.htm] but this is also not a convenient way of changing the report unless you do this deliberately and totally aware of the consequences.

As for reading Word you can use OLE or [Desktop Office Integration|http://help.sap.com/saphelp_nw04/helpdata/en/e9/0be7b9408e11d1893b0000e8323c4f/frameset.htm]. For the latter you might look at package SOFFICEINTEGRATION .

To sum up, although technically possible there is no quarantee you will have the code proper in your document so inserting it in some program might be disaster in consequences.

Regards

Marcin

0 Kudos

Thanks Marcin for your prompt response. I agree partially on status of TS status. Nevertheless, we are working towards spending more concrete time on building a full blown TS so that during the realization its gets easier to develop. Well the intention wasn't to have perfect compiled code on 1st shot....bt imagine a sceanrio where you had handful of TS which you want to convert them to code in a shot......

well, coming back to point, i knew OLE would help, but couldn't find any blog wherein the details from word document are read into internal table for further manipulation. Would be great if anyone can help on this area....

0 Kudos

Resurfacing the mail on top