08-04-2008 11:33 AM
I have ..
types: BEGIN OF TY_T_TO_BE_SENT.
types: externalid type dunsnr.
types: accept_status type char4.
types: END OF TY_T_TO_BE_SENT .
types: TY_TT_TO_BE_SENT type standard table of TY_T_TO_BE_SENT.
methods SPLIT_DATA
returning
value(R_BELEGS_TO_SEND) type ty_tt_to_be_sent .
.
And i am getting syntax error syaing
Type of returning parameters must be fully specified.
What do you think the reason behind this error?
08-04-2008 12:34 PM
Hi Trivenn,
For returning parameter, the declaration should be complete... I.e. for table types, they should also contain the details of the key.
So try defining your table type as
types: TY_TT_TO_BE_SENT type standard table of TY_T_TO_BE_SENT with default key.
or define the non-unique key for the table depending upon your scenario...for example
types: TY_TT_TO_BE_SENT type standard table of TY_T_TO_BE_SENT with NON-UNIQUE KEY externalid
~Piyush Patil
08-04-2008 12:41 PM
Hello Trivenn
I assume that you have to put your TYPE definition into the public section of your class otherwise you get this syntax error. In addition, you should define the KEY of your table type, e.g.:
types: BEGIN OF TY_T_TO_BE_SENT.
types: externalid type dunsnr.
types: accept_status type char4.
types: END OF TY_T_TO_BE_SENT .
types: TY_TT_TO_BE_SENT type standard table of TY_T_TO_BE_SENT
WITH DEFAULT KEY. " key definition
Regards
Uwe
08-04-2008 12:49 PM
Hi,
specify the internal table this way...
DATA:
TY_TT_TO_BE_SENT type standard table of TY_T_TO_BE_SENT
.
Hope this would help you
Good luck
Narin