on 05-04-2010 7:12 AM
Hi,
I developed a smart form for purchase requisition with the table EBAN.
I declared the following in Form Interface.
Import: IS_EBAN TYPE EBAN
IV_DRUVO TYPE DRUVO
IS_NAST TYPE NAST
PRN_NO TYPE BANFN
Tables: IT_EBAN LIKE EBAN
After activating & executing the form no errors displayed.
But when activating the function module, i am getting the following error:
"EBAN" is not a pre-defined type or a type from a type-group.
I searched in the SDN and couldn't find solution.
It will be very much helpful to me if i get any solutions from you guys.
Thanks in Advace.
Thanks & Regards,
BDK.
Hi,
if you are declaring the import fields which you want to fetch it from report then
Declare like this
ZZPROJYEAR LIKE PROJ-ZZPROJYEAR
ZZYEAR LIKE PROJ-ZZYEAR
pass field values to the same field in the form FM.
otherwise
create a Structure(for ex:ZBAN here)SE11 with your internal table fields and pass it through the tables parameters in FM in the report
and a table in the TABLES in FORM INTERFACE as below mentioned
T_ABAN LIKE ZABAN
T_LAY LIKE ZLAY
you can populate the &t_aban-pipeid& in any window.
regards
vishnu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
if you are declaring the import fields which you want to fetch it from report then
Declare like this
ZZPROJYEAR LIKE PROJ-ZZPROJYEAR
ZZYEAR LIKE PROJ-ZZYEAR
pass field values to the same field in the form FM.
otherwise
create a Structure(for ex:ZBAN here)SE11 with your internal table fields and pass it through the tables parameters in FM in the report
and a table in the TABLES in FORM INTERFACE as below mentioned
T_ABAN LIKE ZABAN
T_LAY LIKE ZLAY
you can populate the &t_aban-pipeid& in any window.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can find an existing table type for EBAN and use it. Check whereused list of EBAN for table types and you will get some sap defined table types. Use them intead of using line type EBAN directly.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Thanks for your reply.
As you told, i found some table type through where used list and declared one of it in the Form Interface:
Import: IS_EBAN TYPE MEREQ_T_EBAN.
Tables: IT_EBAN LIKE EBAN.
After executing, i am getting the following errors,
TEXT15 "IS_EBAN" is a table without a header line and therefore has no component called "WERKS".
TABLE1 "IS_EBAN" cannot be converted to the line type of "IT_EBAN".
Seems like you have created the form interface table without header line and the global data one with header line.
Import: IS_EBAN TYPE MEREQ_T_EBAN. -----------> Without Header line
Tables: IT_EBAN LIKE EBAN. ------------> WIth Header line
Declare IT_EBAN using table type as done for IS_EBAN. Use workareas instaed of headerline like
WA_EBAN TYPE EBAN.
Hi,
Generally these problems occurs with LIKE keyword.
In Tables Statement you wrote like this,
IT_EBAN like EBAN
Try like this,
IT_EBAN type EBAN
Regards,
Raghava Channooru
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
96 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.