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

Refresh Search Help exit

Former Member
0 Likes
956

Hello,

We have added a search help exit for sales order reason codes to restrict the values allowed by order type. It works great except when the user changes the order type. The system does not pass thru the search help exit again and refresh the values for the new order type unless the user calls transaction VA01 to start over again. How can I force the system to refresh the search help exit without starting the transaction again?

Thanks.

Maggie

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
809

For VA01 there is an inlude MV45AFZZ. In this include there is a form called FORM userexit_field_modification.

Put in this form the following code and the problem is solved.

CASE SCREEN-NAME.

WHEN 'VBAK-AUGRU'.

CALL FUNCTION 'VRM_DELETE_VALUES'

EXPORTING

id = 'VBAK-AUGRU'

  • ID_CONTAINS_PROGNAME =

EXCEPTIONS

ID_NOT_FOUND = 1

OTHERS = 2.

.

IF sy-subrc <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

ENDCASE.

Regards,

Robert

5 REPLIES 5
Read only

Former Member
0 Likes
809

just place the REFRESH statement to the parameter which your passing the SEARCH HELP DATA ..

for example :

parameters : s_lifnr for matchcode object help_lifnr .

"************in your   code 

refresh s_lifnr .

reward points if it is usefull ...

Girish

Read only

Former Member
0 Likes
809

Hello,

I've got the same problem. The refresh statement doesn't work because you are not going back to the search help exit. Is there something that leads the program not to go to het search help exit again?

Read only

Former Member
0 Likes
809

Hi Maggie

I am not sure , but I think there is a separate exit when the order type is changed.

Read only

Former Member
0 Likes
810

For VA01 there is an inlude MV45AFZZ. In this include there is a form called FORM userexit_field_modification.

Put in this form the following code and the problem is solved.

CASE SCREEN-NAME.

WHEN 'VBAK-AUGRU'.

CALL FUNCTION 'VRM_DELETE_VALUES'

EXPORTING

id = 'VBAK-AUGRU'

  • ID_CONTAINS_PROGNAME =

EXCEPTIONS

ID_NOT_FOUND = 1

OTHERS = 2.

.

IF sy-subrc <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

ENDCASE.

Regards,

Robert

Read only

Former Member
0 Likes
809

Thanks very much for your help everyone. We implemented Robert's solution and it solved the problem.