Application Development 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: 

Two identical subscreens, one screen. How to determine in which subscreen user pressed F4?

Let's say that I have screen 100 and subscreen 101. Screen 100 has two subscreen areas - SS_A, SS_B where subscreen 101 is used for both of those areas. User clicks on search help in one of the subscreen areas and I want to filter search help results by certain field on the subscreen, how do I find out in PROCESS ON VALUE REQUEST of the subscreen, if the f4 field was clicked on SS_A or SS_B ?

1 ACCEPTED SOLUTION

Only solution with which I came up is putting a hidden field in the subscreen, where I set value in PBO of the parent screen before calling the subscreen, so each instance of subscreen will have a different value in that field and then in PVO I can read it with DYNP_VALUES_READ. But it is so stupid and complicated. Anyone has some better solution? Thanks

5 REPLIES 5

Only solution with which I came up is putting a hidden field in the subscreen, where I set value in PBO of the parent screen before calling the subscreen, so each instance of subscreen will have a different value in that field and then in PVO I can read it with DYNP_VALUES_READ. But it is so stupid and complicated. Anyone has some better solution? Thanks

I guess it's the only solution. Including the same subscreen twice is extremely rare (so much that the batch input technology doesn't handle this case).

0 Kudos

Yeah, obviously using same subscreen more times is a really bad idea and I didn't even realize that it would be a problem in batch-input. Thank you, Sandra, you are the best 🙂

former_member378318
Contributor
0 Kudos

You can use the addition FIELD to fire the value request for whichever field/s you are interested in. For example:

PROCESS ON VALUE-REQUEST.
FIELD gwa_tc-vbeln MODULE f4_vbeln.
FIELD gwa_tc-matnr MODULE f4_matnr.

0 Kudos

Well, you cannot trigger MODULE in POV without FIELD. My problem is that I cannot distinguigh in the Primary winding search help's callback (called via F4IF_FIELD_VALUE_REQUEST ), if I am in subsccren area 1 or subscreen area 2.