Skip to Content
avatar image
Former Member

Problem in BBP_CUF_BADI_2

Hi Experts.

I have to hide one custom field, only when I am trying to create the limit item in the shopping cart creation (for us that custom field is there in the Basic Data). But not normal shopping cart creation

I have done using BBP_CUF_BADI_2 , where I can check the sy-ucomm , whether that is limit item or not , if the that is limit item , then I am hiding the custom field .

I am able to hide the field, when I click on the limit-item in the initial screen .But later for the validation, DOC_CHECK_BADI is calling, and itu2019s displaying my custom field again.

Is there any logic, which I am missing here .Could you please suggest me.

Here is the code which I have used in the BBP_CUF_BADI_2

METHOD if_ex_bbp_cuf_badi_2~modify_screen

IF iv_doc_type = 'BUS2121'.

LOOP AT et_fields INTO wa_et_fields.

if SY-UCOMM = 'ITMSEL_LIMIT'.

IF wa_et_fields-fieldname EQ 'ZZ_GR_IND'.

CLEAR wa_et_fields-xinput.

CLEAR wa_et_fields-xdisplay.

MODIFY et_fields FROM wa_et_fields.

ENDIF.

ENDIF.

ENDLOOP.

ENDIF.

ENDMETHOD.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Jul 24, 2008 at 09:33 AM

    Hi Baarati,

    This should not be difficult.

    You could check in the badi id there is a limit entered for this shopping cart in table E_ITMLIM_REL.

    For this execute function :

    BBP_PD_SC_GETDETAIL with the object guid in importing parameter.

    If you find something in this table you can hide the field like your code.

    If this is not working you can try exporting a variable when program passes in your code.

    For this use EXPORT - IMPORT or SET - GET abap statements.

    Best regards,

    Laurent.

    Remind rewarding points if ok.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 30, 2008 at 06:08 AM

    thank you

    Add comment
    10|10000 characters needed characters exceeded