‎2011 Jun 04 9:20 AM
Sir,
I am creating a Selection screen for update some fields using selection screen. I have 6 fields on screen. First 3 Fields are mendaotry for fetching the data to dispay last 3 fields. I have create a push button for fetch the last 3 fields using first 3 fields.
So Plz guide me how to do that. I have used At Selection Screen with user command. but result is zero.
AT SELECTION-SCREEN.
IF sscrfields-ucomm = 'FETCH'.
IF AGSLNO-LOw is NOT INITIAL.
SELECT SINGLE AGATE_ENTRY_NUM BTRANSPORTER_CODE B~TRUCK_NO
INTO (V_GTENT_N, V_TR_CODE, V_TRUCK_NO)
FROM ZGATEOUT AS A
INNER JOIN ZGATE_IN AS B ON AGATE_ENTRY_NUM = BGATE_ENTRY_NUM
AND AWERKS = BWERKS
AND ATRANSPORTER_CODE = BTRANSPORTER_CODE
INNER JOIN ZTRPTR_REQ AS C ON AWERKS = CWERKS
AND ATRANSPORTER_CODE = CTRANSPORTER_CODE
WHERE C~AGSLNO = AGSLNO-LOW.
ENDIF.
ENDIF.
S_GTENT_N-low = V_GTENT_N.
S_TR_CODE-low = V_TR_CODE.
S_TRUCK_NO-low = V_TRUCK_NO.
Thanks.
Ram
‎2011 Jun 04 9:32 AM
Hi.,
did you assigned user command to push button..!!
put a break point at IF sscrfields-ucomm = 'FETCH'. and check whether at selection screen event is triggered or not. and check the ucomm value .
check this help for reference: http://help.sap.com/saphelp_nw04/helpdata/en/9f/dba81635c111d1829f0000e829fbfe/content.htm
hope this helps u.,
Thanks & regards,
Kiran
‎2011 Jun 04 9:32 AM
Hi.,
did you assigned user command to push button..!!
put a break point at IF sscrfields-ucomm = 'FETCH'. and check whether at selection screen event is triggered or not. and check the ucomm value .
check this help for reference: http://help.sap.com/saphelp_nw04/helpdata/en/9f/dba81635c111d1829f0000e829fbfe/content.htm
hope this helps u.,
Thanks & regards,
Kiran
‎2011 Jun 04 10:12 AM
Hi Kiran
I have checked , Values are coming from above query but doensnt display on Selection Screen and debug also after at selection screen , go to at selection screen output event.
Ram
‎2011 Jun 04 10:25 AM
Hi.,
Got your problem.. I think you are updating select options., the thing you missed is append
do like this.,
S_GTENT_N-low = V_GTENT_N.
append S_GTENT_N.
S_TR_CODE-low = V_TR_CODE.
append S_TR_CODE
S_TRUCK_NO-low = V_TRUCK_NO.
append S_TRUCK_N.
hope this helps u.,
Thanks & Regards,
Kiran
‎2011 Jun 04 10:34 AM
Hi Kiran.
Thanks dude. Really .Problem has been resolved.
Thanks .
Ram