cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

populating error message based on search help

Former Member
0 Likes
173

Hi team,

How can we populate error message in a shopping cart account assignment "order " field for the bellow two senarios. I am adding a custom field called "Operational Activity" in account assignment. based on which search help has to be done

the 2 senarios are

1. When user does not select the "Order" but tries to search for the operational activity, he should get error .

2. When user selects the "Order" and this order has an operational activity linked to it, then give error message to input the OA The logic will be to do a RFC call to ECC by sending the SRM Order number BBP_PDACC-ORDER_NO to ECC table AFKO and see if there is AUFPL.

Edited by: goutam kolluru on Nov 16, 2011 5:48 AM

View Entire Topic
Former Member
0 Likes

Hi,

You can code your logic in BBP_DOC_CHECK_BADI.

Thanks,

Anshu

Former Member
0 Likes

Hi Anshu,

Thank for u replay.

yes it can be done using doc_check_badi, but my question is how can we display error message by comparing search help values.

if user is not entering value of order field and select search help for custom operational activity field how it can be done in check badi.

Edited by: goutam kolluru on Nov 16, 2011 6:54 AM

Edited by: goutam kolluru on Nov 16, 2011 6:59 AM

Former Member
0 Likes

Hi,

You can read teh value of field ORDER_NO from the memory and impart a logic which compares this field value. It the value is empty in this filed and user selects any value from the search help of your custom filed, it will show an error message.

Thanks,

Anshu