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

Enter

Former Member
0 Likes
696

Hi evryone

I have an input screen.Where in if i am giving values it is not getting executed but if i come back and execute it is getting executed orelse if i pres "ENTER" then it is execting the first time itself.How to over come this problem...Please help...

With regards

Vijay

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
675

Hi vijay krishna,

When pressing Enter PAI event will triggering so it is executing..

Could give me your code for more clarity then only we are able to solve your problem.

5 REPLIES 5
Read only

soumya_jose3
Active Contributor
0 Likes
675

Hi,

Can you provide your code?.

Regards,

soumya.

Read only

Former Member
0 Likes
676

Hi vijay krishna,

When pressing Enter PAI event will triggering so it is executing..

Could give me your code for more clarity then only we are able to solve your problem.

Read only

0 Likes
675

Hi

Here is the code...Sorry for late reply

SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.

PARAMETERS : p_werks TYPE werks_d OBLIGATORY, " Plant

p_gjahr TYPE mjahr OBLIGATORY. " Fiscal year

SELECT-OPTIONS: p1 FOR v_p1 OBLIGATORY.

RANGES:r1 for v_p1.

SELECTION-SCREEN END OF BLOCK b1.

At selection-screen output.

read table p1 index 1.

r1-sign = 'I'.

r1-option = 'EQ'.

while p1-low LE p1-high.

r1-low = p1-low.

append r1.

p1-low = p1-low + 1.

endwhile.

Read only

0 Likes
675

Hi,

Use start-of-selection instead of at selection-screen output.

SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.

PARAMETERS : p_werks TYPE werks_d OBLIGATORY, " Plant

p_gjahr TYPE mjahr OBLIGATORY. " Fiscal year

SELECT-OPTIONS: p1 FOR v_p1 OBLIGATORY.

RANGES:r1 for v_p1.

SELECTION-SCREEN END OF BLOCK b1.

Start-of-selection

read table p1 index 1.

r1-sign = 'I'.

r1-option = 'EQ'.

while p1-low LE p1-high.

r1-low = p1-low.

append r1.

p1-low = p1-low + 1.

endwhile.

Regards,

Soumya.

Read only

0 Likes
675

hi soumya,

Problem solved.Thanks a lot..

Vijay