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

ERROR IN CODE

Former Member
0 Likes
754

Hi

i'm getting error in selection screen generation here is my code

selection-screen begin of block v1 with frame title text-001.

parameters : p_name type char10 modif id g2,

p_id type char10 modif id g2,

p_age type i modif id g2,

p_salary type i modif id g2,

selection-screen end of block v1.

selection-screen: pushbutton 7(15) text-005 user-command fc02 modif id g2,

pushbutton 8(15) text-011 user-command fc01 modif id g2.

selection-screen begin of block v2 with frame title text-002.

select-options : s_name for e_name modif id g1.

selection-screen end of block v2.

4 REPLIES 4
Read only

Former Member
0 Likes
485

Hi,

Error is because ur last parameter p_salary and first pushbutton are comming in same line......

see the corrected code below..(/ added for push button)

selection-screen begin of block v1 with frame title text-001.

parameters : p_name type char10 modif id g2,
p_id type char10 modif id g2,
p_age type i modif id g2,
p_salary type i modif id g2,
selection-screen end of block v1.

selection-screen: pushbutton /7(15) text-005 user-command fc02 modif id g2,
pushbutton /8(15) text-011 user-command fc01 modif id g2.

selection-screen begin of block v2 with frame title text-002.

select-options : s_name for e_name modif id g1.

selection-screen end of block v2.

Cheers,

jose.

Read only

Former Member
0 Likes
485

Hi,

Please mention the starting of the second Pushbutton after 22 as the first pushbutton is taking upto 22 places(7+15) as below:


selection-screen:pushbutton 7(15) text-005 user-command fc02 modif id g2,
pushbutton 22(15) text-011 user-command fc01 modif id g2.

Reward points if useful,

Regards,

Read only

Former Member
0 Likes
485

Hi,

What is e_name here.

when you are declaring fields the comparing structure should be in declaration of

TABLES: ADRC .

s_name for adrc-name1.

SKIP.

selection-screen: pushbutton 7(15) text-005 user-command fc02 modif id g2,

pushbutton 8(15) text-011 user-command fc01 modif id g2.

Read only

Former Member
0 Likes
485

Hi,

Refer tables for select-options. U have given some ename? Declare reference tables at top as TABLES: <tablename>.

reward if it helps.

Regards,

Ramya