Quantcast
Channel: SCN : All Content - SAP for Mobile
Viewing all articles
Browse latest Browse all 6147

SUP 2.2.5 + Offline BAPI Error Handling

$
0
0

Dear All,

 

Following is my Offline Transaction scenario where I require help.

 

Use Case:

MBO created on a Z BAPI that is Creating a GR (Goods Receipt) in SAP ERP. BAPI output contains Error Return Table as well that helps us in finding any error that is thrown from SAP.

 

Successful Scenario:

We create one GR in offline mode and call create() and submitPending() method of the MBO. When connected again and SYNC, it successfully CREATE the GR if there is no Error and I will get a new Document Number. Also, it returns error in Error Return Table if there is any error. We get it by calling the findAll() method on the MBO.

 

Problem Scenario:

We create two or more GRs in offline Mode and call create() and submitPending(). Now Sybase Unwired Platform has two pending Items. When connected again and SYNC, it only returns the LAST successful OR unsuccessful GR record in the findAll(). We lost the other items statuses. We might get the successful items from GR_LIST MBO but any pending items that has ERROR will be lost.

 

Is there any way in SUP that I can individually Sync pending items OR get the status of all Pending items after Sync?

Is this a default behavior of SUP that it flushes all the pending Items at once and ONLY returns the last item status in the Original MBO?

 

Looking forward for a quick and favorable response.


Viewing all articles
Browse latest Browse all 6147

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>