11-09-2010 9:16 AM
Hi
My client is using SAP 4.7 and i am trying to write reports however it seems everytime i type the below code the editor displays a message "An invalid argument has occured" this freezes my page and ultimately kills all my other opened sessions.
In an attempt to circumvent this error i typed the code on word and pasted it immediately the error is shown and i get stuck again.
What could be causing this?
*selection screen
selection-screen begin of block vendor with frame title text-001.
select-options: s_lifnr for it_ref_list-lifnr obligatory,
s_bldat for it_ref_list-bldat obligatory,
s_belnr for it_ref_list-belnr.
parameters: p_ccode type bukrs default '1100'.
selection-screen end of block vendor.
regards
Isaac Prince
11-09-2010 9:26 AM
Donot refer it to it_ref_list-lifnr. If its decalred with header line then no problem will be there. Without header line it will show a syntax error.
Anyways Change it like this
data:wf_lifnr type lfa1-lifnr,
wf_bldat type bkpf-bldat,
wf_belnr type bkpf-belnr.
selection-screen begin of block vendor with frame title text-001.
select-options: s_lifnr for wf_lifnr obligatory,
s_bldat for wf_bldat obligatory,
s_belnr for wf_belnr.
parameters: p_ccode type bukrs default '1100'.
selection-screen end of block vendor.
11-09-2010 9:26 AM
Since i've never encountered something like this before (esp. the closing of all open windows) my initial thought is to check your SAPGUI version and perhaps update it.
11-09-2010 9:26 AM
Donot refer it to it_ref_list-lifnr. If its decalred with header line then no problem will be there. Without header line it will show a syntax error.
Anyways Change it like this
data:wf_lifnr type lfa1-lifnr,
wf_bldat type bkpf-bldat,
wf_belnr type bkpf-belnr.
selection-screen begin of block vendor with frame title text-001.
select-options: s_lifnr for wf_lifnr obligatory,
s_bldat for wf_bldat obligatory,
s_belnr for wf_belnr.
parameters: p_ccode type bukrs default '1100'.
selection-screen end of block vendor.
11-09-2010 9:54 AM
05-24-2011 12:55 PM
Hi,
I also had the same issue. But when I changed to editor to old (Settings - > editor), the issue got resolved.
But what could be the real reason ?
Regards,
Sabu