cancel
Showing results for 
Search instead for 
Did you mean: 

Control Busniess Area Field in Account Ass..

Former Member
0 Kudos

hello Friends,

I have to control business area field in account assignment is needs to invisible when i select custom account assignment category..

Can you please help me out how can i do this requirement..

I know there is a control badi available but nothing is working for me..

if you already done this control badi please help me out to implemented the logic to invisible business area field when i choose custom account assignment..

Thanks,

John.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi

Have you tried the BADI

<b> BBP_CUF_BADI_2 </b>. this BADI si basically for Custom fields.

Please try out this code Inside Method modify_screen ....
given below on the standard field name available in the Table type of the BADI.

I am not sure, whether this will help.

METHOD if_ex_bbp_cuf_badi_2~modify_screen.

  LOOP AT et_fields INTO ls_et_fields.
    CASE ls_et_fields-fieldname.

*--- Custom field Number is displayed & input enabled
      WHEN 'ZZFIELD'.
        ls_et_fields-xdisplay = 'X'.
        ls_et_fields-xinput   = 'X'.
        MODIFY et_fields FROM ls_et_fields
               TRANSPORTING xdisplay xinput.
        CLEAR ls_et_fields.

    ENDCASE.
  ENDLOOP.

ENDMETHOD.

Hope this will help.

Please reward suitable points.

Regards

- Atul

Former Member
0 Kudos

Hello Atul,

Thank you for your response.. the coding given by is only make the field visible and editable.. But my requirement is if the account assignment is custom one i need to invisible the business area field in the account assignment frame..

my only concern is Badi gets trigger but no values are fill in the importing parameters even through after click the add shopping cart button..

Is there any other possible way to greyout the standard field based on the some conditions?

This is very urgent one..

john.

Former Member
0 Kudos

Hi

Please use the BADI correctly.

<b>Incase you want to hide a field from display,

xdisplay = ' '. "Space -> makes field invisible and 'X' makes field visible

Similarly,

xinput = ' '. "Space -> makes field input disabled and 'X' makes field input inable</b>

Hope this will help.

Let me know incase you need any other information.

Please reward suitable points.

Regards

- Atul

Former Member
0 Kudos

Hi

Any updates.

Regards

- Atul

Former Member
0 Kudos

Hi ,

LOOP AT et_fields INTO ls_et_fields.

CASE ls_et_fields-fieldname.

*--- Custom field Number is displayed & input enabled

WHEN 'ZZFIELD'.

ls_et_fields-xdisplay = 'X'.

ls_et_fields-xinput = 'X'.

MODIFY et_fields FROM ls_et_fields

TRANSPORTING xdisplay xinput.

CLEAR ls_et_fields.

ENDCASE.

ENDLOOP.

In Debug mode i can see only custom field name fill in ls_et_fields-fieldname.

so this will not work for us..

Thanks,

john.

Former Member
0 Kudos

Hello Friends,

Please give me simple example of implementing logic in 'BBP_UI_CONTROL_BADI' for shopping cart account assignment frame..

I have seen in the debug mode where i could not any value import in imported parameter such as IS_HEADER , IS_ITEM , IS_COMACC..

what situation data will fill with all import parameters..

John..

Former Member
0 Kudos

Hi

Use transaction SE18 and read the corresponding Documenataion with the BADIs

<b>

Few BADIs are available for this purpose -></b>

BBP_SC_MODIFY_UI

BBP_SCREEN_VARIANT

BBP_CUF_BADI_2

BBP_CUF_BADI

<b>If that does not help, you need to go for Template changes which might be complex in this case.</b>

Hope this will help.

Please reward suitable points.

Regards

- Atul