PROBLEM IN CREATING BOM ITEM TEXT FROM TEXT FILE

Hi All,
I am developing interface program for creating BOM based on data it text file. in my text file contain three column(material, qty and longtext). These text i need to upload to BOM TCODE CS01). Using SAVE_TEXT I have generated text object. it don't says any error. But while viewing text in CS03, text is not visible. Give me suggestion or give me any other method for updating item text from textfile.
Thanks in advance.
Regards.
Peranandam.

Hi Carl,
Actually problem is SAVE_TEXT updates text but I cant able to view in CSO3 transaction. because while creating BOM I forget for updating language key for long text. After updating language key I can able to view text in CS03.
Now I am facing another problem. If I am executing program directly without going to debug mode, It is not updates text. Logic everything is correct. Give me some suggestions for solving this issue. I am also tried with commit work, Commit_text and wait up n seconds statement.
Regards,
Peranandam

Similar Messages

  • What is the difference between Create shapes or masks from text characters?

    What is the main difference between Create shapes or masks from text characters and why use one over the other, or when is one preferred over the other?
    I am still fairly new to AE and am trying to better understand this, or can you point me to where i might look for the answer?
    CS5 if that make a difference.

    One creates masks, the other creates shape layers. There are properties that you can animate with shape layers that are not available to masks. There are also a few things you can do with masks that you can't with shape layers.
    I'd suggest you take a look at the help files or do a Google Search on After Effects Shape Tutorials.

  • Problem in reading the modified text from text editor

    Hi all,
    Im using text editor for saving the long text entered in the text editor as standard text in So10 tcode.
    Here im facing an issue in reading the text from text editor. That is, when the text is entered by the user for first time, then the below method reads the text successfully.   But when i do some changes in the existing text present in the text editor and try to read, then the modified text is not returned by the below method.
    I use the "CALL METHOD g_editor_ftext1->get_text_as_stream" to read the text. Given below is my code.
    CALL METHOD g_editor_ftext1->get_text_as_stream  
       IMPORTING
          text                   = ig_text_table
          is_modified            = g_xthead_updkz
        EXCEPTIONS
          error_dp               = 1
          error_cntl_call_method = 2
          OTHERS                 = 3.
    The return value of "is_modified" is always returned as 0.
    Could anyone pls help how to read the modified text using the above method?

    Check if this works and if it works then there should be some mistake in your coding
    REPORT abc.
    PARAMETERS:pa1 TYPE bwart.
    DATA: container TYPE REF TO cl_gui_docking_container,
          editor    TYPE REF TO cl_gui_textedit,
          report    TYPE syrepid,
          mod TYPE i,
          modon TYPE i.
    DATA:tlines    TYPE TABLE OF tdline,
         wa_tlines TYPE tdline.
    AT SELECTION-SCREEN OUTPUT.
      report = sy-repid.
      IF container IS INITIAL.
        CREATE OBJECT container
                     EXPORTING repid     = report
                               dynnr     = sy-dynnr
                               side      = container->dock_at_left
                               extension = 1070.
        CREATE OBJECT editor
                    EXPORTING
                         parent     = container.
      ENDIF.
      wa_tlines = 'This is test before a change'.
      APPEND wa_tlines TO tlines.
      CALL METHOD editor->set_text_as_r3table
         EXPORTING
               table              =  tlines
         EXCEPTIONS
               OTHERS             = 1.
      CALL METHOD editor->go_to_line( 1 ).
    START-OF-SELECTION.
      CLEAR tlines[].
      CALL METHOD editor->get_text_as_stream
                EXPORTING
                only_when_modified = '1'
                IMPORTING
                text = tlines
                is_modified = modon
                EXCEPTIONS
                error_dp = 1
                  error_cntl_call_method = 2
                  OTHERS = 3.
      IF modon = 1.
        WRITE 'Changed'.
      ELSE.
        WRITE 'Not changed'.
      ENDIF.
      WRITE modon.

  • I cant use the highlight, underline, or strikethrough function in a specific pdf file. The file isnt locked. I used to highlight texts from that file before the latest update. The problem occurs only with that file. Urgent need. Please help. Thanks!

    i cant use the highlight, underline, or strikethrough function in a specific pdf file. The file isnt locked. I used to highlight texts from that file before the latest update. The problem occurs only with that file. Urgent need. Please help. Thanks!

    Chester31,
    Thank you very much for sharing your file with us!  Now that we are able to reproduce the problem at our end, you may stop sharing the file on Acrobat.com.
    Do you know when this problem (for not being able to add new highlight/strikeout/underline) has started?  Did you update your iOS from 7.x to 8.0 recently?
    We will continue investigating the problem and let you know what we find.
    Thank you again for your help.

  • How to create BOM(Bill Of Material) item data from flat file?

    I have two flat files one is BOM(Bill Of Material) header data and BOM item data. BOM header is already created, now I want to create BOM item data with reference to the header data. Is there any standard direct batch input method in LSMW or Is there any standard BAPI or Is there any standard BDC report program to do the task? CS01 is the TCode to create BOM.

    Hi,
    The DI program works for create step CS01 and not for CS02.
    Perhaps this ( adding items in header by Tx: CS02 ) could be achieved by a Recording step in LSMW.
    Best Regards, Murugesh

  • Reading long text from excel file to an internal table

    Hi
    Can any body tell me how to read long text from excel file to an internal table.
    When i am using this FM KCD_EXCEL_OLE_TO_INT_CONVERT then it is reading only 32 characters from each cell.
    But in my excel sheet in one of the cell has very long text which i need to upload into a internal table.
    may i know which FM or what logic i need to use for this problem.
    Regards

    Hi,
    Here is an example program.  It will upload an Excel file with two columns.  You could also assign the Excel structure dynamically, but I wanted to keep the example simple.  The main point is that the internal table (it_excel in this example) must match the Excel structure that you want to convert.
    Remember, this is just an example to help you figure out how to properly use the technique.  It will certainly need to be modified to fit your requirements, and as always there may be a better way to get the Excel converted... this is just one possibility that has worked for me in the past.
    *& Report  zexcel_upload_test                            *
    REPORT  zexcel_upload_test.
    TYPE-POOLS: truxs.
    TYPES: BEGIN OF ty_excel,
             col_a(10) TYPE n,
             col_b(35) TYPE c,
           END OF ty_excel.
    DATA: l_data_tab         TYPE TABLE OF string,
          l_text_data        TYPE truxs_t_text_data,
          l_gui_filename     TYPE string,
          it_excel           TYPE TABLE OF ty_excel.
    FIELD-SYMBOLS: <wa_excel>  TYPE ty_excel.
    PARAMETERS: p_file TYPE rlgrap-filename.
    * Pass the file name in the correct format
    l_gui_filename = p_file.
    * Upload data from PC
    CALL METHOD cl_gui_frontend_services=>gui_upload
      EXPORTING
        filename                = l_gui_filename
        filetype                = 'ASC'
        has_field_separator     = 'X'
      CHANGING
        data_tab                = l_data_tab
      EXCEPTIONS
        file_open_error         = 1
        file_read_error         = 2
        no_batch                = 3
        gui_refuse_filetransfer = 4
        invalid_type            = 5
        no_authority            = 6
        unknown_error           = 7
        bad_data_format         = 8
        header_not_allowed      = 9
        separator_not_allowed   = 10
        header_too_long         = 11
        unknown_dp_error        = 12
        access_denied           = 13
        dp_out_of_memory        = 14
        disk_full               = 15
        dp_timeout              = 16
        OTHERS                  = 17.
    IF sy-subrc <> 0.
    *   MESSAGE ...
      EXIT.
    ENDIF.
    * Convert from Excel into the appropriate itab
    l_text_data[] = l_data_tab[].
    CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
      EXPORTING
        i_field_seperator    = 'X'
        i_tab_raw_data       = l_text_data
        i_filename           = p_file
      TABLES
        i_tab_converted_data = it_excel
      EXCEPTIONS
        conversion_failed    = 1
        OTHERS               = 2.
    IF sy-subrc <> 0.
    *   MESSAGE ...
      EXIT.
    ENDIF.
    LOOP AT it_excel ASSIGNING <wa_excel>.
    *  Do something here...
    ENDLOOP.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
      PERFORM filename_get CHANGING p_file.
    *       FORM filename_get                                             *
    FORM filename_get CHANGING p_in_file TYPE rlgrap-filename.
      DATA: l_in_file  TYPE string,
            l_filetab  TYPE filetable,
            wa_filetab TYPE LINE OF filetable,
            l_rc       TYPE i,
            l_action   TYPE i,
            l_init_dir TYPE string.
    * Set the initial directory to whatever you want it to be
      l_init_dir = 'C:\'.
    * Call the file open dialog without multiselect
      CALL METHOD cl_gui_frontend_services=>file_open_dialog
        EXPORTING
          window_title            = 'Load file'
          default_extension       = '.XLS'
          default_filename        = l_in_file
          initial_directory       = l_init_dir
          multiselection          = 'X'
        CHANGING
          file_table              = l_filetab
          rc                      = l_rc
          user_action             = l_action
        EXCEPTIONS
          file_open_dialog_failed = 1
          cntl_error              = 2
          error_no_gui            = 3
          OTHERS                  = 4.
      IF sy-subrc <> 0.
        REFRESH l_filetab.
      ENDIF.
    * Read the selected filename
      READ TABLE l_filetab INTO wa_filetab INDEX 1.
      IF sy-subrc = 0.
        p_in_file = wa_filetab-filename.
      ENDIF.
    ENDFORM.                    " filename_get
    Regards,
    Jamie

  • How to load some text from properties file ?

    Hi again,
    problem is i dont know how can i load a text from properties file like #{xxx['key']} in managed bean, i tried to find some solution but havent seen this kind of use this file in java code. Is it supposed to work only for labels in jspx pages ?
    thanks for help ...

    Hi,
    a managed bean is nothing special from any other Java file. However, if you look at SRDemo, you find a nice way of using the same message bundle that you use on the page
    See the messageFromBundle() method in the JSFUtils class of the UserInterface project
    Frank
    P.s. You can download and setup SRDemo from JDeveloper help--> check for updates

  • How to get the latest and valid BOM item entry from STPO

    hi,
    may i know with what condition we can get the latest and valid BOM item entry from STPO table?
    i have STLNR and IDNRK as a input. But i realized that it would return multiple entry due to the combination of  valid-from and valid till date.
    can i use stlnr,idnrk and stpoz (with the latet counter) to get the latest and valid BOM entry?
    thank you.

    Hi
    You can get the latest BOM either by using the latest valid from date DATUV or latest internal counter STPOZ
    Regards
    Shiva

  • Editing text from pdf file

    how to edit text from pdf file?

    Adobe Reader does not allow editing the text of a PDF document. You will need to get Acrobat on your Windows or Mac to do that.

  • Does IBR support to extract text from office files

    hi Experts,
    Can we use IBR to extract word/excel/ppt content to a text file? where is doc for this function?
    Best regards

    Hi ,
    Extraction of text based on some rules ?Is that what you are looking for ? Is it for searching on those specific set of texts from the file ? If yes , then you have Oracle Text search feature which would do that .
    If it is to populate some metadata with those extracted texts , then it would be Content Categorizer component . For details on this component and it's functionality please go through the following documentation : http://docs.oracle.com/cd/E14571_01/doc.1111/e10978/c11_content_categorizer.htm#sthref1210
    In either cases , IBR is not the actual engine which would do this . It is solely used for document conversion . \
    Hope this helps .
    Thanks,
    Srinath

  • How to get Text from (.txt) file to display in the JTextArea ?

    How to get Text from (.txt) file to display in the JTextArea ?
    is there any code please tell me i am begginer and trying to get data from a text file to display in the JTextArea /... please help...

    public static void readText() {
      try {
        File testFile = new File(WorkingDirectory + "ctrlFile.txt");
        if (testFile.exists()){
          BufferedReader br = new BufferedReader(new FileReader("ctrlFile.txt"));
          String s = br.readLine();
          while (s != null)  {
            System.out.println(s);
            s = br.readLine();
          br.close();
      catch (IOException ex){ex.printStackTrace();}
    }rykk

  • Load the text from a file to JTextField, I need help badly

    Can anybody help me, I try to load the text from a file to JTextField,
    it compiled but it does not run
    here the message i get:
    ----jGRASP exec: java buttonAction
    ----at: Sep 11, 2007 6:27:09 PM
    ----jGRASP wedge: pid for wedge is 3104.
    ----JGRASP wedge2: pid for wedge2 is 216.
    ----JGRASP wedge2: CLASSPATH is ".;;.;D:\Program Files\QuickTime\QTSystem\QTJava.zip;D:\Program Files\jGRASP\extensions\classes".
    ----jGRASP wedge2: working directory is [L:\Documents\GUI Pro] platform id is 2.
    ----jGRASP wedge2: actual command sent ["D:\Program Files\Java\jdk1.5.0_01\bin\java.exe" buttonAction].
    ----JGRASP wedge2: pid for process is 1440.
    Exception in thread "main" java.lang.NullPointerException
         at buttonAction.loadData(buttonAction.java:122)
         at buttonAction.<init>(buttonAction.java:31)
         at buttonAction.main(buttonAction.java:163)
    ----jGRASP wedge2: exit code for process is 1.
    ----jGRASP: operation complete.
    private void loadData()
             try
                FileReader fr = new FileReader("myData.txt");
                BufferedReader br = new BufferedReader(fr);
                br.readLine();
                while(br != null)
                   name.setText(br.toString());
                 catch (IOException e){}
          }

    See this demo:
    import java.io.*;
    import javax.swing.*;
    import java.awt.event.ActionListener;
    import java.awt.event.ActionEvent;
    import java.awt.FlowLayout;
    public class TextFieldTest extends JFrame {
         private JLabel fieldLabel;
         private JTextField field;
         private JButton loadTextBtn;
         public TextFieldTest() {
              initComponents();
         private void initComponents() {
              fieldLabel = new JLabel();
              field = new JTextField(30);
              loadTextBtn = new JButton("Load Text");
              this.getContentPane().setLayout(new FlowLayout());
              this.getContentPane().add(fieldLabel);
              this.getContentPane().add(field);
              this.getContentPane().add(loadTextBtn);
              this.pack();
              this.setLocationRelativeTo(null);
              this.setTitle("TextFieldDemo");
              this.setDefaultCloseOperation(EXIT_ON_CLOSE);
              loadTextBtn.addActionListener(new ActionListener() {
                   public void actionPerformed(ActionEvent evt) {
                        loadText();
         private void loadText() {
              try {
                   BufferedReader br = new BufferedReader(new InputStreamReader(new FileInputStream("test.txt")));
                   String label = br.readLine();
                   String data = br.readLine();
                   br.close();
                   fieldLabel.setText(label);
                   field.setText(data);
              } catch (Throwable t) { t.printStackTrace(); }
         public static void main(String[] argv) {
              SwingUtilities.invokeLater(new Runnable() {
                   public void run() {
                        new TextFieldTest().setVisible(true);
    }The contents of test.txt are as follows:
    this is the label
    the data for the field goes here

  • How to transfer texts from text control to table and vice versa

    Hi
    if anybody can give me link or any code giving how to transfer text from text control to table and vice versa, that will be of great help to me
    THanks in advance

    Rashmi,
    Use the methods GET_TEXT_AS_R3TABLE / SET_TEXT_AS_R3TABLE and then you will have to use the SAVE_TEXT to store in the database.
    The GET_TEXT_AS_R3TABLE method will give you back a internal in which text, in which text on the screen is existing. Similarly once you fetch the data from database using READ_TEXT, use the method SET_TEXT_AS_R3TABLE to put the text on the screen.
    These methods belong to class CL_GUI_TEXTEDIT class.
    Regards,
    Ravi
    note : Please mark all the helpful answers

  • FM FOR CREATING NEW CONDITION RECORDS FROM INPUT FILE

    Hello vikas,
    I need to develop a interface program FOR CREATING NEW CONDITION RECORDS FROM INPUT FILE.
    Is there ay function module to update or create the condtion records,
    if u have any example interface program to update conditions records please send me.
    regards
    ram.

    This must be your compiler output.
    Basically, it is telling you two things that are wrong - in syntax.
    1. On line number 11 of the file RationalCollection1.java, the compiler expects a type identifier - that would be the object or return type such as int, String, boolean, etc.
    The reason it is doing this is probably due to your not ending a previous statement - like the "expected ';'" error statement. Check your code, make sure that methods (brackets) are closed correctly and there are no open statements (i.e. missing the semi-colen at the end).
    2. On line number 33 of the file RationalCollection1.java, the compiler expected the closing bracket. Thus, you didn't put the bracket where the compiler wants it.
    It appears that you have skipped some lines of code. Those lines are the problem, post them - post lines 30-36 and 9-15 so we can see what is happening around those error lines.

  • Problem with reading text from .DOC files through java and POI

    I have used a jar file "poi-scratchpad-3.2-FINAL-20081019.jar" and "poi-3.2-FINAL.jar" to read text from a .DOC file. I used the "getParagraphText()" function of the class "org.apache.poi.hwpf.extractor.WordExtractor" to get the text.
    I am able to get the text in the .DOC file but along with that i am getting the following messages/warnings
    Current policy properties
    *     thread.thread_num_limited: true*
    *     file.write.state: disabled*
    *     net.connect_ex_dom_list:*
    *     mmc.sess_cab_act.block_unsigned: false*
    *     mmc.sess_cab_act.action: validate*
    *     mmc.sess_pe_act.block_blacklisted: false*
    *     mmc.sess_pe_act.block_invalid: true*
    *     jscan.sess_applet_act.stub_out_blocked_applet: true*
    *     file.destructive.in_list:*
    *     jscan.sess_applet_act.block_all: false*
    *     file.write.in_list:*
    *     file.nondestructive.in_list:*
    *     window.num_limited: true*
    *     file.read.state: disabled*
    *     jscan.session.origin_uri: http://mirrors.ibiblio.org/pub/mirrors/maven2/org/apache/poi/poi/3.2-FINAL/poi-3.2-FINAL.jar*
    *     file.nondestructive.state: disabled*
    *     jscan.session.user_ipaddr: 10.136.64.153*
    *     net.connect_other: false*
    *     thread.thread_num_max: 8*
    *     file.destructive.ex_list:*
    *     file.nondestructive.ex_list:*
    *     file.write.ex_list:*
    *     jscan.sess_applet_act.sig_invalid: block*
    *     file.read.in_list:*
    *     mmc.sess_cab_act.block_invalid: true*
    *     jscan.session.policyname: TU1DIERlZmF1bHQgUG9saWN5*
    *     mmc.sess_pe_act.action: validate*
    *     thread.threadgroup_create: false*
    *     net.connect_in_dom_list:*
    *     net.bind_enable: false*
    *     jscan.sess_applet_act.sig_trusted: pass*
    *     jscan.session.user_name: 10.166.64.201*
    *     jscan.session.user_hostname:*
    *     file.read.ex_list:*
    *     jscan.sess_applet_act.sig_blacklisted: block*
    *     jscan.session.daemon_protocol: http*
    *     net.connect_src: true*
    *     jscan.sess_applet_act.unsigned: instrument*
    *     mmc.sess_pe_act.block_unsigned: false*
    *     file.destructive.state: disabled*
    *     mmc.sess_cab_act.block_blacklisted: true*
    *     window.num_max: 5*
    Below the above messages/warnings the data is getting printed. Only the text part of the data is retrieved not the fonts, styles and bullets etc.
    Can anyone explain me why I am getting above warnings and how can I remove them. Is it possible to fetch the text depending on delimiters.
    Thanks in advance,
    Tiijnar
    Edited by: tiijnar on May 21, 2009 2:45 AM

    The jar files which were used are downloaded from http://jarfinder.com. Those jars created the problem of displaying those messages on console. I downloaded APIs from apache.org and used them in my application. Now my application is running good.
    Tiijnar

Maybe you are looking for

  • Multiple iPods on single PC not working on v7.0.2.16

    At some later version of iTunes 6.x I bought my partner a Nano. Everthing worked fine, so my daughter got a Mini and I got a Video 30GB. Each user is in a separate Windows user account and has their own iTunes library. Then v7 struck and loads of pro

  • Please help... External Hard Drive not mounting

    Hello, Please help me if you can: I have all of my data backed up onto a Seagate External Hard Drive, purchased just a few months ago. I just got a new laptop (MacBook Air) and need to get my data off of my hard drive, but it isn't showing up on my D

  • Changing the account holder on my phone account

    we returned from overseas 3 years ago and on our return we had our phone line connected. The problem began when my wifes card would not work when we paid over the phone to BT so my boss kindly used her card to open the account. Ever since that time t

  • Intermittent No Wake From Sleep

    When waking up the machine, the audible "click!" occurs and things finish spinning up as they always do. However nothing appears on screen and the machine just sits there. About 10-15 seconds later, the fans spin up to a roar and that's it - have to

  • Problems installing a second XP.

    Just bought a new T61p. It has a preinstalled XP Pro. I'd like to have a second XP Pro on another partition. I've resized the first one (with Ubuntu's partition tool), created a second Primary with NTFS and am trying to launch the XP installer (I've