2009 May 26 10:13 AM
i get error message 'zero amount will be ignored' when a field is equal to zero.it does not accept zero values.
how can i skip this?
2009 May 26 10:20 AM
Hi,
Put if - Else condition at Amount field.
Ex. for amount field you will be having
perform bdc_field using amount.
here you try like this.
IF AMOUNT IS NOT INITIAL.
perform bdc_field using amount.
ELSE.
perform bdc_field1 using amount. " here
ENDIF.
here in form bdc_field1.
inside if condition field-value will be initial. but in bdc_field field-value will not be initial.
If you are not getting, then post your code here.
Regards
Vishnu Gupta
Edited by: vishnu gupta on May 26, 2009 2:51 PM
2009 May 26 10:22 AM
hi..
to skip field with zero value .
define one character field of length (13) and assign zero value to it or pass null to that value .
in BDC Always remeber you cannot pass quantity field directly you have to use character field only .
so declare
data : p_field_name(13) type c.
p_field_name = field_name .
and pass it to BDC program .
and clear that field after use .
Redards
Deepak .
2009 May 26 10:25 AM
hi ,.. also if you dont want to pass value to field if value is Zero then simple use if else condition
if field_name <> 0 then .
your bdc code ..
endif.
Regards
Deepak .