Skip to Content
avatar image
Former Member

Disabling G/L account in SC for some conditions

Hi,

When creating a SC without material (special request) we need to only display the G/L account (change not possible) and disable the search help for G/L account.

Problem is if we change the HTML templete for SC it will effect for all cases (even when creating SC with material G/L is not editable). Is there any way to acheive this requirement?

we are using SRM 5.0 in extended scenario

Thanks & Regards,

Dublanc

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    May 22, 2006 at 08:31 AM

    Hi Dublanc,

    you are right, if you deactivate it in the HTML template, this will be done for all cases.

    As it is not easy to implement this kind of logic on HTML template, you should do it on the ABAP side.

    Generally, the display of HTML fields is checking if it is enabled/disabled by the ABAP side.

    If GL account field is disabled, the search help is unavailable.

    To change this ABAP logic, change the PBO module modify_screen_tc from screen SAPLBBP_PDH_ACC 1000 (accounting overview), and maybe modify_screen from screen SAPLBBP_PDH_ACC 2000 (accounting details).

    Rgds

    Christophe

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Dublanc,

      I am new to SRM.

      I have a similar requirement where i need to make the GL account field uneditable.

      If usage of the BADI BBP_UI_CONTROL_BADI will solve the problem.

      Can you please explain step by step process how do we go about the usage.

      Thanks,

      Vamshi

  • avatar image
    Former Member
    May 21, 2006 at 02:21 AM

    HI Dublanc,

    WE can achive this very well by using

    BBP_Document_change_BADI and

    BBP_Document_Check_BADI

    In change badi you need to check when ever the Gl Account is change for certain creteria (In your case Text materials ) and pass a parameter to global memory area if the Gl Account is change to Check Badi and in check badi you can throw an error that if this parameter = 1 then error = " GL acount for text materials cannot be Changed"

    This will definetaly work.

    regards,

    Nimish Sheth

    Add comment
    10|10000 characters needed characters exceeded