‎2006 Mar 02 6:35 AM
Hi,
I have made a search help for a field in module pool.. i am getting the required result.
My requirement is that i have to fill the other 5 fields on the screen based on my selection of the value in the search help.
can someone help me out here?
‎2006 Mar 02 6:42 AM
Hi,
use the function module F4IF_INT_TABLE_VALUE_REQUEST.
In PBO of the screen, fill up an internal table with the desired fields depending upon the selection.
Pass this table to above function module to the
value_tab parameter.
Hope this helps....
regards,
Shashank
‎2006 Mar 02 6:42 AM
Hi,
use the function module F4IF_INT_TABLE_VALUE_REQUEST.
In PBO of the screen, fill up an internal table with the desired fields depending upon the selection.
Pass this table to above function module to the
value_tab parameter.
Hope this helps....
regards,
Shashank
‎2006 Mar 02 6:43 AM
You can use:
AT SELECTION-SCREEN FOR screenfld2.
IF screenfld1 EQ 'value'.
screenfld2 = 'some value'.
ELSE.
...
ENDIF.
‎2006 Mar 02 6:46 AM
Hi
Use below function module
that will definately work
call function 'DYNP_GET_STEPL'
importing
povstepl = step_line
exceptions
stepl_not_found = 1
others = 2.
call function 'DYNP_VALUES_UPDATE'
exporting
dyname = lc_dyname
dynumb = lc_dynumb
tables
dynpfields = ltab_fields
exceptions
others = 8.
commit work and wait.
this may be useful.
regards
vinod
‎2006 Mar 02 6:49 AM
Hi,
Check this Demo Program ....
<b>DEMO_DYNPRO_F4_HELP_MODULE</b>
Regards
Vijay
‎2006 Mar 02 6:50 AM
From the help on search helps:
A search help attachment is an assignment of a
search help to a table, structure or data element, causing
the corresponding search help to be automatically used to
describe the input help process at this field when
an ABAP Dictionary field is used in a screen.
You can attach a search help as follows:
1. <b>Attach a search help to a structure or table field:
The attached search help is available for all screen fields that refer to the table or structure field.</b>
There must be an assignment between the interface
parameters of the search help and the fields of the table
or structure for this type of attachment. In the input
help process, this assignment results in a value transport
between the corresponding fields (if they are known at
least to the module pool of the screen) and the search
help parameters. As for the foreign key definition, you
can assign nothing, a constant or any other field (which
is then sought in the module pool) to indivdiual search
help parameters.
For eg, the table SFLIGHT has the search help SFLIGHT associated with it, and using this, if the CARRID is entered, the CONNID dropdown lists only those connections with the carrid in the CARRID field.
If you want to populate the fields as soon as the first field is selected, you might need to look at coding a search help exit.
Sudha
Message was edited by: Sudha Mohan
‎2006 Mar 02 6:59 AM
depenidn on the searchhelp selection u need to fill teh other 5 fields from the choosen record.
after this record is selected based on this u r populating .
go through the function module.
DYNP_VALUES_READ.
vijay.
‎2006 Mar 02 7:22 AM
Hi Arshad,
Here's what you need to do.
In your search help definiton, enter the name of the Screen parameters you want to populate. You must make sure that they are spelt exactly the way you have defined them on the screen.
Mark these parameters as Export parameters by checking the checkbox.
Your Search Help must have these values available and associated with the main parameter you are creating the Search Help for. This you will set through "Parameter Assignment".
When the user selects a value, SAP will export these values directly to the Screen elements whose names you have defined in you Search Help as Export parameters. This is an automatic function of Search Helps when used with Screens in Module-pools.
Hope this helps,
Regards,
Madhur
NB: Please award points if found helpful.