Skip to Content
0
Former Member
Jun 22, 2007 at 05:04 AM

PROBLEM IN LOOP

10 Views

i HAVE USED THE BELOW LOOP for displaying the hearder text of Tax coloum based on condition(KSCHL). when ever it fine JVRD or JIPC conditions it shows in right manner but when it doesnt find any row, it wont show any text. I want it to show Sales Tax when JVRD or JIPC are not there.

********************************************************************************

LOOP AT T_KONP WHERE KSCHL = 'JVRD' OR KSCHL = 'JIPC'.

IF SY-SUBRC = 0.

IF T_KONP-KSCHL = 'JVRD'.

TAX = 'Local Tax'.

ELSEIF T_KONP-KSCHL = 'JIPC'.

TAX = 'Central Tax'.

ENDIF.

ELSE.

TAX = 'Sales Tax'.

ENDIF.

*********************************************************************************

Thanks.

Khan.