cancel
Showing results for 
Search instead for 
Did you mean: 

Total value in confirmation

Former Member
0 Kudos

Hi to all,

i'm looking for a way to display, in SRM WEB, the total value (amount price) for single position of confirmation.

Is this possible? Are there any ways to display it or i've to implement some custom code?

Thanks in advance,

Christian

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Christian,

SRM displays item quantity, UOM, unit price and total GR value, but not item total value.

in SRM 3.0, there is no other way than changing the standard code.

I did it for an SRM 3.0 customer.

The solution is quite simple.

Here it is (attention, the HTML template was also modified to sort columns):

Total value per item is not computed or stored by the system, so we must calculate it in form SCREEN_PREPARE (include LZBBP_CFF03):

WHEN gc_sub_itm_basic.

CLEAR gs_cfitem.

CHECK NOT gv_line IS INITIAL.

READ TABLE gt_cfitem WITH KEY number_int = gv_line.

IF sy-subrc IS INITIAL.

MOVE-CORRESPONDING gt_cfitem TO gs_cfitem.

<b>* 15.03.2005 DENYSIAK EVO GR item total value

gs_cfitem-value = gs_cfitem-price *

gs_cfitem-quantity /

gs_cfitem-price_unit.</b>

ELSE.

  • error handling

ENDIF.

We must modify HTML template SAPLZBBP_CF 4000 to add this new column (sortable) and the total item value just after the price:

<!-- DENYSIAK EVO COLUMN HEADER: ITEM TOTAL VALUE -


-->

`if((C_PRICE == "X") && (C_PRICE_UNIT == "X") && (C_CURRENCY == "X"))`

`colcounter = colcounter + 1`

`TD(nowrap="x")`

`if (GV_SELECTED_COLUMN.value == "VALUE")`

`if (GV_SELECTED_COLUMN_SORT.value == "D")`

<a href="JavaScript:sortColumn('VALUE','A');" onmouseover="status=' ';return true;" onmouseout="status=' ';"

alt="`#TC_CH_VALUE` `#SORT_UP`" title="`#TC_CH_VALUE` `#SORT_UP`">

`#TC_CH_VALUE`</a>

<img src="`mimeURL(~service="bbpglobal", ~language="", ~name="images/icon/arrow_down.gif")`" border="0">

`else`

<a href="JavaScript:sortColumn('VALUE','D');" onmouseover="status=' ';return true;" onmouseout="status=' ';"

alt="`#TC_CH_VALUE` `#SORT_DOWN`" title="`#TC_CH_VALUE` `#SORT_DOWN`">

`#TC_CH_VALUE`</a>

<img src="`mimeURL(~service="bbpglobal", ~language="", ~name="images/icon/arrow_up.gif")`" border="0">

`end`

`else`

<a href="JavaScript:sortColumn('VALUE','A');" onmouseover="status=' ';return true;" onmouseout="status=' ';"

alt="`#TC_CH_VALUE` `#SORT_UP`" title="`#TC_CH_VALUE` `#SORT_UP`">

`#TC_CH_VALUE`</a>

`end`

`end`

<!-- COLUMN ITEM: PRICE WITH CURRENCY -


-->

`if((C_PRICE == "X") && (C_PRICE_UNIT == "X") && (C_CURRENCY == "X"))`

`if (GT_SCREEN_ITM-PRICE[j].disabled)`

`TD(nowrap="x", align="right", active="")`

`if (GT_SCREEN_ITM-ITM_TYPE[j].value == "UI")`

&nbsp;

`elseif(GT_SCREEN_ITM-PRICE[j].value == "0")`

&nbsp;

`else`

`GT_SCREEN_ITM-PRICE[j].value`

`GT_SCREEN_ITM-CURRENCY[j].value`

`#pro`

`GT_SCREEN_ITM-PRICE_UNIT[j].value`

`GT_SCREEN_ITM-UNIT[j].value`

`end`

`else`

`TD(nowrap="x", align="right")`

<input type="text" name="GT_SCREEN_ITM-PRICE[`j`]" value="`GT_SCREEN_ITM-PRICE[j].value`" maxlength="016" size="008">

`GT_SCREEN_ITM-CURRENCY[j].value`

`end`

`end`

<b><!-- EVO COLUMN ITEM: TOTAL VALUE -


-->

`if((C_PRICE == "X") && (C_PRICE_UNIT == "X") && (C_CURRENCY == "X"))`

`TD(nowrap="x", align="right", active="")`

`if (GT_SCREEN_ITM-ITM_TYPE[j].value == "UI")`

&nbsp;

`elseif(GT_SCREEN_ITM-VALUE[j].value == "0")`

&nbsp;

`else`

`GT_SCREEN_ITM-VALUE[j].value`

`GT_SCREEN_ITM-CURRENCY[j].value`

`end`

`end`</b>

Rgds

Christophe

PS: please reward points for helpful answers