2013 Nov 18 6:23 AM
Hi Gurus,
We want to enable/disable int material search help available in personal setting tab in ME51N transaction. We were able to set it either enable or disable at the time of opening PR screen. But how to enable/disable based on PR document type selection?
We have done following steps to make search help disable in ME51N:
Program
SAPLMEGUI
Include
LMEGUICJK
Enhancement 1
my_searchhelp = ' '.
CALL METHOD l_converter->set_searchhelp( my_searchhelp ).
endenhancement
When we chose a PR document type, we want to make this option either enable or disable based on PR document type.
Regards,
Bijoy
Hi Gurus,
We want to enable/disable int material search help available in personal setting tab in ME51N transaction. We were able to set it either enable or disable at the time of opening PR screen. But how to enable/disable based on PR document type selection?
We have done following steps to make search help disable in ME51N:
Program
SAPLMEGUI
Include
LMEGUICJK
Enhancement 1
my_searchhelp = ' '.
CALL METHOD l_converter->set_searchhelp( my_searchhelp ).
endenhancement
When we chose a PR document type, we want to make this option either enable or disable based on PR document type.
Regards,
Bijoy
2013 Nov 18 8:05 AM
Which user exit is called once we change PR document type?
Regards,
Bijoy
2013 Nov 18 9:04 AM
2013 Nov 18 9:40 AM
Hi Bijoy,
Find the Which Enhancement will achieve You requirement.
Regards,
Hiriyappa.
2013 Nov 18 11:53 AM
Hi Hiriyappa,
Enhancement MEREQ001
Function Exit: EXIT_SAPLMEREQ_005
INCLUDE ZXM02U05
Using below code I captured PR document type
DATA : l_dynpfields LIKE dynpread OCCURS 0 WITH HEADER LINE.
DATA: value TYPE bsart.
l_dynpfields-fieldname = 'MEREQ_TOPLINE-BSART'.
APPEND l_dynpfields.
CALL FUNCTION 'DYNP_VALUES_READ'
EXPORTING
dyname = 'SAPLMEGUI'
dynumb = '3327'
TABLES
dynpfields = l_dynpfields
EXCEPTIONS
invalid_abapworkarea = 1
invalid_dynprofield = 2
invalid_dynproname = 3
invalid_dynpronummer = 4
invalid_request = 5
no_fielddescription = 6
invalid_parameter = 7
undefind_error = 8
double_conversion = 9
stepl_not_found = 10
OTHERS = 11.
READ TABLE l_dynpfields INDEX 1.
value = l_dynpfields-fieldvalue.
Here I want to enable/disable
Regards,
Bijoy
2013 Nov 18 12:55 PM
Ok Bijoy.
As you told Search help is standard.
there are Function modules to achieve your requirement in another way.
Goto SE80 Enter Package Name 'SDSH'.
In that Go to Function groups and Expand the Function group 'SF4U'.
there you can expand Function modules tree You will get lot of Function modules achieve it.
-note
According my knowledge the search helps do not have screen numbers and all in run time it will trigger and show.
Regards,
Hiriyappa
2013 Nov 19 8:20 AM
Hi Hiriyappa,
I tried using CALL FUNCTION 'DYNP_UPDATE_FIELDS'. But Intelligent search help available in Personal settings tab is not getting updated properly.
Using same function module we were able to change PR document type available in ME51N. Can we update values available in Personal settings tab if we provide its Program name and value using FM 'DYNP_UPDATE_FIELDS' ?
Regards,
Bijoy
2013 Nov 19 2:04 PM
Ok bijoy,
ya You can try using program name and screen number . Make sure that weather its comes under Process on value request event.
Regards,
Hiriyappa
2013 Nov 20 5:17 AM
Hi Hiriyappa,
I want to change a field value of one program from another program using DYNP_UPDATE_FIELDS. Is it possible?
Present program is SAPLMEGUI.
We want to change value of a field available in program SAPLMEPERS.
We are able to update fields available in the same program using DYNP_UPDATE_FIELDS FM.
Regards,
Bijoy
2013 Nov 20 1:40 PM
Hi All,
Is there any work around for this solution?
Regards,
Sam
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |