cancel
Showing results for 
Search instead for 
Did you mean: 

form interface problem

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi,

For any Importing or exporting or Tables tab fields you must create their structures in SE11. then only sap allows you to create their reference type in Form interface. For the Structures or Internal tables in Global definition you can create their structures in TYPES TAB using Types key word.

Former Member
0 Kudos

your internal table strcture must be created in SE11 strcture.

if you pass the strcture in FORM INTERFACE that must be created by SE11 data dictionary level....

Former Member
0 Kudos

This only works fine with stuctures in the data dictionay. So use SE11 and create it your table and stuctures there.

Success.

Gr., Frank

Former Member
0 Kudos

Hi,

Ramesh kumar

Your check this code.

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.

data:

t_itab type standard table of itab.

Working fine .

Regards,

Ansari.

Former Member
0 Kudos

Hi,

define a Global Structure like ITAB fields in SE11, then use it in the program & smartform for declaring the internal tables..

eg:

declare structure z_so_strct in SE11 with fields like ur ITAB fields (vbeln to matkl) then.

In Driver Program:

data : itab TYPE STANDARD TABLE OF z_so_strct.

In Smartforms 'Form Interface' Tables tab:

itab_end LIKE z_so_strct.

Rgds,

Pavan

jyotheswar_p2
Active Participant
0 Kudos

MAke sure that u have declared the the ITAB in the form interfaces of the Smartform and then try once again.It whould work.

Thanks

Jyo