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

Doubt in Custom Infotype / Modulepool

Former Member
0 Likes
606

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
552

It should be in PAI since this action is done after the user input.

5 REPLIES 5
Read only

Former Member
0 Likes
552

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).

Read only

Former Member
0 Likes
553

It should be in PAI since this action is done after the user input.

Read only

Former Member
0 Likes
552

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.

Read only

Former Member
0 Likes
552

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

Read only

Former Member
0 Likes
552

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.