on 09-04-2007 9:47 AM
Hi ABAPERs,
I want to know whether we can create a selection screen in smartform itself?
Points will be awarded.
Yours,
S.GUNA
Hi,
We can pass values from our report to smartform. We can not make use of selection-screen within smartform.
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.