首先无语。在网上gg了一两天,发现都是copy来copy去的资料。看了半天都看不明白。
自己去sap Library看!五分钟就看明白了。毛病吗?!
另外说,SAP workbench本身自带的help怎么也解释地云里雾里。
两个概念 the dialog processor & the list processor,list是没有screen的。
LEAVE TO LIST-PROCESSING [AND RETURN TO SCREEN <nnnn>].
以上是用来 To pass control from the dialog processor to the list processor。
看看sap的recommended procedure:
- First, use the
LEAVE TO LIST-PROCESSING AND RETURN TO SCREEN 0.
statement to call the list display at the end of the screen, and to ensure that, after leaving the list, you return to the point from which the screen was called. - Next, set a GUI status for the list; for example, the default list status SPACE or a list status of your own.
- Use one of the following statements to ensure that the empty screen is not displayed:
SUPPRESS DIALOG.
or
LEAVE SCREEN. Instead, the list is displayed immediately at the end of the screen. - Now define the entire basic list, and place any necessary data in the HIDE area.
leave screen
The LEAVE SCREEN statement ends the current screen and calls the subsequent screen. The next screen is either the static next screen or a dynamic next screen .
静态下一个屏幕是在设计时field里写死的。
动态可以:
SET SCREEN Next Screen.
LEAVE SCREEN.