How to determine attributes of screen fields while posting using FB01
Requirement: To determine the attributes of screen fields while posting using FB01.
Example: For the G/L Account 1 - the cost center field is mandatory and it appears on the screen. However for G/L Account 2 - the cost center field does not even appear on the screen.
When i am posting through a program [via coding], is there any way i can determine:
which screen field is mandatory and
which screen field appears on the screen.
Like is there a standard provided function module to which if i can pass the company code, the posting key and the G/L Account number it should return what all screen fields are there and which are mandatory.
Any help in this regard is highly appreciated.