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

Back to the Selection Screen

Former Member
0 Likes
585

Hi all,

I am working on a report with a BDC upload function. It displays an error message if the data from the upload text file doesnt match a certain condition.

However, when this error message pops up, I need to get back to the selection screen. As of now, after the error display - I am on a blank 'SAP R/3' screen with all passive buttons except the 'Enter' one.

Hope you could help me with the same.

Thanks!

1 ACCEPTED SOLUTION
Read only

varma_narayana
Active Contributor
552

Hi

The reason for this is :

We should not generate the Error Messages ( Type E ) in the List Events such as START-OF-SELECTION and END-OF-SELECTION. Bcoz this will make the Screen blank and does not allow the user to continue.

So Instead of the Error Message use this statement (Type S)

<b>Message S100(Zmsg). "Generates status message

Leave list-processing. "Returns control to Selection Screen

</b>

<b>reward if Helpful.</b>

4 REPLIES 4
Read only

Former Member
0 Likes
552

Hi,

You need to check the File and Raise the Error message in AT SELECTION-SCREEN event, then you won't get this type of Problem

Regards

Sudheer

Read only

varma_narayana
Active Contributor
553

Hi

The reason for this is :

We should not generate the Error Messages ( Type E ) in the List Events such as START-OF-SELECTION and END-OF-SELECTION. Bcoz this will make the Screen blank and does not allow the user to continue.

So Instead of the Error Message use this statement (Type S)

<b>Message S100(Zmsg). "Generates status message

Leave list-processing. "Returns control to Selection Screen

</b>

<b>reward if Helpful.</b>

Read only

0 Likes
552

Thanks a bunch mate!

Read only

0 Likes
552

HI,

Instead of error message use information message in following way.

message I002.

leave list-processing.