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

Similar Messages

  • How to process bdc session ?

    Hi ,
      Suppose I created a session BDC . Then How can I process it ? by using sm36 or any standard program ? If any standard program is there how to use it ?

    hi,
    Goto transaction SM35, in the displayed list of sessions,select the session you want to execute and then click on Execute button or press F8.
    SM36 is for creating background jobs
    *Reward points if its helpful

  • URGENT - HOW TO PROCESS A BDC SESSION (IN BACKGROUND) FROM INSIDE A REPORT

    Hi All,
    I have a requirement wherein I need to create a BDC session for mass update(from file) of one transaction and check if at all that update has taken place and proceed with the same session for another transaction.
    For this I need to know how to process the session in background in a report, so that if the processing is done, the next set of data to update a different transaction can happen.
    All inputs are welcome and highly valuable to me.
    If someone is unable to intrepret this, I'll detail it again.
    Thanks in advance,
    Vaishnavi Varadarajan

    Hi,
    1.Use RSBDCDRU is an exe pg.With this u can download the logs into local file.
    2.It will create the spool request .from there u can download or print.
    OtherWise:
    Use the code from the link below. U need to provide the session queue id as input and it will download the log to an excel file. U can change it to  ur reqmt.
    Re: BDC
    regards
    kiran

  • How to Process "Being Created" Sessions

    Dear Experts,
    Program created sessions are tagged to be "Being Created". Can any one of you explain me how to process these sessions through a program again.?
    It would be of great help and useful answers are rewarded.
    Best Regards,
    Arunkumar S

    After BDC_CLOSE_GROUP use rsbdcsub to run the session.
    ex:
    DATA: l_abap_list       TYPE abaplist OCCURS 0 WITH HEADER LINE,
    l_ascii_list(200) TYPE c        OCCURS 0 WITH HEADER LINE.
    SUBMIT rsbdcsub AND RETURN EXPORTING LIST TO MEMORY
                         WITH mappe = c_bdcname  "Session name
                         WITH z_verarb = 'X'
                         WITH fehler = ' '.
      COMMIT WORK AND WAIT.
    Retrieve the output from memory and place into l_abap_list
      CLEAR l_abap_list.
      FREE  l_abap_list.
      CALL FUNCTION 'LIST_FROM_MEMORY'
        TABLES
          listobject = l_abap_list
        EXCEPTIONS
          not_found  = 1
          OTHERS     = 2.
      IF sy-subrc EQ 0.
        CLEAR l_ascii_list.
        FREE  l_ascii_list.
        CALL FUNCTION 'LIST_TO_ASCI'
          EXPORTING
            list_index         = -1
          TABLES
            listasci           = l_ascii_list
            listobject         = l_abap_list
          EXCEPTIONS
            empty_list         = 1
            list_index_invalid = 2
            OTHERS             = 3.
        IF sy-subrc NE 0.
    'Unable to convert list from rsbdcsub to ascii'
          MESSAGE w368 WITH text-010.
        ENDIF.
      ENDIF.

  • 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,
    Shanthi

    Hi 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

  • How to process Sessions

    Hi,
      I Would like to know how to process sessions.
    Regards,
    Prasad

    Refer to these links
    <b>Managing Batch Input Sessions</b>
    http://help.sap.com/saphelp_46c/helpdata/en/69/c2501a4ba111d189750000e8322d00/frameset.htm
    <b>Processing Sessions Automatically</b>
    http://help.sap.com/saphelp_46c/helpdata/en/69/c250414ba111d189750000e8322d00/frameset.htm
    Regds
    Manohar

  • How Can I Release sessions if these are idle long time Automatically.

    Dear Experts,
    How Can I Release sessions if these are idle long time Automatically based on some time frame..
    So that session memory will be free and when i go to reconnect the session then we will have enough memory for our transaction processing.
    I am asking this question because, In my case (Web Load Testing) after completion the processing this parameter still showing 86% Usage.
    so How Can I release it.

    Change value of IDLE_TIME in profile or better create new profile with less IDLE_TIME and assign to users.
    IDLE_TIME Allowed idle time before user is disconnected (minutes)
    Below is example if user is idle for 20 min , he/she will disconnect
    ALTER PROFILE developer LIMIT idle_time 20;
    Cheer,
    Virag Sharma

  • 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 B

    Hi,
    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

  • How to set Processes and Session parameter

    Hi All,
    I have to check the optimal value for the Parameter "processes" and "session" for my database server,
    existing value for Processes is 500 and sessions is 1000.
    Oracle application: 12.0.6
    database 10.2.0.4 2 node RAC.
    and i wanted to know how many " jdbc connection" can be done for the 12GB RAM and Quad core two CPU machine,
    Pl let us know any doc/Thumb rule to set the above.
    Thanks and Regards
    Vasu

    Hi,
    I wanted to check what is the maximum limit of the "processes" for my existing resource. is my 500 processes itself is exhasted the resources.The maximum limits are mentioned in the database reference manual.
    Process and Runtime Limits
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/limits004.htm#i288165
    Oracle 10g Documentation Library
    http://www.oracle.com/pls/db102/homepage
    Kindly let me know any SQL query or supporting document to set the processes and session parameters.Did you review the initialization document referenced above? I believe it shows the value you need to set for processes and session parameters. For the query, you can query v$parameter or issue "show parameter <parameter name>" from SQL*Plus.
    Regards,
    Hussein

  • How to make Firefox open automatically a new, empty tab in each start, but keep last sessions?

    How to make Firefox open automatically a new, empty tab in each start? (keep last sessions as well) It will be good, because Firefox wont load the previous sessions last watched tab after start straight away, but keep my previous sessions tab as well in the browser.

    Hello,
    You can change your home page settings to open a blank tab:
    * Tools (or [[Image: New Fx Menu]]) > Options > General
    * Beside "Startup", change to "Show a blank tab"
    * See the article [[Startup, home page and download settings]] for more information
    To retrieve your previous browsing session, first make sure that you are not running in [[Private Browsing - Browse the web without saving information about the sites you visit|Private Browsing mode]]. When you start Firefox, to recover your previous session, you can go to:
    * History (or [[Image: New Fx Menu]] > History) > Restore Previous Session
    * Please see [[Restore previous session - Configure when Firefox shows your most recent tabs and windows]] for more information

  • How to process a batch input session directly from the program

    Hi,
    I have developed a program which will create a batch input session.
    When the program is executed, the session should get processed . ie. the user need not have to go to sm35 to process the session. I am facing some problem in this.
    I am using BDC_INSERT by passing the tcode . The session is getting processed, but when i go to sm35, i noticed that the session is still listed under the "New" tab instead of the "Processed" tab.
    Also I am not getting the final window with the buttons " Session overview" and "Exit Batch Input".
    Please help me out in this.

    Hi
    U have to submit the program RSBDCSUB:
    SUBMIT RSBDCSUB WITH MAPPE = <session>
                    WITH VON   = SY-DATUM
                    WITH BIS   = SY-DATUM
                    WITH FEHLER = ' '
                        EXPORTING LIST TO MEMORY
                                        AND RETURN.
    Max

  • Oracle db 11g r2 Configuration of processes and session

    I recently installed Oracle DB 11g R2 and 50,000 users connect to this database suggest me what would be basic configurations .
    Processes and sessions parameters for database are 5000 and 5505 but it is little lagging now so if its possible i want to make it maximum of processes and sessions or automatic .

    50,000 users getting connected concurrently? How many users/sessions remain active at any given point of time?
    For such high userbase/sessions better to go with share server configuration, since I cannot assume that even 10% of the users will be active at any given point of time so better to use shared servers and dispatchers.

  • Kill idle session automatically

    dear experts
    How to kill idle/inactive session automatically, based on its idle time?
    Which parameter should change?
    what is the relation between session, process ,thread.
    plz reply

    To kill idle session automatically, create a profile with idle_time parameter and assign it to the involved user accounts:
    http://www.psoug.org/reference/OLD/profiles.html?PHPSESSID=d47ba8ea1ed4aa759bea200eb397609c
    From Concepts Guide http://download.oracle.com/docs/cd/B19306_01/server.102/b14220/process.htm#sthref1475
    A session is a specific connection of a user to an Oracle instance through a user process
    Edited by: P. Forstmann on May 27, 2009 10:01 AM

  • Processing Static (via automatic row processing) & Dynmaic fields

    Hi,
    I have a page that has 2 sections. Section S is statically driven which I'd like to process via a Automatic Row Process DML. Section D is for dynamic fields which I process via a PL/SQL script.
    I need to process Section D (dynamic) first.
    Now they're 2 things that I'm noticing when I try this. Can someone please confirm.
    - After my process of Section D it seems to make a commit. I know this since I have a error in Section S, and the values from Section D are committed to the DB. I need to make sure a commit only occurs after all page processes have completed error free.
    - My Automatic Row Process DML for Section S doesn't seem to work at all. It can't seem to read the values at all. I know this since I have several columns which are "NOT NULL" and the appropriate error messages are being raised. The Automatic Row Fetch for Section S does work properly.
    For the time being the work around is writing a process for the entire page which includes both Section S and Section D. The thing is I thought that HTMLDB would be able to help me out a lot with Section S since it had static fields etc.

    Martin - I would try to debug these two processes separately. If the Auto DML process isn't firing, perhaps the button used to submit the page isn't setting the request to one of the standard values recognized by the Auto DML package ('INSERT','CREATE','CREATE_AGAIN','CREATEAGAIN' for inserts and 'SAVE','APPLY CHANGES','UPDATE','UPDATE ROW','CHANGE','APPLY' or like 'APPLY%CHANGES%' for update).
    A commit happens whenever session state is changed, so if your process saves an item value, that would do it. If you think that is not the cause of the commit, let me know the details of the process and I'll take a closer look. There is no way to prevent the commit when session state is updated.
    Scott

  • How to process Customer Open Items? If that Customer is also an Vendor.

    Hi All,
    I need some help for  the below configuations,
    1. How to process Customer Open Items? If that Customer is also an Vendor to the Company. ( How to adjust these open amounts)
    1. How to process Vendor Open Items? If that Vendor is also an Customer to the Company. ( How to adjust these open amounts)
    Thanks
    Chandra

    Hi Chandra,
    In addition to all the above, if the Customers and Vendors are in different company codes, then, you would have to also do the following configuration.
    Execute transaction code <b>OBYA</b>, when prompted, type in 1st coy code, say A and then 2nd coy code, say B. This would take you to the "<b>Maintain FI Configuration: Automatic Posting - Clearing Accounts</b>" screen.
    In the first frame, where you have
    Posted in : A
    Cleared Against : B
    Under Receivable
    Debit Posting Key : <b>01</b>
    Account Debit : Account Number (The account can be a G/L account, a customer account or a vendor account)
    Under Payable
    Credit Posting Key : <b>31</b>
    Account Credit : Account Number (The account can be a G/L account, a customer account or a vendor account).
    In the second Frame
    Posted in : B
    Cleared Against : A
    Under Receivable
    Debit Posting Key : <b>01</b>
    Account Debit : Account Number (The account can be a G/L account, a customer account or a vendor account)
    Under Payable
    Credit Posting Key : <b>31</b>
    Account Credit : Account Number (The account can be a G/L account, a customer account or a vendor account).
    So, if you are using the Customer/Vendor approach, company A must be set up as both a Customer(Use Txn Code <b>XD01</b>) and a Vendor(USe Txn Code <b>XK01</b>) in Company B and vice versa.
    Once you have completed this set-up, you can then use transaction <b>F.13</b> and/or <b>F13E</b> to carry out your automatic clearing.
    However, if you intend to use the G/L approach, then the account numbers would be Inter-coy G/L account for each coy code as defined in the chart of accounts.
    I hope the above helps.
    Do not forget to award the points please.
    Regards,
    Jacob

Maybe you are looking for