Session  problem in LSMW.

Hi,
        For uploading the FIXED ASSETS to system, i am using the Standard Batch input method with object 0160, method 0001 and program name RAALTD01.
     The problem is with the create batch input session step. This step is directly processing the data without allowing the session to be processed later.
   If the data is having error, it is creating session with those error records. But for the ones that are successfull we are not able to see the new no generated, which can cause problem in tracing the conversion process.
Any help on this will be greatly appreciated.
Thanks & Regards,
Sudheera K

Hi Naveen,
                     After double clicking on the create bach input session, i am getting a screen with title 'LEGACY DATA TRANSFER FI-AA'. And below it the selection screen is given for fields  1) input file name and 2) Error session name.
Below it 3 check boxes.
    1) Test run without DB update.
    2) Transaction run in foreground.
    3) Structure of transfer formats.
When i click execute by giving the converted file name and the error session name, I am getting a screen which shows the no of records read, no of updated and no of error. Below that it is showing the error, if any any error record exists and a statement that the error session is created.
And on the status message it is showing the last asset number generated. For example if 45, 46 and 47 are the assets generated now. It will show in the status message that 47 is created.
Regarding the debugging, i will do that and let you know if i had any success.
Thanks & Regards,
Sudheera K

Similar Messages

  • Java Session problem while sending mail(using javamail) using Pl/SQL

    Hello ...
    i am using Java stored procedure to send mail. but i'm getting java session problem. means only once i can execute that procedure
    pls any help.

    props.put("smtp.gmail.com",host);I doubt javamail recognizes the 'smtp.gmail.com' property. I think it expects 'mail.host'. Of course since it cannot find a specified howt it assumes by default localhost
    Please format your code when you post the next time, there is a nice 'code' button above the post area.
    Mike

  • Session problem in jsp application

    I face a session problem. I setting everything in a session and when pass back to a main page, the value is not display in the screen. But after refresh the value will display in the screen and this kind of problem only come out very few time and i dun knw how to solve this...
    Anyone here can give me some idea and suggestion or the way to solve this kind of problem!!!

    define "2 different clients"
    1) You have 2 different PCs and it's using the same session ID for both? I doubt this. I think the server is advanced enough not to use give a session ID that's already been created.
    2) You have 1 PC and are using IE or Netscape and using File > New Window to open a new window and connect again. This you can't fix without using only URL rewriting to manage session, because the different windows will share the same session cookies.

  • WHY WE GO FOR SESSION RATHER THAN LSMW ?

    WHY WE GO FOR SESSION RATHER THAN LSMW  , AND I WANT TO KNWO THE DIFFERANCES BETWEEN THEM AND IN WICH CONDITIONS  SESSION AND LSMW ARE  MOST SUTED? THANKING U

    hi,
    In BDC ,we can run session as per our need, you can run in foreground ,background or even you can run on periodic wise ,where as in LSMW
    you cant run as your wish .
    BDC (Batch Data Communication) is a technology used for data transfer. it is meant for transferring data thru SAP transactions itself. when u use BDC for data transfer, the sequence of steps is the same as when u use standard sap transaction screens for data upload. the only difference is that u can use different options for foreground/backgrou nd processing.
    LSMW on the other hand is a tool that helps migrate data from a legacy system (non-sap system ) to SAP system. it offers u various options to use either batch input, direct input, BAPIs or idocs. it involves a series of some 17-18 steps to migrate data.
    BDC:
    Batch Data Communication (BDC) is the process of transferring data from one SAP System to another SAP system or from a non-SAP system to SAP System.
    Features :
    BDC is an automatic procedure.
    This method is used to transfer large amount of data that is available in electronic medium.
    BDC can be used primarily when installing the SAP system and when transferring data from a legacy system (external system).
    BDC uses normal transaction codes to transfer data.
    Types of BDC :
    CLASSICAL BATCH INPUT (Session Method)
    CALL TRANSACTION
    BATCH INPUT METHOD:
    This method is also called as ‘CLASSICAL METHOD’.
    Features:
    Asynchronous processing.
    Synchronous Processing in database update.
    Transfer data for more than one transaction.
    Batch input processing log will be generated.
    During processing, no transaction is started until the previous transaction has been written to the database.
    CALL TRANSACTION METHOD :
    This is another method to transfer data from the legacy system.
    Features:
    Synchronous processing. The system performs a database commit immediately before and after the CALL TRANSACTION USING statement.
    Updating the database can be either synchronous or asynchronous. The program specifies the update type.
    Transfer data for a single transaction.
    Transfers data for a sequence of dialog screens.
    No batch input processing log is generated.
    LSMW:
    The LSM Workbench is an R/3-based tool that supports You when transferring data from non-SAP systems ("Legacy Systems") to R/3 once or periodically.
    The tool supports conversion of data of the legacy system in a convenient way. The data can then be imported into the R/3 system via batch input, direct input, BAPIs or IDocs.
    Furthermore, the LSM Workbench provides a recording function that allows to generate a "data migration object" in an entry or change transaction.
    The main advantages of the LSM Workbench:
    • Part of R/3 and thus independent of individual platforms
    • A variety of technical possibilities of data conversion:
    • Data consistency due to standard import techniques:
    Batch input
    Direct input
    BAPIs (Business Application Programming Interfaces)
    IDocs (Intermediate Documents)
    The import technique to be used in an individual case depends on the business object.
    • Generation of the conversion program on the basis of defined rules
    • Clear interactive process guide
    • Interface for data in spreadsheet format
    Reward points if this helps you.
    Siva

  • Problem with LSMW - RFBIBL00 "FI_INVOICES: No terminations have been found"

    Hi experts,
    Hope you can help me.
    I'm trying to load open invoices into SAP from a legacy system using LSMW. I defined all the structures and finished all the step but didn't load any data. I looked at the converted data and everything looks Ok.
    This is the log:
    FB018                    File P2P_GRANITE_VENDORS_FI_INVOICES.lsmw.conv is being checked
    FB012                    Session 1 : Special character for 'empty field' is /
    FB019                    Session 1 session name FI_INVOICES : No terminations have been found
    Following further information about the LSMW:
    Object: 0100
    Method: 0000
    Program: RFBIBL00
    Program Type: D
    Source structures (linked by CNT field)
    INV_HEAD:
    Company Code (BUKRS), Fiscal Year (GJAHR), Document Type (BLART), Posting Date (BUDAT), Document Date (BLDAT), Document Header Text (BKTXT), Reference Document Number (XBLNR), Currency Key (WAERS), Count (CNT)
    INV_ITEM
    Posting Key for the Next Line Item (NEWBS), Account or Matchcode for the Next Line Item (NEWKO), Amount in document currency (WRBTR) , Baseline Date (ZFBDT), Cash Discount Days 1 (ZBD1T), Item Text (SGTXT), Count (CNT)
    Document Type ZC or KR
    Posting Key 31 and 40
    Thanks in advance,
    Mairo.

    It looks everything fine for me.. what is ther exact error message are you getting..
    However also go through my book on LSMW, it may help you.
    http://www.4shared.com/document/wkl5vHpv/LSMW_SATISH.html
    Satish

  • Session problem in a new window created by window.open()

    hello,
    I have a drugsearch.jsp page, I sessioned an durgCollection object on this jsp page using session.setAttribute("drugCollection",drugCollection);
    there is a link on this jsp which will call a javascript to open a new window .
    here is the javascript to open another new window:
    function openReportWindow()
    window.open("/drug/Report.jsp","report", "toolbar,scrollbars,width=800,height=800,left=100,top=10");
    but in the Report.jsp, I won't be able to get the same session object as in the calling jsp ( drugsearch.jsp) by calling session.getAttribute("drugCollection").
    if I change the link on drugsearch.jsp to link to the Report.jsp directly instead of opening a new window, then I can get the same session object from the Report.jsp.
    what's the problem? can someone give me an advice?
    thanks

    A session is assosiated with one client(browser).
    when you open a new browser, a new session is created. In order to have common place for both the browsers, try storing the data in the 'Servlet Context'

  • Session problem in ADF BC

    We have an application developed in Jdev 10.1.3.4 (JSP, Struts, ADF BC) and running on OAS. Now we have a big problem with session, hope somebody can help with some ideas.
    We set session time to 45 min in the web.xml. The problem is that sometimes some user work on a page with form,for instance performing some edit activity. If he/she leave the page open inactive for more than 45 minutes and come back from lunch, press the ’save’ button, the application would then commit the change to the wrong row in database, most probably the top row in the View Object(VO) instance. This is because the application module actually does a rollback when session expires, it loses all user data.(e.g. row currency in VO instance).
    To avoid saving wrong data to the wrong place, we implemented a session Filter(see att. Below: ApplicationSessionExpiryFilter.java) to catch session time-out and forward request to an error page alerting user that their session has expired due to long time of inactivity. The Filter works as it should but it gives another problem. If user already has one of our application page open for very long time and open another page in a new browser (e.g. click a link from an email), he/she will get session-expire error immediately in the new browser. I guess it is because the session in the first browser already expires and the newly opened the browser shares the same session with the first one. That is how browsers works, we can do nothing about it.
    But our users are of course not very happy about getting the session errors in a newly opened browser. So we tried implementing a heartbeat funtion in AJAX(see att. Below: Heartheat.html and Template.jsp) to keep the session alive until the page is closed. Basically what we do is adding an invisible div tag in every jsp page and invoke AJAX funtion to periodically update the div tag with a small html page. In this way, a request is being sent to the server every 5 minutes thus the session should be kept alive until the page/browser is closed.
    It sounds to us like a very logical solution but it doesn’t work very properly. We sometimes still get the session error page immediately after opening a new page while we have another page open for long time.
    Could anyone please help to look at our Filter and heatbeat funtion? Is there anything wrong with our Filter or the heartbeat? Why does the session still expire before we close the page?
    All we do here is to try to avoid the initial probelm with saving data after session and the application module expires. If anyone has a better solution to this problem, we would very much like to try. Appreciate if anyone can share some ideas!
    Thanks in advance!
    *1. ApplicationSessionExpiryFilter.java*
    public class ApplicationSessionExpiryFilter implements Filter {
    private FilterConfig _filterConfig = null;
    public void init(FilterConfig filterConfig) throws ServletException {
    _filterConfig = filterConfig;
    public void destroy() {
    _filterConfig = null;
    public void doFilter(ServletRequest request, ServletResponse response,
    FilterChain chain) throws IOException, ServletException {
    HttpServletRequest httpRequest = (HttpServletRequest)request;
    boolean sessionInvalid = false;
    if(httpRequest.getRequestedSessionId() != null) {
    if(!httpRequest.isRequestedSessionIdValid()) {
    if (!httpRequest.getRequestURI().endsWith("sessionExpired.do")) {
    sessionInvalid = true;
    if (sessionInvalid) {
    ((HttpServletResponse) response).sendRedirect(_filterConfig.getInitParameter("SessionTimeoutRedirect"));
    else {
    chain.doFilter(request, response);
    *2. Heartheat.html* (A small html page to be invoked by template.jsp periodically)
    <html>
    <head>
    <META Http-Equiv="Cache-Control" Content="no-cache, must-revalidate">
    <META Http-Equiv="Pragma" Content="no-cache">
    <META Http-Equiv="Expires" Content="Expires: Mon, 26 Jul 1997 05:00:00 GMT">
    </head>
    <body>
    heartbeat to keep session alive!
    </body>
    </html>
    *3. Template.jsp* (Template page to be extended by all jsp pages, invoke heart.html every 5 min)
    <Html>
    <body>
    <div id="heartbeat" style="display:none">
    </div>
    <script type="text/javascript" language="javascript">
    new Ajax.PeriodicalUpdater('heartbeat','jsp/template/heartbeat.html',{ method: 'post', frequency: 300, decay: 1 }); // update heartbeat.html every 300 sec(5min)
    </script>
    </body></html>

    Hi Shay,
    Reviewing ADFContex methods it seems that this object shouldn't be accessible from BC. Example:
    public static ADFContext initADFContext(java.lang.Object context,
                                            java.lang.Object session,
                                            java.lang.Object request,
                                            java.lang.Object response)
        Initializes the ADFContext for the environment of the specified context.
        Parameters:
            context - the ServletContext or PortletContext of the current execution environment.
            session - the HttpSession or PortletSession of the current execution environment. OPTIONAL.
            request - the HttpServletRequest or PortletRequest of the current execution environment. OPTIONAL.
            response - the HttpServletResponse or PortletResponse of the current execution environment. OPTIONAL.
        Returns:
            the ADFContext that was current when init was invoked. Should be passed back to resetADFContext after the block requiring the ADFContext has completed.Kuba

  • Problem in LSMW - Vendor master upload

    Hello Experts,
    I am doing vendor upload using LSMW direct input (RFBIKR00) program. I am uploading files in LFA1, LFB1, LFBK, LFM1 and MAIN - total 5 files, MAIN file has all the key fields which is in(BLF00) structure. Other files has same table structure as its names are.
    Now When I run the batch input session. It works for the first vendor, but if there is record for the same vendor with other company code, then it gives error as no data available for screen 102.
    for eg. MAIN file has records as below
    KTOKK,EKORG,BUKRS,LIFNR,TCODE
    LIEF, 0990, US01, 0001234567, XK01
    LIEF, , CH01, 0001234567, XK01
    In above records, same vendor has 2 company codes, so for the 2nd record, I think Accounting Information screen should come directly, but when I saw session run in foreground, it takes all the fiels blank , and then gives error as no data available for the screen, and it does not create record for CH01.
    Please suggest If I have to do something else for it, or am I doing anything wrong!?!
    Regards,
    bh_hir

    HI,
    In step 12, I see both the records, but in the 2nd record - I also see LFA1 and LFM1 structure filled with LFB1.
    so I think for 2nd record It should just fill LFB1 and header(BLF00) right?
    But dont know how to achieve this...
    please suggest.
    Thanks,
    bh_hir

  • Problem with LSMW - G/L Account Centrally for 2 or more Company Codes.

    Hi,
    I have a problem with an LSMW  G/L Account Centrally Master Data.
    I used the Object: 0010   GL A/C Master Record, and the Method: 0001   Hier. structure.
    I can create massives Accounts but I can't create Same Accounts with differents Company Codes.
    Please, somebody can explain me, how create Same Accounts with differents Company Code in masive form with LSMW?
    Thanks and Regards!

    Try this report RFBISA10:  "Copy General Ledger Account Master Data: Send"
    or RFBISA20: "Copy G/L Account Master Data in Target Company Code: Receive"
    Bye.

  • Urgent: Sessions problem pls help me

    Hi all,
    Its already late to post this problem.pls help me urgently.
    I have a servlet & two jsp's. first i request servlet, it processes something and forwards request to my first jsp. In that jsp on a button click, i'm displaying a new popup by calling showModalDialog. this dialog gets data from the same servlet but it forwards to my second jsp.(second jsp can be seen in dialog)
    Now if i submit form from my second(dialog) jsp, the servlet reports that session has expired. I tried a lot but invain. any one who helps me is appreciated well by all of our forum.
    waiting 4 u r reply,

    It could be that you have cookies turned off and you're not using URL Rewriting.
    In J2EE, the first time your browser makes a request to the server, the server responds and appends a SESSION_ID parameter to the request as well as storing a cookie with the SESSION_ID.
    The second time your browser makes a request, the server checks for the cookie. If it doesn't exist it checks for the parameter. If neither exist the server assumes its the first time your browser has made a request and behaves as describe in the previous paragraph.
    In your case when you submit the form if you have disabled cookies and the action attribute doesn't have the SESSION_ID paramter appended to the url, the browser will assume it's a first request. The user will not be logged in, hence your session has expired error.
    To fix this you need to encode the URL in your JSP. You can use the struts html:rewrite tag or the HttpServletReponse.encodeURL method, or if you're using JSP 2.0 the JSTL c:url tag.

  • Problem in LSMW ---mapping

    Dear Freinds,
                     I have uploaded infotyep 0002 using LSMW wiath a project id  , now i have to upload another
    infotype 0006 ,as per the documentation i have found that i can use only one project for all my infotypes.
    so i created one project  zproject , zsubproject,zobject.
    in the step 1) Maintain object Attributes>Bath input Recording> Recording Name It0002>Recording IT0002
              setpe 2) MaintainSourceStructures >Source Structure >z0002
              step3) Maintain source feilds > i have given structre exactly what is there in my flat file
    PERSNO                         N(008)    Personnel number
    BEGDA                          C(010)    From Date
    ENDDA                          C(010)    To Date
    NACHN                          c(40)       LastName
    VORNA                          c(40)      First Name
    GBDAT                           c(10)      Date of birth
    Step 4)Maintain Structure Relations
    Structure Relations
            IT0002 Date upload for infotype 0002                                <<<< ZP0002 Data upload for 0002
                   Select Target Structure IT0002 .
    and i able to use all the steps and successfully iam able to upload the data which is given in my flat file.
    now i am getting problem while iam doing uploading for infotype 0006 , plese correct me where i went wrong
    Step 1)  Maintain object Attributes>Bath input Recording> Recording Name It0006>Recording IT0006
              setpe 2) MaintainSourceStructures >Source Structure >
    here only doubt it asked me do you wan to create same level or under ... i have opted for same level
    and created strucuture z0006
              step3) Maintain source feilds > i have given structre exactly what is there in my flat file
    PERSNO                         N(008)    Personnel number
    BEGDA                          C(010)    From Date
    ENDDA                          C(010)    To Date
    ANSSA                          c(20)       Address type
    STRAS                         c(40)       Street
    ORT02                           c(10)     District
    Step 4)Maintain Structure Relations
    This the place where iam getting actual problem  i found the relatiion as below
    Structure Relations
            IT0006 Date upload for infotype 0006                                <<<< ZP0002 Data upload for 0002
                   Select Target Structure IT0006 .
    iam not able understand why iam not  getting as below
            IT0006 Date upload for infotype 0006                                <<<< ZP0006 Data upload for 0006
                   Select Target Structure IT0006 .
    but when i did for infotype i got what exactly should be mapping
            IT0002 Date upload for infotype 0002                                <<<< ZP0002 Data upload for 0002
                   Select Target Structure IT0002 .
    Please correct me where i went exactly .
    regards
    srinivas.

    Hi,
    As you specified in in your details you need only on Project that means we can create multiple Sunprojects and Objects under same Project.
    If you want only one Project, Subproject, Object for Infotypes 0002, 0006 then you need to do
    1. Create Separe two recording for Infotypes ZHR_0002, ZHR_0006 and specify both in first step (Maintainn objrct attribute), here we can assign multiple recording.
    2. Create one souce structure for all required fields of 0002, 0006
    3. Assign Source structure to different target structure
    4. In Maintain field mapping and conversion rules do mapping for all fields
    But here you need to implement some login
    In Source structure create one more field to store Infotype number.
    then when mapped for PERNR,
    if zsource-infty = '0002'.
      ztarget-pernr = zsource-pernr.
    else.  "If fails means it will skip whole record and goes to second recordin
      skip_record.
    endif.
    In second recording you need to check
    if zsource-infty = '0006'.
    ztarget-pernr = zsource-pernr.
    else.
    skip_record.
    endif.
    But you must specify in flat file the Infotype number 0002 02 0006, based on this number mapping will refer to corresponding recording.
    Instead of this Create one Project, Subproject and Multiple Objects for different Infotypes. This is good to avoid complexity.
    Regards,
    Sunil

  • Problem in lsmw. step: display field mapping and conversion rule

    hi,
    The IDOC structure to be mapped is missing in step 5[lsmw using IDOC]. Hence target structures are missing in auto gnerated conversion program.
    As a result the the step Convert Data step is failing.[Converted data cant be generated]
    I am using standard BAPI charcteristics as my Basic Type.
    Anyone having idea why the target structure is missing??..

    The problem is solved....The field mapping was missing coz i didnt assign the target structure properly....

  • Session problems in tomcat 5.0.28

    Even I shutdown the tomcat 5.0.28 server the session variable is still existing and it is showing the old values. What I have to do to disable the old values? Is it the problem with tomcat 5.0.28 or with JSP coding!

    Tomcat serializes sessions to the hard drive when it shutsdown. If you don't want this you have three choices:
    1: you can disable this functionality in the server.xml. Check the documentation.
    2: you could just delete the session.ser file when you shut down tomcat. This file is under work/standalone/{webapp name}
    3: you could close and re-open the browser so that the old jsessionid will not be sent and a new session will be created. The old session will eventually time out.
    The third option is probably the easiest.

  • JSP Session Problems

    Hi, i am facing a problem of the Object set into a session not being visible to the others pages. what did i done wrongly?
    here is the code:
    in login.jsp (currently hardcode cos i haven recieve that part):
    <%@page import="fantasy.team.*,java.util.Vector" session="true"%>
    <%
    Team t = new Team("Kacheek FC");
    session.setAttribute("team",t);
    if( session.getAttribute("team") ==null){
         out.write("how come null");
    }else{
         out.write("not null");
    %>
    Select
    //End of coding
    not null will be printed
    Following code belong to selectPlayer.jsp:
    if( session.getAttribute("team") == null){          
              out.write("i am null");               }else{
              out.write("i am not null");
    i am null is printed
    what is wrong with my coding?
    thanks.

    i do a
    if(session.isNew())
    out.write("New");
    and the result is new.
    meaning that my session is invalidate.
    that explain my value from "gone" rite?
    how to solve this?
    thanks.

  • Session Problems(ConcurrentModificationException)

    Hi,
    I am facing some problems with session here.
    I get a java.util.ConcurrentModificationException whenever i try to empty the shopping cart.
    Could somebody pls kindly advise?
    Thanks in advance
    below is the code:
    <% String item = request.getParameter("itemName");
    if(item != null && item.equals("emptyCart")) {
    java.util.Enumeration attributeNames = session.getAttributeNames();
    while(attributeNames.hasMoreElements()) {
    String attributeName = (String)attributeNames.nextElement();
    session.removeAttribute(attributeName);
    } else if(item != null) {
    String attributeName = item + "CD";
    session.setAttribute(attributeName, item);
    %>

    Similar qus answered int his forum ..
    refer
    http://forum.java.sun.com/thread.jsp?thread=244532&forum=45&message=897268

Maybe you are looking for