cancel
Showing results for 
Search instead for 
Did you mean: 

hide the G/L Account in the Cost Assignment

0 Kudos

Hi all,

Can anyone guide me how to hide the G/L Account in the Cost Assignment. Is there a way to use the BBP_UI_CONTROL_BADI to hide this Field? I can't find the right dynpro and field.

Thank you for the help

Gregor

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

also try to check whether this field is available for screen varient for BBPSC02

the TXN is SHD0

it will be simple just to create one screen varient

BR

Dinesh

0 Kudos

Hello Dinesh,

i tried it also in SHD0 but i cant get to the screen!

Best regards

Gregor

Former Member
0 Kudos

then you will have to use

BADI BBP_SC_UI_MODIFY or

UI_CONTROL BADI

pl serch on this forum for same purpose or the tech experts can help you

BR

Dinesh

0 Kudos

Hello,

that's what i wrote. I want to use the BBP_UI_CONTROL_BADI but i don't know the dynpro and the exact fieldname. I guess that the dynpro is 1000. Does anybody know the fieldname?

best regards

Gregor

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Gregor,

The screen name is SAPLBBP_PDH_ACC and the screen number is 1000.

And the field name is BBP_PDACC-G_L_ACCT.

You can use the BBP_UI_CONTROL_BADI to hide this field.

Hope this Helps.

Thanks,

Pradeep

0 Kudos

Hello Pradeep,

i tried to use IF_EX_BBP_UI_CONTROL_BADI~BBP_SC_UI_CTRL!

Here's the code:

method IF_EX_BBP_UI_CONTROL_BADI~BBP_SC_UI_CTRL.

IF SY-DYNNR = '0300'.

CASE IV_FIELDNAME.

WHEN 'GS_SCR_BASIC_I-QUANTITY'.

cv_input_ready = ' '.

ENDCASE.

ENDIF.

IF SY-DYNNR = '1000' OR

SY-DYNNR = '2000'.

CASE IV_FIELDNAME.

WHEN 'BBP_PDACC-G_L_ACCT'.

cv_input_ready = ' '.

ENDCASE.

ENDIF.

endmethod.

The first passage hides the quantity. That works.

The second passage should hide the G/L Account but it doesn't.

What's wrong?

Thanks a lot!

Gregor

0 Kudos

Found it:

IF SY-DYNNR = '1000' OR

SY-DYNNR = '2000'.

CASE IV_FIELDNAME.

WHEN 'T_SCREEN_ACCLIST-G_L_ACCT'.

cv_input_ready = ' '.

ENDCASE.

Thanks everybody!

Former Member
0 Kudos

Hi. You can do it with a transaction variant, I have made the GL account display only on SRM 4 and SRM 5 with a variant.

You have to get used to the screen in the GUI, it is hard to find the right one using all the scroll bars, but you can definitly get to the cost assignment if you keep trying.

The screens for the GL account are SAPLBBP_PDH_ACC 1000 and 2000.

Regards,

Dave.