cancel
Showing results for 
Search instead for 
Did you mean: 

lb_bill_invoice total help

Former Member
0 Kudos

hi experts

i copy lb_bill_invoice to z program and i wont that when the total amount is 0.00

display instead total discount and i dont succeed with that plz help i need just idea becouse this smart form is to complicated i new with that topic

best regards

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

for Smartform Subtotals - Check the link...

You can use the PROGRAM LINES node to calculate the page totals in Table node.

Table Node has three sections:

Header: (Triggered once in the beginning of a page)

Create a Program lines node to reset the value of TOTAL to 0.

Main Area (For each row of internal table)

Create a Program lines node to add the Value to TOTAL

Footer (Triggered once in the End of a page)

Display the TOTAL

Note: 1) You can declare the TOTAL variable in the GLOBAL Definitions under GLOBAL DATA.

2) In the PROGRAM lines always pass the TOTAL in both INPUT and OUTPUT parameters

<b>Reward points for useful Answers</b>

Regards

Anji

Former Member
0 Kudos

hi anji

i now to do total to tables in smart form but in this smart form i little difficult

so i wont help from experts or some one that do that give me direction

Regards

Former Member
0 Kudos

plz

any one how now this smart form plz help

Regards

Former Member
0 Kudos

Hi SHYNA,

Im sorry if I wasnt very clear earlier.

If you look at the smartform ,

Inside the Main Window

There is a Template called 'INFO_ENDSUMMEN'.

This template contains many text elements.

One text element is RECHNUNGSBETRG_TXT which prints 'Invoiced Amount'.

One text elemnt is HD_KOMK_END which prints the Total Amount value.

These are the two text elements you have to work on.

Im assuming you have the total discount value in a variable.

Right click on the template 'INFO_ENDSUMMEN'. Choose 'Flow Logic' and then

'Alternative'.

A Condition Node will appear inside the template

Inside the Conditon. General Attributes - Determine Conditions

Set Field name to GS_HD_KOMK-FKWRT

Set value to = 0.

Make 2 new text elements inside the true conditon

One will have the text 'Total Discount'

second will have ur total discount value.

Make sure that u copy the output structure in the 'Output' tab from

RECHNUNGSBETRG_TXT and HD_KOMK_END to your new text elements respectively.

Move RECHNUNGSBETRG_TXT and HD_KOMK_END to the false

node of the Condition.

Activate and run.

Answers (1)

Answers (1)

Former Member
0 Kudos

put HD_KOMK_END text inside a alternative and check its value in the alternative

in the false condition put ur desired text.

Former Member
0 Kudos

hi nehal

Thankes for your answer.

u can specified your suggestion becouse this smart form is to complicated.

Regards