Application Development 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: 

PROCESS ON VALUE-REQUEST

Former Member
0 Kudos

Dear friends,

I have a field MATNR on a table control and here is requirement to call different values on F4 for that field for each line of table control. Following is the code:

PROCESS ON VALUE-REQUEST.

FIELD it_towel-matnr MODULE f4_towel_matnr.

I am able to call the different values conditionally by using the function F4IF_INT_TABLE_VALUE_REQUEST. But on the first line of the table control, user wants the standard search help for material field i.e. MAT1. How i can call standrd search help for the field MATNR for which i alreay used module for value request.

Kindly suggest,

Praveen Lobo

7 REPLIES 7

kesavadas_thekkillath
Active Contributor
0 Kudos

In the screen attributes dictionary tab you can specify the search help for that particular column.

Former Member
0 Kudos

Hi,

Goto the main screen of table control,i mean Flowlogic.

In its Layout,Provide the search help name as 'MAT1

It will work.

Regards

Arbind

0 Kudos

Hello Arbind,

Specifying MAT1 on layout wont work as the following code gets precedence over that.

PROCESS ON VALUE-REQUEST.

FIELD it_towel-matnr MODULE f4_towel_matnr.

Regards,

Praveen Lobo

0 Kudos

Yes,that;s true Precedence will be MAT1 only.

You have to comment your code.

0 Kudos

HI,

Its not possible to have both seacrh help ....and also f4...

Thanks,

Shailaja Ainala.

0 Kudos

Dear Shailaja,

But is there any function module that i can call inside the F4_Module to call the standard search help conditionally.

Regards,

Praveen Lobo

0 Kudos

Hi Praveen,

How r u.

I am sure this is what you are looking for.

call function 'F4IF_FIELD_VALUE_REQUEST'

exporting

tabname = 'T005H'

fieldname = 'BEZEI'

searchhelp = 'ZSH_CITY'

shlpparam = 'BEZEI'

dynpprog = sy-repid

dynpnr = sy-dynnr

dynprofield = 'CITY'

exceptions

field_not_found = 1

no_help_for_field = 2

inconsistent_help = 3

no_values_found = 4

others = 5.

if sy-subrc <> 0.

message id sy-msgid type sy-msgty number sy-msgno

with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

endif.

with regards,

Siddharth Patel