on 11-12-2007 5:54 AM
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.
Hi,
Maybe you would like to share your code and which BADI you have activated for us to help you properly?
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.