Problems adding an attachment file table in a JSP

Hi,
I'm working on CRM proyect and I want to add an attachment file table in a JSP, infoForm.jsp, so i copied the table
from createComplaintAttachment.jsp and changed the JSPs releted with it, but when I just loggin and try to add
a file in infoForm.jsp I get an Error Page and the following...
#1.5#00156004D798005E0000009F000072D100043A9AAAE45CBD#1190335873308#com.sap.icss.impl.backend.crm.servicerequest.AttachmentBEImpl#sap.com/home~icss_sbx#com.sap.icss.impl.backend.crm.servicerequest.AttachmentBEImpl#J2EE_GUEST#2##mvicrd_CRD_209672450#Guest#c069617067dc11dcbc1a00156004d798#SAPEngine_Application_Thread[impl:3]_32##0#0#Error#1#/Applications/Common/Infrastructure#Java###An error occurred in method:
#2#add(attachment)#com.sap.icss.util.IcssException: Cannot add attachment
     at com.sap.icss.impl.backend.crm.servicerequest.AttachmentBEImpl.add(AttachmentBEImpl.java:144)
     at com.sap.icss.impl.businessobject.servicerequest.AttachmentBOImpl.add(AttachmentBOImpl.java:146)
     at com.sap.icss.ctrl.action.servicerequest.AddRequestAttachmentAction.doIcssPerform(AddRequestAttachmentAction.java:175)
     at com.sap.icss.ctrl.action.IcssBaseAction.execute(IcssBaseAction.java:325)
     at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
     at com.sap.isa.core.RequestProcessor.processActionPerform(RequestProcessor.java:674)
     at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
     at com.sap.isa.core.RequestProcessor.process(RequestProcessor.java:391)
     at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
     at com.sap.isa.core.ActionServlet.process(ActionServlet.java:243)
     at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
     at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
     at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
     at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
     at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
     at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
     at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
     at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
     at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
     at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
     at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
     at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
     at java.security.AccessController.doPrivileged(Native Method)
     at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
     at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
#1.5#00156004D798005E000000A0000072D100043A9AAAE46208#1190335873310#com.sap.icss.ctrl.action.servicerequest.AddRequestAttachmentAction#sap.com/home~icss_sbx#com.sap.icss.ctrl.action.servicerequest.AddRequestAttachmentAction#J2EE_GUEST#2##mvicrd_CRD_209672450#Guest#c069617067dc11dcbc1a00156004d798#SAPEngine_Application_Thread[impl:3]_32##0#0#Error##Plain###The following error occured:  com.sap.icss.util.IcssException: AttachmentBOImpl:add - Error in getBackend
     at com.sap.icss.impl.businessobject.servicerequest.AttachmentBOImpl.add(AttachmentBOImpl.java:157)
     at com.sap.icss.ctrl.action.servicerequest.AddRequestAttachmentAction.doIcssPerform(AddRequestAttachmentAction.java:175)
     at com.sap.icss.ctrl.action.IcssBaseAction.execute(IcssBaseAction.java:325)
     at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
     at com.sap.isa.core.RequestProcessor.processActionPerform(RequestProcessor.java:674)
     at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
     at com.sap.isa.core.RequestProcessor.process(RequestProcessor.java:391)
     at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
     at com.sap.isa.core.ActionServlet.process(ActionServlet.java:243)
     at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
     at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
     at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
     at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
     at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
     at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
     at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
     at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
     at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
     at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
     at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
     at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
     at java.security.AccessController.doPrivileged(Native Method)
     at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
     at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
the strange thing is that i don't get that error if I get into the complaintCreateHeader.jsp (complaint) first, and my
application works well if I do so. ¬¬
I think i'm missing an attribute on the request but i don't know wich one.
Thanks a lot for any help

Thanks Prashant,
Level 1 of the problem is solved.
Now I want When I click on the workset iview link,
It should open another workset iview in which the iviews are displayed as links.
Page 1
  (Workset Iview1)Clickable                                                    Workset Iview2 Clickable
When workset iview1 is clicked, it should go to a page
Link 1(an iview) Link 2(iview2) Link 3(iview3) and so on
how can I achieve this?

