Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ERROR MESSAGE

Former Member
0 Likes
1,062

Please use an informative subject in future, and not in ALL CAPITALS

Hi SF experts,

i'm exercising on printing invoice using smartforms.(using step by step guide)

i'm declaring Import parameters in Form Interface as shown below ,

Parameter name : IM_T_VBRK

Type Assignment : TYPE

Associated Type: Y_TY_VBRK

i'm getting the below error message when i check the display data in text editor,

The type "Y_TY_VBRK" is unknown.

please do the needful to solve the problem and let me know what i've to do.

Thanks in advance,

Raj

Edited by: Matt on Mar 17, 2009 9:01 AM

8 REPLIES 8
Read only

Former Member
0 Likes
945

You should define the data element Y_TY_VBRK in SE11 first.

Read only

Former Member
0 Likes
945

From SAP Help :

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.

Note that you cannot use types from type pools for RFC-enabled function modules.

When assigning a type using the LIKE typ method, you cannot use types from type pools either.

Additionally you can use the internal ABAP types C, I, N, X, P, D, T, F, and the TABLE type - to an extent in generic form.

So in your case check if Y_TY_VBRK is a valid structure using transaction SE11.

Mathews

Edited by: Matt on Mar 17, 2009 9:03 AM - Italicised the quote

Edited by: Mathews Joseph on Mar 17, 2009 4:55 PM

Read only

Former Member
0 Likes
945

Hi,

check in program lines

general attribute tab,check whether u have given output parameters or not

if not give details

Thanks and regrds

Durga.K

Read only

0 Likes
945

Hi,

Thanks for that. could pls explain more details on that?

In program line I didn't give any input in output parameter under general attribute tab ,

pls let me know shall i define ' y_ty_vbrk ' in output parameter and ' im_t_vbrk' in input parameter

Thanks,

Raj

Read only

Former Member
0 Likes
945

Hi,

Define Y_TY_VBRK in se11...

Or take the existing(standard ) dataelements.

Eg:

name type Associatedtype

carrid type spfli-carrid..

Read only

matt
Active Contributor
0 Likes
945

Please use an informative subject in future, and not in ALL CAPITALS

Read only

Former Member
0 Likes
945

Hi,

i want to define the parameter name(as below) in form interface under import tab,

IM_FS_KNA1 - The field string for Holding Customer Details.

IM_T_VBRK - Table to hold Billing Document Header Data.

IM_T_VBRP - Table to hold Billing Document Item Data.

To define variable name(as below) under global definition,

IM_T_KNA1 - Table to hold Customer Details.

IM_FS_VBRK - Field String to hold Billing Document Header Data.

IM_FS_VBRP - Field String to hold Billing Document Item Data.

W_TOTAL - Stores the Total Amount of the field NETWR.

pls provide solution how to do that?

Thanks,

Raj

Read only

0 Likes
945

You can use the defination below.

INTERFACE TYPE REF

IM_FS_KNA1 TYPE KNA1

IM_T_VBRK TYPE VBRK

IM_T_VBRP TYPE VBRP