02-04-2019 9:06 PM
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 ?
02-04-2019 9:33 PM
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
02-04-2019 9:33 PM
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
02-05-2019 4:25 PM
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).
02-05-2019 5:11 PM
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 🙂
02-05-2019 9:52 AM
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.
02-05-2019 12:28 PM
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.