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

Search help in module pool

Former Member
0 Likes
519

I am developing a screen in Module pool.

In my screen , Two fields r there.

1-- Issue No.--- (Dropdown list)

2- Item No.------(Dropdown list)

Both Fields are coming From the DB Table created by user.

When i feed d rest data on the screen it will genereate The Assignment no.

THIS IS THE OBJECTIVE,

In ITEM NO field, the ITEMS shd be displayed as per the Isuue No.

Like for a Issue no there are 4 or 5 Itemnos.

Suppose i choosed ISSUENO " AAA01".

then in ITEMNO it shd display those ITEMNO belongs to the Issueno "AAA01".

Without using function module , by d help of searchhelp.

I am getting data In itemFIeld, But all d Itemnos, not as per the Issueno.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
487

Hi,

First you capture the input which you have given in the Issue no field using the following FM

Use FM 'C14Z_DYNP_READ_FIELD'

For Instance it should be like below

Data : v_field(255) type c.

CALL FUNCTION 'C14Z_DYNP_READ_FIELD'

EXPORTING

i_program = sy-repid

i_dynpro = sy-dynnr

i_fieldname = 'V_PLANT' "here specify your own field which u want to read

i_flg_steploop = ''

CHANGING

e_value = v_field. "Specify the variable inwhich u want to have the value and based on that u select other F4 help entries

and then based on the selected value select the data to shown in the select search help and apply that internal table in second field search help FM call.

Use the FM "F4IF_INT_TABLE_VALUE_REQUEST"

2 REPLIES 2
Read only

Former Member
0 Likes
487

HI,

Create search help for item no and create a search help exit for filtering the data as per your requirement ( item no pertaining to the issue number) ... pass Issue number as importing parameter to the search help and exporting item number

Attach the search help to the screen field.

regards

padma

Read only

Former Member
0 Likes
488

Hi,

First you capture the input which you have given in the Issue no field using the following FM

Use FM 'C14Z_DYNP_READ_FIELD'

For Instance it should be like below

Data : v_field(255) type c.

CALL FUNCTION 'C14Z_DYNP_READ_FIELD'

EXPORTING

i_program = sy-repid

i_dynpro = sy-dynnr

i_fieldname = 'V_PLANT' "here specify your own field which u want to read

i_flg_steploop = ''

CHANGING

e_value = v_field. "Specify the variable inwhich u want to have the value and based on that u select other F4 help entries

and then based on the selected value select the data to shown in the select search help and apply that internal table in second field search help FM call.

Use the FM "F4IF_INT_TABLE_VALUE_REQUEST"