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

error message in PAI module

Former Member
0 Likes
3,468

Hello,

i have written an message 'text' type 'e' in a PAI module.

when this message is executed i am taken bacl to the screen but none of the fields are editable any longer. i have to come out of the transaction.

can someone help me on this? what else do i need to keep the fields editable for the user to input the correct data?

Thanks.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,017

none of it helps.

the problem is after the message statement is executed, the control doesnt go back to PAI. the control comes to the screen with non editable mode.

10 REPLIES 10
Read only

Former Member
0 Likes
2,017

hi,

Change the message type (other than e).

Read only

Former Member
0 Likes
2,017

i want it as an error message and even if i change it type w its the same case.

Read only

0 Likes
2,017

Hi,

Try DISPLAY LIKE dtype option.

Your message will be information of status type but it will be displayed like an error message.

Press F1 on message to get more details about this option.

Hope it solves your problem.

Read only

former_member150733
Contributor
0 Likes
2,017

Try something like this in the PAI module

field <field_name1>

<field_name2>

...

module <module_name>.

<Field_name>1 and 2 is the fieldnames you want to make editable.

module_name is the name of a new module you need to create. You will be writing the code to check the field validation in the module <module_name>

Read only

Former Member
0 Likes
2,018

none of it helps.

the problem is after the message statement is executed, the control doesnt go back to PAI. the control comes to the screen with non editable mode.

Read only

0 Likes
2,017

try my above code in a chain endchann statement.

chain.

field field1

field2

....

module module_name.

endchain.

Make sure this is the first set of statements just after the PAI.

Read only

0 Likes
2,017

Hi,

Have you tried this ?

MESSAGE s014(<Message class name >) DISPLAY LIKE 'E'.

This is working .

It keeps the fields enabled for input after message.

Read only

Former Member
0 Likes
2,017

Hi!

Display the error message as information message this works.....

it will bring u back to that screen with editable fields.

regards.

Read only

Former Member
0 Likes
2,017

Check std program: demo_dynpro_field_chain

Read only

sridhar_meesala
Active Contributor
0 Likes
2,017

Hi,

If u want the message type to b 'E' only and want the fields to be editable then place the fields which are getting disabled inside CHAIN. and ENDCHAIN.

hope this solves. let me know whether it is solved or not.

Thanks,

Sri...