Add layout (layout) button

This chapter explains how to add to the SALV layout (Layout) button, by default, only modify layout SALV a button on the tool bar, and select the layout is not saved and buttons, as follows:

2016-09-07_16-41-30

Implementation:

1, made in Example SALV CL_SALV_LAYOUT of

2, by a method set_key CL_SALV_LAYOUT instance, set_save_restriction, set_initial_layout display layout button

2016-09-07_16-51-51

Examples of program flow diagram of the UML, before adding set_layout method basis,

SALV_Layout

Complete code:

Run results are shown below:

2016-09-07_16-54-26

the above

Guess you like

Origin www.cnblogs.com/lvdong18847870057/p/12548659.html