Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

form interface problem

i have declared a internal tale in driver program and it is like this

data : begin of itab occurs 0,

vbeln TYPE vbak-vbeln,

audat TYPE vbak-audat,

auart TYPE vbak-auart,

vkorg TYPE vbak-vkorg,

vtweg TYPE vbak-vtweg,

spart TYPE vbak-spart,

posnr TYPE vbap-posnr,

matnr TYPE vbap-matnr,

matkl TYPE vbap-matkl,

end of itab.

i am passing to smartform

call function I_NAME

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

itab_end = itab

EXCEPTIONS

FORMATTING_ERROR = 1

INTERNAL_ERROR = 2

SEND_ERROR = 3

USER_CANCELED = 4

OTHERS = 5.

In the smartform i am trying to create itab_end so that i can capture the data from the program.

in the form interface in tables option i am declaring like this

itab_end type itab.

I am getting the error like 'type itab does not exist'.

please tell how to solve this.

Former Member
Former Member replied

Hi Ramesh,

You could:

a) create a table type in the data dictionary (method preffered by me)

b) declare this type in the TYPES are of the Smartform(I'm not sure if this really works but it's a good try)

In fact, ITAB is not even a type, it's a variable in your report.Even if it would be a type, it would be a type only seen locally in your report. You can create a table type in a type-pools for example and then include the type pool in the report and in the Smartform.But please use method a) for speed and dependability.

Regards,

George

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question