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

Query on module pool field -f4 help

0 Likes
1,326

Hi all,

My query is as follows :

There are 2 fields in module pool screen :

sector

lfd

Now there is a table called sector with 2 fields sector and lfd.

now when f4 is pressed on the above sector field, this sector table has to be called so that I can select the required sector from the f4.

I am able to do till above.

Now the issue is when I press f4 on sector field and select the required sector, the lfd value for this corresponding sector should be automatically populated in lfd field on the the above module pool screen.

please let me know regarding the above.

regards,

srinivas

Hi all,

My query is as follows :

There are 2 fields in module pool screen :

sector

lfd

Now there is a table called sector with 2 fields sector and lfd.

now when f4 is pressed on the above sector field, this sector table has to be called so that I can select the required sector from the f4.

I am able to do till above.

Now the issue is when I press f4 on sector field and select the required sector, the lfd value for this corresponding sector should be automatically populated in lfd field on the the above module pool screen.

please let me know regarding the above.

regards,

srinivas

8 REPLIES 8
Read only

Former Member
0 Likes
1,292

Hi,

Use Select statement to fetch the records from table SECTOR into some dummy internal table.

Then assign the Modulepool screen field lfd with value from dummy internal tables lfd field.

Hope your problem will be solved.

cheers

Murali

Read only

brad_bohn
Active Contributor
0 Likes
1,292

You should identify how you are handling the F4 - search help, POV, value table, etc.? If you're asking how to set it up, use a search help, set the 'lfd' field in your search help, then use it as an export parameter.

Read only

0 Likes
1,292

Hi,

I tried doing with search help already. but the issue is if i give search help for sector field, only sector value is populated but the corresponding lfd is not populated in the lfd field.please let me know how to handle this.

Read only

brad_bohn
Active Contributor
0 Likes
1,292

I tried doing with search help already. but the issue is if i give search help for sector field, only sector value is populated but the corresponding lfd is not populated in the lfd field.please let me know how to handle this.

Then your search help is not defined correctly - do you have the export flag set and does your search help field name match your screen field name?

Read only

anesh_kumar
Active Participant
0 Likes
1,292

Hi

Use the function module F4IF_INT_TABLE_VALUE_REQUEST inside the POV event

populate the select statement values into a internal table and pass it the above function module

the function module returns a value and pass that value to the screen field

Regards

Read only

0 Likes
1,292

Hi,

already I tried like this.

but the issue when f4 is pressed and select the value for sector, we write in the same pov event the select statement code to populate for lfd field in the screen.

but though the code is written it is not populating because after the pov event is executed only the sector field value will be populated in the sector field on the screen.

so the code in the pov event while executing doesnt have sector field value. due to the above it is not giving the output.

please do the needful to the same.

Read only

0 Likes
1,292

Hi

after assigning the value to lfd field

call the same screen again. ex: call screen 'screen name'.'

or

Try this..

global variable

Data: Variable type c.

in your PBO

if variable is not initial.

lfd = 'Variable'.

endif.

clear Variable.

in POV

after calling F4IF_FIELD_VALUE_REQUEST function module and assigning the output to sector field

Variable = lfd value.

once after executing your f4 functionality, if you press enter you will see the value in lfd field as well

Regards

Edited by: Anesht on Sep 30, 2010 5:56 PM

Read only

Former Member
0 Likes
1,292

use FM's dynp_values_read and dynp_value_update to achieve the same.

br,

vijay.