Hi plz see

hi ,
Iam handling CRM appln. I have a combo box which contain religion option. hidu-1,muslim-2, christian--3 ,....
iam getting value in preview page but when i press submit button the value which i had selected is not REFLECTING IN DATABASE. PLz help
code:
religion option -
is not entering in db. and u can assume html format .
if we select hindu option in religion combo, specify other is disabled  if we select other in religion option ,specify other is enabled.
eventhandler--- oninitliazation
SELECT domname ddtext domvalue_l
  FROM dd07v
  INTO CORRESPONDING FIELDS OF TABLE it_dd07v
  WHERE ddlanguage = 'E'
    AND domname IN ('ZRELIGION ').
LOOP AT it_dd07v INTO wa_dd07v.
    IF wa_dd07v-domname EQ 'ZRELIGION'.
      APPEND wa_dd07v TO it_religion.
    ENDIF.
ENDLOOP.
Page attr
it_dd07v type table of dd07v
wa_dd07v type table of dd07v
Plz see its urgent.
Regards
Durgaprasad.
Edited by: Durga Prasad on Apr 16, 2008 12:24 PM
Edited by: Durga Prasad on Apr 16, 2008 12:27 PM

Hi,
use Modify or Update instead of Append.
Try this link..
http://help.sap.com/saphelp_nw70/helpdata/en/9f/dba4b235c111d1829f0000e829fbfe/content.htm
Reward if its useful

