‎2014 Feb 21 6:52 AM
Hi Experts,
I have a bit strange requirement. I need to know all the mandatory fields of a t-code on per screen basis & inform the end user.
Can anyone please guide me on how to do this?
Thanks.
‎2014 Feb 21 7:00 AM
Hi,
it's really simple : it's not possible
a lot of time the mandatory fields are ABAP4 coding in the transaction. For example when you create a customer, the mandatory fields will be determined by the Account Group. So how to answer this question just with trans. XD01 ??
Regards
Fred
‎2014 Feb 21 7:00 AM
Hi,
it's really simple : it's not possible
a lot of time the mandatory fields are ABAP4 coding in the transaction. For example when you create a customer, the mandatory fields will be determined by the Account Group. So how to answer this question just with trans. XD01 ??
Regards
Fred
‎2014 Feb 21 7:04 AM
If not in general, can we provide a solution with some limitations?
I mean we maintain at least few fields somewhere which are gonna be mandatory for every execution.
‎2014 Feb 21 7:12 AM
Seriously forget this, you will have only special case. All the transactions I could image it's specific : MM01, MM02, XD01, XD02, XK01, XK02, VA01, VA02 ......
‎2014 Feb 21 7:03 AM
Hi Bhavya,
on any screen you have to check for mandotary fields, if system asks to fill any field
before moving to another screen, it means mandatory,
But my question is that, by this way you have to go through each screen of your all
transactions, so littlebit strange about your requirements.
‎2014 Feb 21 7:24 AM
Hi Bhavya,
It feels like your user is less keen to imbibe himself in processes.
As a consultant I feel to make them understand to keep approach healthy while dealing with system.
This will help both in long and short term.
Regards,
Ashish
‎2014 Feb 21 7:40 AM
Are you talking about module pool or selection screen report?
if module then ..follow steps.
you can get program name from t-code
after that tcode
go to
se51
enter program name and screen number
then press display.
in element list
select tab --> special attr.
you can see following type screen. this is just path to get values ... rest u need do some programming to form a report...
Further More You can use RS_IMPORT_DYNPRO function module to get mentioned above parameters..
Message was edited by: Avirat Patel
‎2014 Feb 21 11:02 AM
Hi Avirat,
I'll proceed as per your input. Thanks for the suggestion.
‎2014 Feb 21 1:03 PM
Hi,
Now I am having another issue. A field is mandatory on screen. How can it be possible if it does not follow any of the conditions mentioned below:
1. It is NOT marked as "Required" in the Special Attributes of Screen.
2. During debbuging, NO logic is trigrerred that makes it mandatory.
Still I get the message, "Fill in all required entry fields".
‎2014 Feb 21 3:00 PM
Hi Bhavya,
Please check the following:
1.) If the message is cming from code then you can do a global search in program with message number.
2.) There are few fields which are mandatory at config level , Its tough to get those fields.
3.) Few fields will be mandatory based on condition. Like for some posting Tax code is mandatory but for other case its not. (Cross company posting or Inter company posting), In this case also its tough to get mandatory fields.
Better way discuss the same with some good functional.
Cheers,
Prakash
‎2014 Feb 25 9:52 AM
It is not possible completely.
We can only take care of the fields that are made mandatory via "Configuration" or by "Special Attributes of Screen".
Fields made mandatory via ABAP code can't be covered. So closing this issue.
Thanks for the useful replies.