Application Development 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: 

CALL SCREEN STARTING AT top left position does not vary

Sandra_Rossi
Active Contributor

Hello,

I wanted to make a popup dynpro with a little dynamic content (in fact, using CL_SCREEN* classes), and I wanted to make its position vary, but without success. It still keeps the position of the one displayed previously.

Anyone has a solution to use the same dynpro and make the popup position change?

REPORT.
SELECTION-SCREEN BEGIN OF SCREEN 1.
SELECTION-SCREEN COMMENT /1(80) text.
SELECTION-SCREEN END OF SCREEN 1.
SELECTION-SCREEN BEGIN OF SCREEN 2.
SELECTION-SCREEN INCLUDE COMMENT /1(80) text.
SELECTION-SCREEN END OF SCREEN 2.

START-OF-SELECTION.
  text = 'Hello World'(001).
  CALL SELECTION-SCREEN 1 STARTING AT 50 10.
  text = 'Same dynpro, different position not works'(002).
  CALL SELECTION-SCREEN 1 STARTING AT 20 15. "<-- displays at 50 10 !
  text = 'Other dynpro 2, success!'(003).
  CALL SELECTION-SCREEN 2 STARTING AT 20 15.
  text = 'Same dynpro 2, still not works, so first dynpro position memorized?'(004).
  CALL SELECTION-SCREEN 2 STARTING AT 50 10. "<-- displays at 20 15 !
  text = 'Hmmm, in fact, issue when same dynpro twice in a row'(005).
  CALL SELECTION-SCREEN 1 STARTING AT 10 5.

PS: same issue with classic dynpros.

Thanks.

Sandra

EDIT: I think it's partly related to the version of the SAP GUI because of tests below.

EDIT: ABAP 7.40 SP 7, kernel 742 SP 300, SAP GUI 740 SP 7.

EDIT: ABAP 7.02 SP 16, kernel 721 SP 600, SAP GUI 740 SP 7.

EDIT: it's worse in the old ABAP 7.31 SP 4, kernel 720 sp 201, SAP GUI 720, all popups are displayed at the same position (50 10)

EDIT (@Raymond): if the popup is moved manually, when the same dynpro is display twice in a row, the second popup retains the moved position.

1 ACCEPTED SOLUTION

Sandra_Rossi
Active Contributor
0 Kudos

It was probably a bug in the kernel because without changing the SAP GUI (7.40 SP 7), it works well with ABAP 7.52 SP01 (I didn't try with 7.51)

Thank you very much for your help.

7 REPLIES 7

horst_keller
Product and Topic Expert
Product and Topic Expert

I didn't test it (do it tomorrow) but rather a bug then a feature

raymond_giuseppi
Active Contributor
0 Kudos

Undocumented feature?

raymond_giuseppi
Active Contributor

Some undocumented feature, keep the position even if user moved the window?

horst_keller
Product and Topic Expert
Product and Topic Expert

I observe it as a bug and opened an internal incident.

Sandra_Rossi
Active Contributor
0 Kudos

Thank you Horst. Maybe it's more related to the SAP GUI, because SAP GUI 720 with ABAP 731 is "worse" than SAP GUI 740 and ABAP 702.

horst_keller
Product and Topic Expert
Product and Topic Expert

Yeah, I observed that. In my most recent SAP GUI, even all windows are displayed in the same position.

Sandra_Rossi
Active Contributor
0 Kudos

It was probably a bug in the kernel because without changing the SAP GUI (7.40 SP 7), it works well with ABAP 7.52 SP01 (I didn't try with 7.51)

Thank you very much for your help.