Skip to Content
avatar image
Former Member

Defaulting checkbox with check in SC and holding user changes later

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Nov 03, 2009 at 08:06 PM

    Hello Asha,

    Which method from BAdI did you use ?

    Regards.

    Laurent.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 03, 2009 at 11:11 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded

    • 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