cancel
Showing results for 
Search instead for 
Did you mean: 

smartforms-error

Former Member
0 Kudos

Hi experts

I am using the following code for smartforms, but am getting the error

CALL_FUNCTION_PARM_MISSING

can you tell me what is the problem.

REPORT Z_SD_PRINT.

tables : vbak,vbap,stxh.

DATA : begin of it_vbap occurs 0,

vbeln like vbap-vbeln,

posnr like vbap-posnr,

matnr like vbap-matnr,

arktx like vbap-arktx,

end of it_vbap.

data : V_FMNAME TYPE RS38L_FNAM,

V_FORMNAME TYPE TDSFNAME VALUE 'Z_SD_PRINT'.

data : w_vbeln type vbap-vbeln,

w_posnr type vbap-posnr,

w_matnr type vbap-matnr,

w_arktx type vbap-arktx.

data : wa_vbap like it_vbap,

wa_final like it_vbap.

data : it_final like it_vbap occurs 0 with header line.

SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-000.

PARAMETERS zso TYPE vbap-vbeln.

SELECTION-SCREEN END OF BLOCK b1.

select * from vbap into corresponding

fields of table it_vbap

where vbeln = zso.

LOOP AT it_vbap INTO wa_vbap.

*to move details of header details to final internal table

MOVE wa_vbap-vbeln TO wa_final-vbeln.

MOVE wa_vbap-posnr TO wa_final-posnr.

MOVE wa_vbap-matnr TO wa_final-matnr.

MOVE wa_vbap-arktx TO wa_final-arktx.

append wa_final to it_final.

endloop.

perform display_smartform.

FORM display_smartform.

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

EXPORTING

formname = V_FORMNAME

  • VARIANT = ' '

  • DIRECT_CALL = ' '

IMPORTING

FM_NAME = V_FMNAME

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.

CALL FUNCTION V_FMNAME

tables

IT_FINAL = IT_FINAL

EXCEPTIONS

FORMATTING_ERROR = 1

INTERNAL_ERROR = 2

SEND_ERROR = 3

USER_CANCELED = 4

OTHERS = 5

.

IF sy-subrc <> 0.

MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

ENDFORM.

Regards

Rajaram

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi ,

create a structure in se11 with the following components :

vbeln like vbap-vbeln,

posnr like vbap-posnr,

matnr like vbap-matnr,

arktx like vbap-arktx

Use it in the print program to create an internal table like .

In smartform in form interface -> tables-

Create a table of type structure .

Then in driver program populate the internal table and pass it to the smartforms .

Regards

Former Member
0 Kudos

why we should create structure, is it necessary.

Can you tell me, whats the purpose of creating structure here.

Former Member
0 Kudos

HI Raja

check in form interface is there any other parameters exists in a smartform

CALL_FUNCTION_PARM_MISSING : The function expects a parameter, but none was passed by the calling program.

reward points to all helpful answers

kiran.M