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

Enhancement points.

Former Member
0 Likes
541

There is a message which is being called from a standard program(message class VL,number 198).

( Item &: Only &2 &3 from material &4 are available )

I need to change this message ,the variable 4 above.

I got the enhancement points just at the start of the perform as below:

form message_senden using ms_msgno like sy-msgno

ms_msgty like sy-msgty

ms_msgid like sy-msgid

ms_msgv1 type clike

ms_msgv2 type clike

ms_msgv3 type clike

ms_msgv4 type clike.

Enhancement Start .

*****

Enhancement End.

ms_msgv4 currently has the material number only . I need to change this to material number and the batch number.

But I am not able overwrite ms_msgv4 .

The program gives a dump saying:

A new value is to be assigned to the field "MS_MSGV4", although this field is

entirely or partly protected against changes.

Please let me know how to achieve this.

There is a message which is being called from a standard program(message class VL,number 198).

( Item &: Only &2 &3 from material &4 are available )

I need to change this message ,the variable 4 above.

I got the enhancement points just at the start of the perform as below:

form message_senden using ms_msgno like sy-msgno

ms_msgty like sy-msgty

ms_msgid like sy-msgid

ms_msgv1 type clike

ms_msgv2 type clike

ms_msgv3 type clike

ms_msgv4 type clike.

Enhancement Start .

*****

Enhancement End.

ms_msgv4 currently has the material number only . I need to change this to material number and the batch number.

But I am not able overwrite ms_msgv4 .

The program gives a dump saying:

A new value is to be assigned to the field "MS_MSGV4", although this field is

entirely or partly protected against changes.

Please let me know how to achieve this.

2 REPLIES 2
Read only

Former Member
0 Likes
504

Hi,

Could you provide the exact context of this issue?

Regards

Sabu.

Read only

Former Member
0 Likes
504

Hi,

You will have a Implicit enhancement point at the end of FORM statment, there overwrite the value. for this you need to create the implicit enhacement point, to know more Look at the link here --> http://www.sapdev.co.uk/enhance/eframework/ef_implicit.htm