Error Reading Job Log Sm37
and SafetyAsset NetworkAsset Operations and MaintenanceCommerceOverviewSubscription Billing and Revenue ManagementMaster Data Management for CommerceOmnichannel CommerceFinanceOverviewAccounting and Financial CloseCollaborative Finance OperationsEnterprise Risk and ComplianceFinancial Planning and AnalysisTreasury and Financial Risk ManagementHuman ResourcesOverviewCore Human Resources and PayrollHuman Capital AnalyticsTalent ManagementTime and Attendance ManagementManufacturingOverviewManufacturing NetworkManufacturing OperationsResponsive ManufacturingMarketingOverviewMarket with Speed and AgilityUnique Customer ExperiencesReal-Time Customer InsightsR&D/EngineeringOverviewDesign NetworkDesign OrchestrationProject and Portfolio ManagementSalesOverviewCollaborative Quote to CashSales Force AutomationSales Performance ManagementSelling Through Contact CentersServiceOverviewEfficient Field Service ManagementOmnichannel Customer ServiceTransparent Service Process and OperationsSourcing and ProcurementOverviewContingent Workforce ManagementDirect ProcurementSelf-Service ProcurementServices ProcurementStrategic Sourcing and Supplier ManagementSupply ChainOverviewDemand ManagementDemand NetworkLogistics NetworkManufacturing Planning and SchedulingResponse NetworkResponse and Supply ManagementSales, Inventory, and Operations PlanningTransportation ManagementWarehouse ManagementSustainabilityOverviewEnvironment, Health, and SafetyProduct Safety and Stewardship NetworkBrowse by IndustryAerospace and DefenseAutomotiveBankingChemicalsConsumer ProductsDefense and SecurityEngineering, Construction, and OperationsHealthcareHigh TechHigher Education and ResearchIndustrial Machinery and ComponentsInsuranceLife SciencesMediaMill ProductsMiningOil and GasProfessional ServicesPublic SectorRetailSports and EntertainmentTelecommunicationsTravel and TransportationUtilitiesWholesale DistributionBrowse Platform and TechnologyAnalyticsOverviewBusiness IntelligencePredictive AnalyticsGovernance, Risk, and ComplianceEnterprise Performance ManagementApplication Platform and InfrastructureOverviewApplication PlatformContent and CollaborationInterface ManagementProcess Management and In
Technology and Trends Enterprise Architecture and EAI ERP Hardware IT Management and Strategy Java Knowledge Management Linux Networking Oracle PeopleSoft Project and Portfolio Management SAP SCM Security Siebel Storage UNIX Visual Basic Web Design and Development Windows < Back CHOOSE A DISCUSSION GROUP Research Directory TOPICS Database Hardware Networking SAP Security Web Design MEMBERS Paul_Pedant DACREE MarkDeVries Inside-ERP MacProTX VoIP_News Inside-CRM I_am_the_dragon maxwellarnold Michael Meyers-Jouan TerryCurran Chris_Day Andrew.S.Baker Ramnath.Awate JoeTorre bracke Locutus PCMag Dennis Stevenson Craig Borysowich DukeGanote Richard mircea_luca iudithm Nikki Klein AbhaiTripathi knowscognosdoi Clinton Jones Iqbalyk bluesguyAZ59 COMPANIES Thawte Oracle CloudLock Epicor Software ... View All https://scn.sap.com/thread/3512268 Topics View All Members View All Companies Toolbox for IT Topics SAP Groups Ask a New Question SAP Basis The SAP Basis group is for the discussion of specific configuration and development issues that arise when utilizing the SAP Basis & System Administration. Home | Invite Peers | More SAP Groups Your account is ready. You're now being signed in. Solve problems - It's Free Create your account http://sap.ittoolbox.com/groups/technical-functional/sap-basis/when-executing-sm37-i-click-on-a-cancelled-job-and-then-select-job-log-and-get-error-reading-job-log-ltjob-log-namegt-3935174 in seconds E-mail address is taken If this is your account,sign in here Email address Username Between 5 and 30 characters. No spaces please The Profile Name is already in use Password Notify me of new activity in this group: Real Time Daily Never Keep me informed of the latest: White Papers Newsletter Jobs By clicking "Join Now", you agree to Toolbox for Technology terms of use, and have read and understand our privacy policy. When executing SM37 I click on a cancelled job and then select 'Job log' and get 'Error reading job log
post Recently i had a requirement to http://www.sapalles.com/2014/12/22/read-sm37-logs-of-background-jobs/ trigger a background job from my custom program. Background job had a standard SAP report as step and report was processing a business logic. After this business process has been completed after execution of background job, system creates an application log error reading in SM37. I needed to read this log , because some times background job was failing because of a business problem like lock situations. I have used BP_JOBLOG_READ to achieve this requirement. You can adapt below code according to your requirement. 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103 error reading job *&---------------------------------------------------------------------**& ReportZYA_JOB_LOG*&*&---------------------------------------------------------------------*reportzya_job_log.start-of-selection .perform submit_job.*&---------------------------------------------------------------------**&FormSUBMIT_JOB*&---------------------------------------------------------------------*form submit_job .data lv_jobname like tbtcjob-jobname.data lv_jobcount like tbtcjob-jobcount.data lt_log type table of tbtc5 with header line.data lv_msgtx typestring.* Job opencall function 'JOB_OPEN'exportingdelanfrep= ' 'jobgroup = ' 'jobname= lv_jobnamesdlstrtdt= sy-datumsdlstrttm= sy-uzeitimportingjobcount = lv_jobcountexceptionscant_create_job= 01invalid_job_data = 02jobname_missing= 03.if sy-subrc ne 0."error processingendif.submit standart_report via job lv_jobnamenumber lv_jobcountand return.* Close jobcall function 'JOB_CLOSE'exportingjobcount = lv_jobcountjobname= lv_jobnamestrtimmed= 'X'exceptions"#EC *cant_start_immediate = 01invalid_startdate= 02jobname_missing= 03job_close_failed = 04job_nosteps= 05job_notex= 06lock_failed= 07others = 99.if sy-subrc eq 0.endif.* wait job to finish, it does not spend too much timewait up to 3 seconds.* read logdo .call function 'BP_JOBLOG_READ'exportingjobcount= lv_jobcountjobname = lv_jobnametablesjoblogtbl = lt_logexceptionscant_read_joblog= 1jobcount_missing= 2joblog_does_not_exist = 3joblog_is_empty = 4joblog_name_missing = 5jobname_missing = 6job_does_not_exist= 7others= 8.if sy-subrc eq 0.loop at lt_log.call function 'MESSAGE_TEXT_BUILD'exportingmsgid = lt_log-msgidmsgnr = lt_log-msgnomsgv1 =