In Background Task Abap Command - Sap Call Function
-
Upload
ajit-keshari-pradhan -
Category
Documents
-
view
62 -
download
0
description
Transcript of In Background Task Abap Command - Sap Call Function
-
08/12/2014 INBACKGROUNDTASKABAPcommandSAPCALLFUNCTION
http://www.sapdev.co.uk/abap/commands/inbackgroundtask.htm 1/3
OnlineTraining(90%off6000courses)
SAPSolutions
TopStories
BreakingNews
0Comments
SAPJobs
SAPOnlineTraining
SAPTrainingMaterial
SAPCertification
SAPImplementation
HumanResourcesTraining
Weusecookiestogiveyouthebestexperienceonoursite.Bycontinuingtousethissiteyouagreetoouruseofcookies. Learnmore Ok
CallFunctionmoduleINBACKGROUNDTASKExecuteabapcodeinseperatebackgroundprocess
TheINBACKGROUNDTASKstatementallowsyoutoexecuteremoteenabledfunctionmodulesinabackgroundtaskasynchronously.Becarefulthoughtasitmightnotquiteworkasitappearstooi.e.IfyoudebugtheABAPprogramlogicitwillstepovertheFMontothenextlineofcode,notwaitingforthisfunctionmoduletofinishitprocessing.Butthisdoesntmeanithasgoneofftostarttheprocessingatthispointasithasnot!!Ithassimplycreatedthebackgroundtaskreadyforprocessingandwillnotactuallybeexecuteduntilacommitworkisreachedinthecurrentlogicalunitofwork.
Sobasicallyifyouwantittogooffandperformthisbackgroundprocessingstraightawayyouneedtoaddacommitworkafterthecallfunctioninbackgroundtaskcommand.
JustincaseyouareinterestedinthetechnicaldetailswhenyoumakethecallusingtheinbackgroundtaskadditionSAPstorestheFMname,destinationandanyparametersintablesARFCSSTATE&ARFCSDATAforthecurrentLogicalunitofwork.TheseentriescanalsobeenseenusingtcodeSE58.Pleasenotethisdataisnotavailablehereafterthetaskhasfinishedprocessing.
Althoughthismayseemstrangeatfirstitdoesallowyoutoperformotherfunctionalityfirstandonlytriggersthebackgroundtaskifalliswellwiththatanditiscommittedtothedatabaseok.Alsothebackgroundtaskswillbeprocessedintheordertheyhavebeenregistered.
ASSEPARATEUNITTheasseparateunitadditionisusedifyouarecallingthesameFMmultipletimesorFMswithinthesamefunctiongroup.Itbasicallyensureseachcallisprocessedwithinitsowncontextandisnotaffectedbyglobaldatachangesfromotherfunctioncalls.
DESTINATIONThissimpleallowsyoutospecifyadifferentRFCdestination
ExampleABAPcodetoExecuteFMinbackgroundtask
CALLFUNCTION'Z_FMODULE'INBACKGROUNDTASKEXPORTINGP_UNAME=syuname.
*INBACKGROUNDTASKadditionaloptionsCALLFUNCTION'Z_FMODULE'INBACKGROUNDTASKASSEPARATEUNITDESTINATION'NONE'EXPORTINGP_UNAME=syuname.
breakpoint."doesnotwaitandcontinueswithnextlineofABAPcode
CommitWork."Backgroundtaskisonlytriggeredatthispoint.
"loopatitabintowa_itab."..."endloop.
Alsosee:STARTINGNEWTASKINUPDATETASKINBACKGROUNDTASK
SapABAPOO ABAP Background CRMSapModule
-
08/12/2014 INBACKGROUNDTASKABAPcommandSAPCALLFUNCTION
http://www.sapdev.co.uk/abap/commands/inbackgroundtask.htm 2/3
SAPDevelopmentTools AllABAP SAPReporting RepositoryObjects WebApplications ABAPCommands ABAPOO
BreakingNews
TopLuxuryCars
SAPOnlineTraining
SAPABAPPrograms
JointheMailingList
Enteryournameandemailaddressbelow:
Name:Email:
Subscribe UnsubscribeGO
GetyourFreeMailingListbyBravenet.com
SAPdialogscreenprograms(ABAPdynpro)2comments
SAPtransactioncodesusefulforABAPdevelopmentsuchas2comments
SAPDatabaseLockingENQUEUEandDEQUEUE1comment
SAPPlantmaintenanceandworkorderdatabasestructure1comment
AROUNDTHEWEB
ALSOONSAPDEVELOPMENT
WHAT'STHIS?
5WaystoStayYoungandFitStack NineJapaneseCarstoLook
ForwardTo
Web2Carz.com
CrackerBarrelrejectslatestattempttoforceasale
WorldNews TheTop5CompaniesThatTransformedAdvertisingin2013
Disqus
0Comments SAPDevelopment Login
SortbyNewest Share
Startthediscussion
Bethefirsttocomment.
Subscribe AddDisqustoyoursited Privacy
Favorite
commentspoweredbyDisqus
-
08/12/2014 INBACKGROUNDTASKABAPcommandSAPCALLFUNCTION
http://www.sapdev.co.uk/abap/commands/inbackgroundtask.htm 3/3
LatestjobsfromERPJobboard.com
Trainee2015IhrEinstiegindieSAPWeltOrt:bundesweitBITTraineeprogrammzumSAPConsultantTechnology:EinfacherEinstieg,EffizientesKnowHow,VieleChancenbei...Sun,07Dec201416:00:000800Kronos/sapHCMTechnoFunctional(contracttohire)_MumbaiStrongABAPskills.MusthaveabilitytoperformconfigurationforHCMmodulesofHR,Benefits,Payroll,CATS,andSAP...Sun,07Dec201416:00:000800ERPBusAnlystISupplyChainDemonstratedknowledgeofSupplyChainthroughcertificationsuchasCertifiedSupplyChainProfessionalor.SoftERP...Sat,06Dec201416:00:000800SeniorBusinessConsultantRegistrationTheBusinessConsultantmayparticipateinsalescalls,assistinscopingaddonworkandassistindevelopmentofservices...Sat,06Dec201416:00:000800ERPAnalyst(MicrosoftDynamicsNAV)TroubleshootsystemproblemsandissuesprovideguidanceinNAVPayroll,
SAPSecurityJobs
SAPAuthorizedEducation
SAPAccountingSoftware
SAPTransactionCodes
SAPCertification
ListOfSAPApplications
ContactUs Partners TermsofService PrivacyPolicy Advertise