cancel
Showing results for 
Search instead for 
Did you mean: 

Defaulting checkbox with check in SC and holding user changes later

Former Member
0 Kudos

Hello All,

I have created a custom field - checkbox in SC basic data. My requirement is to default the checkbox ticked and when the user trys to uncheck it, the user change should be captured.

I have defaulted the checkbox in BBP_CUF_BADI_2 badi. But the checkbox is always getting checked even if the user unchecks it. Is there any way to default the checkbox checked and also hold the user input.

Any suggestions on how to do this?

Thanks and regards,

Asha

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Asha,

Try using the BADI BBP_DOC_CHANGE_BADI to default the value for the field. Even if the value is changed by the user, the BADI will update it correctly again while saving.

Former Member
0 Kudos

Hi Deepthi,

I do no want to default it always. I just want to default it only once in the beginning. But when user tries to change it, I want to hold the change and not default it again back.

Thanks and regards,

Asha

Former Member
0 Kudos

You can use the CHANGE badi for both purposes.

Former Member
0 Kudos

Hi Deepthi,

Can you let me know how to do it as per my requirement.

Thanks and Regards,

Asha

former_member184111
Active Contributor
0 Kudos

Hi Latha,

Default the field as checked in begining using using CUF BADI , capture the value of check box in CHANGE BADI and SET the value using SET PARAMETER in CHANGE BADI and fetch the current value of checkbox using GET PARAMETER in CUF BADI to keep the field checked or unchecked.

Regards,

Anubhav

laurent_burtaire
Active Contributor
0 Kudos

Hello Asha,

Which method from BAdI did you use ?

Regards.

Laurent.