Similar Messages

  • Adding a fragment file (*.jspf) to a *.jsp file

    Adding a fragment file (*.jspf) to a *.jsp file
    What I did:
    1. Mkdir Web Pages\pages\common
    2. Create a *.jspf in directory
    3. Mkdir Web Pages\pages\common
    4. Create a *.jsp in directory
    5. Select page fragment
    Outcome:
    My *.jspf file is not shown in the combo list box of the "Select Page Fragment" dialig box, unless I create the *.jspf in the Web Pages directory.
    Question:
    Why?

    Since you're talking about "mkdir" etc. it sounds like you're trying to do this outside of the IDE. If so, you should note that a fragment is NOT just a .jspf file! All web forms in Creator have two files: a markup file (.jsp or .jspf) and a backing bean (.java). You must create both, by the same name, in the correct location, for the form to be considered a valid fragment. It's best to do this through the IDE.
    In case you did use the IDE and it's still not working, perhaps there's an issue with creating page fragments in subfolders. I know we had some bugs with creating regular forms in subfolders and most of those bugs were fixed but perhaps there are some additional issues for fragments.
    -- Tor

  • Problem in uploading attachment files through automation scripts using Oracle Application Testing Suite(OATS)

    I am using OATS tool for writing automation scripts to test a web-based application . But I am facing problem when the requirement is to upload any file from the system to that web application .
    Actually the behavior of the script or I guess of OATS is inconsistent as the attachment file is getting upload sometime and
    fails to do so at the other time .
    I have observed a strange case also ,i.e whenever i am executing the scripts while sharing my system screen on webex meeting
    then the attachment upload results in failure . What can be the proper solution for doing file upload using automation script ??

    Can you please check whether the sync has been taken care before performing the upload operation. If the sync is taken care then the upload should work always

  • How to send attachment(file) in javamail via JSP ?

    Dear Friends,
    Please guide me for :
    (1) my e-mail client is using JSP. So, hoW to send file-attachments via jsp ?
    Please specify example for attaching file(s) to a message object in JSP ( and only in JSP ).
    I have used HTML <input type="file" .... > control , but don't know how to bring that file to the jsp file and then attach it to the message object.
    Thank u.

    I wouldn't recommend using JSP to do that. I would use a servlet instead. Then you are just writing Java code, and to answer your two questions you need to learn about JavaMail (1) and get some already-written classes to do file uploads such as this one: http://www.servlets.com/cos/index.html (2).

  • Problem adding more than 1 table from a database

    I am running Crystal Reports 2008 on windows server 2008 and connecting to an ODBC database using IBM Client access driver.  When I create a new report and only add one table from the database, everything works fine.  If I try to go add a second table to the report, then I get an error - Crystal Reports has stopped working - there is no other useful information.  I have also tried creating a new report and adding 2 tables at the same time, it also blows up before I even get to the linking screen.
    I have also tried opening a report that was created in Crystal 11 that has 2 or more tables in it.  The report will open and run successfully in Crystal 2008.

    Hi Gwyn,
    Moved this post to the Database Connectivity Forum.
    Have you installed any CR patches? If not please do so. Also you can find our DataDirect ODBC drivers from this link also:
    http://service.sap.com/sap/bc/bsp/spn/bobj_download/main.htm
    Select Crystal Report, 2008 and you'll find Service Pack 2 and the Data Direct ODBC drivers. Try both and then reply if you have still have a problem or if it now works.
    Thank you
    Don

  • Problems adding columns in a table

    Hi,
    I defined a table. Now I need to add new columns. In OWB I set them in their correct order but when I deploy the table with upgrade, in the database, columns appear at the end of the table.
    Does anyone know this problem, how can i resolve this?
    Thanks
    Beatriz

    You mean ordered in the table as shown in a mapping or table editor window? This ordering is only visual and will not impact meta-data definition.
    If it is really important the best solution is to:
    - replace the table with new/altered columns by script in SQLplus/Toad
    - do import of table in OWB (mention the 'Advanced Reconciliation Options' uncheck the 'Preserve...' boxes)
    - reconcile inbound in a mapping where the table is used. Lines to columns will stay if the column-name didn't change.
    Anybody know this issue is solved in OWB 10g R2?

  • Problems adding metadata to file

    Hello,
    I've recently stopped automatically writing metadata to file, and now do it manually after I have edited a folder of
    photos by command-s or clicking on the down arrows which indicate the metadata hasn't been written yet
    But I have two problems:
    1) When I select a few photos, either by shift-click or command-A, then  do a command-s or click the
    arrow to save metadata, it only saves it to the first photo (I thought I could save more than one photo at a time?)
    2) After I save metadats to file, and the arrow goes away, and I exit the folder I've been working on,
    if I go back to the folder the arrow(s) often come back, even though I've done nothing more (no more
    editing/keywording etc). In fact the arrows are back as soon as I open the folders?
    I then save metadats to file again, and same thing happens - it's driving me crazy. Any ideas
    Many thanks, Roy

    Thanks, that seems to have worked (fingers crossed). It seems to me that the file is writing metadata back to the
    catalogue though, where it came from? This confuses me.
    I have also seen something on an Adobe link (I forgot to mention I convert my files to DNG in Lightroom) that states:
    'If you're working with a DNG file, choose metadate>update DNG previews & metadata to save metadata changes to the file and also generate a preview based on the current raw processing settings'
    I've never seen this before, and maybe it's what I should do each time instead of command-s or metadata>read metadata from file? I've got a couple of LR5 books, including the one by Martin Evening, but pretty sure this isn't mentioned, or I've missed it. Can anyone clear this up as I'm worried I might be doing something wrong here?
    Roy

  • Problems adding an .mpeg file to IDVD

    I recently combined 2 mpeg files into one and would like to add this one .mpeg file to my IDVD. Each time I do, I get an error stating: Unsupported File Type: broken reference in...
    The file works fine for viewing in quicktime. Is there a way for IDVD to reconginze this .mpeg file as one and not 2 individual files?
    Thanks

    I had the same problem at one time. I re-encoded the mpeg files using iSquint to an mp4 format. My settings were, "Optimize for TV, Quality=Go Nuts, and H.264 Encoding."
    I've had no problems since. Hope this works for you.
    Good luck!

  • Problem adding large video files to library

    When I try to add large video files to my library. It doesn't work. No error message or anything. It just doesn't happen. The file I'm trying right now is 2.65 GB. I've had no problem with video files around 400 MB.

    What format is the video in? iTunes is unfortunately silent when you try to add a video or song that Quicktime can't decode.

  • How to send an attachment(file) to server using JSP

    Hello,
    I'm developing a small web-based mail system using JSP and
    JavaMail API 1.2. I need to make a compose form which allows to
    attach some file. I'm using the following HTML code:
    <FORM ENCTYPE="multipart/form-data">
    <INPUT TYPE="file" name="somename">
    </FORM>
    Would you be so kind pointing me which Java code I need to use
    to implement it.
    Thanks in advance and sorry for my English

    see the api for this:
    http://www.orionserver.com/docs/api/com/evermind/io/FilePostParse
    r.html
    you can also use this stuff:
    http://www.orionsupport.com/articles/fileupload.html
    I have found that Nick Newman's stuff is much better, though,
    since it doesn't change with the orion api (the orion api 1.5.3
    has changed, so anything you did with the above methods won't
    work with 1.5.3 ;().
    http://www.orionsupport.com/articles/downloads/UploadServlet.zip
    regards,
    the elephantwalker
    www.elephantwalker.com

  • Problem with showing doc file in textarea of Jsp page

    try{
    int i;
    out.println("<TEXTAREA cols=90 rows=30 readonly>");//initiate text area
    String filename="C:\\AdminJudis\\judgement.doc";
    FileInputStream f=new FileInputStream(filename);
    //here you write the contents of the file
    while((i = f.read()) != -1){
    out.write((char)i);
    }catch(Exception e){
    System.out.println(e);
    out.println("</TEXTAREA>");
    I am using this code but it show some garbadge values in it

    KalyanSundar
    you have to give absolute path to file object ( physical full path)
    you can get this by
    getServletContext().getRealPath("testing/photos");
    so you will get something like
    d:\tomcat\webapps\testing\photos
    and pass this address to the file object
    i.e. File photos = new File(getServletContext().getRealPath("testing/photos"));

  • Can not get application bc4j for adding context root file

    Hi all,
    Can someone help me on this,
    i got this this error while trying to run my web based reporting:
    06/08/21 18:01:04 [SEVERE]: Error instantiating application at file:/C:/Documents and Settings/Bryan1/Desktop/Pattern Maching JSP 2006Feb/jdevstudio1013/jdev/system/oracle.j2ee.10.1.3.34.12/embedded-oc4j/applications/bc4j.ear: Unable to get ApplicationConfig for bc4j : Error creating deployment directory: IO Error: The system cannot find the path specified.
    06/08/21 18:01:04 [SEVERE]: Error instantiating application at file:/C:/Documents and Settings/Bryan1/Desktop/Pattern Maching JSP May2006/jdevstudio1013/jdev/system/oracle.j2ee.10.1.3.34.12/embedded-oc4j/applications/ITS.ear: Unable to get ApplicationConfig for ITS : Error creating deployment directory: IO Error: The system cannot find the path specified.
    2006-08-21 18:01:07.265 WARNING J2EE_OJR0007 Can not get application bc4j for adding context root file:/C:/Pattern Maching JSP May2006/jdevstudio1013/jdev/system/oracle.j2ee.10.1.3.34.12/embedded-oc4j/config/default-web-site.xml
    Ready message received from Oc4jNotifier.
    Embedded OC4J startup time: 5282 ms.
    Target URL -- http://192.168.2.55:8988/Trans-Reporting-context-root/login.jsp
    06/08/21 18:01:07 Oracle Containers for J2EE 10g (10.1.3.0.0) - Developer Preview initializedIF i run http://192.168.2.55:8080/Reporting/login.jsp from web browser then is ok, but cannot straight run from JDeveloper? How to set the path?
    rgds,
    bryan

    Dear Frank,
    Thanks for ur reply but i still failed to access to my login.jsp
    I already select RUN from menu then clean <XXXX.jpr>, then rebuild the project and Run the project but still have the same problem.
    rgds,
    bryan

  • Can't open my attached files on my yahoo email account unless clearing all history on Firefox - this is maddening!! Help!

    Everytime I want to open an attached file on my yahoo email, I now have to clear all the history including: Browsing and download history, Form and search history, cookies, and cache before I can open attachments on my yahoo mail and then I have to re-enter all my passwords, etc.
    This was previously not a problem opening any attached files like PDF files or document files.
    Please help!

    Hello,
    '''Try Firefox Safe Mode''' to see if the problem goes away. Safe Mode is a troubleshooting mode, which disables most add-ons.
    ''(If you're not using it, switch to the Default theme.)''
    * You can open Firefox 4.0+ in Safe Mode by holding the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * Or open the Help menu and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshooting extensions and themes]] article for that.
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    ''When you figure out what's causing your issues, please let us know. It might help other users who have the same problem.''
    Thank you.

  • Problem with attaching file to Sales Order

    Hello,
    In my company we have the possibility to attach files to sales orders, e.g. pdf files with the printing details.
    These files are added by the GUI user, this works fine.
    Now we have an extra order creation stream in which a pdf file has to be added to the SO without user interaction.
    I found a helpful link ( /people/rammanohar.tiwari/blog/2005/10/10/generic-object-services-gos--in-background )
    This program creates URL links with no problem, but the file generation is not implemented yet.
    I tried to add the file functions to his sample report but still have one problem. The file is uploaded, but not reported as a PDF file in sap. If I select the created attachment SAP allows only the saving of the attachment. After saving the created file is a good PDF file, it opens with PDF-viewers.
    Why does SAP not know this is a PDF file and report it as such (and open the pdf viewer when selected).
    Thanks, Frank.
    source-code:
    REPORT  zzfb_brc                                .
    * Report  Z_RMTIWARI_ATTACH_DOC_TO_BO
    * Written By : Ram Manohar Tiwari
    * Function   : We need to maintain links between Business Object and
    *              the attachment.Attachment document is basiclally a
    *              business object of type 'MESSAGE'.In order to maintain
    *              links, first the attachment will be crated as Business
    *              Object of type 'MESSAGE' using Message.Create method.
    *              Need to check if we can also use FM
    *              'SO_DOC_INSERT_WITH_ORIG_API1' or SO_OBJECT_INSERT rather
    *              than using Message.Create method.
    * I took this program and removed all the parts for adding URL's and
    * notes.
    * Include for BO macros
    INCLUDE : <cntn01>.
    * Load class.
    CLASS cl_binary_relation DEFINITION LOAD.
    CLASS cl_obl_object      DEFINITION LOAD.
    PARAMETERS:
    *  Object_a
       p_botype LIKE obl_s_pbor-typeid DEFAULT 'BUS2032',    "SO
       p_bo_id  LIKE obl_s_pbor-instid DEFAULT '0000757830', "example number
    *  Object_b
       p_docty  LIKE obl_s_pbor-typeid DEFAULT 'MESSAGE' NO-DISPLAY,
       p_msgtyp LIKE sofm-doctp        DEFAULT 'EXT'     NO-DISPLAY,
    *  Relationship
       p_reltyp  LIKE mdoblrel-reltype DEFAULT 'ATTA'.
    TYPES: BEGIN OF ty_message_key,
            foltp     TYPE so_fol_tp,
            folyr     TYPE so_fol_yr,
            folno     TYPE so_fol_no,
            doctp     TYPE so_doc_tp,
            docyr     TYPE so_doc_yr,
            docno     TYPE so_doc_no,
            fortp     TYPE so_for_tp,
            foryr     TYPE so_for_yr,
            forno     TYPE so_for_no,
           END OF ty_message_key.
    DATA : lv_message_key TYPE ty_message_key.
    DATA : lo_message TYPE swc_object.
    DATA : lt_doc_content TYPE STANDARD TABLE OF soli-line,
           ls_doc_content TYPE soli-line.
    * Create an initial instance of BO 'MESSAGE' - to call the
    * instance-independent method 'Create'.
    swc_create_object lo_message 'MESSAGE' lv_message_key.
    * Upload the pdf file, for now from the frontend, in the future from
    * the server.
    DATA:
    *  dsn(40) TYPE C VALUE '/usr/sap/trans/convert/1.pdf', "server location
    l_lines TYPE i. "filelenght
    CALL FUNCTION 'GUI_UPLOAD'
      EXPORTING
        filename   = 'c:t1.pdf'
        filetype   = 'BIN'
      IMPORTING
        filelength = l_lines
      TABLES
        data_tab   = lt_doc_content.
    * no exceptions, the file is there in this example
    break brouwersf.
    ** the coding for the server input, for later
    *OPEN DATASET dsn FOR INPUT IN BINARY MODE.
    *IF sy-subrc <> 0.
    *  EXIT.
    *ENDIF.
    *READ DATASET dsn INTO ls_doc_content.
    *WHILE sy-subrc EQ 0.
    *  APPEND ls_doc_content TO lt_doc_content.
    *  READ DATASET dsn INTO ls_doc_content.
    *ENDWHILE.
    *CLEAR ls_doc_content.
    *CLOSE DATASET dsn.
    * define container to pass the parameter values to the method call
    * in next step.
    swc_container lt_message_container.
    * Populate container with parameters for method
    swc_set_element lt_message_container 'DOCUMENTTITLE' 'Title'.
    swc_set_element lt_message_container 'DOCUMENTLANGU' 'E'.
    swc_set_element lt_message_container 'NO_DIALOG'     'X'.
    swc_set_element lt_message_container 'DOCUMENTNAME' p_docty.
    swc_set_element lt_message_container 'DOCUMENTTYPE' p_msgtyp.
    swc_set_element lt_message_container 'DocumentSize'    l_lines.
    swc_set_element lt_message_container 'DocumentContent' lt_doc_content.
    swc_call_method lo_message 'CREATE' lt_message_container.
    * Refresh to get the reference of create 'MESSAGE' object for attachment
    swc_refresh_object lo_message.
    * Get Key of new object
    swc_get_object_key lo_message lv_message_key.
    * Now we have attachment as a business object instance. We can now
    * attach it to our main business object instance.
    * Create main BO object_a
    DATA: lo_is_object_a TYPE sibflporb.
    lo_is_object_a-instid = p_bo_id.
    lo_is_object_a-typeid = p_botype.
    lo_is_object_a-catid  = 'BO'.
    * Create attachment BO object_b
    DATA: lo_is_object_b TYPE sibflporb.
    lo_is_object_b-instid = lv_message_key.
    lo_is_object_b-typeid = p_docty.
    lo_is_object_b-catid  = 'BO'.
    *TRY.
    CALL METHOD cl_binary_relation=>create_link
      EXPORTING
        is_object_a = lo_is_object_a
        is_object_b = lo_is_object_b
        ip_reltype  = p_reltyp.
    * Check if everything OK...who cares!!
    COMMIT WORK.

    Hi,
    Welcome to the SDN Forums!!!
    You need to supply the PC file extension in the container element 'DOCUMENTTYPE'.
    swc_set_element lt_message_container 'DOCUMENTTYPE' p_msgtyp.
    In your case change the above statement as below:
    swc_set_element lt_message_container 'DOCUMENTTYPE' 'pdf'.
    <b>OR</b> change the default value of p_msgtyp to 'PDF'.
    Cheers,
    Ramki Maley.
    Please reward points if the answer is helpful.
    For info on awarding points click on this link: https://www.sdn.sap.com/sdn/index.sdn?page=crp_help.htm
    Message was edited by: Ramki Maley

  • Alignment problem in sending an attachment file as a mail

    Hi,
      My requirement is to send a mail where i have the data in an internal table.
    the .txt attachment file is sent properly no problem in that. But the text inside the file is not alligned properly.
    For eg if i have 5 records in the internal table which iam going to send as an attachment then 5 lines should exist on the attachment file.
    But for me what happens is
    for eg the first two records in the internal table is like as follows.
    record 1 : my name is rose
    record 2 : iam working in SAP ABAP consultant.
    These lines are coming in the attachment file like
    line 1: ame is rose  (some spaces are given then it prints) my  n
    line 2: n SAP ABAP consultant (some spaces are given then it prints) iam working i
    can anyone tell me why this happens . i want the lines to be  displayed as  it is in the internal table.
    can anyone tell how to solve this problem. Thanks...
    Regards,
    rose.

    Hi camila,
    visit this thread
    Alignment in mail body
    regards
    Anup.

Maybe you are looking for