Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Making field as Display only

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

8 REPLIES 8

Former Member
0 Kudos

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

0 Kudos

Hi Syd,

Thank you very much for your reply.... do you have any other way to do this......

Regards,

Sriram

0 Kudos

Can you try and implement enhancement RFEPOS00? Is that any good at all for what you are trying to do?

Former Member
0 Kudos

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

Also check tcode SFAW .

Cheers

Former Member
0 Kudos

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,

0 Kudos

Prashanth,

His requirement is to grey out a field based on a condition. I don't think you can use conditions in Transaction Variants (SHD0).

Cheers,

Syd.

0 Kudos

Hi Guys,

Thank you very much for your replies. Syd is correct we cant use SHDO for this issue. Because I need to gray out based on condition.

Also i cant use OBC4 or OBC5 because of same problem.

User exit RFEPOS00 is not triggering any where in FB01 transaction.

If you guys has any other ideas, please send me.

Regards,

Sriram

0 Kudos

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.