cancel
Showing results for 
Search instead for 
Did you mean: 

How to use parameter option in smartform program line.

Former Member
0 Kudos

HI all,

how can i give parameter for matnr directly in smartform program line, it wont take gives a dump

i don wanna create a separate driver program for that.

Error in the ABAP Application Program

The current ABAP program "/1BCDWB/SF00000001============FT" had to be

terminated because it has

come across a statement that unfortunately cannot be executed.

The following syntax error occurred in program "/1BCDWB/SAPLSF00000001 " in

include "/1BCDWB/LSF00000001F01 " in

line 539:

"You can only use "PARAMETERS" for programs other than type 1 between B"

"EGIN/END OF SCREEN."

" "

" "

The include has been created and last changed by:

Created by: "SAPUSER "

Last changed by: "SAPUSER "

how can i solved this.

Kavinath B.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

this is a mission impossible.

you need a driver program for your smartform anyway, otherwise you wont be able to trigger an output.

Former Member
0 Kudos

Hi,

You can not code

SELECTION-SCREEN BEGIN OF BLOCK. 
SELECT-OPTIONS selcrit FOR (name). 
SELECTION-SCREEN END OF BLOCK.

like this in smartform program line it wont allow

all you have to do is create a driver program

for smartform create a selection screen and call smartform by

n pass variables or internal tables.

call function 'SSF_FUNCTION_MODULE_NAME'
    exporting
      formname                 =
*     VARIANT                  = ' '
*     DIRECT_CALL              = ' '
*   IMPORTING
*     FM_NAME                  =
*   EXCEPTIONS
*     NO_FORM                  = 1
*     NO_FUNCTION_MODULE       = 2
*     OTHERS                   = 3
            .
  if sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  endif.

I hope it will help u

Ketan.P

Sandeep_Kumar
Product and Topic Expert
Product and Topic Expert
0 Kudos

Am afraid that you can use PArameters direclty in the smart form.

Other approach will be to use the Global settings->forms interface->generate the Fm for smartform and you will find the "PARAMETER" declared in the interface here.