Skip to Content
0
Former Member
Dec 01, 2008 at 01:19 PM

Scripts

18 Views

Hi All,

Am working on Scripts.

In print program I have given select query and i have given sysubrc to check the records.

Am getting records which doesn't have values.

In print program :

SELECT SINGLE KBETR FROM KONV INTO TOTAL_1 WHERE KNUMV = VBDKA-KNUMV AND KPOSN = VBDPA-POSNR AND KSCHL = 'PROO'.

IF SY-SUBRC = 0.

FLAG_1 = 1.

Endif.

In script :

IF &FLAG_1& NE 0

&TOTAL_1&

ENDIF.

The problem is am getting the zero value if there is no value in &TOTAL_1& even though i mentioned the

SY-SUBRC condition.

I have given this condition also IF &FLAG_1& NE 0 AND &TOTAL_1& NE 0

&TOTAL_1&

ENDIF

How I can prevent zero values.

Please help me.

Thanks In advance,

Regards,

Murthy.

Please use meaningful subject in furture

Edited by: Vijay Babu Dudla on Dec 1, 2008 8:31 AM