2006 Dec 13 10:50 AM
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..
2006 Dec 13 11:00 AM
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.
2006 Dec 13 10:52 AM
2006 Dec 13 10:53 AM
2006 Dec 13 10:54 AM
Put 'AT SELECTION SCREEn.
change the value of the field.
Reards,
Vivek
2006 Dec 13 11:00 AM
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.
2006 Dec 13 11:10 AM
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
2006 Dec 13 12:23 PM
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.
2006 Dec 13 12:45 PM
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
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |