Displaying ALV in a Container using CL_SALV_TABLE Class
In the Previous part, we understand how can we use CL_SALV_TABLE class for our purpose and can achieve various requirements easily. Also we had discussed how to display ALV in a container using method SET_TABLE_FOR_FIRST_DISPLAY of CL_GUI_ALV_GRID class. Now, we will display ALV in a container using CL_SALV_TABLE class. Requirement :- User wants that he would be giving input as a Sales document number. And the output should be details of that Sales document from VBAK table in form ALV in a container. Solution :- Step 1 :- Create a executable program in ABAP Editor ( SE38 ). Step 2 :- Create a type structure for VBAK table and a corresponding internal table for it. Step 3 :- Define a select option for user input. Step 4 :- In start of selection write the logic to fetch data from header table. Step 5 :- We need to create a object of CL_GUI_CUSTOM_CONTAINER class which we will pass into the factory method. Step 6 :- Call the factory method of CL_S...
Comments
Post a Comment