08/12/2014
COMMIT(ABAPKeyword)
[Link]
Search
PrimaryMenu
Skiptocontent
HOME
ABAPTutorial
SAPDictionary
ABAPSyntax
ABAPSourceCodes&SampleProjects
ALV(ABAPListViewer)Tutorial
SAPABAPOBJECTSTutorials
SAPMENUPAINTER&SCREENPAINTERTUTORIAL
SAPUSEREXITStutorial
LSMW
SAPBDC
SapSMARTFORMS
SAPSCRIPTStutorial
SAPModules
SapMMModuleTutorial
SAPCOTutorial
SAPCrossApplicationTutorials
SAPFIModule
SAPHRModule
SAPLogistics
SAPPM
SAPPPModule
SAPPSModule
SAPQMModule
SAPSDModule
SAPTreasuryModule
SAPWarehouseManagement
SAPWORKFLOW
SAPCTS
SAPITS
SAPALE
SAPIDOCTutorial
SAPEDITutorial
SAPBAPITutorial
Searchfor: Search
Search
COMMIT(ABAPKeyword)
[Link]
1/6
08/12/2014
COMMIT(ABAPKeyword)
COMMIT(ABAPKeyword)introduction&details
COMMIT
Basicform
COMMITWORK.
Addition
AND
WAIT
Effect
Executesadatabasecommitandthusclosesalogical
processingunitorLogicalUnitofWork(LUW)(seealsoTransactionprocessing
).Thismeansthat
alldatabasechangesaremadeirrevocableandcannot
bereversedwithROLLBACKWORKand
alldatabaselocksare
released.
COMMITWORKalso
callsthesubroutinesspecifiedby
PERFORMONCOMMIT,
executesasynchronouslyanyupdaterequests(see
CALLFUNCTIONINUPDATETASK)specifiedinthesesubroutinesorstarted
justbefore,
processesthefunctionmodulesspecifiedinCALLFUNCTION
INBACKGROUNDTASK,
[Link]
2/6
08/12/2014
COMMIT(ABAPKeyword)
cancelsallexistinglocks(seeSAPlocking
concept)ifnoupdaterequestsexist,
closesallopendatabasecursors
(seeOPENCURSOR)and
resetsthetimeslicecounterto0.
COMMIT
WORKbelongstotheOpenSQLcommandset.
Returncodevalue
TheSYSUBRC
issetto0.
Notes
AllsubroutinescalledwithPERFORMONCOMMIT
areprocessedintheLUWconcludedbytheCOMMITWORKcommand.AllV1update
requestsspecifiedinCALLFUNCTIONINUPDATETASKarealsoexecutedinone
LUW.WhenallV1updaterequestshavebeensuccessfullyconcluded,theV2
updaterequests(updatewithstartdelayed)areprocessed,eachinoneLUW.
Paralleltothis,thefunctionmodulesspecifiedinCALLFUNCTIONIN
BACKGROUNDTASKareeachexecutedinoneLUWperdestination.
COMMITWORK
commandsprocessedwithinCALLDIALOGprocessing
executeadatabase
commit(seeabove),
closeallopendatabasecursors,
resetthetime
slicecounterand
callthefunctionmodulesspecifiedbyCALLFUNCTION
IN
BACKGROUNDTASKintheCALLDIALOGprocessing.
However,subroutines
andfunctionmodulescalledwithPERFORMONCOMMITorCALLFUNCTIONIN
UPDATETASKintheCALLDIALOGprocessingarenotexecutedinthecalling
transactionuntilaCOMMITWORKoccurs.
SinceCOMMITWORKclosesallopen
databasecursors,anyattempttocontinueaSELECTloopafteraCOMMITWORK
[Link],aFETCHafteraCOMMITWORKon
[Link]
thatanyopencursorsarenolongerusedaftertheCOMMITWORK.
Withbatch
inputandCALLTRANSACTIONUSING,COMMITWORKsuccessfullyconcludesthe
processing.
Addition
ANDWAIT
Effect
[Link]
3/6
08/12/2014
COMMIT(ABAPKeyword)
Theaddition
ANDWAITmakestheprogramwaituntilthetypeV1updateshavebeen
completed.
Thereturncodevalueissetasfollows:
SYSUBRC=
0Theupdatewassuccessfullyperformed.
SYSUBRC<>0Theupdatecould
notbesuccessfullyperformed.
Note
Runtime
errors
COMMIT_IN_PERFORM_ON_COMMIT:COMMITWORKisnotallowedinaFORM
callledwithPERFORMONCOMMIT.
COMMIT_IN_POSTING:COMMITWORKisnot
allowedintheupdatetask.
Villa Plots in North
BLR
Le LexuZ StoneView an
Integrated Residential
Community. Know More!
0
Like
Postnavigation
PreviousPostCNT(ABAPKeyword)NextPostCOMMUNICATION(ABAPKeyword)
FreeSubscribebyEmail
JOIN
QuickGuides
[Link]
4/6
08/12/2014
COMMIT(ABAPKeyword)
SAPBasis
SAPHANA
Crystalreports
SAPLUMIRA
PredictiveAnalysis
EnterprisePerformanceManagement
SAPFiori
SAPR3ARCHITECTUREINTRODUCTION
SAPCertificationHelp&Details
SAPInterviewQuestions
HRTables&Infotypes
SAPHELP
Syam Sasi
Follow
[Link]
Like
[Link].
Facebooksocialplugin
Latest
SAPSOP(Sales&OperationsPlanning)Tutorials,TablesandTcodes
SAPHANACloudPlatformfreedeveloperaccountcreation
SAPConsignmentstocksProcessingTutorial,TablesandTcodes
SAPCOPA(profitabilityanalysis)Tutorial,tablesandTransactioncodes
SAPSalesSupport(SDCAS)ModuleTutorial,tablesandTransactioncodes
ImportantTables
MaterialMasterTables
SDTables
HRTables
FI&COtables
SAPSystemtables
[Link]
5/6
08/12/2014
COMMIT(ABAPKeyword)
TCODES
SDTransactionCodes
MMTransactionCodes
HRTransactionCodes
FITransactionCodes
ABAPTransactionCodes
Home|Contact|PrivacyPolicy|Sitemap|Google+
Disclaimer:[Link]
[Link]
[Link]@[Link].20132014
[Link]
6/6