Skip to Content
avatar image
Former Member

totals

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Jun 25, 2008 at 09:54 AM

    paste ur subroutine code here. Vl check.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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.

  • avatar image
    Former Member
    Jun 25, 2008 at 10:35 AM

    Hi,

    READ TABLE OUTT_COND WITH KEY NAME = VALUE2.

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

    Regards

    Adil

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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.

  • avatar image
    Former Member
    Jun 25, 2008 at 10:36 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded