cancel
Showing results for 
Search instead for 
Did you mean: 

Hiding the field in describe requirement sc creation

Former Member
0 Kudos

Hi,

Our client want to hide the Services Radio Button which is there in the shopping cart create transaction, for the Describe requirement.

Where we can select the Product type that is either Goods or Services (Both are radio buttons)

I know this screen is there in the standard program BBP_SC_UI_ITS screen no 230.

I have tried with Badi BBP_SC_UI_CTRL where we have interface BBP_SC_UI_CTRL to hide the Services Radio Button

Those fields are designed in the

Product type: (Radio Button) Goods (Radio Button) Services

These are technical names

TXT_SPEC_I-SERVICE_FLAG = Product type:

GS_SCR_SPEC_I-SERVICE_FLAG = (Radio Button)

GS_SCR_SPEC_I-PRODUCT_TYPE = (Radio Button)

TXT_SPEC_I-PRODUCT = Goods

TXT_SPEC_I-SERVICE = Services

I have tried like this , But I couldnu2019t achieve that , I am able to Hide only the description that is u201CServices u201C , But the Radio Button alone I am not able to hide .

CONSTANTS : c_services(25) TYPE c VALUE

'TXT_SPEC_I-SERVICE'.

CONSTANTS : c_services1(35) TYPE c VALUE

' GS_SCR_SPEC_I-SERVICE_FLAG .

if iv_fieldname = c_services or

iv_fieldname = c_services1 .

cv_invisible = '1'.

endif.

endmethod.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi. I have done exactly the same change using a transaction variant to get rid of the service option.

I simply hid both service and goods that way goods is always selected.

Screen SAPLBBP_SC_UI_ITS 300 and 230 are the ones with product type on.

See thread if you need more info.

Regards,

Dave.

Former Member
0 Kudos

Hi Dave

Thanks a lot for your quick response.

I have tried the same procedure but I can able to achieve it some what.

But the problem is, itu2019s hiding the both the fields, even though I am selecting to invisible only Service radio button and Service test display

Appreciate your help on this could you please help me out?

Thank you

Former Member
0 Kudos

Hi. There are only 2 options, service and goods.

If you want to hide service, what is the harm in hiding goods as well?

With only 1 option visible the user will not be able to select anything else, so it makes no difference if they can see 1 or no fields.

Regards,

Dave.

Former Member
0 Kudos

Hi Deve,

Thanks for your response.

I have done through the screen variant.

I have one more doubt, I need to disable the some fields in the, for the create a limit item.

But I noticed that, what ever I see in the portal, all the fields were not there, when I try to execute in the GUI.

Can you please suggest what could be the reason?

Intact I have tried all these Badiu2019s

BBP_CUF_BADI_2

BBP_UI_CONTROL_BADI

Thank you,

Former Member
0 Kudos

Hi. You can only do certain things with a variant in the portal.

The BADI BBP_UI_CONTROL_BADI should work though.

Which field are you trying to change?

Regards,

Dave.

Former Member
0 Kudos

Hi Deve,

Thanks for your response.

I need to Disable the fallowing the Fields.

u201CUnlimited u201CTax field, Unknown account assignment category fields in the shopping cart (Limit item) to be disabled.

I know these fields are there in the screen No: 210 and 360

And these are technical details

GS_SCR_LIMIT-UNLIMITED - Unlimited

GS_SCR_LIMIT-ACC_UNKNOWN - Unknown account assignment

gs_scr_d_limit-tax_amount - Tax amount

I have tried like this in the UI_CONTROL_BADI , but using this I can only able hide the description alone but the no the Radio buttons are checkboxes for those names.

See the below code which I have used

method IF_EX_BBP_UI_CONTROL_BADI~BBP_SOCO_UI_CTRL.

CONSTANTS: c_ Unlimited (25) TYPE c VALUE

' GS_SCR_LIMIT-UNLIMITED ,

: c_ Unknown(25) TYPE c VALUE

' GS_SCR_LIMIT-ACC_UNKNOWN ,

: c_tax(25) TYPE c VALUE

' gs_scr_d_limit-tax_amount ,

if iv_fieldname = c_Unlimited or

iv_fieldname = c_Unknown or

iv_fieldname = c_ tax.

cv_invisible = '1'.

endif.

endmethod.

Former Member
0 Kudos

Hi ,

As i can see from your code you have tried to hide the code in the method BBP_SOCO_UI_CTRL.

I think you should be trying to hide these fields in the method BBP_SC_UI_CTRL instead.

Thanks,

Pradeep

Former Member
0 Kudos

Hi Deve,

That is my mistake while typing here.

But i have tried in the method BBP_SC_UI_CTRL .

can you please help me out,

Thanks in Advance

Former Member
0 Kudos

Hi,

Go to SE51 give program as SAPLBBP_SC_UI_ITS and screen as 210 or 360 . Go see the layout of the screen, and find out the exact field names that you want to hide.

Hope this helps.

Thanks,

Pradeep

Former Member
0 Kudos

Hi. The unlimited field can not be hidden with a variant. I tried and failed.

What I managed to do was make it display only I think, so if you choose it the data is not stored and as standard an error is given forcing the user to choose something else.

Unknown can not be done at all with a variant, I also tried that (we must be working for companies with very simlar requirements).

What we did was use the BBP_DOC_CHECK_BADI to issue an error if the user chooses unknown.

Regards,

Dave.

Answers (0)