Skip to Content
0
Former Member
Dec 28, 2007 at 06:10 AM

urgent help required..

48 Views

hi experts..

I am checking a condition in my report.

what i want is the report should display the ones only which satisfies the following 3 conditions . But presently its displaying for all the conditions.

My code is as follows. dont know what should i add to display only those 3 conditions. please help me.

IF wa_konv-kschl = 'ZGC1'.

wa_konv-kbetr1 = wa_konv-kbetr.

ELSEIF wa_konv-kschl = 'ZGC2'.

wa_konv-kbetr2 = wa_konv-kbetr.

ELSEIF wa_konv-kschl = 'ZGC3'.

wa_konv-kbetr3 = wa_konv-kbetr.

ENDIF.

if sy-subrc = 0.

wa_final-kbetr1 = wa_final-kbetr1 + wa_konv-kbetr1.

wa_final-kbetr2 = wa_final-kbetr2 + wa_konv-kbetr2.

wa_final-kbetr3 = wa_final-kbetr3 + wa_konv-kbetr3.

endif.