Skip to Content
0
Former Member
Nov 25, 2009 at 05:56 AM

Problem with IF Condition?

17 Views

Hi all,

I have scenario lik the following..

I have one input field and search button. if i enter one value in input field, it shuld fetch the data as per my input. This is working fine. But,

if i not enter any input, it should fetch all the records. but no records are fetched. Wat is error here?

node_input->get_attribute( EXPORTING name = 'KUNNR'

IMPORTING value = it_kunnr ).

data:

node_size TYPE int1.

node_size = node_input->get_element_count( ).

if ( node_size eq '1' ).

SELECT * FROM KNA1 into table itab where Kunnr = it_kunnr.

ELSEIF ( node_size ne '1' ).

SELECT * FROM KNA1 into table itab.

endif.

Thanks and Regards,

Gopi.