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

Int Search help on based on PR document type

Former Member
0 Likes
1,512

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

9 REPLIES 9
Read only

Former Member
0 Likes
1,407

Which user exit is called once we change PR document type?

Regards,

Bijoy

Read only

0 Likes
1,407

Hi Gurus,

How to disable int Matl search using ABAP coding?

Read only

hiriyappa_myageri
Participant
0 Likes
1,407

Hi Bijoy,

Find the Which Enhancement will achieve You requirement.

Regards,

Hiriyappa.

Read only

0 Likes
1,407

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

Indicator for Activation of Intelligent Search Help

Regards,

Bijoy

Read only

0 Likes
1,407

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

Read only

0 Likes
1,407

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

Read only

0 Likes
1,407

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

Read only

0 Likes
1,407

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

Read only

0 Likes
1,407

Hi All,

Is there any work around for this solution?

Regards,

Sam