cancel
Showing results for 
Search instead for 
Did you mean: 

Disable G/L account field on Shopping cart screen

Former Member
0 Kudos

Hello,

I am new to the SRM system , I got a requirement to disable G/L account field on the shopping cart creation screen and overview screen . In addition there is a message triggering when we enter product .'It saying as G/L account not entered'.

So here I have disable G/L account field and also the message.

Thanks in advance,

Srinivas D

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Srinivas,

My system is down at present.

If you want to grey out the G/L account field you will need to below BADI.

BBP_UI_CONTROL_BADI BAdI for Control of Fields in a Document

You will need the screen number and field technical name.

I assume you're on SRM 4 or 5..

Go into the SC transaction in the WebGui, enter a random number in the G/L account field, e.g. 1234561

then press return

Then right click on view the source of that page.

Ctrl F (search for) the number you just entered (1234561), you will then see the field name beside it.

To get the screen number, in the search, enter template and make sure the press the up radio button, i.e. you will be searching up the text document. This will tell you the screen number.

Setting up default G/L determination

See table V_BBP_DET_ACCT which can be accessed at

SPRO -> Supplier Relationship Management -> SRM Server ->

Cross-Application Basic Settings -> Account Assignment ->

Define G/L Account for Product Category and Account Assignment Category

This can be debugged in FM BBP_DETERMINE_ACCOUNT

=====

I don't think you can leave this field blank.

Hope this helps,

Kind Regards,

Matthew

Answers (1)

Answers (1)

Former Member
0 Kudos

Srinivas,

Just curious why you like to disable G/L account field? It is required field for account assignment.

For changing this field, you should be able to use Screen Variants for ITS screen and disable this field. Or, you can use BBP_UI_CONTROL_BADI.

If you are putting custom code in for G/L account determination, you may want to look into BBP_DETERMINE_ACCT BADI.

SG

Former Member
0 Kudos

Hi ,

I solved my issue by using BBP_UI_CONTROL_BADI method BBP_SC_UI_CTRL .Below is the code I am providing so that it will be helpful for other who gets similar requirement.

IF SY-DYNNR = '1000'

OR SY-DYNNR = '2000'.

CASE IV_FIELDNAME.

WHEN 'T_SCREEN_ACCLIST-G_L_ACCT'.

cv_input_ready = '0'.

WHEN 'S_SCREEN_ACCDET-G_L_ACCT'.

cv_input_ready = '0'.

ENDCASE.

ENDIF.

once again thanks for your responses.

Thanks,

Srinivas D

Former Member
0 Kudos

Hi Sri,

Could you please let me know which Filter you have used.

Thanks in advacne

Former Member
0 Kudos

Hi Krishna,

in your ealier comment, do we have this method BBP_SC_UI_CTRL in SRM 4.0 ? if not what's the workaround.

Please reply me

Regards,

Lalit

========================

I solved my issue by using BBP_UI_CONTROL_BADI method BBP_SC_UI_CTRL .Below is the code I am providing so that it will be helpful for other who gets similar requirement.

IF SY-DYNNR = '1000'

OR SY-DYNNR = '2000'.

CASE IV_FIELDNAME.

WHEN 'T_SCREEN_ACCLIST-G_L_ACCT'.

cv_input_ready = '0'.

WHEN 'S_SCREEN_ACCDET-G_L_ACCT'.

cv_input_ready = '0'.

ENDCASE.

ENDIF