FM to check status of Batch Session (SM35)
Hello All,
Can you please provide me a FM to check the status of the Batch Session (SM35) whether it is available or not.
Thanks,
You can use the function module BDC_PROTOCOL_SELECT
for this pass the session group name you get the details.it will retun the status also.
Similar Messages
-
No batch session created for forex run error
Hello
We have run the forex run on 31st may and have included the reversal as well(1st June).This got completed sucessfully with revaluation and its reversal the first day of next month.After a week we reset the forex run,then it should reverse both the revaluation on 31st May and reversal posting on 1st June.However when the reset was run ,the period 31st may was closed which was noticed after the forex reset run was .We selected create postings with the batch session and also checked to create batch session if any errors.
During the reset ,the reversal postings on 1st June got reversed but the forex revaluation on 31st may didnt get reversed(as period was closed).But there is no batch session created.
Please let us know why the session hasnt got created or what could be the reason why batch session in SM35 is not found,if the period was closed for reversal during reset it should have created batch session.
Please advice.Hi
If your reversal posting have been generated for 1st June, check also in SM35 if there is a batch session in error under Incorrect Tab/In Process/In Background Tab of SM35
Thanks & Regards
Sanil Bhandari -
How to check whether a batch input session is completed in ABAP program
I have created a ABAP program to create a batch input session (reference to RSBDCSUB). After the creation of the batch input session, I kick it to start and read the execution log. However, sometimes I cannot read anything from the execution log as the execution of the batch input is a synchronized process to the execution of my program, i.e. at the time being that I try to read the log of a particular transaction, that transaction is being processing / haven't start processing.
How can I check whether a batch input session is completed in the program?
The code that corresponding to the triggering of batch input session:
SUBMIT (SUBREPORT)
USER MTAB-USERID
VIA JOB MTAB-GROUPID
NUMBER JNUMB
WITH QUEUE_ID EQ MTAB-QID
WITH MAPPE EQ MTAB-GROUPID
WITH MODUS EQ 'N'
WITH LOGALL EQ LMODUS
Or is there any method to wait here until the process is completed before further processing?Hi gundam,
1. Or is there any method to wait here until the process is completed before further processing?
There is no such direct method to wait.
2. Immediately after submitting in background,
we cannot wait
neither can we LOOP and go on detecting
whether the b/g process has completed or not !
3. To over come such problems,
we have to use another technique.
4. we have to submit another
job which will get triggered
on event SAP_END_OF_JOB
ie. when the original job will finish,
our new job will AUTOMATICALLY get triggered,
5. This new job / program
will do the FURTHER actions !
regards,
amit m. -
Hi gurus ,
I am not getting any batch session when I am running ff67. In sm35 i am not getting related batch session.
Please Guide.
ThanksHi,
Go to below mentioned path and enter the symbols created for bank reco
SAP Customizing Implementation Guide> Financial Accounting (New)> Bank Accounting> Business Transactions> Payment Transactions>Manual Bank Statement> Electronic Bank Statement> Make Global Settings for Electronic Bank Statement> Create keys for posting rule
Best of luck -
How to delete old entires in batch input session sm35?
How to delete old entires in batch input session sm35?
Points assigned!
Thank you.In SM35, highlight each entry to be deleted and from the Menu ->Session ->Delete
-
Error While Processing Batch Session in Background Mode
Hi,
I am creating batch input sessions for Transaction FB01. Each Batch Session will have multiple transactions for FB01. My Batch Session is getting created. But when i am trying to process that batch session in backgroung mode ( thru SM35 ), it is failing. The Error says "Transaction Error". And when i process the same session in foreground mode, it is getting successfully processed. Any suggestion in this will be very helpful.Hi,
Check in your program if you have properly handled the OK codes.after every transaction is complete the 'Back' button has to be triggered.That could be the reason it's working in FG mode and not BG mode.Generally,OK Code is '/EBCK'.This should work. -
How to read the messages from the processed Batch session log
Hi All,
I am posting an accounting document through FB01 by submitting the report RFBIBL00 along with the file through which a Batch session gets generated in SM35.The Batch session is then processed by submitting the report RSBDCSUB. My code is as shown below:
SUBMIT rfbibl00 WITH ds_name = co_file_output
WITH callmode = co_batch AND RETURN.
Process Batch session
SUBMIT rsbdcsub
WITH mappe = gv_name_jd
WITH von = sy-datlo
WITH bis = sy-datlo
AND RETURN
My requirement is to capture the document number from the log of the processed batch session. Can anyone suggest me how to go about this.
Thanks in Advance,
Vinay BHi,
check the routine read_bdc_log_plain in program rsbdc_protocol.
get the data from table APQL and then use the logic.
bapiret2-id = logtable-logmessage+74(16).
bapiret2-number = logtable-logmessage+94(3).
bapiret2-message_v1 = logtable-logmessage+100(20).
CALL FUNCTION 'BAPI_MESSAGE_GETDETAIL'
EXPORTING
id = bapiret2-id
number = bapiret2-number
textformat = 'ASC'
message_v1 = bapiret2-message_v1
IMPORTING
message = bapiret2-message.
WRITE: (60) bapiret2-message.
Edited by: Keshav.T on Apr 7, 2010 4:23 PM -
Error in batch session processing in background mode
Hi ,
I am trying to do data transfer using batch session for transaction FD32.
Here the batch session is executing when I am processing the session in foreground.
Whereas in background mode it is failing.
Please check and assit.
Regards
KishoreHi Kishore,
Probably it will be some information or warning message which is coming in the background execution of the session.
That is the reason your session is going into error. Run the errored out session once again in foreground mode. You will get to know the reason of failure.
Please let us know of any doubts.
Cheers
VJ -
How to stop the internal batch session
Hi ,
How to stop the internal batch session, which is triggered from the program.
When I execute the program, there is an batch session, which starts processing in parallel with the program, and causes an error message for the program, so the further process is affected.
I tried finding the session through the Transactions - SM35, SM37. However, I could find any session in my name.
However, when I try thro SM04, I could find an session with the same error message. But I am not able to end the session.
Pleas advise.
Thanks,
cartesian.Go through transaction SM50. In case you have more than one application server (transaction SM51 will show) you can also use SM66 which will show all running processes on all application servers.
With SM50 you will only see the process running if it is running on the same application server you are logged on to.
Mark the process and use menu 'Program/Session - End Session' or 'Process - End with or without Core'
Hope that helps,
Michael -
No batch session created for report RFUMSV50
if i execute the report RFUMSV50 for batch session, in sm35 no session is created.
when i first time ran, then batch was created. i have not changed anything in settings. after that
i posted 5 end to end cases from po to payment. now if i run report no batch session is created
where is the problem?
help pleaseOk
But this report is not updating the records and no tax is transferred from interim tax account to final tax account. Also the output of the report is showing no value. It is blank. -
Change name of batch session in fast entry
Hi all,
we want to record changes with PA70 in a batch session. Unfortunatly the system generates a name for this session but our users only have specific authorisations for certain names.
Does anyone know, if I can change the name in the fast entry screen or give any other hint. The authorisations <b>cannot</b> be changed and the users <b>must not</b> use the direct input.
Thanks
MichaelHI Michael,
I don't think you have an option to change the Session name here.. the Groupid ie the session name gets defaulted based on the Infotype you select for input.. which in your case is PA700014.. this happens inside the std function module HR_CONVERT_FIELDS_FROM_INFOSET.. infoset here being the Infotype selected.. You may be better off modifying your checks to allow session names with PA70* for your Users..
~Suresh -
Batch session not generated in FF67
Dear All
I have entered some transactions in FF67 and then saved it and posted it. My processing type is 2. I have defined the posting keys for BRS and also assigned the GL account. However the system has not generated a batch input session in SM35. In the over view of the statement, system is showing an entry for IN51 as GL posted and IN01 as Not to be Posted . What could be the error?
Regards
Sanil BhandariHi
With the same config and figures, the batch session is generated and posted in testing. But in prod envior i am not able to generate the session. More ever, there is no statement with the id in FEBA
Regards
Sanil Bhandari -
hi experts,
My program is Batch session and the batch session is for posting fi documents(FB01). and iam doing by using rfbibl00 program. Actually there r 3 types of currencies while updation and one of them is company code currency(dmbe2). My requirement is i should not pass the value for company code currency dmbe2 when the currency key is equal to USD.
what they said is check in table T001 for example if the company code(BUKRS) = 1001 then check for company code currency(dmbe2) if it is equal to USD then dont pass the value dmbe2 to session.
please help me with the code.
Thanks and regards,
Ramya.hi
check with this logic
select single * into work area from t001
where company code eq '1001'.
if sy-subrc eq 0 and
workarea-WAERS eq 'USD'.
dmeb2 = ' '.
else
demb2 = 'pass the value'.
end if.
If you are doing this in side the loop, then instead of taking "select single *", write the select statement outside the loop for t001 and take values into internal table. Then inside the loop user Read statement in the place of "select single *"
Reward if it dose.
Thanks
Siva kumar -
Depreciation Run not creating a batch in SM35
Hi All,
System is not creating a batch in SM35 for month end Depreciation Run.
I am using the transaction AFAB with test run system is showing the
line items of depreciation run but without test run system is not
creating batch in SM35 to complete the process of depreciation run.
Please advice what to do to solve this problem. its very (URGENT)
Regards,
Yasir KhanHi,
Have you created a BDC or perhaps you have used Direct postings in FI?
Look in your asset if it is posted in the period and if it is posted in FI.
You can recreate a BDC with AFBD - Recreate Session.
Have look in your Job log and spool file perhaps there is more information
Paul -
Hi Guys,
One SAP standard program (SAPF120) creating the batch session in SM35, i need to automation the session, Could you please provide step by step process to automation the batch session.
Thanks
GourisankarHi,
Thanks for inputs...
when i exected the program "RSBDCSUB", it is asking the program below things
Session "SAPF120 "
Created on
From Today Date
To 31-12-9999.
Will these inputs sufficient, do i need to provide more info.
Thanks,
Gourisankar.
Maybe you are looking for
-
so i've had my macbook for a little over a year and i was wondering. when i import music to itunes, like i download mp3's and drag them from my desktop to a play list, can i delete the file on my desktop? just curious cause i remember on windows i ne
-
For some reason, my iCloud e-mail on my MacBook Pro goes crazy! I can send and receive mail, but no matter how I set the blue tab and up/down "Date Received" arrow, sometimes my mail goes back to 2002 back when I first set up my mail on an old Titani
-
iMac OS 10.6.8 iPhoto 8.1 Open iPhoto library select 'Preferences' click on any preference icon -> spinning beach ball. I have deleted iPhoto pref files - no change; started in 'Safe Mode' - no change. Re-installed iPhoto - change. Any suggestions???
-
HT4623 I cannot find "software update" in "general"
Trying to update iPad to iOS5 to stream Netflix movies???
-
Installing Photoshop Elements 11 not as trial
Hi, I just purchased Photoshop Elements 11 and the installer is asking to install as trail without the option to install full version. How can I install my purchase application? I have a Macbook Pro version 10.7.4