on 10-29-2008 3:26 PM
Does anyone know how to disable to the popup message that occurs in VC when a BAPI return an error message (message of type E)? We want to display a default error message to our users, instead of the cryptic ABAP error messages.
Maximum point awarded to the first correct answer.
Method 1:
1. Drag datastore to your storyboard
2. Right Click datastore and select Configure Element
3. Click + button to Add new field
4. Enter Fieldname=SHOWPOPUP, Type=Boolean, Default=false
5. Click on dataservice that is feeding your message input and drag into the datastore
6. Right Click on this new data mapping line and select Confgure Element
7. Click on fx for the SHOWPOPUP field and set the value to TRUE.
8. Right Click your popup Form and select Configure Element
9. Click + button to Add new field
10. Select PUSHBUTTON control and enter field name OK
11. Double Click the OK fiend to open configuration popup
12. Select ACTION tab and change radio button to CUSTOM ACTION and enter name HIDEPOPUP
13. Click on fx on the VISIBILITY CONDITION of the form and select enter formula
14. enter STORE@SHOWPOPUP as the formula
15. Click on the OUT port of the popup form and drag line into the datastore
16. Right Click on this new data mapping line and select Configure Element
17. Click on fx for the SHOWPOPUP field and set the value to FALSE
18. Select the dropdown list for the EVENT NAME at the top of the Data Mapping and select HIDEPOPUP as the event.
19. Select LAYOUT tab and readjust the position of the form over the top of your output table.
NOTE: you may need to click the BRING TO FRONT icon in lower left with your popup form selected to insure that it is not hidden behind other objects.
Method 2 :
There is another option in System action (PROMPT) where u can pass the message that will prompt sucesss or failure message but you have to trigger it by using pushbutton.
Both the method worked for me sure it will work for u also .
Regards
Abdull Hakkim .K
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Try to handle all the possible exceptions in BAPI itself and you can return your user defined message from BAPI in form of a table to the user.
Regards,
Murtuza
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.