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: 

In BDC, how to uncheck a check box

Former Member
0 Kudos

Hi,

I am writing a BDC program for a Z - transaction (ZMR0). In that I need to uncheck a check box named Quantity (Parameter). I recorded by unchecking it. But still when I execute it through my function module, it remains checked.

When I process the recording directly through SHDB transaction, it is unchecked...

Please give me the solution...

Thanks in advance.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Janakiraman,

Pass the blank value in the BDC. It will work.

Here is the sample code.

PERFORM bdc_field USING 'BDC_CURSOR'

'Field-name'.

PERFORM bdc_field USING 'Field-name'

' ' .

replace Field-name with the name of the field you want to change.

Cheers,

Mandeep

5 REPLIES 5

Former Member
0 Kudos

Hi,

I think you need to pass 'SPACE' to the checkbox field in your BDCDATA.

regards,

Advait

Former Member
0 Kudos

Hi Janakiraman Shanmugam,

There are some fields in screens with default values.

For those, if we don't want default values, we have to give new values explicitly.

In recording, you done it.

So, you have to do it in the BDC program.

Regards,

R.Nagarajan.

Former Member
0 Kudos

Hi Janakiraman,

Pass the blank value in the BDC. It will work.

Here is the sample code.

PERFORM bdc_field USING 'BDC_CURSOR'

'Field-name'.

PERFORM bdc_field USING 'Field-name'

' ' .

replace Field-name with the name of the field you want to change.

Cheers,

Mandeep

Former Member
0 Kudos

Hi

U have using radio button for chk and unchk...based on this u have write ur code.

Regards:

Prabu

Former Member
0 Kudos

hi janakiraman,

if u want uncheck the box pass the sapce in flat file.

if u want check then pass 'x' in flat file. it will work.