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

Test fields when execute the report

Former Member
0 Likes
854

Hello,

How can I test if the fields are empty or not when execute the report?

thanks!

7 REPLIES 7
Read only

Former Member
0 Likes
820

Hi,

You want to check in selection-screen?

if fieldname is initial.

endif.

Pranav

Read only

Former Member
0 Likes
820

Hi,

TRY USING BAPAI

USING CHECK

check field is initial.

using if...end if

if field is initial.

      endif.

Regards,

V.Balaji

Reward if usefull

Read only

Former Member
0 Likes
820

Hi,

You can check as below:


Tables : bsis.

parameters : sp_bukrs like bsis-bukrs.

at selection-screen.

if sp_bukrs is initial.
 message 'Company code should not be empty' type 'E'.
endif.

Thanks,

Sriram Ponna.

Read only

0 Likes
820

Thank you for this answer, but I need test it... when I execute the report.

Thanks!

Read only

0 Likes
820

Hi Raphael,

If u want to check it in debug mode then fill in all selection screen details and enter /h in command promt. Here u acn check the field content by double clicking on the field.

If u want to check it with out debugging the simply use write statements and see the output.

Thanks,

Vinod.

Read only

Former Member
0 Likes
820

hi,

At the selection screen level you can check it by using the if not initial and if you want to check after giving the data u can check it in the debugging mode by starting the debugger or aimpoly giving the /h in he command prompt and then executing it.

or u can check it by using write statement.

reward if usefull.

Read only

Former Member
0 Likes
820

hi

use AT SELECTION-SCREEN events

like

at selection screen on <para>

if <para> is initial.

message e001(<mcl>)

endif.