on 05-19-2015 10:44 AM
Hi All,
Please help me in this below issue.
I have one function module in the ECC system which for inserting records into database.
I created a sapui5 application which having new entry view.
After click on submit button records are stored in database. But every time it shows the message like "Employee created Successfully" even if we get the exception also.
So could you please help me how to display the exception of that function module on my sapui5 screen.
Thanks in advance
Regards
Surya
Hi Surya,
You need to handle exception using this standard method : /IWBEP/CX_MGW_BUSI_EXCEPTION
/IWBEP/CX_MGW_BUSI_EXCEPTION - SAP NetWeaver Gateway Foundation (SAP_GWFND) - SAP Library
Once you handle it in the gateway, the odata service would automatically return exception.
Other option is to pass the error messages in BAPIRET2. These return messages are handled automatically.
Regards
Tejas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You have to check where is your gateway service built.
You need to register your service in gateway system. While registering you need to search the service with your system alias. If your service is in same system then you need to give LOCAL alias, if it is in your backend system then you need to give alias of your backend system, so that it will pull the service from backend system.
Regards,
Tejas
Hi Tejas,
We got output in local system. but we are not getting output after uploading in gateway and using sap/bc/ui5_ui5/sap/zXXXX. We got the designed screen with 'NO DATA' quoted initially.
Then we created External Alias - now the link in external alias shows screen with 'no data' and sap/bc/ui5_ui5/sap/zXXXX this link shows msg:
'File sap/zemployee/zemployee NOT found!'
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.