01-28-2011 4:57 AM
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
01-28-2011 5:25 AM
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.
01-28-2011 5:25 AM
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.
01-28-2011 5:48 AM
Hmm,
Its very strange how come its changed to different hipen.
I never expected that was the problem.
Anyways, Problem solved.
Thanks,
Dileep .C