Quantcast
Channel: SCN : All Content - Floorplan Manager for Web Dynpro ABAP
Viewing all articles
Browse latest Browse all 839

Multiple list uibb using parameter value

$
0
0

Introduction

 

This document explains how to use parameter value to show multiple list uibb .

 

Step by step process

 

 

Step 1 : Go to se11 and create data element ZLIST_VALUE using domain .

 


 

 

Maintain Domain value for the data element .

 

 

Step 2 : Go to transaction se24 , Create a class and add the interface IF_FPM_GUIBB_LIST , Go to method tab and activate each and every method one by one.

 

Step 3 : Go to Public section and create Internal tables for each list uibb.

         

class ZMULTIPLE_LIST_UIBB definition
   public
   final
   create public .

public section.
*"* public components of class ZMULTIPLE_LIST_UIBB
*"* do not include other source files here!!!

   interfaces IF_FPM_GUIBB .
   interfaces IF_FPM_GUIBB_LIST .
       TYPES:
       BEGIN OF ty_kna1,
           kunnr TYPE kna1-kunnr,
           land1 TYPE kna1-land1,
           name1 TYPE kna1-name1,
           ort01 TYPE kna1-ort01,
           pstlz TYPE kna1-pstlz,
           regio TYPE kna1-regio,
         END OF ty_kna1 ,

          BEGIN OF ty_likp,
           vbeln TYPE likp-vbeln,
           ernam TYPE likp-ernam,
           erzet TYPE likp-erzet,
           erdat TYPE likp-erdat,
         END OF ty_likp,

         BEGIN OF ty_lips,
           vbeln TYPE lips-vbeln,
           posnr TYPE lips-posnr,
           pstyv TYPE lips-pstyv,
           ernam TYPE lips-ernam,
           erzet TYPE lips-erzet,
         END OF ty_lips.

     DATA:
       t_kna1 TYPE STANDARD TABLE OF ty_kna1 ,
       t_likp TYPE STANDARD TABLE OF ty_likp ,
       t_lips TYPE STANDARD TABLE OF ty_lips .

 

Step 4 : Go to attribute tab and create attribute  PARAMETER of type ZLIST_VALUE.

 

 

 

Step 5 : Go to GET_PARAMETER_LIST method and write the below code .

 


 

 

 

Step 6 : Go to INITIALIZE method and write the code to get parameter value .


 

Step 7 :  Go to GET_DEFINITION and write the code to assign structure for list uibb .

 

Step 8 :  Go to GET_DATA method and write the code to show data on each list uibb .

method IF_FPM_GUIBB_LIST~GET_DATA.


SELECT KUNNR
        LAND1
        NAME1
        ORT01
        PSTLZ
        REGIO FROM KNA1 INTO TABLE T_KNA1 UP TO 20 ROWS .

SELECT VBELN
        ERNAM
        ERZET
        ERDAT FROM LIKP INTO TABLE T_LIKP UP TO 20 ROWS.

SELECT VBELN
        POSNR
        PSTYV
        ERNAM
        ERZET FROM LIPS INTO TABLE T_LIPS UP TO 20 ROWS .

CASE PARAMETER.
WHEN 'LIST1'.
   CT_DATA = T_KNA1 .
WHEN 'LIST2'.
   CT_DATA = T_LIKP .
WHEN 'LIST3'.
   CT_DATA = T_LIPS .
ENDCASE.

EV_DATA_CHANGED = ABAP_TRUE.
endmethod.


Step 9 :  Go to se80 and create the application configuration for the component FPM_OIF_COMPONENT and add the list uibb as shown below .

 

 

Step 10 : Create configuration for each List Uibb .

 

Give the feeder class name .

 

 

Give parameter value for the list .

 

configure columns to show list 

 

 

Repeat Step 10 for each list uibb.

 

 

Step 11 : Test the application configuration .

 



Viewing all articles
Browse latest Browse all 839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>