Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

how to skip field with zero value in bdc_dynpro

Former Member
0 Kudos
118

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?

3 REPLIES 3

Former Member
0 Kudos
61

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

deepak_dhamat
Active Contributor
0 Kudos
61

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 .

0 Kudos
61

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 .