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: 

Strange problem in Types Declaration.

Former Member
0 Kudos

Hi Experts,

I have encountered a Very Strange problem today, I am completely confused for this...

The Problem as follows,


TABLES: faglflexa, bkpf, bseg.

DATA : p_budat       TYPE faglflexa-budat.
TYPES: t_budat       TYPE faglflexa-budat.

DATA : budat         TYPE faglflexa-budat.
*or
TYPES: budat         TYPE faglflexa-budat. 
* Above both are working fine

* Now actual problem is....!

TYPES : BEGIN OF ty_detail,
*        budat   TYPE   faglflexau2013budat,
*        docnr   TYPE   faglflexau2013docnr,
        blart   TYPE   bkpf-blart,
        rbusa   TYPE   faglflexa-rbusa, 
        augbl   TYPE   bseg-augbl,       
*        xblnr   TYPE   bkpfu2013xblnr,       
*        rcntr   TYPE   faglflexau2013rcntr, 
*        zzaufnr TYPE   faglflexau2013zzaufnr,
*        sgtxt   TYPE   bsegu2013sgtxt,        
        END OF ty_detail.

In the above ty_detail the commented lines like, budat, xblnr, sgtxt..... Etc are giving error.

Error is Type faglflexau2013budat is unknown.

Error is Type bsegu2013sgtxt is unknown.

Error is Type bkpfu2013xblnr is unknown.

... Etc

Please also try to copy the same code & place in your editors & check once.

Can Anyone tell me the reason for this.

All Ideas are welcomed.

Thanks & regards,

Dileep .C

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

The problem in your declaration part is with "-"(Hiphen).

copied your code to my sap-editor and changed the hiphen.

its working fine now.

TYPES : BEGIN OF ty_detail,

budat type faglflexa-budat,

docnr type faglflexa-docnr,

blart TYPE bkpf-blart,

rbusa TYPE faglflexa-rbusa,

augbl TYPE bseg-augbl,

xblnr TYPE bkpf-xblnr,

rcntr TYPE faglflexa-rcntr,

zzaufnr TYPE faglflexa-zzaufnr,

sgtxt TYPE bseg-sgtxt,

END OF ty_detail.

BR,

Lokeswari.

2 REPLIES 2

Former Member
0 Kudos

Hi,

The problem in your declaration part is with "-"(Hiphen).

copied your code to my sap-editor and changed the hiphen.

its working fine now.

TYPES : BEGIN OF ty_detail,

budat type faglflexa-budat,

docnr type faglflexa-docnr,

blart TYPE bkpf-blart,

rbusa TYPE faglflexa-rbusa,

augbl TYPE bseg-augbl,

xblnr TYPE bkpf-xblnr,

rcntr TYPE faglflexa-rcntr,

zzaufnr TYPE faglflexa-zzaufnr,

sgtxt TYPE bseg-sgtxt,

END OF ty_detail.

BR,

Lokeswari.

0 Kudos

Hmm,

Its very strange how come its changed to different hipen.

I never expected that was the problem.

Anyways, Problem solved.

Thanks,

Dileep .C