Application Development and Automation 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: 
Read only

selection screen

sandeepkarnati
Participant
0 Likes
1,217

in the below program when i enter 'sandeep' in the login it need to call screen 234.but it was nt happening........and it was showing error message

why this  is happening......could any one suggest a solution.

REPORT  Z_MODULARIZATION.

tables:vbap.

types:begin of ty_vbap,

         vbeln type vbeln,

         posnr type posnr,

         matnr type matnr,

       end of ty_vbap.

data: wa type ty_vbap,

       it type ty_vbap occurs 0.

parameters : login(10) type c default 'sandeep' obligatory.

selection-screen begin of screen 234.

          select-options:s_vbeln for vbap-vbeln.

selection-screen end of screen 234.

initialization.

s_vbeln-low = '5000'.

s_vbeln-high = '5050'.

s_vbeln-sign = 'I'.

s_vbeln-option = 'BT'.

append s_vbeln.

at selection-screen on login.

   if login = 'sandeep'.

     call selection-screen 234.

     else.

       message 'wrong  login' type 'E'.

   endif.

   start-of-selection.

   select vbeln

          posnr

          matnr

     from vbap into table it where vbeln in s_vbeln.

   end-of-selection.

  loop at it into wa.

    write:/ wa-vbeln,

             wa-posnr,

             wa-matnr.

   endloop.

1 ACCEPTED SOLUTION
Read only

VolkerProebius
Explorer
0 Likes
965

Hi Sandeep,

try to write your name in the

if login = 'sandeep'.

     call selection-screen 234.

     else.

in capital letters.

Bye, Volker

7 REPLIES 7
Read only

VolkerProebius
Explorer
0 Likes
966

Hi Sandeep,

try to write your name in the

if login = 'sandeep'.

     call selection-screen 234.

     else.

in capital letters.

Bye, Volker

Read only

0 Likes
965

Volker is right,

Or you can try,

PARAMETERS : login(10) TYPE c DEFAULT 'sandeep' OBLIGATORY LOWER CASE.

regards,

Archer

Read only

0 Likes
965

tnq dude......

Read only

0 Likes
965

tnq dude......

Read only

custodio_deoliveira
Active Contributor
0 Likes
965

Hi Sandeep,

Both solutions above from and are correct. You either have to check the value in all upper cases or you have to define the parameter as lower case. Your choice.

Cheers,

Custodio

Read only

0 Likes
965

tnq dude......

Read only

0 Likes
965

You're welcome. Could you please close the discussion now?