This is relative to Mobile Infrastructure 7.1 SP8.
I have a scenario where the client wants to upload to the backend only orders that are finalized. In our Data Object Node we created an BOOL attribute 'finalized', in the client this status is setted when needed. If the order is not finalized, the changes made on client (such as 'description' and 'hours spent') can´t be lost on close the mobile client and can´t either go to backend until this order is finalized.
In this [Thread|; I asked for possible solutions for this issue and got a solution. In this solution I changed my BAPI Wrapper modify to handle a rejection when the order is not finalized:
IF ( ORDERHEADER-FINALIZED = 1 ). UPDATE ZORDERS SET HOURS_SPENT = ORDERHEADER-HOURS_SPENT FINALIZED = ORDERHEADER-FINALIZED DESCRIPTION = ORDERHEADER-DESCRIPTION WHERE ID = ORDERHEADER-ID. ELSE. LTYPE = 'E'. LCL = 'not_finalized'. ENDIF.