Application Development and Automation 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: 
Read only

Mandatory Fields

Former Member
0 Likes
3,254

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.

1 ACCEPTED SOLUTION
Read only

FredericGirod
Active Contributor
0 Likes
2,782

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

10 REPLIES 10
Read only

FredericGirod
Active Contributor
0 Likes
2,783

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

Read only

0 Likes
2,782

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.

Read only

0 Likes
2,782

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 ......

Read only

former_member187748
Active Contributor
0 Likes
2,782

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.

Read only

Former Member
0 Likes
2,782

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

Read only

Former Member
0 Likes
2,782

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

Read only

0 Likes
2,782

Hi Avirat,

I'll proceed as per your input. Thanks for the suggestion.

Read only

Former Member
0 Likes
2,782

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".

Read only

Former Member
0 Likes
2,782

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

Read only

Former Member
0 Likes
2,782

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.