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

Value from Program to Selection screen using pushbutton on Selection Screen

Former Member
0 Likes
635

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

1 ACCEPTED SOLUTION
Read only

Kiran_Valluru
Active Contributor
0 Likes
579

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

4 REPLIES 4
Read only

Kiran_Valluru
Active Contributor
0 Likes
580

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

Read only

0 Likes
579

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

Read only

0 Likes
579

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

Read only

0 Likes
579

Hi Kiran.

Thanks dude. Really .Problem has been resolved.

Thanks .

Ram