2010 Apr 26 5:09 PM
hello,
I am trying to correct the BW code below and I am getting the following error message
"E:In the OO context either an INTO or an ASSIGNING specification or the
addition "TRANSPORTING NO FIELDS" must be used. addition "TRANSPORTING
NO FIELDS" must be used."
have tried several times to add the code so that it formats correctly but I cannot seem to get it to format. I have tried the statements but I am not sure if I am doing this correctly. if you let me know how to attached the code, I will attache.
when I do the code check, I get the error but I cannot tell where the error is. I think I have all of the loop statements coded correctly by using the INTO statement. can someone let me know wha the error is as I cannot seem to find it
Edited by: Timothy Hixson on Apr 26, 2010 12:32 PM
2010 Apr 26 6:00 PM
>
I think I have all of the loop statements coded correctly by using the INTO statement.
Perhaps you have forgotten to check your READ TABLE statements?
In the OO context not only the LOOPs but also the READ TABLE statements must have a INTO or ASSIGNING or TRANSPORTING NO FIELDS.
hello,
I am trying to correct the BW code below and I am getting the following error message
"E:In the OO context either an INTO or an ASSIGNING specification or the
addition "TRANSPORTING NO FIELDS" must be used. addition "TRANSPORTING
NO FIELDS" must be used."
have tried several times to add the code so that it formats correctly but I cannot seem to get it to format. I have tried the statements but I am not sure if I am doing this correctly. if you let me know how to attached the code, I will attache.
when I do the code check, I get the error but I cannot tell where the error is. I think I have all of the loop statements coded correctly by using the INTO statement. can someone let me know wha the error is as I cannot seem to find it
Edited by: Timothy Hixson on Apr 26, 2010 12:32 PM
2010 Apr 26 5:39 PM
2010 Apr 26 5:41 PM
I am trying to do that but when I add the code, it looks like 1 big paragraph. I do not know how to format it so that it looks like code in a program
2010 Apr 26 5:42 PM
Won't your syntax check point to the line? or, if you try to execute, do you get a dump that will point to the line?
2010 Apr 26 5:46 PM
this is abap code in BW. it is a start routine in a BW cube. I think you have to get the code to check correctly and then you can run the process. I am not that fimiliar with BW. the BW person had asked me to help him with the code since he is not that knowledgeable in ABAP.
2010 Apr 26 5:47 PM
I wasn't sure if this should have been posted here or in the BW section
2010 Apr 26 6:00 PM
>
I think I have all of the loop statements coded correctly by using the INTO statement.
Perhaps you have forgotten to check your READ TABLE statements?
In the OO context not only the LOOPs but also the READ TABLE statements must have a INTO or ASSIGNING or TRANSPORTING NO FIELDS.
2010 Apr 26 6:02 PM
I do not have any read statements
if you tell how to format the code so that it looks presentable, I will attach it
2010 Apr 26 6:07 PM
try again to add the code.
Edited by: Timothy Hixson on Apr 26, 2010 1:08 PM
2010 Apr 26 6:12 PM
I do not have any read statementst
Then I would bet that you have forgotten to check one of your LOOPs...
>
if you tell how to format the code so that it looks presentable, I will attach it
Use the code markup, i.e. write "" at the beginning and at the end of your code.
2010 Apr 26 6:14 PM
I tried that. here is what happens
{{color:red}Moderator message - Please respect the 2,500 character maximum when posting. Post only the relevant portions of code
Edited by: Rob Burbank on Apr 26, 2010 1:19 PM
2010 Apr 26 6:20 PM
Hm, no idea about the formatting issue.
But more important: Here is your READ TABLE without INTO or ASSIGNING:
*-----Calculate MoH
if moh > 0.
read table RESULT_PACKAGE1 with key calmonth = lv_month_2
material =
RESULT_PACKAGE-material.
2010 Apr 26 6:26 PM
First, I think you need an = sign here.
LOOP AT result_package INTO wa_result_package
WHERE /bic/zfrc_binv = '' "<-- RIGHT HEREAnd, you have a READ statement but no INTO, in OO context, you just use a INTO or TRANSPORTING NO FIELDS when using READ statement
READ TABLE result_package1 WITH KEY calmonth = lv_month_2
material = result_package-material.Regards,
Rich Heilman
2010 Apr 26 6:33 PM
Adrian and Rich,
I stared at that code and I did not see the read statement.
I will correct that.
thanks for the help