Entering content frameThis graphic is explained in the accompanying text Example of a Parameter Hierarchy Locate the document in its SAP Library structure

In this example the relevant objects are assigned to the parameter hierarchy ORDERLIST and the interdependencies are defined. You define the objects themselves in Customizing independent of the parameter hierarchy. The parameter hierarchy ORDERLIST is assigned to the symbol group whose determination function module determines default parameter values for the application area Order.

Definition of the Parameter Hierarchy ORDERLIST:

Definition in Customizing

You have created the relevant parameter objects in the IMG activity Specify Parameter Objects:

Parameter Object

Name

ORDER

Order

ITEM

Item

SCHED_LINE

Schedule line

In the IMG activity Specify Parameter Hierarchies you specify the parameter hierarchy ORDERLIST using the following definition. In the IMG activity you also assign a suitable report symbol group to the parameter hierarchy ORDERLIST.

Object

Name

Parent Parameter Object

Start Object

ORDER

(Order)

 

X

ITEM

(Item)

ORDER

 

SCHED_LINE

(Schedule line)

ITEM

 

Definition of the Report Template

This definition means the following hierarchy tree with the branch Order list will appear in the search help for repeating groups of the type Parameter in the Windows Wordprocessor Integration (WWI) application (see also WWI: Inserting Repeating Groups).

This graphic is explained in the accompanying text

Report Template

In the report template, you can use the hierarchy tree to create the necessary parameter repeating groups, for example:

<03EHS_L_TEXT(EHS_VKORG)>: <02EHS_VKORG(;*)>

<03EHS_L_TEXT(EHS_SOLDTO)>: <02EHS_SOLDTO(;*)>

<11BRG002(P,ORDERLIST-ORDER;*)>

<03EHS_L_TEXT(EHS_ORDNR)>: <02EHS_ORDNR(;*)>

<03EHS_L_TEXT(EHS_PO_NR)>: <02EHS_PO_NR(;*)>

<11BRG001(P,ORDERLIST-ITEM;*)>

<03EHS_L_TEXT(EHS_ITEMNR)>: <02EHS_ITEMNR(;*)>

<03EHS_L_TEXT(EHS_MATNR)>: <02EHS_MATNR(;*)>

<11BRG000(P,ORDERLIST-SCHED_LINE;*)>

<03EHS_L_TEXT(EHS_ETNR)>: <02EHS_ETNR(;*)>

<03EHS_L_TEXT(EHS_BMENG)>: <02EHS_BMENG(;*)>

<11ERG000(P,ORDERLIST-SCHED_LINE)>

<11ERG001(P,ORDERLIST-ITEM)>

<11ERG002(P,ORDERLIST-ORDER)>

Note

Data Transfer

The function module for default parameter value determination is found because of the assignment between the parameter hierarchy and the report symbol group. Within the function module, a table must be created in which the values and structural interdependencies are stored.

The example below shows this using the following sample data:

Sample Data

Sales organization: 1000

Sold-to party: 0815

Structure of the Table

The above sample data is returned to a table that is comprised of the following export tables:

You can use the following columns in the table to store the structural dependencies for each value:

PARHIER (Parameter hierarchy)

PAROBJ (Parameter object)

PAROBJ-KEY (Key of parameter object)

PAROBJPAR (Parent parameter object)

PAROBJ-PARKEY (Key of parent parameter object)

LENRECD (Maximum nesting depth of a repeating group)

For the above example of parameter hierarchy Order list, the table for the structural interdependencies of each value is as follows (the nesting depth in this example is zero; the table contains other fields that you can use to specify values, such as the value category):

PARHIER

PAROBJ

PAROBJ-KEY

PAROBJ-PAR

PAROBJ-PARKEY

LEN-RECD

OBJECT

ATTRIB

VALUE

           

TVKO

VKORG

1000

           

VBAK

KUNNR

0815

ORDERLIST

ORDER

4711

   

0

VBAK

VBELN

4711

ORDERLIST

ORDER

4711

   

0

VBAK

BSTNK

020201

ORDERLIST

ORDER

4712

   

0

VBAK

VBELN

4712

ORDERLIST

ORDER

4712

   

0

VBAK

BSTNK

020202

ORDERLIST

ORDER

4713

   

0

VBAK

VBELN

4713

ORDERLIST

ORDER

