‎2009 Mar 17 7:16 AM
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
‎2009 Mar 17 7:19 AM
‎2009 Mar 17 7:20 AM
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
‎2009 Mar 17 7:31 AM
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
‎2009 Mar 17 7:41 AM
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
‎2009 Mar 17 7:33 AM
Hi,
Define Y_TY_VBRK in se11...
Or take the existing(standard ) dataelements.
Eg:
name type Associatedtype
carrid type spfli-carrid..
‎2009 Mar 17 8:01 AM
Please use an informative subject in future, and not in ALL CAPITALS
‎2009 Mar 17 8:09 AM
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
‎2009 Mar 17 8:14 AM
You can use the defination below.
INTERFACE TYPE REF
IM_FS_KNA1 TYPE KNA1
IM_T_VBRK TYPE VBRK
IM_T_VBRP TYPE VBRP