cancel
Showing results for 
Search instead for 
Did you mean: 

Shopping Cart - Disable GL Account Field in Cost Centre section of

Former Member
0 Kudos

Hi,

SRM Version Used : 5.0

Requirement is disable the GL Account field in the Cost Assignment Section of SHOPPING CART.

I tried using the ITS HTML changes... but not really very sure how to do it. Also have the code for it.

So, trying to acheive it with BADI: BBP_UI_CONTROL_BADI

Method:BBP_SC_UI_CTRL

How to get the field name for any field that has to be disabled

What is the field name for GL Account?

HELPFUL ANSWERS WILL BE REWARDED.

Thanks,

Ashwin.

Edited by: Ashwin Kumar on Feb 21, 2008 12:34 PM

Accepted Solutions (1)

Accepted Solutions (1)

yann_bouillut
Active Contributor
0 Kudos

Hi,

Quite easy with bbp_ui_control_badi

Fields can be found via sapgui access then navigate to screen number then goto screen painter.

IF iv_fieldname = 'T_SCREEN_ACCLIST-G_L_ACCT' OR

iv_fieldname = 'S_SCREEN_ACCDET-G_L_ACCT'.

cv_input_ready = ' '.

Kind regards,

Yann

Former Member
0 Kudos

Hello Yann,

in ur code, u gave field with S_ and T_ ,

but then i used only S_ before. which didnt work...

However if i am asked to Show an error message when some one tries to change this GL Account field...

then what can we do ? CAn we use CHECK badi for the same ? If YES, then How ?

NE Ways, Thanks for the immediate response.

Full points given.

Regards,

Ashwin.

yann_bouillut
Active Contributor
0 Kudos

Hi,

I don't understand your question...

If you grey out the G./L field, then user cannot fill it.

The G/L determination is done in automatic depending on customer rules.

Badi check is useful if user can access the G/L field to change the value.

Please clarify your requirement.

Kind regards,

Yann

Former Member
0 Kudos

Yes,

What u said is right.

In the scenario when GL Account in changeable,

then how to fullfill this requirement ?

viz.. whenever user tries to change the GL Accnt then show an ERROR message.

I used ceck BADI before, to display Error msg when clicked on Service Button.

Can you suggest something ?

Ashwin.

yann_bouillut
Active Contributor
0 Kudos

Hi,

If user change the G/L account, you can use check badi to trigger an error message under your specific rules.

Be aware that if your scenario is with real time FI validation, the value entered by the user will be also checked against ECC rules.

Kind regards,

Yann

Answers (0)