cancel
Showing results for 
Search instead for 
Did you mean: 

SMART FORMS

Former Member
0 Kudos

Hi all,

i am writing a program calling smartforms and passing internal table and waork area to smart form. while passing work area there is some error(The statement "EXPORTING" is not expected. A correct similar statement is EXPORT) please help help me in resolving this error. the code is:

DATA: IT_LIPS TYPE TABLE OF ZLIPS,

  • IT_LIKP TYPE TABLE OF ZLIKP,

WA_LIKP TYPE ZLIKP,

WA_LIPS TYPE ZLIPS.

CONSTANTS: C_FMNAME TYPE TDSFNAME VALUE 'Z_DELIVERY_REPORT'.

DATA: W_FMNAME TYPE RS38L_FNAM.

PARAMETERS: P_VBELN LIKE LIKP-VBELN.

SELECT single VBELN

KUNNR

LFDAT

BTGEW

FROM LIKP

INTO wa_LIKP

WHERE VBELN EQ P_VBELN.

SELECT POSNR

MATNR

LFIMG

MEINS

FROM LIPS

INTO CORRESPONDING FIELDS OF TABLE IT_LIPS

WHERE VBELN EQ wa_likp-VBELN.

*LOOP AT IT_LIPS INTO WA_LIPS.

*WRITE:/ WA_LIPS-POSNR,

  • WA_LIPS-MATNR,

  • WA_LIPS-LFIMG,

  • WA_LIPS-MEINS.

*

*ENDLOOP.

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

EXPORTING

formname = C_FMNAME

  • VARIANT = ' '

  • DIRECT_CALL = ' '

IMPORTING

FM_NAME = W_FMNAME

EXCEPTIONS

NO_FORM = 1

NO_FUNCTION_MODULE = 2

OTHERS = 3

.

IF SY-SUBRC EQ 0.

CALL FUNCTION W_FMNAME

TABLES

IT_LIPS = IT_LIPS.

EXPORTING

WA_LIKP = WA_LIKP.

ENDIF.

regards

vivek

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Chnage the last call to the function module as

CALL FUNCTION W_FMNAME

EXPORTING

WA_LIKP = WA_LIKP

TABLES

IT_LIPS = IT_LIPS.

Regards

Wenceslaus

Answers (0)