2010 Sep 30 2:07 PM
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
2010 Sep 30 2:34 PM
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
2010 Sep 30 2:57 PM
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.
2010 Sep 30 3:55 PM
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.
2010 Sep 30 4:55 PM
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?
2010 Sep 30 3:38 PM
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
2010 Sep 30 3:59 PM
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.
2010 Sep 30 4:48 PM
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
2010 Sep 30 3:51 PM
use FM's dynp_values_read and dynp_value_update to achieve the same.
br,
vijay.