Skip to Content
2

CALL SCREEN STARTING AT top left position does not vary

Jan 23 at 04:57 PM

131

avatar image

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.

10 |10000 characters needed characters left characters exceeded

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

1

Undocumented feature?

0

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

1
Raymond Giuseppi

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

1

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.

0

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

1
* Please Login or Register to Answer, Follow or Comment.

0 Answers