Count statement for fields greater than 10 characters

Hi,
I am trying to write a query to select results from a database table where the results are only fields greater than 10 characters in length.
e.g.
Table
Employee----
Andrew
Jennifer Smith
Jamal
the query would only show the result Jennifer Smith because this field exceeds 10 characters in length.
Any help is appreciated....

Have you tried coding anything yet for this homework assignment?
HINT: Use the LENGTH() function.

Similar Messages

  • How do you show usernames greater than 8 characters in   /usr/ucb/ps ?

    Help!
    I am trying to write a process kill script, or rather, modify our linux ones for solaris. The problem is a catch-22 :
    a) the string I need to grep for is hidden way up the
    command string hence I cannot use 'ps', I need to
    use /usr/ucb/ps -auxww .
    b) some usernames are greater than 8 characters...
    Now this is fine with ps -U command, as this will
    correctly match a 9-character username. However
    /usr/ucb/ps does not seem to have this option; you
    can provide an extra option to get user info to display
    in the output under a column heading however this
    username is truncated at 8 characers. The
    standard username field in both versions of the
    ps command is truncated at 8 characters.
    how do I grep for my deeply-hidden string and a
    9-digin username ?
    is there any way to do this in a single command?
    I can maybe script this, do a ps -U on the user,
    awk the PID out the results, use /usr/ucb/ps and
    grep on the PID and the user string ... wondered
    if I've missed an option and this can be done by
    a single command rather than a script ?
    thanks!

    Help!
    I am trying to write a process kill script, or rather, modify our linux ones for solaris. The problem is a catch-22 :
    a) the string I need to grep for is hidden way up the
    command string hence I cannot use 'ps', I need to
    use /usr/ucb/ps -auxww .
    b) some usernames are greater than 8 characters...
    Now this is fine with ps -U command, as this will
    correctly match a 9-character username. However
    /usr/ucb/ps does not seem to have this option; you
    can provide an extra option to get user info to display
    in the output under a column heading however this
    username is truncated at 8 characers. The
    standard username field in both versions of the
    ps command is truncated at 8 characters.
    how do I grep for my deeply-hidden string and a
    9-digin username ?
    is there any way to do this in a single command?
    I can maybe script this, do a ps -U on the user,
    awk the PID out the results, use /usr/ucb/ps and
    grep on the PID and the user string ... wondered
    if I've missed an option and this can be done by
    a single command rather than a script ?
    thanks!

  • SAP HR: Cluster Key greater than 40 characters

    Hi All,
    I have a requirement where I need to store data in cluster PCL4 under a new RELID. The key length for this cluster data is coming out to be greater than 40 characters whereas the length of key field SRTFD is 40. Is there any way I can store data in cluster with key greater than 40 characters??
    Thanks for your help in advance.
    Thanks and Regards,
    JP

    Hi,
    I don't think you can do it without modifying the field..
    It may not be adivsable to change it too as all the four clusters PCL1,2,3 & 4 have an identical structure.. and depending on the cluster, the structure of PCLn-SRTFD is defined in a field string xx-KEY, which is defined in an include RPCnxxy0.
    Regards,
    Suresh Datti

  • FileUpload using JAX-WS webservice on weblogic 10.3.5 is taking long time for files greater than 10MB

    I am trying to upload a file using JAX-WS webservice which is deployed on the weblogic 10.3.5 server.Even before the code reaches the Service Endpoint lot of time is being spent at the weblogic layer. for files less than 10MB the performance is good but for files greater than 10 MB it takes around 3 mins to complete the request. I did take thread dumps  and I see the thread servicing the requests is taking lot of time when executing SAX2DOMEx.characters  it consumes around 80 -85 % of time here. Is there anything that I can do to improve the performance here ?
    "[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'" id=37 idx=0x90 tid=16848 prio=5 alive, suspended, native_blocked, daemon
                    at jrockit/vm/Allocator.allocLargeObjectOrArray(JIZ)Ljava/lang/Object;(Native Method)
                    at jrockit/vm/Allocator.allocObjectOrArray(Allocator.java:349)[optimized]
                    at jrockit/vm/StringMaker.toString(StringMaker.java:188)[inlined]
                    at com/sun/org/apache/xerces/internal/dom/CharacterDataImpl.appendData(CharacterDataImpl.java:191)[optimized]
                    at com/sun/xml/bind/marshaller/SAX2DOMEx.characters(SAX2DOMEx.java:218)[inlined]
                    at com/sun/xml/bind/marshaller/SAX2DOMEx.characters(SAX2DOMEx.java:209)[optimized]
                    at com/sun/xml/ws/message/SAX2DOMWriterEx.writeCharacters( .java:108)
                    at com/sun/xml/ws/util/xml/XMLStreamReaderToXMLStreamWriter.handleCharacters(XMLStreamReaderToXMLStreamWriter.java:153)
                    at com/sun/xml/ws/util/xml/XMLStreamReaderToXMLStreamWriter.bridge(XMLStreamReaderToXMLStreamWriter.java:114)
                    at com/sun/xml/ws/message/stream/StreamMessage.writePayloadTo(StreamMessage.java:313)
                    at com/sun/xml/ws/message/stream/StreamMessage.writeEnvelope(StreamMessage.java:343)
                    at com/sun/xml/ws/message/stream/StreamMessage.writeTo(StreamMessage.java:321)
                    at com/sun/xml/ws/message/AbstractMessageImpl.readAsSOAPMessage(AbstractMessageImpl.java:226)
                    at com/sun/xml/ws/handler/SOAPMessageContextImpl.getMessage(SOAPMessageContextImpl.java:87)
                    at weblogic/wsee/jaxws/framework/jaxrpc/SOAPMessageContext.getMessage(SOAPMessageContext.java:252)
                    at weblogic/wsee/security/wssp/handlers/WssHandler.getSecurityContext(WssHandler.java:318)
                    at weblogic/wsee/security/wssp/handlers/WssHandler.preValidate(WssHandler.java:420)
                    at weblogic/wsee/security/wssp/handlers/PreWssServerPolicyHandler.processRequest(PreWssServerPolicyHandler.java:25)
                    at weblogic/wsee/security/wssp/handlers/WssHandler.handleRequest(WssHandler.java:112)
                    at weblogic/wsee/jaxws/framework/jaxrpc/TubeFactory$JAXRPCTube.processRequest(TubeFactory.java:222)
                    at com/sun/xml/ws/api/pipe/Fiber.__doRun(Fiber.java:866)
                    at com/sun/xml/ws/api/pipe/Fiber._doRun(Fiber.java:815)
                    at com/sun/xml/ws/api/pipe/Fiber.doRun(Fiber.java:778)
                    at com/sun/xml/ws/api/pipe/Fiber.runSync(Fiber.java:680)
                    ^-- Holding lock: com/sun/xml/ws/api/pipe/Fiber@0x83736a70[biased lock]
                    at com/sun/xml/ws/server/WSEndpointImpl$2.process(WSEndpointImpl.java:403)
                    at com/sun/xml/ws/transport/http/HttpAdapter$HttpToolkit.handle(HttpAdapter.java:532)
                    at com/sun/xml/ws/transport/http/HttpAdapter.handle(HttpAdapter.java:253)
                    at com/sun/xml/ws/transport/http/servlet/ServletAdapter.handle(ServletAdapter.java:140)
                    at weblogic/wsee/jaxws/WLSServletAdapter.handle(WLSServletAdapter.java:171)
                    at weblogic/wsee/jaxws/HttpServletAdapter$AuthorizedInvoke.run(HttpServletAdapter.java:708)
                    at weblogic/security/acl/internal/AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
                    at weblogic/security/service/SecurityManager.runAs(SecurityManager.java:146)
                    at weblogic/wsee/util/ServerSecurityHelper.authenticatedInvoke(ServerSecurityHelper.java:103)
                    at weblogic/wsee/jaxws/HttpServletAdapter$3.run(HttpServletAdapter.java:311)
                    at weblogic/wsee/jaxws/HttpServletAdapter.post(HttpServletAdapter.java:336)
                    at weblogic/wsee/jaxws/VerboseHttpProcessor.post(VerboseHttpProcessor.java:39)
                    at weblogic/wsee/jaxws/JAXWSServlet.doRequest(JAXWSServlet.java:98)
                    at weblogic/servlet/http/AbstractAsyncServlet.service(AbstractAsyncServlet.java:99)
                    at javax/servlet/http/HttpServlet.service(HttpServlet.java:820)
                    at weblogic/servlet/internal/StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
                    at weblogic/servlet/internal/StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
                    at weblogic/servlet/internal/ServletStubImpl.execute(ServletStubImpl.java:300)
                    at weblogic/servlet/internal/ServletStubImpl.execute(ServletStubImpl.java:183)
                    at weblogic/servlet/internal/WebAppServletContext$ServletInvocationAction.wrapRun(Lweblogic/servlet/internal/ServletStubImpl;Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)Ljava/lang/Object;(Unknown Source)
                    at weblogic/servlet/internal/WebAppServletContext$ServletInvocationAction.run()Ljava/lang/Object;(Unknown Source)
                    at weblogic/security/acl/internal/AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
                    at weblogic/security/service/SecurityManager.runAs(SecurityManager.java:120)
                    at weblogic/servlet/internal/WebAppServletContext.securedExecute(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;Z)V(Unknown Source)
                    at weblogic/servlet/internal/WebAppServletContext.execute(Lweblogic/servlet/internal/ServletRequestImpl;Lweblogic/servlet/internal/ServletResponseImpl;)V(Unknown Source)
                    at weblogic/servlet/internal/ServletRequestImpl.run()V(Unknown Source)
                    at weblogic/work/ExecuteThread.execute(ExecuteThread.java:209)
                    at weblogic/work/ExecuteThread.run(ExecuteThread.java:178)
                    at jrockit/vm/RNI.c2java(JJJJJ)V(Native Method)

    I am trying to upload a file using JAX-WS webservice which is deployed on the weblogic 10.3.5 server.Even before the code reaches the Service Endpoint lot of time is being spent at the weblogic layer. for files less than 10MB the performance is good but for files greater than 10 MB it takes around 3 mins to complete the request. I did take thread dumps  and I see the thread servicing the requests is taking lot of time when executing SAX2DOMEx.characters  it consumes around 80 -85 % of time here. Is there anything that I can do to improve the performance here ?
    "[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'" id=37 idx=0x90 tid=16848 prio=5 alive, suspended, native_blocked, daemon
                    at jrockit/vm/Allocator.allocLargeObjectOrArray(JIZ)Ljava/lang/Object;(Native Method)
                    at jrockit/vm/Allocator.allocObjectOrArray(Allocator.java:349)[optimized]
                    at jrockit/vm/StringMaker.toString(StringMaker.java:188)[inlined]
                    at com/sun/org/apache/xerces/internal/dom/CharacterDataImpl.appendData(CharacterDataImpl.java:191)[optimized]
                    at com/sun/xml/bind/marshaller/SAX2DOMEx.characters(SAX2DOMEx.java:218)[inlined]
                    at com/sun/xml/bind/marshaller/SAX2DOMEx.characters(SAX2DOMEx.java:209)[optimized]
                    at com/sun/xml/ws/message/SAX2DOMWriterEx.writeCharacters( .java:108)
                    at com/sun/xml/ws/util/xml/XMLStreamReaderToXMLStreamWriter.handleCharacters(XMLStreamReaderToXMLStreamWriter.java:153)
                    at com/sun/xml/ws/util/xml/XMLStreamReaderToXMLStreamWriter.bridge(XMLStreamReaderToXMLStreamWriter.java:114)
                    at com/sun/xml/ws/message/stream/StreamMessage.writePayloadTo(StreamMessage.java:313)
                    at com/sun/xml/ws/message/stream/StreamMessage.writeEnvelope(StreamMessage.java:343)
                    at com/sun/xml/ws/message/stream/StreamMessage.writeTo(StreamMessage.java:321)
                    at com/sun/xml/ws/message/AbstractMessageImpl.readAsSOAPMessage(AbstractMessageImpl.java:226)
                    at com/sun/xml/ws/handler/SOAPMessageContextImpl.getMessage(SOAPMessageContextImpl.java:87)
                    at weblogic/wsee/jaxws/framework/jaxrpc/SOAPMessageContext.getMessage(SOAPMessageContext.java:252)
                    at weblogic/wsee/security/wssp/handlers/WssHandler.getSecurityContext(WssHandler.java:318)
                    at weblogic/wsee/security/wssp/handlers/WssHandler.preValidate(WssHandler.java:420)
                    at weblogic/wsee/security/wssp/handlers/PreWssServerPolicyHandler.processRequest(PreWssServerPolicyHandler.java:25)
                    at weblogic/wsee/security/wssp/handlers/WssHandler.handleRequest(WssHandler.java:112)
                    at weblogic/wsee/jaxws/framework/jaxrpc/TubeFactory$JAXRPCTube.processRequest(TubeFactory.java:222)
                    at com/sun/xml/ws/api/pipe/Fiber.__doRun(Fiber.java:866)
                    at com/sun/xml/ws/api/pipe/Fiber._doRun(Fiber.java:815)
                    at com/sun/xml/ws/api/pipe/Fiber.doRun(Fiber.java:778)
                    at com/sun/xml/ws/api/pipe/Fiber.runSync(Fiber.java:680)
                    ^-- Holding lock: com/sun/xml/ws/api/pipe/Fiber@0x83736a70[biased lock]
                    at com/sun/xml/ws/server/WSEndpointImpl$2.process(WSEndpointImpl.java:403)
                    at com/sun/xml/ws/transport/http/HttpAdapter$HttpToolkit.handle(HttpAdapter.java:532)
                    at com/sun/xml/ws/transport/http/HttpAdapter.handle(HttpAdapter.java:253)
                    at com/sun/xml/ws/transport/http/servlet/ServletAdapter.handle(ServletAdapter.java:140)
                    at weblogic/wsee/jaxws/WLSServletAdapter.handle(WLSServletAdapter.java:171)
                    at weblogic/wsee/jaxws/HttpServletAdapter$AuthorizedInvoke.run(HttpServletAdapter.java:708)
                    at weblogic/security/acl/internal/AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
                    at weblogic/security/service/SecurityManager.runAs(SecurityManager.java:146)
                    at weblogic/wsee/util/ServerSecurityHelper.authenticatedInvoke(ServerSecurityHelper.java:103)
                    at weblogic/wsee/jaxws/HttpServletAdapter$3.run(HttpServletAdapter.java:311)
                    at weblogic/wsee/jaxws/HttpServletAdapter.post(HttpServletAdapter.java:336)
                    at weblogic/wsee/jaxws/VerboseHttpProcessor.post(VerboseHttpProcessor.java:39)
                    at weblogic/wsee/jaxws/JAXWSServlet.doRequest(JAXWSServlet.java:98)
                    at weblogic/servlet/http/AbstractAsyncServlet.service(AbstractAsyncServlet.java:99)
                    at javax/servlet/http/HttpServlet.service(HttpServlet.java:820)
                    at weblogic/servlet/internal/StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
                    at weblogic/servlet/internal/StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
                    at weblogic/servlet/internal/ServletStubImpl.execute(ServletStubImpl.java:300)
                    at weblogic/servlet/internal/ServletStubImpl.execute(ServletStubImpl.java:183)
                    at weblogic/servlet/internal/WebAppServletContext$ServletInvocationAction.wrapRun(Lweblogic/servlet/internal/ServletStubImpl;Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)Ljava/lang/Object;(Unknown Source)
                    at weblogic/servlet/internal/WebAppServletContext$ServletInvocationAction.run()Ljava/lang/Object;(Unknown Source)
                    at weblogic/security/acl/internal/AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
                    at weblogic/security/service/SecurityManager.runAs(SecurityManager.java:120)
                    at weblogic/servlet/internal/WebAppServletContext.securedExecute(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;Z)V(Unknown Source)
                    at weblogic/servlet/internal/WebAppServletContext.execute(Lweblogic/servlet/internal/ServletRequestImpl;Lweblogic/servlet/internal/ServletResponseImpl;)V(Unknown Source)
                    at weblogic/servlet/internal/ServletRequestImpl.run()V(Unknown Source)
                    at weblogic/work/ExecuteThread.execute(ExecuteThread.java:209)
                    at weblogic/work/ExecuteThread.run(ExecuteThread.java:178)
                    at jrockit/vm/RNI.c2java(JJJJJ)V(Native Method)

  • Greater than 4000 characters in OBIEE 11g

    Dear all,
    I have a table, just one column.
    In Analysis, I designed a table with this column content the data as text greater than 4000 characters.
    Can I show all of them in OBIEE ?
    Can I change the column datatype?
    Anyone help me to resolve this issue.
    Thanks and Regards,
    David,...

    I guess you will have problem displying them in OBIEE since (The data type would be long);
    You can not use long datatype column in below cases;
    1. A value of datatype LONG was used in a function or in a DISTINCT, WHERE, CONNECT BY, GROUP BY, or ORDER BY clause. A LONG value can only be used in a SELECT clause
    2. It can not be used in expressions or conditions
    3. It can not be used in select lists of subqueries or queries combined by set operators
    Make sure your generated query is not doing the above things. First thing Distinct will come in the obiee queries by default. Try to avoid distinct,group by,order by in your reports. Direct database request for the report can help you in this case.
    Mark Correct if it helps.
    Regards,
    Kashi

  • Trying To Insert XML String Greater Than 4000 Characters in PHP Fails

    Dear Sir,
    Subject:-Trying To Insert XML String Greater Than 4000 Characters in PHP Fails ORA-01704.
    In an attempt to design web app in PHP and inserting data into "CLOB" field of "articles" table associated with it, returning ORA-01704: string literal too long error.
    Platform: OEL5
    Database 11g(11.0.7.0)
    php : 5.2
    I refer to oracle document ID: [ID 336888.1] it is asking to contact support.
    Please help us in this regards.
    Many Thanks,
    mkyazdani

    Hi,
    I appreciate you, yes it is similar i have referred that manual and also inform to our php developer about the changes we need to make in our php script.
    Regards,
    mkyazdani

  • Unit Of Measurement Greater Than 3 Characters

    How can I create Unit Of Measurement greater than 3 Characters.

    the 2 characters for UOM are for identification & you can maintain the Description..
    and based on the Description you can choose the UOM..
    Did you know the impact of incrteasing the UOM from 2 character to 3 Character..
    the UOM has to be stored in many tables, and think of the Space in tables for Transactional data..

  • Maintenace view for fld more than 500 characters

    Ho do i create a maintenance view for fld more than 500 characters? i  need a maintenance view to maintain URL which is sometimes more than 500 chars.

    The way SAP solves this for webservices is via a hash.
    Once you have executed the service, the URL populates a mapping table and generates a unique hash value for it.
    Via this hash, you can assign it to authorization fields and use it in your coding where the fields have limitations.
    As a consequence this causes some confusion if you dont use F4, but it does work.
    Cheers,
    Julius

  • Any way to create tablespace with name greater than 30 characters ?

    Is there any way to create tablespace greater than 30 characters on solaris 10 and Oracle 10g. Any way ? because i have no other option.

    desc dba_tablespaces
    So clearly the answer is NO.
    Tablespace names are invisible and irrelevant. Why the question?

  • ORA-01460 at REPLACE for strings longer than 4000 characters

    the following code works fine for vVar_Value less than 4001 characters but raises an ORA-01460 for strings equal to or larger than 4001 characters in my environments.
    declare
    vVar_Value VARCHAR2(32000) := '';
    begin
    for i in 1..4000 loop
    vVar_Value := vVar_Value||'X';
    end loop;
    dbms_output.Put_Line('length(vVar_Value): '||length(vVar_Value));
    SELECT REPLACE( vVar_Value, 'NO_MIDDLE_NAME', '') INTO vVar_Value FROM DUAL;
    exception
    when others then
    raise;
    end;
    any advice would be most apprectiated.
    thanks in advance.

    Why the heck are you using select from dual?
    Just use vVar_Value := REPLACE( vVar_Value, 'NO_MIDDLE_NAME', ''); and everything will be OK
    in SQL limit for varchar2 is 4K, only in PL/SQL you can use 32K
    Gints Plivna
    http://www.gplivna.eu

  • How do I search for files greater than 500M in size within a directory?

    I would like to know how to recursively search through a directory and it's subdirectories for files greater than 500M. What is the command for this?
    Thanks!

    Oh my, it's too early...
    You want >500M files, here you go...
    find /path/to/dir -type f -size +524288000c
    **BLUSH**
    To add something useful here, in ksh you can type
    find /path/to/dir -type f -size +$((500*1024*1024))c

  • Table field more than 255 characters long

    Dear Experts,
    I want to create a table field more than 255 chars long
    It will be possible through LCHR or LRAW but incase it field contists of data less 255 chars it will result in loss of data.
    Plz help

    Hi,
    if you want to create a table field more than 255 chars
    then possiable with lchr But you got one warning  out put length accepted 255 characters only  .
    for example .
    if you created one field z_name in z table with LCHR AND LENGHT MORE THAN 255 CHARS THEN
    U GET ONE WARNING
    I.E
    Output length (300) larger than maximum output length (255) in screens
    Message no. DO269.
    Regards ,
    sankar
    Edited by: bhavanisankar.solasu on Dec 29, 2010 8:32 AM

  • How to declare a custom field more than 255 characters?

    Dear Freinds,
                  I have custom table where one character field name i want more than 255 characters .....the size of the field  i require is  800 .Could any one one let me know how i can increase the size to 800 or is there any way we can declare to size 800 ....as
    normally i know is we can declare only 255 character in size, but i heard there is another way around we can declare . Could any one please help me out.
    regards
    madhuri

    Hi Ruby,
                i have tried changing at dataelement level only..byusingthe standrd ie char 2000  , and i have tried other way by creating a custom domain and for the data type  i have used char and given size as 2000. Wheniam activating it is aying i can use the size range from 0 to 255 characters only......i have tried by declaring as string the data element ...it has taken as zero size as in the string we can use as many characters i can , but when iam trying to  table generator ...it saying i canot declare my field as String .
    please help what i can do to solve this issue.
    thanks
    regards
    madhuri

  • Trying to do date field greater than a specified date in condition editor

    Hi All,
    I am trying to build the XML predicate in the expression editor to check that the posting date sent is greater than a specified date to determine the reciever. I can get it to validate posting date is = to specified date, but when I change the = to > it fails to properly determine the receiver, when I send a valid document.
    Below is the expression build
    (/p1:ServiceAcknowledgementConfirmation/ServiceAcknowledgement[CreationDateTime>'2007-02-03'] EX )
    has anyone done this type of check. I have it set as a date type for the expression.
    Regards,
    Chris

    Hey all,
    I tried >= 2007-02-04 and sent in that exact date. It failed. I removed > so that it is just = 2007-02-04 and it was successful. So, is >= an allowable operator?
    Thanks,
    Chris

  • Greater than 255 characters not allowed - CSV attachment

    While sending the data as a CSV attachemnent, its not allowing more than 255 characters per line.
    I want to send more than 255 characters in a line  (in the CSV attacment. how to do this ?
    The function module which i used is
    SO_new_document_att_send_appi1.
    or else suggest me a function module used to send csv attachement more than 255 characters in a line
    Thanks

    Check below code and adjust your code for compress/decompress...
      DATA : l_email_title TYPE sood1-objdes.
      DATA : l_file_name TYPE soobjchgi1-obj_descr.
      DATA : lit_email_receiver TYPE zphr1_email_tab.
      DATA : lit_email_msg LIKE soli.
      DATA : lit_attachment LIKE soli.
      DATA: l_lines LIKE sy-tabix,
             l_msg_lines LIKE sy-tabix.
    Creation of the document to be sent
      CLEAR:  l_email_title,
              l_file_name,
              lit_email_receiver,
              lit_email_msg,
              lit_attachment,
              gf_doc_chng,
              it_objtxt,
              it_objbody,
              it_objpack,
              it_objhead,
              it_reclist.
      REFRESH: it_objtxt,
               it_objbody,
               it_objpack,
               it_objhead,
               it_reclist.
    *Passing mail subject
      gf_doc_chng-obj_name =  text-035.
      gf_doc_chng-obj_descr = text-036.
    Fill the document data.
      gf_doc_chng-doc_size = 1.
    Populate the subject/generic message attributes
      gf_doc_chng-obj_langu = sy-langu.
      gf_doc_chng-obj_name  = c_saprpt.
      gf_doc_chng-sensitivty = c_value_f.
    Fill the document data and get size of attachment
    DESCRIBE TABLE it_output_soli LINES l_lines.
      gf_doc_chng-doc_size =
          ( l_lines - 1 ) * 255 + STRLEN( it_output_soli ).
      gf_doc_chng-obj_langu  = sy-langu.
      gf_doc_chng-obj_name   = c_saprpt.
      gf_doc_chng-sensitivty = c_value_f.
    *Passing text for mail body
      it_objbody = space.
      APPEND it_objbody.
      CLEAR  it_objbody.
      it_objbody =  c_hi.
      APPEND it_objbody.
      CLEAR  it_objbody.
      it_objbody = space.
      APPEND it_objbody.
      CLEAR  it_objbody.
      it_objbody = text-036.
      APPEND it_objbody.
      CLEAR  it_objbody.
      it_objbody = space.
      APPEND it_objbody.
      CLEAR  it_objbody.
      it_objbody = c_thanks.
      APPEND it_objbody.
      CLEAR  it_objbody.
      it_objbody = space.
      APPEND it_objbody.
      CLEAR  it_objbody.
      DESCRIBE TABLE it_objbody LINES l_msg_lines.
      READ TABLE it_objbody INDEX  l_msg_lines.
      gf_doc_chng-doc_size = ( l_msg_lines - 1 ) * 255 + STRLEN( it_objbody
    Creation of the entry for the compressed document
      it_objpack-transf_bin = ' '.
      it_objpack-head_start = 1.
      it_objpack-head_num = 0.
      it_objpack-body_start = 1.
      it_objpack-body_num = l_msg_lines.
      it_objpack-doc_type = c_doc_type.
      APPEND it_objpack.
      CLEAR it_objpack.
      LOOP AT it_output_soli.
        it_objtxt = it_output_soli.
        APPEND it_objtxt.
        CLEAR it_objtxt.
      ENDLOOP.
    Passing the heading of the report
      it_objhead = text-037.
      APPEND it_objhead.
      CLEAR it_objhead.
    *To compress the table to size of 255 characters
      CALL FUNCTION 'TABLE_COMPRESS'
        TABLES
          in  = it_objtxt
          out = it_comprsd.
      IF sy-subrc <> 0.
      ENDIF.
    To decompress the compressed table
      CALL FUNCTION 'TABLE_DECOMPRESS'
        TABLES
          in  = it_comprsd
          out = it_decomprsd.
      IF sy-subrc <> 0.
      ENDIF.
    Creation of the document attachment
      CLEAR : l_msg_lines,l_lines.
      DESCRIBE TABLE it_decomprsd LINES l_lines.
      IF l_lines <> 0.    "Don't create attachment if no data is present
    Creation of the entry for the compressed attachment
        it_objpack-transf_bin = c_value_x.
        it_objpack-head_start = 1.
        it_objpack-head_num = 1.
        it_objpack-body_start = 1.
        it_objpack-body_num = l_lines.
        it_objpack-doc_type = c_excel.
        it_objpack-obj_name = sy-repid.
        it_objpack-obj_descr = text-036.
        it_objpack-doc_size =  l_lines * 255.
        APPEND it_objpack.
        CLEAR it_objpack.
      ENDIF.
      LOOP AT s_email.
        it_reclist-receiver = s_email-low.
        it_reclist-rec_type = c_rec_type.
        it_reclist-express  = c_value_x.
        APPEND it_reclist.
      ENDLOOP.
    *Passing maild of the user(who runs the report)
    with extension @eur.appliedbiosystems.com
      CLEAR it_reclist.
      CONCATENATE sy-uname text-031 INTO it_reclist-receiver.
      it_reclist-rec_type = c_rec_type.
      it_reclist-express  = c_value_x.
      APPEND it_reclist.
    with extension @applera.com
      CLEAR it_reclist.
      CONCATENATE sy-uname text-032 INTO it_reclist-receiver.
      it_reclist-rec_type = c_rec_type.
      it_reclist-express  = c_value_x.
      APPEND it_reclist.
    *Sending mail with attachment
      CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
        EXPORTING
          document_data              = gf_doc_chng
          put_in_outbox              = c_val
          commit_work                = c_val
        TABLES
          packing_list               = it_objpack
          contents_bin               = it_decomprsd
          contents_txt               = it_objbody
          receivers                  = it_reclist
        EXCEPTIONS
          too_many_receivers         = 1
          document_not_sent          = 2
          document_type_not_exist    = 3
          operation_no_authorization = 4
          parameter_error            = 5
          x_error                    = 6
          enqueue_error              = 7
          OTHERS                     = 8.
      IF sy-subrc IS NOT INITIAL.
        WRITE: / text-034.
      ELSE.
        WRITE: / text-033.
      ENDIF.

Maybe you are looking for

  • "iWorks" for iPad user manuals in PDF format

    I would like to download all the iPad version of iWorks for the iPad in The PDF format so I may be able to read them in iBooks. I have not been able to find the manuals in PDF. Am I missing something? Are the manuals only in HTML? Thank you in advanc

  • Extracting values for characteristic on release strategy of Preq

    hello we have Preq release strategy based on classification and the release is based on amount. in the class, one of the characteristics contains the amount above which the strategy is being triggered: how can I extract all the values for all the str

  • Systemd-fsck taking forever. (SOLVED)

    Hello, Ive been an arch user for a couple of years now, no clue as to why I only registered on the board now On an old machine ive setup an arch installation with 3 disks. One of them is used for / and the /home At the fsck part of the boot it waits

  • How to make a bapi as test run if there is no testrun parameter?

    Hi, I am using BAPI fm 'BAPI_BCA_INDCOND_CHANGE' to update the financial conditions of a loan in banking. This fm doesn't have testrun parameter. I am trying to make it testrun (simulation) but not suceeded. I stopped teh execution of the BAPI_COMMIT

  • Alter database open resetlogs

    Hi, when I try to duplicate my database by RMAN I have : RMAN-06053: unable to perform media recovery because of missing log RMAN-06025: no backup of log thread 1 seq 1452 scn 252730 found to restore I connect to duplicate database in sqlplus , it is