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: 

Mandatory Field Chk in Module Pool

Former Member
0 Kudos

How to differitiate the Mandatory Fields in Module pool programming ?

Either of the foll ways are much appreciated .

1 . Highlight the color of the Mandory filds .

2 . During saving ...Instead of giving the status,

'plz provide Mandatory fileds ' ,i need to tell what are the madatory fields.

3. Positioning the cursor to the mandotory field if it's not filled .( one after the other )

Regards ,

J

Message was edited by: P079223

5 REPLIES 5

Former Member
0 Kudos

Can you not make the field mandatory by selecting the appropriate attribute of that field? Set the attribute, that will make them required.

Srinivas

Former Member
0 Kudos

1. U can make the field as mandatory.

2. You can display the message with fields, pass the fields as parameters for the message.

To position the cursor on the required fields use

<i>SET CURSOR</i>

Anitha

0 Kudos

Yes . Very well we can make the field Mandatory.That's not a problem .

How to use the set curcor field . Cud u explain me ?

foe ex , i hav 10 fields ,out of which 5 fields are mandatory .

While clicking the SAVE button , by leaving the madatory field blank ,

Where i hav to set the Cursor ?

rgds,

J

0 Kudos

Hello,

To indicate mandatory fields you can populate a '?' in those fields which you want to mark as mandatory.

For example if field1 and field2 are mandatory fields out of 5 fields then field1 and field2 will have a '?' in those fields.

If you set the attributes in the properties window for those fields you can see the '?'.

Then if those fields are empty then you have a to give an error message saying 'Field1 and field2 should not be empty'. You can code this in PBO.

Regards,

Message was edited by: Naren Somen

Message was edited by: Naren Somen

0 Kudos

Hi Somen ,

Yes. We can achieve by using Msg class and we can check programmatically .

Wht i am concering is ,is it possible to control from Screen ?

Evn for the standard Programs ,say for example PZ13 transaction ..

If u leave the mandatory fileds ...and save

Foll is the status msg i got.

"Make an Entry in all req fields"

I hope u understood wht am coming to say.

Regrds,

J