on 06-09-2013 7:57 AM
Hi all,
Is there anyway to include table of contents in a WWI template, I tried the normal way but it is not updating the page numbers when the report is generated.
Looking for your export opinion.
Thanks
Praveen P
Hi Praveen,
Table of contents can be displayed using Parameter hierarchy using repeting group.
create repeating group as howin below.
Display each column as shown below
In generation Function module, for each record, fill CVDP table using below code. here we should mention hairarchy name.
w_ord = w_ord + 1. (For each record, this must be incremented)
wa_cvddp-object = 'name of the structure'.
wa_cvddp-attrib = 'Coulmn name'.
wa_cvddp-value = i_matnr-mnmatnr.
wa_cvddp-ord = w_ord.
wa_cvddp-showonlyflg = 'X'.
wa_cvddp-parhier = 'DISDOCU'.
wa_cvddp-parobj = 'WAWASTE'.
wa_cvddp-parobjkey = i_matnr-mnmatnr.
APPEND wa_cvddp TO e_cvddp_tab.
CLEAR wa_cvddp.
I think Page number will be generated at the time of generation. just put page number using MS-Word page concept and try.
Thanks
Rambabu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Praveen,
This cannot be done. The reason is simply that at the time when Word calculates the number of pages, this information is not yet known since the expansion of symbols against values from EH&S has not yet happened.
Ralph
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Pravenn
sorry. I did not catch your "problem". Do you have the need to generate a "list of chapters (Content)) in your template?
Please explaine your issue.
C.B.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
11 | |
6 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.