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

F4 popup while running ABAP unit test for a class

former_member873583
Discoverer
0 Likes
1,263

On running the ABAP Unit test, there is popup coming up for f4 help. This is happening only in one ABAP system and same unit test is running without popup in other ABAP system. Is there something that is missing or any idea why there is difference in the unit test behavior in different systems?

I have created a class A, and a method M1. M1 method has FM ' F4IF_INT_TABLE_VALUE_REQUEST'. This FM is used for help value (F4 pop up).

I have written unit test for method M1. In development system, when I run unit test, there is no pop up. In quality/test system on running same unit test, there is F4 pop up for the mentioned FM.

5 REPLIES 5
Read only

matt
Active Contributor
1,197

I think we need rather more detail than you've provided.

Read only

former_member873583
Discoverer
0 Likes
1,197

I have updated question with details

Read only

Sandra_Rossi
Active Contributor
0 Likes
1,197

I think you miss knowledge of what Unit Tests are.

Of course unit tests don't display dialogs.

It's what test doubles are for.

Read only

former_member873583
Discoverer
0 Likes
1,197

sandra.rossi why is the behavior different in different system ? If I had got pop up in development system, I would have put the FM in test double.

Read only

Sandra_Rossi
Active Contributor
0 Likes
1,197

I don't know, but why would you display a popup in unit tests?

If your question is just to know why the dialog is shown, it's worth the question, but you should propose a minimal reproducible example, and indicate your ABAP release/SP level.

As you are an SAP employee, why not checking/asking SAP support or SAP gurus directly?