‎2008 Feb 29 7:04 AM
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.
‎2008 Feb 29 7:12 AM
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.
‎2008 Feb 29 7:13 AM
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,
‎2008 Feb 29 7:22 AM
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.
‎2008 Feb 29 7:31 AM
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