Everybody sends mails from SAP, some are still using old FM SO_NEW_DOCUMENT_ATT_SEND_API1 but some CL_BCS class. This class is really powerful but it has one disadvantage - it does commit work, and not ...
This time the problem which I solved was not an ABAP problem, although at the beginning I thought it is, as while creating of deliveries without reference in standard transaction were done correctly without ...
... and then use it for copying items to our target BOM in 'CS_CL_S_ITM_CREATE_BY_COPY'. At the end, when everything is fine, use FM 'CP_CC_S_SAVE' to save your changes and commit your work. ...
... And we activate GOS with temporary object name if we're in creation mode:
clear g_gos_ident.
if g_creation_mode is initial.
g_gos_ident-objkey = g_banfn.
clear p_no_commit.
else. ...
... (CP_CL_P_OPR_ALLOCATION_PROVIDE). We need to do it in order to delete current allocation. 4) Deletion is done with CM_CL_P_COM_DELETE and saved with CP_CC_S_SAVE. Deletion is committed as in other case ...
... Call commit work whenever you want to reset the counter of running time for your transaction (especially if you haven't done any update into database tables) If commit work doesn't work or you ...
... standard one iside to be able to do commit & rollback
call function 'Z_BAPI_GOODSMVT_CREATE'
starting new task 'NEW_TASK'
performing check_return on end of task ...
... attachment to PO. In that way you do not double the same content on server. Bellow you can find the code of an function module which uses 'BINARY_RELATION_CREATE' and 'BINARY_RELATION_CREATE_COMMIT'. ...