Application Development 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: 

ERROR In EPC

Former Member
0 Kudos

Hi Folks,

the following is the error in EPC

Program: xxx Include: LZ Row: 25

No. of WITH fields of MESSAGE 002 for ID ZC_BTX_FULLOC: 2

LS_COM-LOC_OLD

LS_COM-LOC_NEW

No. of placeholders in this message: 0

Message: Fulfillment location is mandatory

No long text exists for this message

the related code is

IF ls_com-loc_new IS INITIAL.

MESSAGE e002(zc_btx_fulloc) WITH ls_com-loc_old ls_com-loc_new RAISING not_allowed.

  • Fulfillment location is mandatory

ENDIF.

1 ACCEPTED SOLUTION

former_member181962
Active Contributor
0 Kudos

Go to se91 and give the message class as zc_btx_fulloc and you would see that the message 002 has no '&'s in it.

& means place holder. This would be filled at run time with the values supllied by message with statement

for ag:

in se91, if

002: & in not valid

IN se38 ,

the code

message e002(zc_btx_fulloc) with '09899999'.

this would trigger a message "09899999 is not valid".

so see that the message has as many &s as the number of parameters in the message with statement.

Regards,

Ravi

1 REPLY 1

former_member181962
Active Contributor
0 Kudos

Go to se91 and give the message class as zc_btx_fulloc and you would see that the message 002 has no '&'s in it.

& means place holder. This would be filled at run time with the values supllied by message with statement

for ag:

in se91, if

002: & in not valid

IN se38 ,

the code

message e002(zc_btx_fulloc) with '09899999'.

this would trigger a message "09899999 is not valid".

so see that the message has as many &s as the number of parameters in the message with statement.

Regards,

Ravi