cancel
Showing results for 
Search instead for 
Did you mean: 

Disable fields to edition

Former Member
0 Kudos

Hi Experts

Anybody knows how can I do to disable a field to edition? Im using the BADI BBP_UI_CONTROL_BADI but I'm having o lot of dificult to find the fields that I would like to disable to edition. Have any easyest way to find the name of fields that I would like to disable to edition?

I know that I have to flag the field cv_input_ready with space but I cant find the name of fields.

I Would like to disable to edition all fiels from Ship-To Address/Performance Location.

Anybody could help me please?

Thanks

Victor

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

PLs see the foll thread for solution sample code:

BR,

Disha.

Former Member
0 Kudos

Thank You again Disha

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Victor,

To disable certain fields, you should first find out the screen on which the fields or buttons are present.

Then go to transaction SE51 , enter the screen name and number and see the layout. There you will get the name of fields that you want to hide or disable.

EX:

GS_SCR_GEN-ADDRESS_NAME

TEXT-DELIVERY-ADRESS

The above given fields are for

Ship To Address/Performance Location in shopping cart screen.

Hope this helps.

Thanks,

Pradeep.

Former Member
0 Kudos

Hi Pradeep

I had already tried to find the fields name by this way but when I use in BADI: BBP_UI_CONTROL_BADI, METOD: BBP_SC_UI_CTRL, it doesnt pass in the fields that I want to disable... do u know why?

thanks again

Victor

Former Member
0 Kudos

Hi Victor,

Can u just paste the code that you have written in the BAdI implementation. It will make things easier..

Thanks,

Pradeep.

Former Member
0 Kudos

Hi

I find a structure that maybe I will have to set any field, im testins it. But folow above my code:

IF flt_val = 'BUS2121'.

IF sy-uname = 'FCOMPAGNO' AND

sy-ucomm = 'UI_ADDR_DET_CLOP'.

CASE iv_fieldname.

WHEN 'GS_SCR_ADDRESS_TMP-NAME'.

cv_input_ready = space.

WHEN 'GS_SCR_ADDRESS_TMP-PARTNER_ID'.

cv_input_ready = space.

WHEN 'GS_SCR_ADDRESS_TMP-PARTNER_NO'.

cv_input_ready = space.

WHEN 'GS_SCR_ADDRESS_TMP-NAME_2'.

cv_input_ready = space.

WHEN 'GS_SCR_ADDRESS_TMP-C_O_NAME'.

cv_input_ready = space.

WHEN 'GS_SCR_ADDRESS_TMP-TEL1_NUMBR'.

cv_input_ready = space.

WHEN 'GS_SCR_ADDRESS_TMP-TEL1_EXT'.

cv_input_ready = space.

WHEN 'GS_SCR_ADDRESS_TMP-FAX_NUMBER'.

cv_input_ready = space.

ENDCASE.

ENDIF.

ENDIF.

Thanks

Victor