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

on at selection-screen event

Former Member
0 Likes
863

hi,

i have two fields in seelction screen .if i enter delivery number on selection screen field automatically delivery date to filled in second field of selection screen.

how it solved..

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
837

if u enter the delivery no it should fill the data automatically right

so u write the code in the at selection-screen on delivery.

if the delivery is not initial.

fille the date .

endif.

if u enter the delivery no it should fill the data automatically right

so u write the code in the at selection-screen on delivery.

if the delivery is not initial.

fille the date .

endif.

7 REPLIES 7
Read only

Former Member
0 Likes
837

Use AT selection screen command on that particular field.

Read only

andreas_mann3
Active Contributor
0 Likes
837

Hi,

use event "at selection-screen output".

A.

Read only

Former Member
0 Likes
837

Put 'AT SELECTION SCREEn.

change the value of the field.

Reards,

Vivek

Read only

Former Member
0 Likes
838

if u enter the delivery no it should fill the data automatically right

so u write the code in the at selection-screen on delivery.

if the delivery is not initial.

fille the date .

endif.

Read only

Former Member
0 Likes
837

Hi ,

It can be done using the

AT SELECTION-SCREEN ON FIELD_NAME_for_delivery_number.

the only prerequsit being that the user must press the <b>enter</b> key after entering delivery number. It he does not do it then the even will not be triggered.

Regards

Arun

Read only

Former Member
0 Likes
837

Use 'AT SELECTION-SCREEN OUTPUT'.

Check this Sample program.

DATA : l_vbeln LIKE likp-vbeln,

l_erdat LIKE likp-erdat.

SELECTION-SCREEN BEGIN OF BLOCK bl1.

PARAMETER VBELN LIKE LIKP-VBELN.

PARAMETER ERDAT LIKE LIKP-ERDAT.

SELECTION-SCREEN END OF BLOCK bl1.

After entering the delivery no hit the enter key.

AT SELECTION-SCREEN OUTPUT.

SELECT SINGLE vbeln erdat INTO (l_vbeln, l_erdat)

FROM LIKP

WHERE vbeln = vbeln.

IF SY-SUBRC = 0.

erdat = l_erdat.

ENDIF.

Read only

rahulkavuri
Active Contributor
0 Likes
837

hi, you need to press enter after filling the field so that the next parameter is populated otherwise no event is triggered

Please check this sample code and award points if found helpful

<b>

AT SELECTION-SCREEN OUTPUT.

  LOOP AT SCREEN.

    IF SCREEN-NAME = 'ST_NAME'.

      IF ST_NAME IS NOT INITIAL AND FLAG_SEL IS INITIAL.

        CLEAR LIMPR.
        CLEAR QTY.

        SELECT STOCK CURRPR
                     FROM
                     ZEXCH
                     INTO (ST_CODE, CURRPR)
                     WHERE ST_NAME = ST_NAME
                     AND EXCH = L_EXCH.
        ENDSELECT.

        IF SY-SUBRC <> 0.

          FLAG_END = 'X'.
          CLEAR CURRPR.
          CLEAR ST_CODE.
          CLEAR ST_NAME.

      ENDIF.
      ENDIF.

  ENDLOOP.

</b>

When u want to handle F4 help for this and automatically fill the delivery date then u need to use <b>AT SELECTION-SCREEN ON VALUE-REQUEST FOR ST_NAME.</b>

Award points if found helpful