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

At Line selection problem

Former Member
0 Likes
376

hi,

iam stuck up with AT LINE-SELECTION problem ie i designed a screen where they need month list on clicking F4. i got the month list using month_names_get in the screen but while clicking the relevant month no.it's not entering into the required parameter. i have attached the codings,

MODULE MONTH_DIS OUTPUT.

SUPPRESS DIALOG.

LEAVE TO LIST-PROCESSING AND RETURN TO SCREEN 0.

SET PF-STATUS SPACE.

NEW-PAGE NO-TITLE.

WRITE:/ 'SELECT MONTH' COLOR COL_HEADING.

ULINE.

DATA: T_MNTH LIKE T247 OCCURS 12 WITH HEADER LINE.

refresh t_mnth.

CALL FUNCTION 'MONTH_NAMES_GET'

EXPORTING

LANGUAGE = SY-LANGU

  • IMPORTING

  • RETURN_CODE =

TABLES

MONTH_NAMES = T_MNTH

EXCEPTIONS

MONTH_NAMES_NOT_FOUND = 1

OTHERS = 2

.

IF SY-SUBRC <> 0.

MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

loop at t_mnth.

write:/ t_mnth-mnr, t_mnth-ltx.

endloop.

CLEAR T_MNTH-MNR.

ENDMODULE. " MONTH_DIS OUTPUT

AT LINE-SELECTION.

p_period = t_mnth-mnr.

CHECK NOT p_period IS INITIAL.

LEAVE TO SCREEN 0.

here in the AT LINE-SELECTION, the selected month is not coming to the required parameter.

pls help me in this issue,

Thanks in advance,

Premnath.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
346

You need to set a "Hide" after the write... I suggest you also set your own dialog PF-STATUS too so you can have just a PF2 "pick" button and a Cancel button ( this will look better to the user).

loop at t_mnth.
  write:/ t_mnth-mnr, t_mnth-ltx.
  hide: t_mnth.  "needs this
endloop.
clear: t_mnth.

2 REPLIES 2
Read only

Former Member
0 Likes
347

You need to set a "Hide" after the write... I suggest you also set your own dialog PF-STATUS too so you can have just a PF2 "pick" button and a Cancel button ( this will look better to the user).

loop at t_mnth.
  write:/ t_mnth-mnr, t_mnth-ltx.
  hide: t_mnth.  "needs this
endloop.
clear: t_mnth.

Read only

0 Likes
346

Thanks jonathan it has solved the problem & i posted ur points

Thanks,

Prem.