Application Development and Automation 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: 
Read only

Checkbox problem in BDC

Former Member
0 Likes
1,927

Hi all,

I have a checkbox which I want to check/uncheck using my BDC. I am able to check it with 'X' but not able to uncheck the same. I have tried '' and ' ' options.

As far as recording is concerned, it is showing '' to uncheck it. Program generated from SHDB recording is working fine.

Please help..

-Tejal

16 REPLIES 16
Read only

lajitha_menon
Contributor
0 Likes
1,705

try ' ' instead of '' ?

Read only

0 Likes
1,705

sorry, overlooked ur messg. Check your program to see whether the value of this variable is being overwritten by another piece of code. Try debugging.

Read only

0 Likes
1,705

Hi,

Thanks for reply..But I have tried hard coded values only. So no question of getting overwritten variable.

-Tejal

Read only

0 Likes
1,705

In foreground mode, you see the checkbox checked?

Read only

0 Likes
1,705

Is there any function code assigned to the checkbox ?????

regards

Read only

Former Member
0 Likes
1,705

try to send a char variable.

data : v_uncheck(1) type c value ' '.

clear v_uncheck.

this shud work.

Read only

0 Likes
1,705

Hi Srinivas,

I have already tried this option and itz not working.

-Tejal

Read only

0 Likes
1,705

Try to capture the Space bar .

Cos when we press the SPACE BAR on a check box it will

be checked/unchecked.

Read only

0 Likes
1,705

Hi Srinivas,

I am able to capture it SHDB recording. It is getting captured as '' (Just single quotes). But the same is not working in my code.

-Tejal

Read only

0 Likes
1,705

Hi Tejal,

pass space instead of ' '.

Read only

Former Member
0 Likes
1,705

Are you sure it's a check box and not a radio button? I've used ' ' to uncheck a check box in BDC sessions with no problem. What transaction is it?

Rob

Read only

0 Likes
1,705

Hi Rob,

It is checkbox only and I have already tried to check it and it is working fine. Transaction is XD02 and field is 'collection authorization' under General data-> Payment Transactions tab.

-Tejal

Read only

0 Likes
1,705

The default for the field should be unchecked and it has no PID, so if you just don't send that line of code (the line where you try to uncheck it), it may work.

Also - check to see if you are sending it more than once to the screen - first time unchecked, second time checked.

Rob

Message was edited by: Rob Burbank

Read only

0 Likes
1,705

Hey Rob,

I removed that particular line from my code but it is not working. Using the same code I was able to check the same (with 'X'). Neways, thanks..

-Tejal

Read only

0 Likes
1,705

just can u send the part of coding where u r doimg this

Read only

0 Likes
1,705

I'd be interested in knowing what the problem and solution were.

Rob