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

Message type problem.

Former Member
0 Likes
1,932

Hi Guru's,

I have a problem with a error message in a dynpro. If the error message (type e) goes with a text field, there is no problem, I can modify the text and continue. But I need to validate if a row of tablecontrol has been marked. The validation is correct but once it has left the error, dynpro is bloqued and I can't modify nothing.

Thanks

1 ACCEPTED SOLUTION
Read only

sbhutani1
Contributor
0 Likes
1,639

Hi Pablo,

You can do one thing you can again call that screen or you can set the cursor on particular field after showing the message. it will not block the screen.

Try it out

Regards

Sumit Bhutani

Ps reward points if helpful

Hi pablo,

if u want to stop the processing use error message.

like message e000(zz) with 'XXXXXX'.

regards,

keerthi.

8 REPLIES 8
Read only

Former Member
0 Likes
1,639

Hi,

Use the Message like this.

MESSAGE ID 'Message Class'

TYPE 'S'

NUMBER '101'

DISPLAY LIKE 'E'.

<b>Please reward points if it helps.</b>

Regards,

Amit Mishra

Read only

0 Likes
1,639

This message allows to continue the program and I need that stop until has been validated

Read only

naimesh_patel
Active Contributor
0 Likes
1,639

Hello,

Do like

in your Flow logic,

LOOP AT ITab.

CHAIN.

FIELD: itab-sel, itab-fld1, itab-fld2.

MODULE check_data ON CHAIN-INPUT.

ENDCHAIN.

ENDLOOP.

and check_data module is like,

if itab-sel = 'X'.

" validation

endif.

Regards,

Naimesh

Read only

Former Member
0 Likes
1,639

Hi pablo,

plz use chain and endchain in PAI of screen XXX.And also use message class of type 'S'(means status bar information).Here dynpro can't block and it can't move to another screen without correct data, as we r using chain and endchain for validation.

Plz mark points if it is useful.

Thanks,

suma.

Read only

Former Member
0 Likes
1,639

Hi Pablo,

in se51 place the table-fields in chain endchain.

for example.

PROCESS AFTER INPUT.

CHAIN.

FIELD: itab-fld1,

itab-fld2,

itab-fld3,

itab-fld4,

MODULE USER_COMMAND_0100.

ENDCHAIN.

in the module user_command_0100.

, u can do ur required validation.

reward pts. if helpful.

regards,

keerthi.

Read only

0 Likes
1,639

The field of tablecontrol are only output, message " input/output field not defined"

Read only

Former Member
0 Likes
1,639

Hi pablo,

if u want to stop the processing use error message.

like message e000(zz) with 'XXXXXX'.

regards,

keerthi.

Read only

sbhutani1
Contributor
0 Likes
1,640

Hi Pablo,

You can do one thing you can again call that screen or you can set the cursor on particular field after showing the message. it will not block the screen.

Try it out

Regards

Sumit Bhutani

Ps reward points if helpful