cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to Comment Source Code in WWI template

akash_agrawal5
Explorer
0 Likes
876

Hi All,

Need help on WWI template. Like in ABAP, to comment on a line, * (asterisk) can be inserted to comment the whole line, similarly is there a way to comment a line of code in WWI template. I want to comment a piece of code for now in a REACH template and make that code active later.

Any input will be appreciated.

Thanks,

Akash 

Accepted Solutions (1)

Accepted Solutions (1)

christoph_bergemann
Active Contributor
0 Likes

Dear Akash

two suggestions:

1.) you can use "nested" templates (include option); therefore you could prepare the "comment" part in one include but not add it in the main WWI layout; afterwards you need only to insert the "include" to the WWi layout (not a "real" comment) but a "workaround". The include option is very useful; but please check SAP marektplace; some "pitfalls" etc. are known

2.) You can use hidden texts; but I believe it is not allowed to use hidden text in combination with e.g. main repeating group etc.

The issues is; you need to avoid that the report symbols you would like to use act as "real" symbols

Regarding option 2.) please be aware of the fact that the "hidden" part will always be part of the raw or final report

Regarding option 1.) only if you create the "inlcude" reference to the other layout the data would be retrieved

I believe option 1 could solve your demand.

C.B.

akash_agrawal5
Explorer
0 Likes

Hi Christoph,

Thanks for your valuable ideas. Infact I did consider both options. it seems that in WWI, commenting of code similar to what we do in programming languages is not possible.

  

As you rightly pointed out regarding option 2, hidden text is always part of output which at this stage I want to avoid. Option 1 looks good and can be utilized. I finally decided creating the technical objects and incorporating them in the template instead of commenting the code.

Thanks mate.

Regards,

Akash   

christian_hund
Product and Topic Expert
Product and Topic Expert
0 Likes

we are discussing commenting ...

so you could use Word comments, they won't be visible in a printed document anymore.

christoph_bergemann
Active Contributor
0 Likes

Dear Christian

any idea in which WWI version commenting might be possible ? do we need e.g. two further "SP" version?

C.B.

christian_hund
Product and Topic Expert
Product and Topic Expert
0 Likes

WWI doesn't support commenting itself.

It was just an idea to use Word comments to move WWI code from the visible part of the document to an unvisible part, but still keep it in the document.

I did a test and it works. OK, you need to be very careful to place the comment correctly (around a invisible space) to not damage other WWI symbols.

Former Member
0 Likes

HI Christian Hund..!

Thanks for your valuable input. I tried including "comment" and it is working fine. First time when i checked document after adding comment, i got ABAP dump. Then logged in again, it was fine. I was able to preview from cg42 transaction...!

Some time WWI works in a strange way. It doesn't pick the right graphic in preview after you make changes in the specification. But once logged off & logged again, the changes reflects..

But when you make changes in phrases texts (which u assign in specification), the change reflects in the preview. in that case no need to log off & log in again to reflect the change...

Thanks & Regards

Subash Sankar

christian_hund
Product and Topic Expert
Product and Topic Expert
0 Likes

Thanks for your feedback. Happy to hear that the comments work OK for you.

Concerning the graphics ... if this is a reproducable bug for you, just open a support ticket.

Answers (0)