4713

   

0

VBAK

BSTNK

020203

ORDERLIST

ITEM

471110

ORDER

4711

0

VBAP

POSNR

10

ORDERLIST

ITEM

471110

ORDER

4711

0

MARA

MATNR

PAINT_10

ORDERLIST

ITEM

471120

ORDER

4711

0

VBAP

POSNR

20

ORDERLIST

ITEM

471120

ORDER

4711

0

MARA

MATNR

PAINT_20

ORDERLIST

ITEM

471210

ORDER

4712

0

VBAP

POSNR

10

ORDERLIST

ITEM

471210

ORDER

4712

0

MARA

MATNR

PAINT_20

ORDERLIST

ITEM

471310

ORDER

4713

0

VBAP

POSNR

10

ORDERLIST

ITEM

471310

ORDER

4713

0

MARA

MATNR

PAINT_10

ORDERLIST

ITEM

471320

ORDER

4713

0

VBAP

POSNR

20

ORDERLIST

ITEM

471320

ORDER

4713

0

MARA

MATNR

PAINT_30

ORDERLIST

ITEM

471330

ORDER

4713

0

VBAP

POSNR

30

ORDERLIST

ITEM

471330

ORDER

4713

0

MARA

MATNR

PAINT_50

ORDERLIST

SCHED_LINE

4711101

ITEM

471110

0

VBEP

ETENR

1

ORDERLIST

SCHED_LINE

4711101

ITEM

471110

0

VBEP

BMENG

50L

ORDERLIST

SCHED_LINE

4711102

ITEM

471110

0

VBEP

ETENR

2

ORDERLIST

SCHED_LINE

4711102

ITEM

471110

0

VBEP

BMENG

40L

ORDERLIST

SCHED_LINE

4711201

ITEM

471120

0

VBEP

ETENR

1

ORDERLIST

SCHED_LINE

4711201

ITEM

471120

0

VBEP

BMENG

100L

ORDERLIST

SCHED_LINE

4712101

ITEM

471210

0

VBEP

ETENR

1

ORDERLIST

SCHED_LINE

4712101

ITEM

471210

0

VBEP

BMENG

30L

ORDERLIST

SCHED_LINE

4712102

ITEM

471210

0

VBEP

ETENR

2

ORDERLIST

SCHED_LINE

4712102

ITEM

471210

0

VBEP

BMENG

30L

ORDERLIST

SCHED_LINE

4712103

ITEM

471210

0

VBEP

ETENR

3

ORDERLIST

SCHED_LINE

4712103

ITEM

471210

0

VBEP

BMENG

30L

ORDERLIST

SCHED_LINE

4713101

ITEM

471310

0

VBEP

ETENR

1

ORDERLIST

SCHED_LINE

4713101

ITEM

471310

0

VBEP

BMENG

80L

ORDERLIST

SCHED_LINE

4713201

ITEM

471320

0

VBEP

ETENR

1

ORDERLIST

SCHED_LINE

4713201

ITEM

471320

0

VBEP

BMENG

70L

ORDERLIST

SCHED_LINE

4713301

ITEM

471330

0

VBEP

ETENR

1

ORDERLIST

SCHED_LINE

4713301

ITEM

471330

0

VBEP

BMENG

50L

Note 

Output of Data on the Report

The symbols from the above example are then expanded as follows when the report is generated:

Sales organization: 1000

Sold-to party: 0815

Order: 4711

Purchase order number: 0020201

Item: 10

Material number: PAINT_10

Schedule line: 1

Confirmed quantity: 50L

Schedule line: 2

Confirmed quantity: 40L

Item: 20

Material number: PAINT_20

Schedule line: 1

Confirmed quantity: 100L

Order: 4712

Purchase order number: 020202

Item: 10

Material number: PAINT_20

Schedule line: 1

Confirmed quantity: 30L

Schedule line: 2

Confirmed quantity: 30L

Schedule line: 3

Confirmed quantity: 30L

Order: 4713

Purchase order number: 0020203

Item: 10

Material number: PAINT_10

Schedule line: 1

Confirmed quantity: 80L

Item: 20

Material number: PAINT_30

Schedule line: 1

Confirmed quantity: 70L

Item: 30

Material number: PAINT_50

Schedule line: 1

Confirmed quantity: 50L

 

 

 

Leaving content frame