‎2010 Sep 22 7:47 PM
Hi,
I have a method and i have coded the below inside the method,
Types : begin of itab,
vbelv type /bic/oizopp_num, " opportunity number
vbeln type /bic/oizquot_num, " quotation number
vbeln_a type /bic/oizord_num, " sales order number
vbtyp_n type /bic/oizvbtyp, " category either A or B or C
end of itab.
Data : it type standard table of itab.
Data : wa_it type line of itab.
Data : it_vbfa type standard table of vbfa.
Data : wa_vbfa type line of vbfa.
Now when i check the syntax of the program i get the error "Type VBFA unknown.".
i am suprised why the standard table declaration is not recognized.
I know that we cannot use "Tables" statement.
Please guide me to resolve the issue.
Regards,
Lakshminarasimhan.N
‎2010 Sep 30 7:26 AM
Hi,
You can't you like in OOPS. In case of local data declare and you can give the refrence of local data in current scope.
‎2010 Sep 22 8:03 PM
You are declaring work area incorrectly. Should be either like this
Data : wa_vbfa like line of it_vbfa.
or
data wa_vbfa type vbfa.
Regards
Marcin
‎2010 Sep 23 4:11 PM
‎2010 Sep 27 10:43 AM
‎2010 Sep 30 7:26 AM
Hi,
You can't you like in OOPS. In case of local data declare and you can give the refrence of local data in current scope.
‎2011 Jan 18 11:04 AM
Actually the code is typed in BI system and BI system does not have table VBFA. Its only available in R3 system. Hence the error.