cancel
Showing results for 
Search instead for 
Did you mean: 

set inactive BPs

Former Member
0 Kudos

hi experts,

on a web page when the user clicks to delete BP i use BP.Valid =BoYesNoEnum.tNO;

which sets the BP to inactive (validfor in OCRD) so it's not gonna show on the site again.

it's working very well. but i noticed that the Radio button (Active) still ticked in BP's form.

if i query OCRD i see that validfor ="N" for that BP.

my question is: how to change the Radio button on the form to be Inactive using SDK?

thanks in advance

Accepted Solutions (1)

Accepted Solutions (1)

pedro_magueija
Active Contributor
0 Kudos

Hi Samira,

validFor = N is inactive, so it could be that the next time you open the form the radio button will be in the Inactive position.


Best regards,

Pedro Magueija


View Pedro Magueija's profile on LinkedIn

Former Member
0 Kudos

Hi Pedro,

i have already tested, even i restarted SAP, with no success.

Thank you

pedro_magueija
Active Contributor
0 Kudos

Hi Samira,

That's weird. Are you sure you're using the same database? It's happened to me that I was logged to a test db which had exactly the same name (and data).


Best regards,

Pedro Magueija


View Pedro Magueija's profile on LinkedIn

Former Member
0 Kudos

Hi Pedro,

Thank you. I made sure to test again and made sure to query SAP (the right DB)  to see ValidFor="N".

It's strange, it should set to inactive if the flag = "N".

Best regards,

Samira

edy_simon
Active Contributor
0 Kudos

Hi Samira,

Active/Inactive of a BP depends on 6 fields named ValidFor, ValidFrom, ValidTo, FrozenFor, FrozenFrom and FrozenTo.

When you set ValidFor = 'N' means that the Active check box is not checked.
It does not means that this BP is frozen/Active, you need to review the other 5 fields.

But if you set the FrozenFor = 'Y', and leave all the fields empty, this will make the BP inactive.

Regards

Edy

Former Member
0 Kudos

Hi Edy,

Thank you for your help. i did the the following, and it's working

BP.Valid = BoYesNoEnum.tNO;

BP.Frozen = BoYesNoEnum.tYES;

Best Regards,

Samira

Answers (0)