2010 Jan 27 8:45 AM
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
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
2010 Jan 27 8:50 AM
In the screen attributes dictionary tab you can specify the search help for that particular column.
2010 Jan 27 8:53 AM
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
2010 Jan 27 9:07 AM
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
2010 Jan 27 9:10 AM
Yes,that;s true Precedence will be MAT1 only.
You have to comment your code.
2010 Jan 27 9:11 AM
HI,
Its not possible to have both seacrh help ....and also f4...
Thanks,
Shailaja Ainala.
2010 Jan 27 9:15 AM
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
2010 Jan 27 12:35 PM
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
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |