Application Development 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: 

Error text !!

Former Member
0 Kudos

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?

3 REPLIES 3

Former Member
0 Kudos

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

uwe_schieferstein
Active Contributor
0 Kudos

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

narin_nandivada3
Active Contributor
0 Kudos

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