Skip to Content
author's profile photo Former Member
Former Member

Script: total(urgent)

Hi gurus,

im working on invoice billing.what should be the values for int_cond and out_cond.

please give me with good example.thanks in advance.

FORM F_GET_PRICE tables int_cond structure itcsy

outt_cond structure itcsy.

data : value type kbert.

statics value1 type kbert.

Read int_cond table index 1.

value = int_cond-value.

value1 = value1 + value.

Read outt_cond table index 1.

outt_cond-value = value1.

Modify outt_cond index 1.

ENDFORM

Rewarded with good points.

thanks and regards

sirish.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Dec 05, 2007 at 03:13 AM

    I cannot provide you a example right now but you need to define the same in SAP SCRIPT.

    Define &i_total&

    perform add_total in program zprogram using i_inputvalues changing i_total.

    Then you can create a subroutine in your zprogram or in zinclude with the name of add_total.

    then read the values using i_inputvalues and then perform your calculations and then append it to outtab value where the field name is i_total.

    or check out this link

    https://www.sdn.sap.com/irj/sdn/forums

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 05, 2007 at 03:15 AM

    Sorry about that link.... Check this... I dont know how to redirect you to the url that i have copied this code from .

    Thanks Naimesh... This is naimesh code and if you want to reward ... please reward naimesh...

    DATA: W_SUM TYPE VBRP-NETWR.

    START-OF-SELECTION.

    CALL FUNCTION 'OPEN_FORM'

    EXPORTING

    APPLICATION = 'TX'

    DEVICE = 'PRINTER'

    DIALOG = 'X'

    FORM = 'ZTEST_NP'

    LANGUAGE = SY-LANGU.

    DO 3 TIMES.

    W_SUM = W_SUM + SY-INDEX. " << sum

    CALL FUNCTION 'WRITE_FORM'

    EXPORTING

    ELEMENT = 'MAIN'

    WINDOW = 'MAIN'.

    ENDDO.

    • Fixed window for SUM

    CALL FUNCTION 'WRITE_FORM'

    EXPORTING

    ELEMENT = 'LAST'

    WINDOW = 'LAST'.

    IF SY-SUBRC <> 0.

    ENDIF.

    CALL FUNCTION 'CLOSE_FORM'

    Again this code copied from Naimesh message from another thread. I am sorry i didnt know how to copy the link here.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.