‎2006 Dec 08 2:24 PM
Hi all,
I have some doubt in Module pool.
Wuld u plz check let me know on this.
Iam started creating the New Customized Infotype.
In that Infotype i have one name SHIFT. The field SHIFT is having F4 help pop-up.
Basing the F4 help pop-uping, i need to ful-fill and populate the next fields. ( Starttime and end time of Employee).
For that i need to write the Select query to fetch the data from table based on that F4 help data.
My doubt where i have to write the select statement i.e in PAI or PBO.
But the Break point is not going to perticular select statement based on the F4 help field.
wud u plz let me know whr i have to write the SELECT query.
Thanks,
N.L.Narayana
‎2006 Dec 08 2:33 PM
It should be in PAI since this action is done after the user input.
‎2006 Dec 08 2:31 PM
Narayana,
If your requirement is to fulfill the fields directly from F4 help (hit list), you can code the select statement in POV and then F4 help function module to fill the appropriate fields (F4IF_INT_TABLE_VALUE_REQUEST).
‎2006 Dec 08 2:33 PM
It should be in PAI since this action is done after the user input.
‎2006 Dec 08 3:16 PM
hi Narayana
you have to write the code in the event 'PROCESS ON VALUE-REQUEST'.
FIELD <filedname > MODULE <module name>.
<u>case 1: if you are not writing any select query.</u>
inside this module you can porbably make use of the function module RH_OBJID_REQUEST to get the desired search help..
<u>case 2: if you need to write select query.</u>
write the select query and get the data into an internal table.
use function module F4IF_INT_TABLE_VALUE_REQUEST to populate the F4.
Hope this helps.
Sajan.
‎2006 Dec 08 3:22 PM
Hi,
If you eriting the f4 help code in POV , then write the select statement in the pov.
But by just the select query and moving the data into corresponding field will not get get the value on the screen fot that your have perform some action may be something like pressing enter.
because once you come out of pov, it won't take the controml to pbo.
Thanks
VENKI
‎2006 Dec 08 3:35 PM
Narayan,
I assuem that your requirement is not to show F4, but ot fill next field based on the F4 value picked.
You need to code this in PAI event.
Use function module DYNP_VALUES_READ and DYNP_VALUES_UPDATE to achieve this...
Hope this helps.
Sajan.