cancel
Showing results for 
Search instead for 
Did you mean: 

populating error message based on search help

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

solved by self

Former Member
0 Kudos

hi team,

Is there any BADI or fm to populate error message if user click on field insted of check button in a shopping cart account assignment tab. or any solution insted of using BADI.

Former Member
0 Kudos

Hi,

You can code your logic in BBP_DOC_CHECK_BADI.

Thanks,

Anshu

Former Member
0 Kudos

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 Kudos

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