Skip to Content
avatar image
Former Member

Table of contents on WWI templates

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Jun 10, 2013 at 09:37 AM

    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


    Snap1.jpg (12.4 kB)
    Snap3.jpg (11.2 kB)
    Add comment
    10|10000 characters needed characters exceeded

  • Jun 09, 2013 at 06:54 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • Jun 10, 2013 at 05:42 AM

    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

    Add comment
    10|10000 characters needed characters exceeded