cancel
Showing results for 
Search instead for 
Did you mean: 

SMARTFORMs Error

Former Member
0 Kudos

Dear Friends

We are upgrade version 5 to 6

in my smart form there are import wa

after version upgrade its getting error like follows

Form Interface : "TY_ADD" is not a pre-defined type or type from a type group.


WA_ADD        TYPE  TY_ADD


and i declared type in the global definition 

TYPES: BEGIN OF ty_add,

       name1 TYPE adrc-name1,
       str_suppl1 TYPE adrc-str_suppl1,
       str_suppl2 TYPE adrc-str_suppl2,
       city1 TYPE adrc-city1,
       post_code1 TYPE adrc-post_code1,
       city2 TYPE adrc-city2,
       landx TYPE t005t-landx,

       END OF ty_add,

 BEGIN OF ty_doc,
       cajo_number TYPE tcj_documents-cajo_number,
       bp_name TYPE tcj_documents-bp_name,
       position_number TYPE tcj_positions-position_number,
       position_type TYPE tcj_positions-position_type,
       document_number TYPE tcj_documents-document_number,
*       h_payments TYPE tcj_documents-h_payments,
       p_tax_amount TYPE tcj_positions-p_tax_amount,     
       p_net_amount TYPE tcj_positions-p_net_amount,     
       account(10) TYPE c,
       position_text TYPE tcj_positions-position_text,
       budat TYPE sy-datum,
       belnr TYPE bkpf-belnr,
       index TYPE i,                                    
       POSTING_NUMBER type   tcj_documents-posting_number,
       END OF ty_doc.

so can you please give me some clue to solve this issue this program properly work before upgrade.

Thanks in Advanced

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Kudos

Hi,

Where have you declared WA_ADD TYPE TY_ADD?

Thanks,

Ahsan

Former Member
0 Kudos

I declared it it form interface import tab

Edited by: Nelson Rodrigo on Sep 10, 2009 2:40 AM

0 Kudos

Hi Nelson,

You can't use it there..The fileds defined by types statement can be only used to create a variable in the global definitions which you can use in the form.For your requirement u have to create a type in the data dictionary.

Thanks,

Ahsan

Former Member
0 Kudos

Hi Ashan

but this same program properly worked in the previous version

as you say how can i import tables in version 6

0 Kudos

Hi Nelson,

Have you added the type ty_add in the new version recently.Was it present in the previous version??

Thanks,

Ahsan

0 Kudos

Hi Nelson,

FYI

Associated Type of an Interface Parameter

ABAP associated type for an interface parameter. The associated type must be a global Dictionary type or exist in a type pool. In the latter case, the type pool must be declared in the function group.

Thanks,

Ahsan

Former Member
0 Kudos

Hi

not newly added

every things are same as previous version

Former Member
0 Kudos

Thanks all I have create a table structure and pass data through it.