Similar Messages

  • How we can replace the column in Core Table plz see this msg

    Hi,
    How we can replace the column in Core Table plz see this msg
    Req:
    when i push the Insert button the data inserted into the Table
    like
    Cols Values
    FOCD      CUFZ14
    PRDCD FU6
    Month 082008
    AgencyCD AG02
    PLAN 123
    This is FO_Plan Table....
    Requirement:
    i need at table show to replace the Prd_CD to Prd_Desc while inserting the above Row....
    There is no Prd_Desc in FO Plan Table....
    Prd_desc comes from Product Table.
    did u get my point...
    how to solve.
    Thanks
    Ram
    Edited by: Ram Vungarala on Sep 24, 2008 9:09 AM
    Edited by: Ram Vungarala on Sep 24, 2008 9:15 AM

    Hi,
    I'm not sure if I understood what are you trying to do. But you can modify your table in a backing bean code. JSF page code for a table:
    <af:table id="product_search_results_tbl" binding="#{backingBean.boundTable}" ... />
    And a backing bean code:
    import oracle.adf.view.faces.component.core.data.CoreTable;
    public class YourBackingBean {
        private CoreTable boundTable;
        public void setBoundTable(CoreTable boundTable) {
            this.boundTable = boundTable;
        public CoreTable getBoundTable() {
            return boundTable;
       public String insertButtonAction() {
          // Bind your button action to this method and modify here your bound table
         return null;
    {code}
    Look for column modification methods in a CoreTable class documentation.
    Marius                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • My vector drawings in illustrator cs3 look pixelated plz see screenshot

    **** Notice the side of the girls hair its very serrated and somewhat blurry as well look down at her arm at the very bottom
    I am using a mac os x version 10.5.8 and have been using Illustrator cs3 that I purchased for about 2 years and its never had this problem till now. I've just recently noticed a few days back that my vector drawings created in illustrator are looking serrated on the edges of my drawing, and this jagged serrated line goes all along the sides of the vector image and doesn't seem to go away when I zoom in or out......
    And from what I know vector drawings created in illustrator can be resized and never pixelate but i don't know why its doing this.
    I've searched online for all the possible remedies but nothing seems to get rid of that serrated line which makes my images look fuzzy on the sides.
    I've made sure that I'm in preview and not pixel preview but that didn't work.
    I went to my illustrator preferences to make sure that anti-aliasing is checked but that didn't seem to fix it either.
    I went under the effects menu and clicked on Document Raster Effect Settings and changed that to 300ppi but that didn't do it either.
    And also when I take my vector drawing from illustrator into photoshop, the serrated lines become more evident. I don't know what to do. The strange thing is that when i print the images out from my printer, the serrated edges don't show up.
    But here's the thing: when I open up my past work that I created in illustrator when I wasn't having this problem, for some reason they are also now showing up with that serrated line on the edges, its really weird!!!!!
    I've tried everything except for reinstalling the software, but just wanted to know if someone could help me before I tried this step or knew of something that might have gone wrong.
    I also downloaded illustrator trial version cs5 today, and its doing the same thing as my illustrator cs3!!!!
    Plz help!!!

    I was experiencing the exact same thing in Illustrator CS5. There was a pixelated edge on a vector drawing that was showing up. At first I assumed it was an anti aliasing setting or pixel preview or document raster settings as you did. Then because all else failed I was about to assume it was a screen artifact or bug of some kind.
    However, the upon further analysis I found the solution-and it was right under my nose. I had applied an effect to the vector object (an outer glow) and–because I was going to scale it down drastically from the size I had originally drawn it at –I had gone to the object menu and expanded the appearance of the object which caused my outer glow effect to become a rasterized shape underneath my original object.
    To remedy this: I simply zoomed in on the pixlelated object, selected it, ungrouped it, selected the top vector object path, nudged it to the right–REVEALING THE RASTERIZED SHAPE BENEATH!
    So I would reccomend you try two things:
    First select the view menu and choose "Outline" (command or control Y), then look to see if you have any solid "blocks" -this could indicate a rasterizing of some sort has taken place underneath your vector objects. To get back to regular display just choose "overprint from the view menu.
    Secondly, you could select the vector object that appears pixelated and then check in the "Appearance Panel" to see if an effect (such as a drop shadow or outer glow) has been applied ,possibly inadvertently. Because just the applying of an effect will cause a "pixelated, jaggy edge" when viewed at high zoom percentages, or indeed any resolution for that matter.
    Hope this helps-

  • Help can't add new jar files into BDK beanbox(plz see details)

    I am unable to load new jar files into bdk beanbox inspite of
    packaging bean class file and manifest file in a jar file and
    placing it in bdk jars directory. On trying to load it says(THE JAR
    FILE DOES NOT HAVA ANY BEANS).
    SEE THE EXAMPLE BELOW:
    I made a manifest file BeanTest.mf as
    Name: BeanTest.class
    Java-Bean: True
    Then the BeanTest Class comprises of
    import java.awt.Point;
    public class BrokenProperties extends Point
         public void setSpot(Point point)
              this.x = point.x;
              this.y = point.y;
         public Point getSpot()
              return this;
    Please help....

    you have many little errors in program. try as below and let me know..
    public class BrokenProperties extends Point implements serializable
    private Point xy;
    public BrokenProperties()
    public void setSpot(Point point)
    xy=point;
    public Point getSpot()
    return xy;

  • SAX problem(plz see the code given)

    hi all,
    i am using SAX parser for validating my xml file against the dtd,i am getting some errors that i am not able to make out.cud u plz help me.i am sending u my files.
    ------------------------java file------------------------------------
    import java.io.*;
    import org.xml.sax.*;
    import org.xml.sax.helpers.DefaultHandler;
    import javax.xml.parsers.SAXParserFactory;
    import javax.xml.parsers.ParserConfigurationException;
    import javax.xml.parsers.SAXParser;
    public class Echo extends DefaultHandler
    public static void main(String argv[]){
    if (argv.length != 1) {
    System.err.println("Usage: cmd filename");
    System.exit(1);
    // Use an instance of ourselves as the SAX event handler
    //DefaultHandler handler=new DefaultHandler();
    Echo handler=new Echo();
    // Use the default (non-validating) parser
    SAXParserFactory factory = SAXParserFactory.newInstance();
    factory.setValidating(true);
    try {
    // Set up output stream
    out = new OutputStreamWriter(System.out, "UTF8");
    // Parse the input
    SAXParser saxParser = factory.newSAXParser();
    saxParser.parse( new File(argv[0]), handler );
    catch (SAXParseException spe) {
    // Error generated by the parser
    System.out.println("\n** Parsing error"
    + ", line " + spe.getLineNumber()
    + ", uri " + spe.getSystemId());
    System.out.println(" " + spe.getMessage() );
    }catch (Throwable t){
    t.printStackTrace();
    System.exit(0);
    static private Writer out;
    public void startDocument()
    throws SAXException{
    emit("<?xml version='1.0' encoding='UTF-8'?>");
    nl();
    public void endDocument()
    throws SAXException{
    try {
    nl();
    out.flush();
    }catch (IOException e) {
    throw new SAXException("I/O error", e);
    public void startElement(String namespaceURI,
    String sName, // simple name (localName)
    String qName, // qualified name
    Attributes attrs)
    throws SAXException
    String eName = sName; // element name
    if ("".equals(eName)) eName = qName; // namespaceAware = false
    emit("<"+eName);
    if (attrs != null) {
    for (int i = 0; i < attrs.getLength(); i++) {
    String aName = attrs.getLocalName(i); // Attr name
    if ("".equals(aName)) aName = attrs.getQName(i);
    emit(" ");
    emit(aName+"=\""+attrs.getValue(i)+"\"");
    emit(">");
    public void endElement(String namespaceURI,
    String sName, // simple name
    String qName // qualified name
    throws SAXException
    emit("</"+qName+">");
    public void characters(char buf[], int offset, int len)
    throws SAXException
    String s = new String(buf, offset, len);
    emit(s);
    public void ignorableWhitespace(char buf[], int offset, int Len)
    throws SAXException
    nl();
    //emit("IGNORABLE");
    private void emit(String s)
    throws SAXException
    try {
    out.write(s);
    out.flush();
    } catch (IOException e) {
    throw new SAXException("I/O error", e);
    private void nl()
    throws SAXException
    String lineEnd = System.getProperty("line.separator");
    try {
    out.write(lineEnd);
    } catch (IOException e) {
    throw new SAXException("I/O error", e);
    public void error(SAXParseException e)
    throws SAXParseException
    throw e;
    public void warning(SAXParseException e)throws SAXParseException{
    System.out.println("WARNING : Line Number:- "+e.getLineNumber());
    System.out.println("WARNING : Column Number:- "+e.getColumnNumber());
    System.out.println("WARNING : System ID:- "+e.getSystemId());
    System.out.println("WARNING : Public Number:- "+e.getPublicId());
    --------------------------xml file------------------------------------
    <?xml version='1.0' encoding='utf-8'?>
    <!DOCTYPE slideshow SYSTEM "echo.dtd">
    <!-- A SAMPLE set of slides -->
    <slideshow
    title="Sample Slide Show"
    date="Date of publication"
    author="Yours Truly"
    >
    <![CDATA[Digram : frobmorten <------------ fuznaten
    | <3> ^
    | <1> | <1> = fozzle
    V | <2> = framboze
    Staten+ <3> = frenzle
    <2>
    ]]>
    <!-- TITLE SLIDE -->
    <slide type="all">
    <image src="my.gif" alt="this is my pic" type="image/gif"/>
    <title>Wake up to WonderWidgets!</title>
    </slide>
    <!-- OVERVIEW -->
    <slide type="all">
    <title>Overview</title>
    <item>WonderWidgets are great</item>
    <item/>
    <item>Who buys WonderWidgets</item>
    </slide>
    <slide type="all">
    <title>Overview</title>
    <item>Who buys WonderWidgets</item>
    </slide>
    </slideshow>
    -----------------------------dtd file---------------------------------
    <!ELEMENT slideshow (slide+)>
    <!ATTLIST slideshow
    title CDATA #IMPLIED
    date CDATA #IMPLIED
    author CDATA #IMPLIED
    >
    <!ELEMENT slide (image?,title, item*)>
    <!ATTLIST slide type CDATA #IMPLIED>
    <!ELEMENT title (#PCDATA)>
    <!ELEMENT item (#PCDATA | item)* >
    <!ELEMENT image EMPTY>
    <!ATTLIST image
    alt CDATA #IMPLIED
    src CDATA #REQUIRED
    type CDATA "image/gif"
    >
    -----------------------ERROR I AM GETTING IS--------------------------
    <?xml version='1.0' encoding='UTF-8'?>
    <slideshow title="Sample Slide Show" date="Date of publication" author="Yours Tr
    uly">
    Digram : frobmorten <------------ fuznaten
    | <3> ^
    | <1> | <1> = fozzle
    V | <2> = framboze
    Staten+ <3> = frenzle
    <2>
    <slide type="all">
    <image src="my.gif" alt="this is my pic" type="image/gif"></image>
    <title>Wake up to WonderWidgets!</title>
    </slide>
    <slide type="all">
    <title>Overview</title>
    <item>WonderWidgets are great</item>
    <item></item>
    <item>Who buys WonderWidgets</item>
    </slide>
    <slide type="all">
    <title>Overview</title>
    <item>Who buys WonderWidgets</item>
    </slide>
    org.xml.sax.SAXException: The content of element type "slideshow" must m
    atch "(slide)+".
    at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.j
    ava:979)
    at javax.xml.parsers.SAXParser.parse(Unknown Source)
    at javax.xml.parsers.SAXParser.parse(Unknown Source)
    at Echo.main(Echo.java:28)
    with my lot efforts i am not able to make out where i am wrong,plz do have a look on the codes.
    thanx in advance
    best regards
    anshul

    Hi i have consulted the XML spec and it is not possible to have a CDATA section as element content. A element declaration can have only content that is empty, ANY (i.e. can include any other declared elements in DTD), mixed (i.e. can contain PCDATA or child elements, or child elements. An element cannot include any character data which CDATA represents. i.e it is not valid to do <!ELEMENT slideshow CDATA>
    The CDATA can only be used with an attribute declaration. Regard CDATA as a type definition for any attribute variables.
    So what do i suggest. You could declare a separate element which has an attribute for the CDATA section
    <!ELEMENT input (Name)>
    <!ATTLIST input instructions CDATA #REQUIRED>
    hope this helps.

  • Plz see this problem

    hi Everyone,
    I have written a bdc for multiple line items for single header in PO.but i am getting multiple PO number for different line item.
    Plz suggest how should i correct it.
    report ZPURCHAGE1
           no standard page heading line-size 255.
    *include bdcrecx1.
    *parameters: dataset(132) lower case.
       DO NOT CHANGE - the generated data section - DO NOT CHANGE    ***
      If it is nessesary to change the data section use the rules:
      1.) Each definition of a field exists of two lines
      2.) The first line shows exactly the comment
          '* data element: ' followed with the data element
          which describes the field.
          If you don't have a data element use the
          comment without a data element name
      3.) The second line shows the fieldname of the
          structure, the fieldname must consist of
          a fieldname and optional the character '_' and
          three numbers and the field length in brackets
      4.) Each field must be type C.
    Generated data section with specific formatting - DO NOT CHANGE  ***
    data: t_bdc_data like bdcdata occurs 10 with header line.
    data: begin of record2,
          ebelp(005),
          ematn(010),
          menge(017),
          name1(030),
          spinf(001),
          end of record2.
    data: begin of record,
    data element: BSART
            BSART(004),
    data element: MEPO_VENDOR
            SUPERFIELD(051),
    data element: EBDAT
            BEDAT(010),
    data element:
           LIST(040),
    data element: BSART
           BSART_005(004),
    data element: MEPO_VENDOR
           SUPERFIELD_006(051),
    data element: EBDAT
           BEDAT_007(010),
    data element: EKORG
            EKORG(004),
    data element: EKGRP
            EKGRP(003),
    data element: BUKRS
            BUKRS(004),
    data element:
           LIST_011(040),
    data element: BSART
           BSART_012(004),
    data element: MEPO_VENDOR
           SUPERFIELD_013(051),
    data element: EBDAT
           BEDAT_014(010),
    data element: EKORG
           EKORG_015(004),
    data element: EKGRP
           EKGRP_016(003),
    data element: BUKRS
           BUKRS_017(004),
    data element:
           LIST_018(040),
    data element: BSART
           BSART_019(004),
    data element: MEPO_VENDOR
           SUPERFIELD_020(051),
    data element: EBDAT
           BEDAT_021(010),
    data element: EKORG
           EKORG_022(004),
    data element: EKGRP
           EKGRP_023(003),
    data element: BUKRS
           BUKRS_024(004),
    data element: EBELP
           EBELP(005),
    data element: EMATNR
           EMATN(018),
    data element: BSTMG
           MENGE(017),
    data element: MEPO_EWERK
           NAME1(030),
    data element:
           LIST_029(040),
    data element: BSART
           BSART_030(004),
    data element: MEPO_VENDOR
           SUPERFIELD_031(051),
    data element: EBDAT
           BEDAT_032(010),
    data element: EKORG
           EKORG_033(004),
    data element: EKGRP
           EKGRP_034(003),
    data element: BUKRS
           BUKRS_035(004),
    data element:
           LIST_036(040),
    data element: INFUP
           SPINF(001),
          end of record.
    data : itab like standard table of record with header line.
    data: itab1 like standard table of record2 with header line.
    End generated data section ***
    start-of-selection.
    *perform open_dataset using dataset.
    *perform open_group.
    *do.
    *read dataset dataset into record.
    CALL FUNCTION 'UPLOAD'
    EXPORTING
       FILENAME                      = ' '
       FILETYPE                      = 'DAT'
      TABLES
        DATA_TAB                      = ITAB.
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION 'UPLOAD'
    EXPORTING
       FILENAME                      = ' '
       FILETYPE                      = 'DAT'
      TABLES
        DATA_TAB                      = itab1.
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    loop at itab into record.
    *if sy-subrc <> 0. exit. endif.
    LOOP AT ITAB1 INTO RECORD2.
    perform bdc_dynpro      using 'SAPLMEGUI' '0014'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=MEV4000BUTTON'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'MEPO_TOPLINE-SUPERFIELD'.
    perform bdc_field       using 'MEPO_TOPLINE-BSART'
                                  record-BSART.
    perform bdc_field       using 'MEPO_TOPLINE-SUPERFIELD'
                                  record-SUPERFIELD.
    perform bdc_field       using 'MEPO_TOPLINE-BEDAT'
                                  record-BEDAT.
    *perform bdc_field       using 'DYN_6000-LIST'
                                 record-LIST.
    perform bdc_dynpro      using 'SAPLMEGUI' '0014'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'MEPO_TOPLINE-BSART'
                                  record-BSART.
    perform bdc_field       using 'MEPO_TOPLINE-SUPERFIELD'
                                  record-SUPERFIELD.
    perform bdc_field       using 'MEPO_TOPLINE-BEDAT'
                                  record-BEDAT.
    perform bdc_field       using 'BDC_CURSOR'
                                  'MEPO1222-BUKRS'.
    perform bdc_field       using 'MEPO1222-EKORG'
                                  record-EKORG.
    perform bdc_field       using 'MEPO1222-EKGRP'
                                  record-EKGRP.
    perform bdc_field       using 'MEPO1222-BUKRS'
                                  record-BUKRS.
    *perform bdc_field       using 'DYN_6000-LIST'
                                 record-LIST.
    perform bdc_dynpro      using 'SAPLMEGUI' '0014'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=MEV4001BUTTON'.
    perform bdc_field       using 'MEPO_TOPLINE-BSART'
                                  record-BSART.
    perform bdc_field       using 'MEPO_TOPLINE-SUPERFIELD'
                                  record-SUPERFIELD.
    perform bdc_field       using 'MEPO_TOPLINE-BEDAT'
                                  record-BEDAT.
    perform bdc_field       using 'BDC_CURSOR'
                                  'MEPO1222-BUKRS'.
    perform bdc_field       using 'MEPO1222-EKORG'
                                  record-EKORG.
    perform bdc_field       using 'MEPO1222-EKGRP'
                                  record-EKGRP.
    perform bdc_field       using 'MEPO1222-BUKRS'
                                  record-BUKRS.
    *perform bdc_field       using 'DYN_6000-LIST'
                                 record-LIST.
    perform bdc_dynpro      using 'SAPLMEGUI' '0014'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'MEPO_TOPLINE-BSART'
                                  record-BSART.
    perform bdc_field       using 'MEPO_TOPLINE-SUPERFIELD'
                                  record-SUPERFIELD.
    perform bdc_field       using 'MEPO_TOPLINE-BEDAT'
                                  record-BEDAT.
    perform bdc_field       using 'MEPO1222-EKORG'
                                  record-EKORG.
    perform bdc_field       using 'MEPO1222-EKGRP'
                                  record-EKGRP.
    perform bdc_field       using 'MEPO1222-BUKRS'
                                  record-BUKRS.
    perform bdc_field       using 'BDC_CURSOR'
                                  'MEPO1211-NAME1(01)'.
    perform bdc_field       using 'MEPO1211-EBELP(01)'
                                  record2-EBELP.
    perform bdc_field       using 'MEPO1211-EMATN(01)'
                                  record2-EMATN.
    perform bdc_field       using 'MEPO1211-MENGE(01)'
                                  record2-MENGE.
    perform bdc_field       using 'MEPO1211-NAME1(01)'
                                  record2-NAME1.
    *perform bdc_field       using 'DYN_6000-LIST'
                                 record-LIST.
    perform bdc_dynpro      using 'SAPLMEGUI' '0014'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=MESAVE'.
    perform bdc_field       using 'MEPO_TOPLINE-BSART'
                                  record-BSART.
    perform bdc_field       using 'MEPO_TOPLINE-SUPERFIELD'
                                  record-SUPERFIELD.
    perform bdc_field       using 'MEPO_TOPLINE-BEDAT'
                                  record-BEDAT.
    perform bdc_field       using 'MEPO1222-EKORG'
                                  record-EKORG.
    perform bdc_field       using 'MEPO1222-EKGRP'
                                  record-EKGRP.
    perform bdc_field       using 'MEPO1222-BUKRS'
                                  record-BUKRS.
    perform bdc_field       using 'BDC_CURSOR'
                                  'MEPO1211-EEIND(01)'.
    *perform bdc_field       using 'DYN_6000-LIST'
                                 record-LIST.
    perform bdc_field       using 'MEPO1319-SPINF'
                                  record2-SPINF.
    *perform bdc_transaction using 'ME21N'.
    CALL TRANSACTION 'ME21N' USING t_bdc_data
                         MODE   'A'
                         UPDATE 'S'.
    clear  t_bdc_data.
    refresh t_bdc_data.
    endloop.
    endloop.
    *perform close_group.
    *&      Form  bdc_dynpro
          text
         -->P_0046   text
         -->P_0047   text
    FORM bdc_dynpro  USING  PROGRAM
                              DYNPRO.
    CLEAR t_bdc_data.
      t_bdc_data-PROGRAM  = PROGRAM.
      t_bdc_data-DYNPRO   = DYNPRO.
      t_bdc_data-DYNBEGIN = 'X'.
      APPEND t_bdc_data.
    ENDFORM.                    " bdc_dynpro
    *&      Form  bdc_field
          text
         -->P_0051   text
         -->P_0052   text
    FORM bdc_field  USING    FNAM
                             FVAL.
    CLEAR t_bdc_data.
        t_bdc_data-FNAM = FNAM.
        t_bdc_data-FVAL = FVAL.
        APPEND t_bdc_data.
    ENDFORM.                    " bdc_field
    Mohit

    Hi ,
    try this :
    ur existing codes:
    *perform bdc_transaction using 'ME21N'.
    CALL TRANSACTION 'ME21N' USING t_bdc_data
    MODE 'A'
    UPDATE 'S'.
    clear t_bdc_data.
    refresh t_bdc_data.
    endloop.
    endloop.
    proposed codes by me:
    clear t_bdc_data.
    endloop.
    *perform bdc_transaction using 'ME21N'.
    CALL TRANSACTION 'ME21N' USING t_bdc_data
    MODE 'A'
    UPDATE 'S'.
    refresh t_bdc_data.
    endloop.
    Message was edited by:
            Jogdand M B

  • Plz see this and think once..

    hai friends,
    i got one trouble plz help as soon as u can....imagine i ahve 10000 rows....
    i want to upload into one it table and i want to split them into 100 text files..each having the
    100 rows...just like splitting them into text files and downloading them as .txt files..plz.help me..

    How about something like this.
    REPORT  zrich_0001.
    DATA: itab1 TYPE STANDARD TABLE OF string.
    DATA: itab2 TYPE STANDARD TABLE OF string.
    DATA: wa LIKE LINE OF itab1.
    DATA: rec_counter TYPE i.
    DATA: fil_counter(3) TYPE c.
    DATA: file_name TYPE string.
    CALL METHOD cl_gui_frontend_services=>gui_upload
      EXPORTING
        filename = 'C:/testfile.txt'
      CHANGING
        data_tab = itab1
      EXCEPTIONS
        OTHERS   = 19.
    CLEAR fil_counter.
    CLEAR rec_counter.
    LOOP AT itab1 INTO wa.
      APPEND wa TO itab2.
      rec_counter = rec_counter + 1.
      IF rec_counter = 100.
        PERFORM download_it.
      ENDIF.
      AT LAST.
        CHECK itab2[] IS NOT INITIAL.
        PERFORM download_it.
      ENDAT.
    ENDLOOP.
    *&      Form  download_it
    *       text
    FORM download_it.
      CLEAR file_name.
      fil_counter = fil_counter + 1.
      CONCATENATE 'c:/testfile' fil_counter '.txt' INTO file_name.
      CONDENSE file_name NO-GAPS.
      CALL METHOD cl_gui_frontend_services=>gui_download
        EXPORTING
          filename = file_name
        CHANGING
          data_tab = itab2
        EXCEPTIONS
          OTHERS   = 24.
      CLEAR rec_counter.
      REFRESH itab2.
    ENDFORM.                    "download_it
    Regards,
    Rich Heilman

  • Plz see Mr.Prabhu i tried it but error

    Hi Mr.Prabhu,
    I tried it and I think the logic is fine but i get this error!
    plz help!
    the error states:
    Warning: To avoid potential deadlock, operations that may block, such as
    networking, should be performed in a different thread than the
    commandAction() handler.

    Hi,
    This is not an error but a simple warning bcoz you are trying to establish a connection which will casuse the app not to respond to events. You have to establish connection in a seperate thread.
    Please visit the following link about threads in J2ME.
    http://developers.sun.com/techtopics/mobility/midp/articles/threading2/
    here is the pseudo code.
    public void commandAction(...) {
    new MyConnection();
    class MyConnection extends Thread {
    MyConnection() {
    start();
    public void run() {
    //login to connect to server

  • Relation between netweaver & ecc(plz see these questions friends)

    hi folks,
    plz answer questions---
    1.   can we install all netweaver  components on    development machine?
    2.   what i feel is..one can install netweaver     application server on a machine and can develop applications on that machine.after that any one can access that application remotely.///then here my doubt is what he accesses really ?do he accesses r/3   ..i fell netweaver application server acts as mediator for remote user and r/3? is it correct?

    Hi Shabbir,
    Are you talking about the <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/downloads?rid=/library/uuid/da699d27-0b01-0010-99b0-f11458f31ef2">java EE 5 edition</a> of SAP NetWeaver Application Server? Because if this is the case, you can surely install it on a developer machine! Actually, this is exactly what this installation has been built for
    However, this release is focused primarily on the Java EE open standards. It supports certain backend connectivity options, e.g. based on JCA 1.5, SAP Java Connector (JCo), and others, but in order to access R/3, of course, you'll need it installed separately.
    With the Application Server Java you can develop, deploy, and manage robust, scalable, performant Java applications. These applications then could, in particular, access the SAP backend systems and in this way serve as a mediator between the remote user and the backend (R/3). This is just one of the many possible scenarios that you could implement on top of SAP NetWeaver Application Server.
    Does that answer your questions?
    Best regards,
    Vladimir

  • Smartforms o/p 2 PDF conversion problem , plz see my code

    Hi Smartform Guys
    1)I m getting error <b>"CONVT_NO_NUMBER "</b>  in converting my Smartform output to PDF.
    *Printing of Export Invoice, Packing List,Enclosure to Packing List &  *
    *Case Marking in one SMART FORMS Layout                                *
    REPORT ZSD_REP_MULTI_PRINT.
    TABLES :
        vbak,
        vbap,
        vbpa,
        vbfa,
        VBRK,
        VBRP,
        LIKP,
        LIPS,
        KONV,
        objk,
        tvko,
        ser01,
        sadr,
        equi,
        makt,
        mast,
        t005t,
        kna1,
        t001w,
        T001,
        ADRC,
        sscrfields,
        zpp_plcmi,      "Packing list history For Conf: Item data
        zplh,           "PACKING LIST HISTORY : HEADER DATA
        zpli.           "PACKING LIST HISTORY : ITEM DATA
    DATA: FM_NAME  TYPE RS38L_FNAM,
          P_E_DEVTYPE TYPE RSPOPTYPE,
          P_JOB_OUTPUT_INFO TYPE SSFCRESCL OCCURS 2000 WITH HEADER LINE,
          P_OUTPUT_OPTIONS TYPE SSFCOMPOP OCCURS 0 WITH HEADER LINE,
          P_CONTROL_PARAMETERS TYPE SSFCTRLOP OCCURS 0 WITH HEADER LINE ,
          P_DOC  LIKE DOCS OCCURS 2000 WITH HEADER LINE,
          P_LINES LIKE TLINE OCCURS 200,
          P_BIN_FILESIZE TYPE I,
          P_LANGUAGE TYPE SFLANGU,
          P_BIN_FILE TYPE XSTRING.
    DATA: T_ITEM   TYPE  ZSD_TABL_LITEM,
          WA_ITEM  TYPE  ZSD_STRUCT_LITEM,
          T_ADRS   LIKE  ZSD_STRUCT_ADRS  OCCURS 0 WITH HEADER LINE,
          MSLINES  LIKE  TLINE OCCURS 1 WITH HEADER LINE,
          TIDNO    LIKE STXL-TDID,
          TNAME    LIKE STXL-TDNAME,
          TOBJT    LIKE STXL-TDOBJECT,
          SSORD    LIKE VBAK-VBELN,
          TOT      LIKE VBAK-NETWR,
          WORD     LIKE SPELL.
    SELECTION-SCREEN BEGIN OF BLOCK blk1 WITH FRAME TITLE text-001.
    PARAMETERS: P_DELNO LIKE  LIKP-VBELN OBLIGATORY,
                P_INVNO LIKE  VBRK-VBELN OBLIGATORY,
                P_DATE  LIKE  SY-DATUM.
    SELECTION-SCREEN END   OF BLOCK blk1.
    AT SELECTION-SCREEN.
      CLEAR T_ADRS.
      REFRESH T_ITEM.
      T_ADRS-INVNO = P_INVNO.
      T_ADRS-INVDAT = P_DATE.
      SELECT SINGLE VBELV INTO  VBFA-VBELV
                             FROM  VBFA
                             WHERE VBELN = P_DELNO
                               AND VBTYP_N = 'J'  .
      SSORD = VBFA-VBELV.
    *Exporter's  Address
      SELECT SINGLE BUKRS_VF INTO  VBAK-BUKRS_VF
                             FROM  VBAK
                             WHERE VBELN = VBFA-VBELV.
      SELECT SINGLE   ADRNR
                      INTO T001-ADRNR
                      FROM T001
                      WHERE BUKRS = VBAK-BUKRS_VF.
      SELECT SINGLE NAME1 STREET CITY1 POST_CODE1 COUNTRY
             INTO (T_ADRS-NAME1,T_ADRS-STREET,T_ADRS-CITY1,
                   T_ADRS-POST_CODE1, ADRC-COUNTRY)
             FROM  ADRC
             WHERE ADDRNUMBER EQ T001-ADRNR.
      SELECT SINGLE LANDX
                    INTO T_ADRS-COUNTRY
                    FROM T005T
                    WHERE     SPRAS = 'EN'
                          AND LAND1 = ADRC-COUNTRY.
    **BUYERS NO & DATE
    SELECT SINGLE BSTNK BSTDK INTO  (T_ADRS-BSTNK,T_ADRS-BSTDK)
                         FROM  VBAK
                         WHERE VBELN = VBFA-VBELV.
    *Consignee Address & Buyer Other Than Consignee
      SELECT SINGLE KUNNR KUNAG INTO (LIKP-KUNNR, LIKP-KUNAG)
                                FROM LIKP WHERE VBELN = P_DELNO.
      IF LIKP-KUNNR = LIKP-KUNAG.
        SELECT SINGLE NAME1 NAME2 STRAS ORT01 PSTLZ REGIO TELF1 ADRNR
                  INTO (T_ADRS-CNAME1, T_ADRS-CNAME2, T_ADRS-CSTREET,
                        T_ADRS-CCITY,  T_ADRS-CPCODE, T_ADRS-CREGIO,
                        T_ADRS-CTELF1, KNA1-ADRNR)
                  FROM  KNA1
                  WHERE KUNNR = LIKP-KUNNR.
        SELECT SINGLE COUNTRY INTO  ADRC-COUNTRY
                              FROM  ADRC
                              WHERE ADDRNUMBER EQ KNA1-ADRNR.
        SELECT SINGLE LANDX
                    INTO T_ADRS-CCOUNTRY
                    FROM T005T
                    WHERE     SPRAS = 'EN'
                          AND LAND1 = ADRC-COUNTRY.
        T_ADRS-ONAME1   =  T_ADRS-CNAME1 .
        T_ADRS-ONAME2   =  T_ADRS-CNAME2 .
        T_ADRS-OSTREET  =  T_ADRS-CSTREET .
        T_ADRS-OCITY    =  T_ADRS-CCITY.
        T_ADRS-OPCODE   =  T_ADRS-CPCODE .
        T_ADRS-OREGIO   =  T_ADRS-CREGIO.
        T_ADRS-OTELF1   =  T_ADRS-CTELF1 .
        T_ADRS-OCOUNTRY =  T_ADRS-CCOUNTRY.
      ELSE.
        SELECT SINGLE NAME1 NAME2 STRAS ORT01 PSTLZ REGIO TELF1 ADRNR
                  INTO (T_ADRS-CNAME1, T_ADRS-CNAME2, T_ADRS-CSTREET,
                        T_ADRS-CCITY,  T_ADRS-CPCODE, T_ADRS-CREGIO,
                        T_ADRS-CTELF1, KNA1-ADRNR)
                  FROM  KNA1
                  WHERE KUNNR = LIKP-KUNNR.
        SELECT SINGLE COUNTRY INTO ADRC-COUNTRY
                              FROM  ADRC
                              WHERE ADDRNUMBER EQ KNA1-ADRNR.
        SELECT SINGLE LANDX
                    INTO T_ADRS-CCOUNTRY
                    FROM T005T
                    WHERE     SPRAS = 'EN'
                          AND LAND1 = ADRC-COUNTRY.
    *Buyer Other than Consignee
        SELECT SINGLE NAME1 NAME2 STRAS ORT01 PSTLZ REGIO TELF1 ADRNR
                   INTO (T_ADRS-ONAME1, T_ADRS-ONAME2, T_ADRS-OSTREET,
                         T_ADRS-OCITY,  T_ADRS-OPCODE, T_ADRS-OREGIO,
                         T_ADRS-OTELF1, KNA1-ADRNR)
                   FROM  KNA1
                   WHERE KUNNR = LIKP-KUNAG.
        SELECT SINGLE COUNTRY INTO  ADRC-COUNTRY
                              FROM  ADRC
                              WHERE ADDRNUMBER EQ KNA1-ADRNR.
        SELECT SINGLE LANDX
                    INTO T_ADRS-OCOUNTRY
                    FROM T005T
                    WHERE     SPRAS = 'EN'
                          AND LAND1 = ADRC-COUNTRY.
      ENDIF.
    *Other's Ref
      TIDNO = 'Z071'.
      TNAME = SSORD.
      TOBJT = 'VBBK'.
      PERFORM FINDTEXT.
      LOOP AT MSLINES.
        T_ADRS-OREF = mslines-tdline(25).
        EXIT.
      ENDLOOP.
    *Buyer's Order No  Ref
      TIDNO = 'Z023'.
      TNAME = SSORD.
      TOBJT = 'VBBK'.
      PERFORM FINDTEXT.
      LOOP AT MSLINES.
        T_ADRS-BUYER = mslines-tdline(25).
        EXIT.
      ENDLOOP.
    *Exporter Ref
      TIDNO = 'Z072'.
      TNAME = SSORD.
      TOBJT = 'VBBK'.
      PERFORM FINDTEXT.
      LOOP AT MSLINES.
        T_ADRS-XPREF = mslines-tdline(25).
        EXIT.
      ENDLOOP.
    *Pre-Carraige By
      TIDNO = 'Z074'.
      TNAME = SSORD.
      TOBJT = 'VBBK'.
      PERFORM FINDTEXT.
      LOOP AT MSLINES.
        T_ADRS-PCRG = mslines-tdline(25).
        EXIT.
      ENDLOOP.
    *Place Of reciept by Pre-Carraige
      TIDNO = 'Z073'.
      TNAME = SSORD.
      TOBJT = 'VBBK'.
      PERFORM FINDTEXT.
      LOOP AT MSLINES.
        T_ADRS-PLPCRG = mslines-tdline(25).
        EXIT.
      ENDLOOP.
    *Vessel/Flight No
      TIDNO = 'Z075'.
      TNAME = SSORD.
      TOBJT = 'VBBK'.
      PERFORM FINDTEXT.
      LOOP AT MSLINES.
        T_ADRS-VFNO = mslines-tdline(25).
        EXIT.
      ENDLOOP.
    *Port Of Loading
      TIDNO = 'Z077'.
      TNAME = SSORD.
      TOBJT = 'VBBK'.
      PERFORM FINDTEXT.
      LOOP AT MSLINES.
        T_ADRS-PLOAD = mslines-tdline(25).
        EXIT.
      ENDLOOP.
    *Port Of Discharge
      TIDNO = 'Z076'.
      TNAME = SSORD.
      TOBJT = 'VBBK'.
      PERFORM FINDTEXT.
      LOOP AT MSLINES.
        T_ADRS-PDISG = mslines-tdline(25).
        EXIT.
      ENDLOOP.
    *Final Destination
      TIDNO = 'Z070'.
      TNAME = SSORD.
      TOBJT = 'VBBK'.
      PERFORM FINDTEXT.
      LOOP AT MSLINES.
        T_ADRS-FDEST = mslines-tdline(25).
        EXIT.
      ENDLOOP.
    *Terms Of Delivery & Payment
      TIDNO = 'Z080'.
      TNAME = SSORD.
      TOBJT = 'VBBK'.
      PERFORM FINDTEXT.
      LOOP AT MSLINES.
        T_ADRS-TERMS = mslines-tdline(50).
        EXIT.
      ENDLOOP.
    APPEND T_ADRS.
    *BODY SECTION FOR LINE ITEMS
      SELECT POSNR KWMENG VRKME WAERK
             INTO  (VBAP-POSNR, VBAP-KWMENG, VBAP-VRKME, VBAP-WAERK)
             FROM  VBAP
             WHERE VBELN = SSORD.
    *Mark/Case No
        TIDNO = '0002'.
        CONCATENATE SSORD
                    VBAP-POSNR
        INTO        TNAME.
        TOBJT = 'VBBP'.
        PERFORM FINDTEXT.
        LOOP AT MSLINES.
          WA_ITEM-MARKNO = mslines-tdline(40).
          EXIT.
        ENDLOOP.
    *Packing Type
        TIDNO = '0003'.
        CONCATENATE SSORD
                    VBAP-POSNR
        INTO        TNAME.
        TOBJT = 'VBBP'.
        PERFORM FINDTEXT.
        LOOP AT MSLINES.
          WA_ITEM-PACKTYP = mslines-tdline(40).
          EXIT.
        ENDLOOP.
    *Goods Description
        TIDNO = '0001'.
        CONCATENATE SSORD
                    VBAP-POSNR
        INTO        TNAME.
        TOBJT = 'VBBP'.
        PERFORM FINDTEXT.
        LOOP AT MSLINES.
          WA_ITEM-PACKTYP = mslines-tdline(40).
          EXIT.
        ENDLOOP.
    *Goods Quantity
        WA_ITEM-QTY = VBAP-KWMENG.
        WA_ITEM-VRKME = VBAP-VRKME.
    *Goods Rate
        SELECT SINGLE KNUMV INTO VBAK-KNUMV FROM VBAK WHERE VBELN = SSORD.
        SELECT SINGLE KBETR WAERS
                      INTO  (WA_ITEM-RATE, WA_ITEM-WAERS)
                      FROM  KONV
                      WHERE KNUMV = VBAK-KNUMV
                        AND KPOSN = VBAP-POSNR
                        AND KSCHL = 'PR00'.
    *Goods Amount
        WA_ITEM-AMOUNT = WA_ITEM-QTY * WA_ITEM-RATE.
        WA_ITEM-WAERK = VBAP-WAERK.
        TOT = TOT + WA_ITEM-AMOUNT.
        APPEND WA_ITEM TO T_ITEM.
      ENDSELECT.
      T_ADRS-TOT = TOT.
      CALL FUNCTION 'SPELL_AMOUNT'
       EXPORTING
         AMOUNT          = TOT
         CURRENCY        = VBAP-WAERK
      FILLER          = ' '
         LANGUAGE        = SY-LANGU
       IMPORTING
         IN_WORDS        = WORD
       EXCEPTIONS
         NOT_FOUND       = 1
         TOO_LARGE       = 2
         OTHERS          = 3
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    TEXT = WORD-WORD.
    CONCATENATE TEXT
                 'DECIMAL'
                  WORD-WORD
         INTO     TEXT
         SEPARATED BY ' '.
      T_ADRS-TOT_WORDS = WORD-WORD.
      APPEND T_ADRS.
    START-OF-SELECTION.
      CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
        EXPORTING
          FORMNAME                 = 'Z_SD_REP_MULTI_PRINT'
      VARIANT                  = ' '
      DIRECT_CALL              = ' '
       IMPORTING
          FM_NAME                  = FM_NAME
    EXCEPTIONS
       NO_FORM                  = 1
       NO_FUNCTION_MODULE       = 2
       OTHERS                   = 3
      IF SY-SUBRC <> 0.
          MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      P_LANGUAGE = 'EN'.
      CALL   FUNCTION 'SSF_GET_DEVICE_TYPE'
        EXPORTING
          I_LANGUAGE    = P_LANGUAGE
          I_APPLICATION = 'SAPDEFAULT'
        IMPORTING
          E_DEVTYPE     = P_E_DEVTYPE.
      P_OUTPUT_OPTIONS-XSFCMODE = 'X'.
      P_OUTPUT_OPTIONS-XSF = SPACE.
      P_OUTPUT_OPTIONS-XDFCMODE = 'X'.
      P_OUTPUT_OPTIONS-XDF = SPACE.
      P_OUTPUT_OPTIONS-TDPRINTER = P_E_DEVTYPE.
      P_OUTPUT_OPTIONS-TDDEST = 'LOCL'.
      APPEND P_OUTPUT_OPTIONS.
      P_CONTROL_PARAMETERS-NO_DIALOG = 'X'.
      P_CONTROL_PARAMETERS-GETOTF = 'X'.
      P_CONTROL_PARAMETERS-NO_CLOSE = SPACE.
      APPEND  P_CONTROL_PARAMETERS.
      CALL FUNCTION FM_NAME
       EXPORTING
      ARCHIVE_INDEX              =
      ARCHIVE_INDEX_TAB          =
      ARCHIVE_PARAMETERS         =
        CONTROL_PARAMETERS         = P_CONTROL_PARAMETERS
      MAIL_APPL_OBJ              =
      MAIL_RECIPIENT             =
      MAIL_SENDER                =
        OUTPUT_OPTIONS             = P_OUTPUT_OPTIONS
        USER_SETTINGS              = 'X'
      IMPORTING
      DOCUMENT_OUTPUT_INFO       =
        JOB_OUTPUT_INFO            = P_JOB_OUTPUT_INFO
      JOB_OUTPUT_OPTIONS         =
      TABLES
        T_ADRS                     = T_ADRS
        T_ITEM                     = T_ITEM
    EXCEPTIONS
       FORMATTING_ERROR           = 1
       INTERNAL_ERROR             = 2
       SEND_ERROR                 = 3
       USER_CANCELED              = 4
       OTHERS                     = 5
      IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    P_OTF[] = P_JOB_OUTPUT_INFO-OTFDATA.
    CALL FUNCTION 'CONVERT_OTF_2_PDF'
      EXPORTING
        USE_OTF_MC_CMD               = 'X'
      ARCHIVE_INDEX                =
    IMPORTING
       BIN_FILESIZE                 = P_BIN_FILESIZE
      TABLES
        OTF                          = P_JOB_OUTPUT_INFO-OTFDATA
        DOCTAB_ARCHIVE               = P_DOC
        LINES                        = P_LINES
    EXCEPTIONS
       ERR_CONV_NOT_POSSIBLE        = 1
       ERR_OTF_MC_NOENDMARKER       = 2
       OTHERS                       = 3.
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    BREAK-POINT.
    CALL FUNCTION 'WS_DOWNLOAD'
    EXPORTING
       BIN_FILESIZE                  = P_BIN_FILESIZE
      CODEPAGE                      = ' '
       FILENAME                      = 'C:\TEMP.PDF'
       FILETYPE                      = 'BIN'
       MODE                          = ''
      WK1_N_FORMAT                  = ' '
      WK1_N_SIZE                    = ' '
      WK1_T_FORMAT                  = ' '
      WK1_T_SIZE                    = ' '
      COL_SELECT                    = ' '
      COL_SELECTMASK                = ' '
      NO_AUTH_CHECK                 = ' '
    IMPORTING
        FILELENGTH                    = P_BIN_FILESIZE
      TABLES
        DATA_TAB                      = P_LINES
      FIELDNAMES                    =
    EXCEPTIONS
      FILE_OPEN_ERROR               = 1
      FILE_WRITE_ERROR              = 2
      INVALID_FILESIZE              = 3
      INVALID_TYPE                  = 4
      NO_BATCH                      = 5
      UNKNOWN_ERROR                 = 6
      INVALID_TABLE_WIDTH           = 7
      GUI_REFUSE_FILETRANSFER       = 8
      CUSTOMER_ERROR                = 9
      NO_AUTHORITY                  = 10
      OTHERS                        = 11
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION 'GUI_DOWNLOAD'
       EXPORTING
        BIN_FILESIZE = P_BIN_FILESIZE
        FILENAME = 'C:\Documents and Settings\pvipin\Desktop\sd.pdf'
        FILETYPE = 'BIN'
    APPEND = ' '
    WRITE_FIELD_SEPARATOR = ' '
    HEADER = '00'
    TRUNC_TRAILING_BLANKS = ' '
    WRITE_LF = 'X'
    COL_SELECT = ' '
    COL_SELECT_MASK = ' '
    DAT_MODE = ' '
    CONFIRM_OVERWRITE = ' '
    NO_AUTH_CHECK = ' '
    CODEPAGE = ' '
    IGNORE_CERR = ABAP_TRUE
    REPLACEMENT = '#'
    WRITE_BOM = ' '
    TRUNC_TRAILING_BLANKS_EOL = 'X'
    IMPORTING
    FILELENGTH =
    *TABLES
       DATA_TAB = P_LINES.
    FIELDNAMES =
    **EXCEPTIONS
    FILE_WRITE_ERROR = 1
    NO_BATCH = 2
    GUI_REFUSE_FILETRANSFER = 3
    INVALID_TYPE = 4
    NO_AUTHORITY = 5
    UNKNOWN_ERROR = 6
    HEADER_NOT_ALLOWED = 7
    SEPARATOR_NOT_ALLOWED = 8
    FILESIZE_NOT_ALLOWED = 9
    HEADER_TOO_LONG = 10
    DP_ERROR_CREATE = 11
    DP_ERROR_SEND = 12
    DP_ERROR_WRITE = 13
    UNKNOWN_DP_ERROR = 14
    ACCESS_DENIED = 15
    DP_OUT_OF_MEMORY = 16
    DISK_FULL = 17
    DP_TIMEOUT = 18
    FILE_NOT_FOUND = 19
    DATAPROVIDER_EXCEPTION = 20
    CONTROL_FLUSH_ERROR = 21
    OTHERS = 22 .
    IF SY-SUBRC <> 0.
         MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
           WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    *&      Form  FINDTEXT
          text
    FORM FINDTEXT.
      REFRESH mslines.
      CALL FUNCTION 'READ_TEXT'
        EXPORTING
          client                  = sy-mandt
          id                      = tidno
          language                = sy-langu
          name                    = tname
          object                  = tobjt
        TABLES
          lines                   = mslines
        EXCEPTIONS
          id                      = 1
          language                = 2
          name                    = 3
          not_found               = 4
          object                  = 5
          reference_check         = 6
          wrong_access_to_archive = 7
          OTHERS                  = 8.
      DELETE mslines WHERE tdline IS INITIAL.
    ENDFORM.                    "FINDTEXTThnx in Advnce
    Moni
    Message was edited by: md monirujjaman
    Message was edited by: md monirujjaman
    Message was edited by: md monirujjaman
    Message was edited by: md monirujjaman
    Message was edited by: md monirujjaman
    Message was edited by: md monirujjaman
    Message was edited by: md monirujjaman
    Message was edited by: md monirujjaman
    Message was edited by: md monirujjaman

    Hello,
    I think the following statement is causing problem.
    P_OTF[] = P_JOB_OUTPUT_INFO-OTFDATA.
    either give:
    P_OTF[] = P_JOB_OUTPUT_INFO-OTFDATA[].
    or
    directly pass P_JOB_OUTPUT_INFO-OTFDATA into FM parameter.
    This is because you are filling only header into P_OTF and NOT the Contents of internal table by the statement
    P_OTF[] = P_JOB_OUTPUT_INFO-OTFDATA.
    let me know whether it works.
    Regards, Murugesh AS
    have alook at this thread:
    Re: SX_OBJECT_CONVERT_OTF_PDF
    this may help you
    Message was edited by: Murugesh Arcot
    Message was edited by: Murugesh Arcot

  • At what percent e-tester can identify java applet objects. Plz see message.

    Hi,
    Me new to this group.
    I am here to find out whether e-tester can test java applet or not.
    I am testing a web application which is completely Java applet base.
    Envirnment used jdk1.1.8 and Jre1.4.
    I have been trying to identify applet object used in our application.
    problem i faced:
    when i set java option in option seting for both Microsoft applet and sun system applet. where my system having jdk1.1.8 and jre1.4.
    Recording on above envirnment I am able to record my application but i can not play that. On this case I marked Abbot script generated.
    when uninstall jdk and jre.
    I am able to record and play my application still some step. But I am not able to customize it.
    this application also uses StarTree a hyporbolic tree API from
    "Business Object" now bought by SAP (this api used inside applet
    frame).
    Is any one work on e-tester to automate in and out of an application which is built in java applet.
    Can some one help me to figure out where I am doing wrong.
    Before this I worked on e-tester year back to automate one of our application and still we are doing our regression on that.
    Expecting some help

    When you say customize, are you referring to parameters? They is handled differently with applets. I believe there is documentation on this.

  • Conversion form .mdf to .DBF , Plz see this...

    Hi all,
    Thanks for reading this:
    My Java application needs to read a .mdf database format (SQLServer) and export data (after some processing) in a .DBF format (for use with ArcView GIS).I can read from my SQLServer, but don't know how to generate a .DBF format. Are there any mechanisms in Java to do this?
    Any comments, i greatly welcome.

    I assume that you are using Windows (as you are talking about SQL Server)
    What you could do, is to create an ODBC datasource with the DBF driver.
    Then create the target tables while connected to your ODBC connection (through the JDBC/ODBC bridge). This will create the .dbf files (one for each table). This can be done by sending the CREATE TABLE commands through JDBC. You will probably need to test which datatypes DBF supports (apart from CHAR(n))
    Then you can connect to SQL Server and read the data from there and INSERT the data into your DBF tables.
    If you it's a one to one table copy, you could save your data as SQL INSERT with an appropriate tool and then execute those inserts while connected to you DBF datasource.
    Thomas

  • How to stop the encoding ?plz see the code and correct it

    public class NewClass
        /** Creates a new instance of NewClass */
        public NewClass ()
            StateHelper sh=null;
            Processor p=null;
            try
                p=Manager.createProcessor (new URL ("file:///ring.wav"));
                sh = new StateHelper (p);
                p.configure ();
            catch (NoProcessorException ex)
                ex.printStackTrace ();
            catch (IOException ex)
                ex.printStackTrace ();
            p.setContentDescriptor (new FileTypeDescriptor (FileTypeDescriptor.MPEG_AUDIO));       
            TrackControl track[] = p.getTrackControls ();
            boolean encodingPossible = false;
            for (int i = 0; i < track.length; i++)
                try
                    track.setFormat (new AudioFormat (AudioFormat.MPEG));
    encodingPossible = true;
    catch (Exception e)
    track[i].setEnabled (false);
    if (!sh.realize (10000))
    System.exit (-1);
    DataSource source = p.getDataOutput ();
    MediaLocator dest = new MediaLocator ("file://ring1.mpg");
    DataSink filewriter = null;
    try
    filewriter = Manager.createDataSink (source, dest);
    filewriter.open ();
    filewriter.addDataSinkListener (new DataSinkListener ()
    public void dataSinkUpdate (DataSinkEvent e)
    if(e instanceof javax.media.datasink.EndOfStreamEvent)
    DataSink ds=e.getSourceDataSink ();
    try
    ds.stop ();
    System.out.println ("finished write");
    catch (IOException ex)
    ex.printStackTrace ();
    filewriter.start ();
    catch (NoDataSinkException e)
    System.exit (-1);
    catch (IOException e)
    System.exit (-1);
    catch (SecurityException e)
    System.exit (-1);
    p.start ();
    p.addControllerListener (new ControllerAdapter ()
    public void endOfMedia (EndOfMediaEvent e)
    Controller controller = (Controller) e.getSource ();
    controller.stop ();
    controller.deallocate ();
    System.out.println ("finished run through");
    public static void main (String[] args)
    new NewClass ();
    o/p is "finished run through",the EndOfStreamEvent never occurs.please correct if anything is wrong.when i manually stop the program then only the encoded file appears on the disk. this has to used from the other class and i cannot afford to use exit().help me.

    Try this - it seems to work
    public class NewClass
        Processor p = null;
        DataSink sink = null;
         /** Creates a new instance of NewClass */
        public NewClass ()
            try{
                p = Manager.createProcessor (new URL ("file:C:/WINDOWS/Media/Windows XP Startup.wav"));
                p.addControllerListener (new ControllerAdapter ()
                     public void configureComplete(ConfigureCompleteEvent e){
                        System.out.println ("ConfigureCompleteEvent");
                        Processor p = (Processor)e.getSourceController();
                        processConfigured(p);
                     public void realizeComplete(RealizeCompleteEvent e){
                        System.out.println ("RealizeCompleteEvent");
                        Processor p = (Processor)e.getSourceController();
                        processrealized(p);
                     public void controllerClosed(ControllerClosedEvent e){
                        System.out.println ("ControllerClosedEvent");
                     public void endOfMedia (EndOfMediaEvent e)
                        System.out.println ("EndOfMediaEvent");
                        Processor p = (Processor)e.getSourceController();
                        p.stop();
                     public void stop(StopEvent e){
                        System.out.println ("StopEvent");
                        Processor p = (Processor)e.getSourceController();
                        p.close();
                p.configure();
            }catch (NoProcessorException ex){
                 ex.printStackTrace ();
            }catch (IOException ex){
                 ex.printStackTrace ();
        private void processrealized(Processor p){
             MediaLocator dest = new MediaLocator("file:C:/Workspace/ring1.mpg");
             try{
                  sink = Manager.createDataSink(p.getDataOutput(), dest);
                 sink.addDataSinkListener(new DataSinkListener(){
                      public void dataSinkUpdate(DataSinkEvent e){
                           if(e instanceof EndOfStreamEvent){
                            System.out.println ("EndOfStreamEvent");
                                sink.close();
                  sink.open();
                  sink.start();
             }catch(Exception eX){
             p.start();
        private void processConfigured(Processor p){
            p.setContentDescriptor (new FileTypeDescriptor (FileTypeDescriptor.MPEG_AUDIO));       
            TrackControl track[] = p.getTrackControls ();
            boolean encodingPossible = false;
            for (int i = 0; i < track.length; i++){
                 try{
                      track.setFormat (new AudioFormat (AudioFormat.MPEG));
              encodingPossible = true;
         }catch (Exception e){
              track[i].setEnabled (false);
    p.realize();
    public static void main (String[] args)
    new NewClass ();
    `

  • Plz see this code

    rs=stm.executeQuery("select news.news_id,to_char(news_date,'dd-MON-yy HH:MM:SS AM'),heading,desc1,desc2 from news where sysdate<=news_date + interval '2' day order by news_date desc");
              while(rs.next()){
              newsDate=rs.getString("news_date");
              out.println("News ID"+rs.getString("news_id")+"<div align=right>"+newsDate+"</div><br>");
              news_id=rs.getInt("news_id");
              heading=rs.getString("heading");
              out.println("<tr><td><a href=http://localhost:5050/examples/servlet/displayNews?newsID="+news_id+"><font color=olive face='times new roman' size=3><b>"+heading+"</a></font></td></tr>");               
              out.println("<tr><td>"+rs.getString("desc1")+"<a href=http://localhost:5050/examples/servlet/displayNews?newsID="+news_id+">   Details.....</a><br><br></td></tr>");
              }news_date exists in DB but it gives
    Error:
    Invalid column name

    try to use like this to get data :
    rs. getInt(1) > use column index number
    maybe helps you.

  • Rmi socket error................plz see

    hi,,
    i am getting this kind error when i run client server setup....................... whr server is running on linux suse...............
    java.rmi.unmarshal exception:error unmarshalling return; nested exception is:
    java.net.socketException:connection reset.................
    at sun.rmi.transport.streamremotecall.executecall
    at sun.rmi.server.unicastref.invoke
    Message was edited by:
    snagendra_prasad

    You have two problems.
    1. On the Linux machine you have GNU Java installed. Delete it and get the JDK from Sun. GNU Java is a useless piece of junk and it won't interoperate RMI with any other implementation of Java such as Sun's or IBM's.
    2. On your Windows machine you are running into a SecurityManager policy problem. You need to add appopriate SocketPermissions to your policy file to grant yourself the permissions being complained about. You'll have to read up on java.net.SocketPermission and SecurityManagers and how to set the policy file. It's all in the JDK documentation and it's stuff you need to know.

Maybe you are looking for

  • Generating a Vendor UUID and Product ID

    I understand the concept of UUID and a product ID, but I don't know in practice how to go about getting one. I'm working on making an appliance for my company, and let me preface this by saying I'm not a developer, and I'm wondering if a vendor UUID

  • What happened I just asked a question, registered, got the email, activated, got to the plugin diagnosis and then got an error report

    Can you please resend me the link as something went wrong when I tried to update the plugins.

  • How do I get SENT mail to sync on two Macs

    My 'Sent' mail folder does not sync.  I Have a Mac & MacBook Air both running Mountain Lion.  I have a gmail account setup using imap.   When I send an email on one computer it does not show up in the 'Sent' file of the other computer.  How do I get

  • Event handler error

    I gets event handler error from the following applescript code if I leave the desktop space where "XLD" is running. Is there a way to avoid this error and keep running the applescript? tell application "System Events" set wnd to front window of appli

  • Keeping Score

    Hey all, I've conceptionalized the way to create a training DVD with a "questions and answers" format and multiple choice answers directing the viewer to the "you answer is correct" or the "sorry, but the correct answer is...", but I can't think of a