cancel
Showing results for 
Search instead for 
Did you mean: 

Error Message in BSP Web Template

Former Member
0 Kudos

Hi,

I want to give an error message on web when planning is on process, For Ex:- I have an Text Object of type input field on web then is it possible to raise a error message if they leave it blank,or if they enter incorrect value.

Cheers,

vMatt

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Matt,

I have done this with the Use of FOX. I do a check if people enter distribution keys from employee to cost centers that the total sum is 100.

DATA TOTAL TYPE I.

DATA CTR TYPE 0COSTCENTER.

DATA VT TYPE 0DATETO.

DATA VF TYPE 0DATEFROM.

DATA PERS TYPE 0EMPLOYEE.

DATA PLANT TYPE 0PLANT.

FOREACH CTR,VT,VF,PLANT.

TOTAL = TOTAL + {PDISTR,CTR,VF,VT,PLANT}.

ENDFOR.

PERS = OBJV( ).

IF TOTAL <> 100.

MESSAGE E008(ZBPS) WITH PERS TOTAL.

ENDIF.

This FOX is linked in BPS_Wb to be executed automatically when the layout changes. It will result in an error if the conditions are not met.

If you want to block further processing you can link it to a planning sequence.

I hope this helps.

Kris

Former Member
0 Kudos

Hi Kris,

First of all thanks exploring the way to handle this problem.

But my problem is also with some Text apart from amount figure on Web

Ex:- My Text object is of input type which allows to enter 30 characters by defnition of object.

Being used this as an input field it allows more than 30 and it will stop at some point allowing the entries,but planners want that to be delimited when they are reaching 30th character automatically giving them a message or i should restrict them only upto 30 Characters they can enter.

But on web for this object is of type input field iam unable to stop at 30.

I hope you got me , this is nothing to do with functions i believe as it is more related to web template.

But you gave a good view on this..but i guess this can't be the one i can go with..reason is i have to take this an function on web to execute with a button.

Cheers,

vMatt

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Folks,

Any suggestions how to do this...i have to throw some error messages instantly when they input on screen of Planning application in Web while using a Webtemplate.

Ex:- They have entered some value in a particular input field of type 0Amount Object which is to be distributed,

But they just entered in the input field and saved and continued to next entry. At the time i have to raise an

error with some message the "Value needs to be distributed" is there any way to do so...

Cheers,

vMatt