Skip to Content

CALL SCREEN STARTING AT top left position does not vary

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers