Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Invalid argument 4.7

prince_isaac
Active Participant
0 Kudos

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

1 ACCEPTED SOLUTION

kesavadas_thekkillath
Active Contributor
0 Kudos

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.

4 REPLIES 4

Former Member
0 Kudos

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.

kesavadas_thekkillath
Active Contributor
0 Kudos

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.

prince_isaac
Active Participant
0 Kudos

Hi Keshav

Great thanks. Solved my problem.

regards

Isaac Prince

0 Kudos

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