cancel
Showing results for 
Search instead for 
Did you mean: 

Requirement Changing Warning to Error in Order page and orderChange page

Former Member
0 Kudos

Hi Experts

We are having one requirement in order page, the requirement has follows.

Currently in order page when ever user given the RDD(Requested Delivery Date ) has back date the system throwing response as warning message "RDD" Should not be back dated.

But over requirement is that warning message should change to Error Message and user should not able to create the order.

We did initial round of investigation we found out this warning message is comming from the java class ie."ItemDB.java" in the method "checkItemReqDeliveryDate".

Since this method is not calling directly from action class.Also this ItemDB class has no entry in backendobject-config.xml.

Can any please thow some pointers tell me how can we override this method to changing the warn to error.

Regards,

Satish B

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

We did the customization in ABAP level then we got the solution.

Former Member
0 Kudos

Hi Satish,

Just extend the SalesDocumentDB.java class.

In order page when the page is refreshed or update the updateInBackend method.

The flow would be

updateInBackend > internalUpdateItemList(posd); > internalUpdateItemList(SalesDocumentData posd) > itemDB.checkItemReqDeliveryDate().

Just overwrite this method and change warning to message. I know this looks like little complex.

Regards,

Sateesh Chandra

Former Member
0 Kudos

Hi Satish,

You can change the message priorities in "itemErrMsg.inc.jsp".You will find this jsp in b2b folder of your codebase.

You can have your custom messages also.Put a validation for RDD and print a message which will be printed for every item.

Regarding restricting order to be created, there are many ways you can do it.

Like showing the error message and disabling the "create" order button.You can also write your custom action to

take care of this.You will call this action before


<action path="/b2b/basketsend" type="com.sap.isa.isacore.action.order.MaintainBasketSendAction">

Regards,

Arshi