cancel
Showing results for 
Search instead for 
Did you mean: 

How do i get the select-options field in smartforms.? Thanks in advance.

former_member242166
Participant
0 Kudos

How do i get the select-options field in smartforms.? Thanks in advance.

Accepted Solutions (0)

Answers (6)

Answers (6)

Former Member
0 Kudos

Hello Linganathan,

is u r problem solved ???

Former Member
0 Kudos

Hello,

Find the below link do u have step by step process for select option in SMARTFORM

http://www.saptechnical.com/Tutorials/Smartforms/SelectOptions/Demo.htm

Thanks & Regards,

Rajesh G

Former Member
0 Kudos

Hello Linganathan,

It is simple.....

  You can do it by the following steps....

   1 Create a Structure zebeln in SE11 with following fields

( For example if u want to decalare low and high values for the field 'EBELN' )

  SIGN   type char1

OPTION type char2

LOW    type ebeln    <<<<<<  low value for Ebeln

HIGH   type ebeln    <<<<<<  high value for Ebeln

(For reference check the structure selopt  )

   This structure is similar to the selection-option internal table.

   2 ) In smart form, create an entry in to TABLES parameter in the Form Interface.

  3 ) Define Structures in TYPES tabs in GLOBAL DEFINITIONS

  s_ebeln  like  zebeln

  4.) Do the global declartation

   5 ) go to main window

create-->Flow logic -> program lines

check the loop check box and provide the internal table.

write the logic.

Thank & Regards

JVS

raymond_giuseppi
Active Contributor
0 Kudos

In the driver program get the parameter list calling FM RS_REFRESH_FROM_SELECTOPTIONS, and add the RSPARAMS structure internal table to the form interface (Using Parameters in a Form) or call the FM in the form but give the calling program name.

Regards,
Raymond

Former Member
0 Kudos

madhu_vadlamani
Active Contributor
0 Kudos

Hi,

What is the requirement and what you are devloping.

Regards,

Madhu.

former_member242166
Participant
0 Kudos

Thanks madhu,

Actually i want give the input field 'amount' in selection screen.  i want this amount into my smartforms. i want track this field.

madhu_vadlamani
Active Contributor
0 Kudos

Hi,

Yes you can do.Are you developing a custom form.Create a driver program and from there in selection pass that amount to a smartform from the prg.That will print.

Regards,

Madhu.

Former Member
0 Kudos

Hi,

Create import parameter in smartform.

go to FORM INTERFACE->IMPORT give your parameter name.

While calling smartform in report program pass this values from selection screen to EXPORT parameters in FM.

former_member242166
Participant
0 Kudos

Thanks Linga,

Can u pls explain some wat briefly.. Because i am new to abap.

madhu_vadlamani
Active Contributor
0 Kudos

Hi,

This is a basic question.Check for the available data.

Regards,

Madhu.

Former Member
0 Kudos

HI,

say p_val is paramter in selection screen.

parameters:p_val type kna1-kunnr.

   CALL FUNCTION '/DWB/SF007766674'
  EXPORTING
*   ARCHIVE_INDEX              =   

count1                     =                           p_val "  pass here values
* IMPORTING
*   DOCUMENT_OUTPUT_INFO       =
*   JOB_OUTPUT_INFO            =
*   JOB_OUTPUT_OPTIONS         =
  tables
    lit_final                  =
* EXCEPTIONS
*   *   OTHERS                     = 5
          .

In smart form create p_val (count1 in above ex) as in import parametr

former_member242166
Participant
0 Kudos

Thanks for ur help lingaraj.