2008 Sep 05 11:39 AM
Hi,
am working for an ECC upgradation project and am getting the above error "Statement is not accessible." at the below coding.
WS_VBELN = XLIPS-VBELN.
Kindly get me a solution <removed by moderator>
Thanks in adv,
Siva
Edited by: Mike Pokraka on Sep 5, 2008 12:26 PM
2008 Sep 05 11:42 AM
> WS_VBELN = XLIPS-VBELN.
where are you writing this..?
show the code before and after the line.
2008 Sep 05 11:43 AM
Hi,
WS_VBELN = XLIPS-VBELN.
Insteas use like this.
move xlips-vbeln to ws_vbeln.
or
ws_vbeln eq xlips-vbeln.
2008 Sep 05 12:58 PM
>
> Hi,
>
>
> WS_VBELN = XLIPS-VBELN.
>
> Insteas use like this.
>
> move xlips-vbeln to ws_vbeln.
>
> or
>
> ws_vbeln eq xlips-vbeln.
Total nonsense
2008 Sep 05 11:43 AM
that seems to be outside of any event block (as in START-OF-SELECTION etc.)
This was tolerated before Netweaver 700 but not any longer.
Move the statement inside such a block.
Thomas
2008 Sep 05 11:49 AM
Hi all,
Pls check the code below :
DATA: WS_SPLITTOR(3) TYPE C,
WS_SPLIT(1) TYPE C,
WS_SPLIT1(1) TYPE C,
WS_SPLIT2(1) TYPE C,
WS_SPLIT3(1) TYPE C,
WS_VBELN TYPE LIPS-VBELN,
WS_POSNR TYPE LIPS-POSNR,
WS_NO_OF_LOOP(1) TYPE C,
WS_NO_OF_ITEM(1) TYPE C,
WS_BAL(1) TYPE C,
WS_MODNO(10) TYPE C,
PAR_ID(20) TYPE C.
DECLARATION OF INTERNAL TABLE
DATA: INT_XLIPS LIKE XLIPS OCCURS 0 WITH HEADER LINE,
INT_XLIPS2 LIKE XLIPS OCCURS 0 WITH HEADER LINE.
WS_VBELN = XLIPS-VBELN.
WS_POSNR = XLIPS-POSNR.
MOVE SY-MODNO TO WS_MODNO.
CONCATENATE 'SPLIT' WS_MODNO INTO PAR_ID.
.......
Regs,
Siva
2008 Sep 05 11:53 AM
hi ,
place the code in an event.
DATA: WS_SPLITTOR(3) TYPE C,
WS_SPLIT(1) TYPE C,
WS_SPLIT1(1) TYPE C,
WS_SPLIT2(1) TYPE C,
WS_SPLIT3(1) TYPE C,
WS_VBELN TYPE LIPS-VBELN,
WS_POSNR TYPE LIPS-POSNR,
WS_NO_OF_LOOP(1) TYPE C,
WS_NO_OF_ITEM(1) TYPE C,
WS_BAL(1) TYPE C,
WS_MODNO(10) TYPE C,
PAR_ID(20) TYPE C.
DECLARATION OF INTERNAL TABLE
DATA: INT_XLIPS LIKE XLIPS OCCURS 0 WITH HEADER LINE,
INT_XLIPS2 LIKE XLIPS OCCURS 0 WITH HEADER LINE.
Start-of-selection.WS_VBELN = XLIPS-VBELN.
WS_POSNR = XLIPS-POSNR.
MOVE SY-MODNO TO WS_MODNO.
CONCATENATE 'SPLIT' WS_MODNO INTO PAR_ID.
2008 Sep 05 11:49 AM
2008 Sep 05 11:51 AM
write 'START-OF-SELECTION' before the subject statement...
I think its not able to locate which event it belongs to...so inserting above statement would suffice.
~Piyush Patil
2008 Sep 05 11:51 AM
Hi,
The code doesnt have any select query! From where does the value of XLIPS-VBELN come from?
Regards,
ramya
2008 Sep 05 11:53 AM
2008 Sep 05 12:11 PM
HI Siva,
On seeing the code you have provided...i assume that XLIPS is a DB table .If it is so, there is no value stored in that.
If it is an internal table, pls write this statment after the select query within the event Start-of-selection.
And please put all declaration in one include itself, and dont put any piece of code within it. And keep this include as the 1st include in your main program.
Regards
Winnie
2008 Sep 05 12:21 PM
Hi,
i guess your include program before this statement has subroutine. If so you get the error message...
One thing you can do is place Start-of-selection statement before the assignment
regards
padma
2008 Sep 05 1:27 PM
2008 Sep 05 1:36 PM
2023 Jun 26 8:53 AM
Kindly tell how the issue is resolved. I also write the start of selection but then debugger is not trigger on statement. Kindly its urgent.
2023 Jun 27 10:17 AM
2024 Feb 28 10:46 AM
check if the query is inside START-OF-SELECTION ... END-OF-SELECTION, you could check if the previous query has ended with dot(.)