cancel
Showing results for 
Search instead for 
Did you mean: 

SMARTFORM WITH SELECTION SCREEN

Former Member
0 Kudos

Hi ABAPERs,

I want to know whether we can create a selection screen in smartform itself?

Points will be awarded.

Yours,

S.GUNA

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi,

We can pass values from our report to smartform. We can not make use of selection-screen within smartform.

Regards.

former_member480923
Active Contributor
0 Kudos

Yes you can do that, hers is how,

Create a Z FM (lets say ZTEST_SCREEN) and inside the FM call a screen 9001. Remember to code everything relating to that SCREEN inside the FM itself.

Call the Z FM anywhere in the Samrtform and it works!!!!

Hope That Solves ur Problem

Anirban M.

Former Member
0 Kudos

Hi Anirban,

Can you explain me eloboately pls.

I am in terrible need.

Former Member
0 Kudos

Can u explain me in detail pls?

I am in terrible need for that

former_member480923
Active Contributor
0 Kudos

here is the code that u will need inside the FM:

function ztest_call_screen.
*"----------------------------------------------------------------------
*"*"Local Interface:
*"----------------------------------------------------------------------


  call screen '9001'.


endfunction.
******************************
*----------------------------------------------------------------------*
***INCLUDE LZTESTO01 .
*----------------------------------------------------------------------*
*&---------------------------------------------------------------------*
*&      Module  STATUS_9001  OUTPUT
*&---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
module status_9001 output.
  set pf-status ' '.
*  SET TITLEBAR 'xxx'.

endmodule.                 " STATUS_9001  OUTPUT
*----------------------------------------------------------------------*
***INCLUDE LZTESTI01 .
*----------------------------------------------------------------------*
*&---------------------------------------------------------------------*
*&      Module  USER_COMMAND_9001  INPUT
*&---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
module user_command_9001 input.

  case sy-ucomm.

    when 'BACK' or
         '%EX'  or
         'CANC'.

      leave program.
  endcase.

endmodule.                 " USER_COMMAND_9001  INPUT

i have declared a parameter in the screen value (VBAK-VBELN) the code for which is to be written in the module USER_COMMAND_9001 .

and here is how u call it in Smartform by using the Program Lines just write this piece of code, the condition of display or the values that u wanna retrive from the FM must be sent as import or export values to the Z-FM.

call function 'ZTEST_CALL_SCREEN'

.

Hope That Helps

Anirban M.

former_member196280
Active Contributor
0 Kudos

It is not possible to create selection screen inside smartform , but you can attach smartform to ABAP report, so you can have selection screen in your report.

Regards,

SaiRam

Former Member
0 Kudos

Hi,

<b>as the smartforms are just like the function modules we cannot create the

selection screen.</b>

the smartform input is the import parameters , tables

and output will be a page and

thanks & regards,

Venkatesh