보통 뷰에서 view api 의 REQUEST_FOCUS 메소드를 호출하여 포커스를 지정합니다.

ALV에는 SET_FOCUS 라는 메소드가 있습니다.

그런데 SET_FOCUS를 실행해도 포커스 지정이 안되고 무시되는 경우가 있습니다.

 

노트 1399068 에 답이 있습니다.

 Note that the time in the Web Dynpro phase model at which you set the focus is relevant. If you set the focus very early in the phase model, the data may be changed and the focus lost in a subsequent phase. We recommend that you set the focus at the time WDDOPOSTPROCESSING.

다른 요인으로 인해 포커스가 다시 변경될수 있으니, 컴포넌트컨트롤러의 WDDOPOSTPROCESSING 메소드에서 포커스 지정하는 코드를 넣으라고 하네요.

그리고 서버 버전도 확인하시기 바랍니다.

 

Solution

  • SAP NetWeaver 7.00
    Import Basis Support Package 21.
  • SAP NetWeaver 7.01
    Import Basis Support Package 6.
  • SAP NetWeaver 7.02
    Import Basis Support Package 2.
  • SAP NetWeaver 7.10
    Import Basis Support Package 10.
  • SAP NetWeaver 7.11
    Import Basis Support Package 5.
  • SAP NetWeaver 7.20
    Import Basis Support Package 2.

 

 

+ Recent posts