on 07-22-2008 7:33 AM
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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,
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.