cancel
Showing results for 
Search instead for 
Did you mean: 

Shopping Cart- Table control problem in cost center sub screen

Former Member
0 Kudos

Dear all,

I am facing problem in shopping cart, when I try to invisible some field of cost centre table control the whole control become invisible but the same code work fine to hide a column of a table control in R/3.

Can any one help me out…..

Thanks in Advance

Sachin Gautam

PS: Point will be given.

Accepted Solutions (0)

Answers (1)

Answers (1)

yeushengteo
Advisor
Advisor
0 Kudos

Hi,

Maybe you would like to share your code and which BADI you have activated for us to help you properly?

Regards.

Former Member
0 Kudos

Dear ,

The BADI definition used is

BBP_UI_CONTROL_BADI with object type BUS2121

Method Used

BBP_SC_UI_CTRL

And code is :

FIELD-SYMBOLS : <f> TYPE TABLE,

<g> TYPE ANY.

ASSIGN '(SAPLBBP_PDH_ACC)TC_1000-COLS' TO <g>.

ASSIGN (<g>) to <f>.

if sy-subrc = 0.

loop at <F> into wa .

if wa-screen-name = 'T_SCREEN_ACCLIST-ACC_NO'

or wa-screen-name = 'T_SCREEN_ACCLIST-DISTR_PERC'.

wa-screen-invisible = '1'.

wa-screen-input = '0'.

modify <f> from wa.

endif.

endloop.

endif.

Warm Regard's

Sachin Gautam

Former Member
0 Kudos

Can any one help

Former Member
0 Kudos

Hi,

The code in the BADI should be something like this:

IF iv_fieldname = 'BBPS_BID_UI_HEADER-PROC_GROUP'.

cv_input_ready = c_space.

ENDIF.

In your case it would be (to hide the cost center fields and assuming the field names to be 'T_SCREEN_ACCLIST-ACC_NO' and 'T_SCREEN_ACCLIST-DISTR_PERC' )

IF iv_fieldname = 'T_SCREEN_ACCLIST-ACC_NO' or iv_fieldname = 'T_SCREEN_ACCLIST-DISTR_PERC' .

CV_INVISIBLE = '1'.

ENDIF.

Also the error which you are facing might be due to the wrong code.Particularl check the "FIELD NAME" of the field which you want to hide.

BR,

Disha.

<b>Pls reward points for useful answers.</b>