cancel
Showing results for 
Search instead for 
Did you mean: 

DUMP error while executing SMARTFORMS

Former Member
0 Kudos

hi ppl,

In driver program i have coded like this-

types: begin of tw,

ebeln type ebeln,

bukrs type bukrs,

bsart type bsart,

end of tw,

tt type standard table of tw.

data: itab type tt,

wa type tw,

lf_ebeln type ebeln.

select-options: so_ebeln for lf_ebeln.

select ebeln bukrs bsart from ekko into table itab where ebeln in so_ebeln.

CALL FUNCTION '/1BCDWB/SF00000026'

EXPORTING

  • ARCHIVE_INDEX =

  • ARCHIVE_INDEX_TAB =

  • ARCHIVE_PARAMETERS =

  • CONTROL_PARAMETERS =

  • MAIL_APPL_OBJ =

  • MAIL_RECIPIENT =

  • MAIL_SENDER =

  • OUTPUT_OPTIONS =

  • USER_SETTINGS = 'X'

wa1 = wa

  • IMPORTING

  • DOCUMENT_OUTPUT_INFO =

  • JOB_OUTPUT_INFO =

  • JOB_OUTPUT_OPTIONS =

tables

itab1 = itab

  • 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.

In smartforms-

form interface -export-> WA1 type ekko.

tables->ITAB1 like ekko .

IN left subtree ->main area, i have created 3 new columns and declred

loop itab1 into wa1.

cell1-text1-&wa1-ebeln&

cell2-text2-&wa1-bukrs&

cell2-text3-&wa1-bsart&

but i know where the exact error is, there is a mismatch between wa1 with wa and also itab with that of itab1 in driver program.so iam not getting the exact solution.Is it always mandatory , for a table we need to declare whole its structure with header line in driver program and need to write select (select *) instead of (select ebeln bukrs bsart).plz some body help me in this issue.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

Your variable have to be of same type of import/export/table parameters used in the smartforms, so:

*DATA: ITAB TYPE TT,
*      WA TYPE TW,
*      LF_EBELN TYPE EBELN.

DATA: WA    TYPE EKKO,
      ITAB  TYPE TABLE OF EKKO,
      LF_EBELN TYPE EBELN.

SELECT-OPTIONS: SO_EBELN FOR LF_EBELN.

SELECT EBELN BUKRS BSART FROM EKKO
   INTO CORRESPONDING FIELDS OF TABLE ITAB
     WHERE EBELN IN SO_EBELN.

Max

Answers (6)

Answers (6)

Former Member
0 Kudos

hi ppl,

I got the solution.thank u

Former Member
0 Kudos

Hi,

Hope it will be useful for u ... Sample Program for your reference ...

TABLES : EKKO.

PARAMETERS : P_EBELN TYPE EKKO-EBELN.

TYPES : BEGIN OF TY_EKKO,

EBELN TYPE EKKO-EBELN,

LIFNR TYPE EKKO-LIFNR,

AEDAT TYPE EKKO-AEDAT,

END OF TY_EKKO.

TYPES : BEGIN OF TY_EKPO,

EBELP TYPE EKPO-EBELP,

MATNR TYPE EKPO-MATNR,

MENGE TYPE EKPO-MENGE,

MEINS TYPE EKPO-MEINS,

NETPR TYPE EKPO-NETPR,

PEINH TYPE EKPO-PEINH,

END OF TY_EKPO.

TYPES : BEGIN OF TY_LFA1,

LIFNR TYPE LFA1-LIFNR,

NAME1 TYPE LFA1-NAME1,

LAND1 TYPE LFA1-LAND1,

END OF TY_LFA1.

TYPES : BEGIN OF TY_MAKT,

MATNR TYPE MARA-MATNR,

MAKTX TYPE MAKT-MAKTX,

END OF TY_MAKT.

DATA : IT_FINAL TYPE ZMEME_SSF,

WA_FINAL TYPE ZMEME,

IT_EKKO TYPE STANDARD TABLE OF TY_EKKO,

IT_EKPO TYPE STANDARD TABLE OF TY_EKPO,

IT_LFA1 TYPE STANDARD TABLE OF TY_LFA1,

IT_MAKT TYPE STANDARD TABLE OF TY_MAKT,

WA_EKKO TYPE TY_EKKO,

WA_EKPO TYPE TY_EKPO,

WA_MAKT TYPE TY_MAKT,

WA_LFA1 TYPE TY_LFA1,

SATURN TYPE RS38L_FNAM.

( Assume that u have got all the datas in your final internal table then ... )

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

EXPORTING

FORMNAME = 'ZEBRA'

  • VARIANT = ' '

  • DIRECT_CALL = ' '

IMPORTING

FM_NAME = SATURN

  • 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 SATURN

  • EXPORTING

  • ARCHIVE_INDEX =

  • ARCHIVE_INDEX_TAB =

  • ARCHIVE_PARAMETERS =

  • CONTROL_PARAMETERS =

  • MAIL_APPL_OBJ =

  • MAIL_RECIPIENT =

  • MAIL_SENDER =

  • OUTPUT_OPTIONS =

  • USER_SETTINGS = 'X'

  • IMPORTING

  • DOCUMENT_OUTPUT_INFO =

  • JOB_OUTPUT_INFO =

  • JOB_OUTPUT_OPTIONS =

TABLES

IT_SSF = 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.

All the best,

Cheers ...

Former Member
0 Kudos

Hi ,

Check the work area which you have used in the driver program should be the same in the smartform.

Regards,

Sravanthi

Former Member
0 Kudos

This message was moderated.

Former Member
0 Kudos

HI,

In Smart form u mention ITAB1 like ekko

In Program u mention ITAB type tt

Here ITAB contains only 3 fields, but ITAB1 contains all the fields in EKKO.

How can u compare these two tables(itab1 = itab).

Insted of ITAB1 like ekko, u can create one global structure(like z-structure). That structure must contains ITAB fields only. Then only u can compare these two tables.

Former Member
0 Kudos

hii,

Are there any quantity or currency fields you are printing , if there goto Global definitions-->currency /quant fields tab and mention the fields you are printing.

With regards,

sandeep akella.