on 06-10-2016 7:18 AM
I have a scenario to create vendor disbursement data using UI5 app in ECC. I am taking care of the ODATA service. I have created the CRUD service for this, however data validation and pre-populated data has to be shown. User enters PO number through the APP.How do I validate this po number in ECC and send back required information like vendor details back to the APP. In case PO is not found in the backend error handling needs to be done.Message has to be passed back to the APP.
Experts,please help.
HI Sharique
If your gateway system is not embedded in ECC then call the below FM BAPI_PO_GETDETAILS via RFC call and see for the structure PO_header is not empty which means the PO exists in ECC ?
Regards
Vinita
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you have coded a class based gateway service (ie your CRUD operations are not mapped to FMs) - then you can raise an exception if the PO is not found.
Something like this:
RAISE EXCEPTION TYPE /iwbep/cx_mgw_busi_exception
EXPORTING
textid = /iwbep/cx_mgw_busi_exception=>business_error
message = 'your error message'.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.