SM35 - Processing the session
Hi guyz.
I have two questions regarding this.
1. When we process the session, is that a mandatory that the User id with which the session is created and the authorization user id be the same? Because when Iam trying to run a session from my program using submit statement,those two id's are different, so the session is showing that it is incorrectly processed. But when I go to SM35 and process the session in the foreground, it is processing well. But when I run the session in the background, it is showing incorrectly processed.
2. One user with his user id is processing the session. When he is processing, he is getting a error which is related to some authorization issue. But when the same user id is copied into another test id and run the program then the session is getting processed well.
if authorization object is used...then the list of users who have access to this authorization object can process. In sm36 anybody can do...but in a program u have to check whether the userid has authorization or not...
Similar Messages
-
Processing the session in background
Hi experts,
I have created a BDC program in session method. Once i executed the program, it creates a session name.
Then i select the corresponding session name in SM35 and process it in background.
But i dont want to goto SM35 and process the session explicitely.
How to process the session in background without going to SM35 tcode?
Regards,
ShanthiHi shanti,
check with below code... but one point keep remember. when your trying to post a question check SDN and if your not succeeded then only post the question. so it will avoid the duplicate postings on the same topic i am right ?.
Hi,
Use this sample code
DATA: RUNTIME TYPE I. "Runtime
DATA: GROUP LIKE APQI-GROUPID, " Mappenname
BDCIMMED LIKE RFIPI-BDCIMMED, " nur BDC: sof. Abspielen
BDCSTRTDT LIKE TBTCJOB-SDLSTRTDT, "nur BDC: Startdatum
BDCSTRTTM LIKE TBTCJOB-SDLSTRTTM. "nur BDC: Startzeit
form mappe_abspielen_im_batch.
GET RUN TIME FIELD RUNTIME.
JOBNAME = 'RFEBFD00-FIEB'.
JOBNAME+14 = RUNTIME.
eak-point.
CALL FUNCTION 'JOB_OPEN'
EXPORTING
JOBNAME = JOBNAME
JOBGROUP = 'FIEB'
IMPORTING
JOBCOUNT = JOBCOUNT
EXCEPTIONS
CANT_CREATE_JOB = 01
INVALID_JOB_DATA = 02
JOBNAME_MISSING = 03.
IF SY-SUBRC NE 0.
MESSAGE E015 RAISING SESSION_NOT_PROCESSABLE.
ENDIF.
SUBMIT RSBDCSUB AND RETURN
USER SY-UNAME
VIA JOB JOBNAME NUMBER JOBCOUNT
with mappe = group
WITH MAPPE = BI-NAME
WITH VON = SY-DATUM
WITH BIS = SY-DATUM
WITH Z_VERARB = 'X'.
BDCSTRTDT = SY-DATUM.
BDCSTRTDT = SPACE.
BDCSTRTTM = SPACE.
BDCIMMED = 'X'.
bdcstrttm = runtime.
CALL FUNCTION 'JOB_CLOSE'
EXPORTING
JOBNAME = JOBNAME
JOBCOUNT = JOBCOUNT
STRTIMMED = BDCIMMED
SDLSTRTDT = BDCSTRTDT
SDLSTRTTM = BDCSTRTTM
EXCEPTIONS
CANT_START_IMMEDIATE = 01
JOBNAME_MISSING = 02
JOB_CLOSE_FAILED = 03
JOB_NOSTEPS = 04
JOB_NOTEX = 05
LOCK_FAILED = 06.
IF SY-SUBRC NE 0.
MESSAGE E015 RAISING SESSION_NOT_PROCESSABLE.
ENDIF.
CLEAR BDCIMMED.
BDCSTRTDT = SPACE.
BDCSTRTTM = SPACE.
~lingannna -
Triggering a report after the completion of processing the session
Hi Friends,
I want to know how to trigger an report after the completion of processing the session.
Thanks,
RajHi
SELECTION-SCREEN *
PARAMETERS: p_name LIKE apqi-groupid,
p_datum LIKE apqi-credate,
p_time LIKE apqi-cretime,
p_event LIKE tbtco-eventid.
DATA *
DATA: fl_job_ok TYPE c,
fl_event TYPE c,
cont_sysubrc_6 TYPE i.
DATA: start_time LIKE sy-uzeit,
start_date LIKE sy-datum,
time LIKE sy-uzeit,
delta_time TYPE i.
DATA: apqitab LIKE STANDARD TABLE OF apqi WITH HEADER LINE.
DATA:
btc_running LIKE tbtco-status VALUE 'R',
btc_ready LIKE tbtco-status VALUE 'Y',
btc_scheduled LIKE tbtco-status VALUE 'P',
btc_released LIKE tbtco-status VALUE 'S',
btc_aborted LIKE tbtco-status VALUE 'A',
btc_finished LIKE tbtco-status VALUE 'F',
btc_put_active LIKE tbtco-status VALUE 'Z',
btc_unknown_state LIKE tbtco-status VALUE 'X'.
START-OF-SELECTION *
START-OF-SELECTION.
DATA: a VALUE '1', b.
Controllo esistenza job:
start_time = sy-uzeit.
start_date = sy-datum.
DO.
apqitab-creator = sy-uname.
CALL FUNCTION 'BDC_OBJECT_SELECT'
EXPORTING
name = p_name
datatype = 'BDC'
CLIENT = SY-MANDT
date_from = p_datum
DATE_TO =
time_from = p_time
TIME_TO =
QSTATE = 'F'
session_creator = apqitab-creator
TABLES
apqitab = apqitab
EXCEPTIONS
invalid_datatype = 1
OTHERS = 2.
IF sy-subrc <> 0.
fl_job_ok = space.
ELSE.
LOOP AT apqitab.
CASE apqitab-qstate.
WHEN 'F'. fl_job_ok = 'X'. EXIT.
WHEN 'E'. fl_job_ok = 'E'. EXIT.
WHEN OTHERS. fl_job_ok = space.
ENDCASE.
ENDLOOP.
IF fl_job_ok = 'X' OR fl_job_ok = 'E'.
EXIT.
ENDIF.
ENDIF.
IF start_date <> sy-datum.
start_time = sy-uzeit.
ENDIF.
time = sy-uzeit.
delta_time = time - start_time.
IF delta_time > 1800.
EXIT.
ENDIF.
REFRESH apqitab.
ENDDO.
IF fl_job_ok = 'X'. " Trovato JOB
fl_event = 'X'.
IF fl_event = 'X'.
Attiva evento
CALL FUNCTION 'BP_EVENT_RAISE'
EXPORTING
eventid = p_event
EXCEPTIONS
bad_eventid = 1
eventid_does_not_exist = 2
eventid_missing = 3
raise_failed = 4
OTHERS = 5.
IF sy-subrc <> 0.
MESSAGE e999(zfagm) WITH p_event 'is not actived'(002).
ELSE.
MESSAGE i999(zfagm) WITH p_event 'is successfully actived'(002).
ENDIF.
ELSE.
MESSAGE e999(zfagm) WITH p_event 'is not actived'(002).
ENDIF.
ELSE.
IF fl_job_ok = space.
MESSAGE e999(zfagm) WITH p_event 'is successfully actived'(002).
ELSE.
MESSAGE e999(zfagm) WITH p_event 'is successfully actived'(002).
ENDIF.
ENDIF.
Max -
FMor Bapi to get the number of transactions in SM35 for the session name
Hello All,
Can you anybody give me a function module or bapi to get the number of transactions in SM35 for the session name.
Can anybody help me out in this issue.
ThanksHello Maroz,
Thanks for the help.But can you provide me a FM or BAPI.
Thanks -
How to process a Session automatically ?
Hi everybody,
I am new to ABAP. Pls clear my doubt.
I had done a BDC using a session method. Every time should i need to goto SM35 & process the session? Or is there any other method to process the session automatically? If yes how. Pls give in detail. Can we shedule the session?
Thanks in advance.
Vijay.HI
GOOD
YOU CAN USE RSBDCSUB TO SCHEDULE YOUR BDC PROGRAM -
RSBDCSUB Release batch-input sessions automatically
http://www.auditnet.org/docs/SAPR3AuditingGuidelines.pdf
http://www.sappoint.com/abap/files.pdf
http://www.anao.gov.au/WebSite.nsf/Publications/4A256AE90015F69B4A25691C000B27FE/$file/ORIGINAL_handbook.pdf
THANKS
MRUTYUN -
Warning while processing the BDC session for ME11 - create info records
Hi,
I have succesfully created a BDC recording(SHDB) for ME11 transaction. but when I am trying to process the session(SM35) with file having correct data, I an getting a warning message" Please check Unit of measure and conversion factor" eventhogh correct values are being populated in the respective fields. Status of the run is shown as INCORRECT.
Any pointers on avoiding this warning message would be appreciated.
PS: I have tried putting an extra OK CODE with enter button, dint work....try to use transaction SXDA_TOOLS and Object type: BUS3003
Here you will find the standard batch-input program RM06IBI0 -
The session could not be processed in lsmw
Hi Experts,
I am uploading data using lsmw following direct input method.But in this i got an error when processing the session.It shows the status message like 'the required session could not be processed'.It also read and convert the input data file successfully.
Can anyone pl help me what the mistake i have done.
Thanks in advance!!!Adobe Lightroom - Find moved or missing files and folders
-
How do you release the session in session method?
how do you release the session in session method
Title was edited by:
Alvaro Tejada GalindoGo to SM35, select the session and click the process button.
Thanks, -
How can we execute the session in error mode through SE38 program
Dear Experts,
How can we execute the BDC session in error mode through se38 programme....
we can execute the session in the below 2 ways
1) Through SM35 we can process the session manually in foreground/Error mode or Background also.
2) through RSBDCSUB (standared Program) we can process the session in back ground.
But i want to process the session in foreground or Error mode..Do we have any standared program for process the session in foreground or error mode.
Please suggest.
Regards,
Bussa.Hi Bussa,
Please maintain the mode as 'E' . If there is any errors it will stop else it will run.
http://wiki.sdn.sap.com/wiki/display/ABAP/BatchInput-+BDC
http://wiki.sdn.sap.com/wiki/display/ABAP/BatchInputFAQ#BatchInputFAQ-WhySHDBdidn%27trecordsomescreens%3F
Regards,
madhu. -
BACK GROUND SCHEDULING OF THE SESSION METHOD
Dear experts,
i am using session method for data transfer,i need update the data periodically.
how can i do this?
i am following this method, in sm35i am processing the session in background---thruough this data is updfating at atime.
but i wnat to schedule it...can any one give stpe by step guidse to make this possible ,,,for session method, i know t.codes sm6 and sm...but how to use them?
guide me ........thanks in advanceHi,
use the following code.
submit rsbdcsub
with mappe eq 'ssession name'
exporting list to memeory and return.
reward if helpful
Rgds
Umakanth -
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 -
Wait until the session has been processed
Hi folks,
I have a report in which I create and trigger an SM35 session. I use RSBDCSUB report to do the same.
Now, is there anyway to wait until the session has been processed? I mean, I need to do a few things in the report only after the session has been processed.
Thanks
SagarHi,
You could try checking the job status (table TBTCO) inside a DO or WHILE loop. To pause up to 5 seconds between your lookup on TBTCO, you can call function module 'RZL_SLEEP'.
If checking TBTCO does not work out for you, you can try the same loop logic with a call to function module 'ENQUEUE_BDC_QID' instead of looking up the job status. If the enqueue has been released then the job has finished.
Regards,
James G. -
The session status is procession
hi expert,
when process batch input session , some of the session status is always in processing .
and check in the session some of the items most of them are correct and some of them are
incorrect .
doese anybody can tell me why , any advice will be appreciate .
And can we just release the session and reprocess it again?
and is there any duplicate posting since most of them shows correct in the processing session ?
many thankshi, chk this,
what is the difference between call transaction and session input method?
cheers,
Hema. -
What is the relationship between Process and Session parameter in Oracle
Hi All
I ran into a problem
"ORA-00020: maximum number of processes (150) exceeded " on the other day and I want to fix this temporary by increase the process by some number like 200.
Someone suggesting the syntax to fix my problem then the database must restart after running this command.
alter system set processes=200 scope=spfile;
However, I check the v$Paramenter view I see 2 values I believe they go together are
Processes: 150
Sessions:170.
Here are my questions:
1. "alter system set processes=200 scope=spfile;" is the correct way to increase the max Processes?
2. Do I have change the number of Sessions after changing the number of Processes?
3. Is there other way to increase the processes number without reboot the Oracle database?
Regards,
JdangAccording to the Oracle version# Reference manual which documents the database parameters sessions is set to 1.1 * process + 5 using the 10gR2 version.
Basically an Oracle process cooresponds to an OS process that performs the actual work for the session.
An Oracle session is a collection of memory structure entries that identifies and keeps track of what is being done for a client of the Oracle database.
Sometimes a single background process will support multiple sessions even in dedicated server mode such as when recursive SQL is performed to support the DML statement being done in the session.
PS - you should consider increasing processes first and only increase sessions if you still have an issue.
HTH -- Mark D Powell --
Message was edited by: mdp add PS
mpowel01 -
How to track the session Logs ( SM35) in program
Hi,
I want to track the SM35 logs in my program. Using log information i want to move the filure records, Success records and warning records spearately in my internal tabel.
Based on that iinforamtion i want to analysis the records again for upload......Please help me.
Thanks & regards
SanthoshThe actual requirment is, i want to get back the error records in my program.....My program is running in back end once the session is over i need to get the error files back to my program. That file i want to store in comman folder....
after the session complet i want to get the error records in my program.....any bapi or functional module or methods is available for get the log information.....
Help me....Please....
santhosh
Maybe you are looking for
-
This is my first timeo n Apple Support. Suddenly this morning I am unable to send messages through my iPhone. I can send messages to one number, but all the other numbers I am sending to I receive an error message. Also, I can receive messages fro
-
my ipod touch was stolen and i need the serial number but i dont have the paper work or the box, so how do i get the serial number?
-
Process flow on running in owb11g is erroring out
On running the PF in owb11g I am getting the below error: [PLS-00201: identifier 'OWBSYS.WB_WORKSPACE_MANAGMENT' must be declared] I checked some thread and found that the users need to be registered as target schema but this option is not there in o
-
Hi, I'm fairly new to JMS, but I always thought that communication to and from a JMS message broker (OpenJMS in my case) is standardized. However, when reading the developer docs for BPEL it states that you have to configure OC4J specifically for a p
-
Hi, When I am going to create a web form and click the create button, there comes out an error, when clicking the explorer warning tab, it says "URL: http://ip:19000/HyperionPlanning/Servlet/HspCreateForm?Application-demo&RND=0.61554385&FOLDERID=9" D