01-23-2018 4:57 PM
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.
12-23-2018 2:25 PM
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.
01-23-2018 6:04 PM
I didn't test it (do it tomorrow) but rather a bug then a feature
01-24-2018 7:43 AM
01-24-2018 7:46 AM
Some undocumented feature, keep the position even if user moved the window?
01-24-2018 7:58 AM
01-24-2018 9:41 AM
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.
01-24-2018 9:45 AM
Yeah, I observed that. In my most recent SAP GUI, even all windows are displayed in the same position.
12-23-2018 2:25 PM
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.