Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9190

Re: Passing select-options to the smartforms

$
0
0

1. Go to se11

     cteate a structure zselect_option.

    with the fields: low     types      kunnr

                           high   types     kunnr

                           sign   types     char1

                           options types  char2.

     than save,check and activate the structure.

 

2.go to smartforms

 

    Doubl click on form interface.

    in table tab declare the parameters as

 

    s_kunnr    like  zselect_option

    it_kna1     like  kna1.

 

3.Double click on global definition

    declare a work area in global data like as

    wa_kna1   type kna1.

 

4.Click on Main window

 

    create -> flow logic -> prgmlines.

     Give the input paramer as  s_kunnr

                  output parameter as it_kna1.

 

    again..Click on Main window

     create -> flow logic -> loop.

     in that loop click on data tab

     provide it_kna1 into wa_kna1.

 

    than click on loop -> create -> text.

     drag and drop our fields from Globel Data.

     save and activate our smartform.

 

5. create a driver prmg as..shown below

 

tables:kna1.

select-options:s_kunnr for kna1-kunnr.

data:it_kna1 type table of kna1.

DATA:F_NAME TYPE RS38L_FNAM.

start-of-selection.

   select *

   from kna1

   into table it_kna1

   where kunnr in s_kunnr.

 

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

   EXPORTING

     FORMNAME                 = 'ZSMARTFORM'       "(Give Smartform name)

*   VARIANT                  = ' '

*   DIRECT_CALL              = ' '

  IMPORTING

    FM_NAME                  = F_NAME.

 

CALL FUNCTION f_name

 

   TABLES

     S_KUNNR                    = s_kunnr

     IT_KNA1                    = it_kna1.

 

save ,check and activate and exicute the prgm...


Viewing all articles
Browse latest Browse all 9190

Trending Articles



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