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

Dynpro Required Field

Former Member
0 Likes
1,613

Hello,

I have created a Dynpro, it has text fields that need to be required, and I have marked the required property.

When the program is runing, and the field marked as required is not filled, the message appears correctly saying that i should fill all the mandatory fields, but my problem consists on the exit, back and cancel buttons that are disabled and I need them enabled, how can I activate them?

Thanks,

Gabriel P.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,449

Hi,

GO TO SE51.

Enter ur program name and screen number.

Assign Function code to 'BACK' 'EXIT' buttons.

Similary include the logic for them in PAI events.

The buttons will appear in your screen now.

Hello,

I have created a Dynpro, it has text fields that need to be required, and I have marked the required property.

When the program is runing, and the field marked as required is not filled, the message appears correctly saying that i should fill all the mandatory fields, but my problem consists on the exit, back and cancel buttons that are disabled and I need them enabled, how can I activate them?

Thanks,

Gabriel P.

8 REPLIES 8
Read only

Former Member
0 Likes
1,450

Hi,

GO TO SE51.

Enter ur program name and screen number.

Assign Function code to 'BACK' 'EXIT' buttons.

Similary include the logic for them in PAI events.

The buttons will appear in your screen now.

Read only

suresh_datti
Active Contributor
0 Likes
1,449

did you create a new pf-status in SE41 for the screen?

Suresh

Read only

Former Member
0 Likes
1,449

HI Gabriel,

In your PBO section,

create a module which has the staement

set-pfstatus 'ABC'.

double click on the 'ABC', and create a pf status for your screen.

ASSIGN FUNCTION CODES TO ALL THE STANDARD BUTTONS.

Regards,

Ravi

Read only

Former Member
0 Likes
1,449

Hello back,

I already have done it, those buttons have everything correct and works perfectly, when I have unchecked the required property the dynpro works fine, but if I check the property those buttons got disabled (its actions, you can watch them on the screen, but cant use them).

Gabriel p.

Read only

0 Likes
1,449

Put the fields in a chain-endchain section of your pbo.

Regards,

Ravi

Read only

Former Member
0 Likes
1,449

Hi,

Please forgive me if this sounds very sill to you, Is the pf-status activated. Can you activate in SE41 and find out. There are situations where if PF-STATUS is not activated all the buttons gets greyed out.

Read only

Former Member
0 Likes
1,449

Hi Gabriel,

set pf status as per ur requirements.

in se51, in the pai block, do the validation for required field and after that in the user command module

u can write the code for back, exit n cancel buttons.

Hope it helps.

regards,

keerthi.

Read only

Former Member
0 Likes
1,449

Thank you all for answering,

The solution was to mark the field as recommended, and during PAI process validate if the required field was filled.

I already had the PF status done.

Gabriel p.