Skip to Content
author's profile photo Former Member
Former Member

Making field as Display only

Hi Experts,

I am trying to grey out the Assignment field in FB01 transaction based the value provided in Documnet type in FB01 mail screen.

When ever user enters Document type as 'ZZ', then Assignment field should be grey out in next screen.

I tried to create field-exit for this, but this exit is triggered in PAI of the FB01 main screen.

Can any one help me out on this issue.

Regards,

Sriram

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Sep 28, 2005 at 12:16 AM

    FYI, Field-exits are neither recommended nor supported by SAP any more.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 28, 2005 at 02:42 AM

    Check transaction OBC4 & OBC5 . Here you can change the field attributes.

    Also check tcode SFAW .

    Cheers

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 28, 2005 at 03:59 AM

    Hi Srirama,

    The right thing for you to do is to create a variant transaction or transaction variants using SHD0 transaction.

    Here you can create a variant, where you can change screen properties. like giving default values or making some fields gray out...

    Refer to SAP help for more info.

    Remember to reward suitable points in case you find this post useful.

    Rgds,

    Prash,

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Sriram,

      This cannot be achived directly on the standard FB01 screen without modifying the SAP standard module behind FB01 simply because there is no screen-exit for FB01, at least none that I could find.

      SAP gives cutomer option to control header/line-item fields through BADI/User-exits while posting documents, <u>only when</u> document is posted via a report/interface which uses a BAPI (BAPI_ACC_DOCUMENT_POST) or a FM (POSTING_INTERFACE_DOCUMENT) either in background or foreground processing.

      I think for what you are trying to do, your process needs to change from the standard. If you develop an interface for users to post documents using the FM/BAPI above in foreground, then you can use the Exit/BADI to control the line item fields. In that case you could almost do anything upon checking your condition.

      Cheers,

      Syd.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.