cancel
Showing results for 
Search instead for 
Did you mean: 

totals

Former Member
0 Kudos

Hi Experts,

I have to display total for komvd-kwert, i am writing subroutine for this, but total has not displying , please give me the detail code for total displaying. please do the need full help, it is very urgent

thanks in advance,

Radhakrishna

Accepted Solutions (0)

Answers (3)

Answers (3)

0 Kudos

Hi

double click on the global definition in smartforms. and click on the calculation tab in this tab mention like this

-


-


-


target fieldname associatedtp

total tot(define this variable in globaldefinition) itab-kwert

-


afterloop

finally u can print the variable tot.

former_member705122
Active Contributor
0 Kudos

Hi,

READ TABLE OUTT_COND WITH KEY NAME = VALUE2.

check the read statement condition (WITH KEY NAME = VALUE2).

Regards

Adil

Former Member
0 Kudos

Hi experts,

i have checked it, i replaced with 'VALUE2' instead of VALUE2. NOW SY-SUBRC getting 0, but but value of outtab still not reading , please do the need full help. it is very urgent.

Regards,

Radhakrishna.

Former Member
0 Kudos

paste ur subroutine code here. Vl check.

Former Member
0 Kudos

Hi

This my code for totals,

FORM F_GET_PRICE TABLES INT_COND STRUCTURE ITCSY OUTT_COND STRUCTURE

ITCSY.

STATICS: VALUE2 TYPE KWERT,

VALUE1 TYPE KWERT.

READ TABLE INT_COND WITH KEY NAME = 'KOMVD-KWERT'.

VALUE1 = INT_COND-VALUE.

VALUE2 = VALUE2 + VALUE1.

READ TABLE OUTT_COND WITH KEY NAME = VALUE2.

OUTT_COND-VALUE = VALUE2.

MODIFY OUTT_COND INDEX SY-TABIX.

ENDFORM.

i saw in debugging value2 adding the total but it is not reding in outt_cond, it is getting subrc = 4,

could u help me please.

PERFORM F_GET_PRICE IN PROGRAM ZZM0001R

USING &KOMVD-KWERT&

CHANGING &VALUE2&

ENDPERFORM

this is the calling routine to script form.

Regards,

Radhakrishna.