09-28-2005 12:28 AM
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
09-28-2005 1:16 AM
FYI, Field-exits are neither recommended nor supported by SAP any more.
09-28-2005 1:16 AM
FYI, Field-exits are neither recommended nor supported by SAP any more.
09-28-2005 1:43 AM
Hi Syd,
Thank you very much for your reply.... do you have any other way to do this......
Regards,
Sriram
09-28-2005 4:45 AM
Can you try and implement enhancement RFEPOS00? Is that any good at all for what you are trying to do?
09-28-2005 3:42 AM
Check transaction OBC4 & OBC5 . Here you can change the field attributes.
Also check tcode SFAW .
Cheers
09-28-2005 4: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,
09-29-2005 5:13 AM
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.
09-30-2005 1:06 AM
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
09-30-2005 2:39 AM
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.