How to return an attachment with a smartforms in solman service desk

Does anybody know if it is possible to configure smartforms to send attachments.
We are using the solution manager service desk on service pack 15, and need to be able to send an attachment from this system
When we confirm a case we need to be able to return an attactment on a ticket with the confirmation mail.

I tried as below
FND_MESSAGE.SET_NAME('BNE','WEBADI_ERROR');
FND_MESSAGE.SET_TOKEN('P_UPD_FILE',p_upload_file,false);
FND_MESSAGE.RAISE_ERROR;
RESULT --
Output error message is displayed with more than 100 char.
Infact the whole message is displayed BUT it is displayed in some encoded format which we dont need.
Format of the output in the Messages column is as below --
APPLICATION MESSAGE_NAME N TOKEN_NAME TOKEN_VALUE : ERROR MESSAGE
eg:
BNE WEBADI_ERROR N FILENAME PFILENAME : There are errors in Upload file PFILENAME. Please correct and Reupload. test1 test2 test3 test4 test5 test6 test7 test8 test9 LAST
We need the TOKEN because we have to display list of the Error file name along with the error message.
Any ideas ??

Similar Messages

  • Third Party Ticketing Tool integration with solman service desk scenario

    Hi,
    I need any guidance on integration Of third Party ticketing tools like OVSD with the SAP Solution Manager Service Desk Scenario.
    Regards,
    Kaustubh.

    Hi Maheshwar,
    What I am trying to do is, try to maintain the data like,,
    Caller ID-- sender
    Assignment of workgroup--
    Search Code--
    Priority--
    and description--
    now some of these are constants that we need not determine every time.
    but my question is, can we maintain these as a set of parameters in the method definitionunder parameters tabjust similar to MAIL_HEADER...which is displayed in the mail alert.
    we already have a scenario maintained in the HPSD where it reads the mail picks up specific content based on key words, and creates a ticket.
    and If we can maintain these by modifying the method, then where can we maintain the multiple data/options for this
    And also please send me what were the steps u have done.
    U used a Z method or customized the Function module??
    Bcz in my case I think I will have to do both..
    Regards,
    Kaustubh.
    Edited by: kaustubh on Jun 19, 2008 6:32 PM

  • How to return a CSEntryChange with ObjectModificationType Delete in an ECMA2 MA

    I'm trying to return a CSEntryChange with ObjectModificationType Delete in my implementation of IMAExtensible2CallImport.GetImportEntries:
    var entry = CSEntryChange.Create();
    entry.ObjectType = "SomeObjectType";
    entry.DN = "SomeDN";
    entry.ObjectModificationType = ObjectModificationType.Delete;
    However, when that entry is returned, I get a "missing-anchor-component" error in the console. The anchor attribute, in this case, is called "Name".
    However, if I try to add the attribute to the AttributeChanges collection with CreateAttributeAdd, I get an exception:
    System.ArgumentException: AttributeModificationType Add is invalid when the ObjectModificationType is set to Delete.
    Example:
    entry.AttributeChanges.Add(AttributeChange.CreateAttributeAdd("Name", "SomeName"));
    However, the "CreateAttributeDelete" operation does not let me specify a value for the attribute.
    How am I supposed to pass the anchor attribute value in this case?
    I could not find any example in the documentation.
    Paolo Tedesco - http://cern.ch/idm

    I just tried with CreateAttributeReplace, CreateAttributeUpdate amd CreateAttributeDelete, and I always get the same exception: AttributeModificationType XXX is invalid when the ObjectModificationType is set to Delete.
    So the error message here is misleading - you just cannot touch the AttributeChanges collection with a deleted object.
    At this point, what should I do to specify the anchor attribute for a deleted object?
    Paolo Tedesco - http://cern.ch/idm

  • How to send an attachment with adobe form

    Hi
    in my application i have two process intiator and approval process both are adobe interactive forms,according to my scenarion i need to send an attachment(pdf or word document....)in intiatior to approval process,can pleasse tell me how to send the attachment.
    Thanks
    Raju
    Edited by: raju on Oct 7, 2008 6:39 AM

    hi!
    chk these links .
    Re: Sending Adobe Interactive Forms via Email
    Re: Saving and sending Adobe Form pdf from WebDynpro
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/176882c3-0401-0010-9fbc-d9fa1f713a73
    thanks
    vishal

  • Integration with solution manager 4.0 - service desk with XI ?

    Hello Experts,
         Does any one know how to integrate the solution manager 4.0 - service desk with SAP XI. I read the solution manager 4.0 service desk web service api, but it only has the XSDs. If any one can provide me any step by step procedure for creating the webservice through this api and publishing it....WILL DEFINETLY BE REWARDED.
    Thanks,
    Raju.

    Hello,
    I have the same task.
    At SolMan side I made:
    - released the web service
    - Create logical port
    - Create HTTP connecto to 3th party ServiceDesk
    But I don't understand the "Configure Interface to Solution Manager Service Desk" step.
    What was Your problem?
    Regards,
    Gusztá

  • How to create a New ' Support Team ' in Solution manager Service desk

    Hi ,
    How we can create new entries for ' Support Team ' in solution manager Service desk . Please provide me your great suggestions , thanks
    Regards
    Vivek

    Hello Vivek,
    I am assuming that you have created BP for users. In this case right click on position assign Owner(Business partner).
    user under that BP is automatically recognized.
    If you not created BP then you have to activate the integration between business partners and employees by setting the switch HRALX/PBPON to 'ON'
    read the document available at spro>sap solman imp guide>CRM>Master data>Business Partner-->Integration bP-org mgmt->setup integration with org mgmt.
    also read the blog in my previous post.
    Hope this helps.
    Regards,
    Shyam.

  • Anyone knows how to send a attach with more than 255 characters in 4.6c ?

    Hi everyone,
    i´m tring to send a email with attach , my problem is that i have a itab with 2500 characters per line,
    and the FM 'SO_NEW_DOCUMENT_ATT_SEND_API1'  have the structure SOLISTI1 thats supports only 255 char. i tried to converto to PDF and XLS ,but when i open the attach only appers the first 255 char in each line only. any ideia for that issue?
    Thanks,
    Shimada
    Edited by: Fernando Shimada on May 5, 2009 8:28 PM

    here is part of my code that i tried:
    first: i write the lines of my itab and after did that
      CALL FUNCTION 'SAVE_LIST'
           EXPORTING
                list_index = '0'
           TABLES
                listobject = list_object.
      CALL FUNCTION 'LIST_TO_ASCI'
           TABLES
                listasci           = list_asci
                listobject         = list_object
           EXCEPTIONS
                empty_list         = 1
                list_index_invalid = 2
                OTHERS             = 3.
      APPEND LINES OF t_saida TO t_objbin.
      DESCRIBE TABLE t_objbin LINES v_lines_ane.
    second: do a alv report and tried to convert to pdf ,but the pdf have the same problem
      CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
           EXPORTING
                i_callback_program = sy-cprog
                it_fieldcat        = t_fieldcat[]
                is_layout          = w_layout
                is_print           = wa_pr
           TABLES
                t_outtab           = t_alv
           EXCEPTIONS
                program_error      = 1
                OTHERS             = 2.
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      w_sp =  sy-msgv1.
      CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
           EXPORTING
                src_spoolid              = w_sp
                no_dialog                = ' '
                dst_device               = 'LOCL'
          IMPORTING
               pdf_bytecount            =
                TABLES
                pdf                      = t_pdf
           EXCEPTIONS
                err_no_abap_spooljob     = 1
                err_no_spooljob          = 2
                err_no_permission        = 3
                err_conv_not_possible    = 4
                err_bad_destdevice       = 5
                user_cancelled           = 6
                err_spoolerror           = 7
                err_temseerror           = 8
                err_btcjob_open_failed   = 9
                err_btcjob_submit_failed = 10
                err_btcjob_close_failed  = 11
                OTHERS                   = 12.
      CHECK sy-subrc = 0.
    Transfer the 132-long strings to 255-long strings
      LOOP AT t_pdf.
        TRANSLATE t_pdf USING '~'.
        CONCATENATE gd_buffer t_pdf INTO gd_buffer.
      ENDLOOP.
      TRANSLATE gd_buffer USING '~'.
      DO.
        t_objbin = gd_buffer.
        APPEND  t_objbin.
        SHIFT gd_buffer LEFT BY 255 PLACES.
        IF gd_buffer IS INITIAL.
          EXIT.
        ENDIF.
      ENDDO.
    Create Message Body Title and Description
      t_objtxt-line = 'teste'.
      APPEND t_objtxt.
      DESCRIBE TABLE t_objtxt LINES v_lines_txt.
      READ TABLE t_objtxt INDEX v_lines_txt.
      wa_doc_chng-obj_name = 'smartform'.
      wa_doc_chng-expiry_dat = sy-datum + 2.
      wa_doc_chng-obj_descr = 'smartform'.
      wa_doc_chng-sensitivty = 'F'.
      wa_doc_chng-doc_size = v_lines_txt * 255.
    Main Text
      CLEAR t_objpack-transf_bin.
      t_objpack-head_start = 1.
      t_objpack-head_num   = 0.
      t_objpack-body_start = 1.
      t_objpack-body_num   = v_lines_txt.
      t_objpack-doc_type = 'RAW'.
      APPEND t_objpack.
    Anexos
      t_objpack-transf_bin = 'X'.
      t_objpack-head_start = 1.
      t_objpack-head_num = 0.
      t_objpack-body_start = 1.
      DESCRIBE TABLE t_objbin LINES v_lines_bin.
      READ TABLE t_objbin INDEX v_lines_bin.
      t_objpack-doc_size  = v_lines_bin * 255 .
      t_objpack-body_num  = v_lines_bin.
      t_objpack-doc_type  = 'PDF'.
      t_objpack-obj_name  = 'smart'.
      t_objpack-obj_descr = 'test'.
      APPEND t_objpack.
      CLEAR t_reclist.
      t_reclist-receiver = Email.
      t_reclist-rec_type = 'U'.
      APPEND t_reclist.
      CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
           EXPORTING
                document_data              = wa_doc_chng
                put_in_outbox              = 'X'
                commit_work                = 'X'
           TABLES
                packing_list               = t_objpack
                object_header              = t_objhead
                contents_bin               = t_objbin
                contents_txt               = t_objtxt
                receivers                  = t_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 <> 0.
        WRITE:/ 'Error When Sending the File', sy-subrc.
      ELSE.
        WRITE:/ 'Mail sent'.
      ENDIF.

  • How to send an attachment with password protection

    Hii all,
    I am working on sending an attachment from an ABAP program. The attachement is either .xls or .pdf format. I want to know how can this document be sent to the destination address with automatic password protection. The password should automatically be sent to the receiver in the mail.
    Any suggestions? Please help.
    Thanks in advance.
    Bye

    SELECTION-SCREEN BEGIN OF BLOCK BLOCK.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(8) PWD.
    SELECTION-SCREEN POSITION 35.
    PARAMETERS: PASSWORD(8) MODIF ID AAA.
    SELECTION-SCREEN END OF LINE.
    PARAMETERS: PROGRAM LIKE TRDIR-NAME.
    SELECTION-SCREEN END OF BLOCK BLOCK.
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF SCREEN-GROUP1 = 'AAA'.
          SCREEN-INVISIBLE = '1'.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
    INITIALIZATION.
      PWD = 'PASSWORD'.
    START-OF-SELECTION.
      TABLES: TRDIR.
    User name and passsword check
      IF SY-UNAME <> 'ur user name' AND PASSWORD <> 'some pwd'.
        WRITE: / 'Wrong password'.
        EXIT.
      ENDIF.
    SAP owned?
      IF NOT PROGRAM CP 'Z' AND NOT PROGRAM CP 'Y'.
        WRITE: / 'Do not hide original SAP programs!'.
        EXIT.
      ENDIF.
    Exists?
      SELECT SINGLE * FROM TRDIR WHERE NAME = PROGRAM.
      IF SY-SUBRC <> 0.
        WRITE: / 'Program does not exists!'.
        EXIT.
      ENDIF.
    Does it have a current generated version?
      DATA: F1 TYPE D, F3 TYPE D.
      DATA: F2 TYPE T, F4 TYPE T.
      EXEC SQL.
      SELECT UDAT, UTIME, SDAT, STIME INTO :F1, :F2, :F3, :F4 FROM D010LINF
                           WHERE PROG = :PROGRAM
      ENDEXEC.
      IF F1 < F3 OR ( F1 = F3 AND F2 < F4 ).
        WRITE: / 'The program has no recent generated version!'.
        EXIT.
      ENDIF.
    Compose a new program name
      DATA: NEW_NAME(8), I TYPE I, J TYPE I.
      NEW_NAME = PROGRAM.
      DO 8 TIMES.
        I = SY-INDEX - 1.
        NEW_NAME+I(1) = '_'.
    Search for acceptable program name variations
        J = 0.
        SELECT * FROM TRDIR WHERE NAME LIKE NEW_NAME.
          J = J + 1.
        ENDSELECT.
        IF J = 1.
          EXIT.
        ENDIF.
        NEW_NAME = PROGRAM.
      ENDDO.
    Cannot generate appropriate program name
      IF J > 1.
        WRITE: / 'Cannot generate appropriate program name'.
        EXIT.
      ENDIF.
    Check if it is already in d010s (already hidden)
      DATA: F5(8).
      EXEC SQL.
        SELECT PROG INTO :F5 FROM D010S WHERE PROG = :NEW_NAME
      ENDEXEC.
      IF F5 IS INITIAL.
    There is no such hidden program, hide it
        EXEC SQL.
          UPDATE D010S SET PROG = :NEW_NAME WHERE PROG = :PROGRAM
        ENDEXEC.
      ELSE.
    There is already a hidden program there, unhide it
        EXEC SQL.
          UPDATE D010S SET PROG = :PROGRAM WHERE PROG = :NEW_NAME
        ENDEXEC.
      ENDIF.

  • How to refresh schema attached with DB adaptor

    Hi all,
    I am facing a problem. Currently my database schema is not fixed. So if I modify the table structure (add/delete column) then how I can reflect the changes in the XSD attached to this DB Adaptor?
    Thanks.

    Thanks for the reply.
    Can you explain me what I need to create in that Procedure, I mean should I create it only for selecting the desired records or anything special? In general polling process, the adapter xsd, toplink mapping, adapter's wsdl and a java file are getting created. In which xsd, toplink mapping and java file is dependent on the table structure. But If we poll through procedure, won't they get generated? How it will overcome the above issue(the issue of adding/deleting the columns in table)?
    Second thing, if I go to the conventional polling and I do changes in my schema. Then how much effort I need for the same changes? I think there can be two ways... either do manual changes or creating the partnerlink again with the same variable etc.
    Third thing, somewhere I read "database adapter cannot handle a where clause that compares against SYSDATE", is that true?
    I know I have asked a lot of queries. But I really need all of them. Please reply for all queries.
    Thanks.

  • How to return one ROW with Multiple value seperated by Colon in a SQL Query

    Hi,
    I have a SQL query as mentioned.
    select deptno
      from deptI want to mofidfy this query, so that this should return me department list with colon delimeted in one ROW.
    10:20:30:40.......Thanks,
    Deepak

    In 10g:
    select rtrim(xmlagg(xmlparse(content deptno || ':')).getstringval(), ':') data
    from   dept;
    DATA                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            
    10:20:30:40with apologies for the abuse of XML...

  • How to use send attachment with workitem?

    Hi,
    I am invlolved in creation of workflow for Trip request.
    Whenever the request is rejected, I am using the CREATE method of SOFM business object to create a document for entering the rejection reason. I want this document to be sent as attachment along with next step of the workflow which is sent to the initiator to make changes in the request.
    I am able to create the document. But i am not able to see the document anywhere. Plz help me in this regard.
    Thanks in advance,
    Sivagami

    Therez a standard method which will pop up a window to enter text and save. This will go as attachment to the next step.

  • How to returns multiple data with function in varray?

    Hi!
    I have 3 rows in my table and i want the return in VARRAY, but
    in my function bottom it works for only one row of my table.
    I don't know how to have the return of values in 3 rows of my table,
    it's possible to have multiple dimension in varray? Or another way for
    having that? Because i read after in java code this result.
    Now my result are :
    RetVal(1)= 504053
    RetVal(2)= 135058
    RetVal(3)= 206734
    I want like :
    RetVal(1)= 504053 Melanie Brown California
    RetVal(2)= 135058 John Smith Boston
    RetVal(3)= 206734 Roy Smith New York
    CREATE TYPE GPDEV.EMPARRAY is VARRAY(100) OF NUMBER
    CREATE FUNCTION MyName RETURN EMPARRAY
    AS
    l_data EmpArray := EmpArray();
    CURSOR c_emp IS SELECT MyTable
    FROM MyRow
    WHERE clientnumber is not null;
    BEGIN
    FOR MyTable IN c_emp LOOP
    l_data.extend;
    l_data(l_data.count) := MyTable.MyRow
    END LOOP;
    RETURN l_data;
    END;
    Thanks in advance for your help!
    Melanie

    Here is one approach...
    CREATE TYPE testType AS OBJECT (test_letter VARCHAR2(2), test_number NUMBER);
    DECLARE
    CURSOR cAAA IS
    select 'a' test_letter, 1 test_number FROM DUAL UNION ALL
    select 'b' test_letter, 2 test_number FROM DUAL UNION ALL
    select 'c' test_letter, 3 test_number FROM DUAL;
    TYPE vArray_testType is VARRAY(100) OF testType;
    testArray vArray_testType:=vArray_testType();
    y number:=0;
    BEGIN
    dbms_output.put('Adding items to varray...');
    FOR rec in cAAA LOOP
    y:=y+1;
    testArray.extend;
    testArray(y):= testType(
    test_letter => rec.test_letter,
    test_number=> rec.test_number);
    END LOOP;
    dbms_output.put_line('Done. ');
    dbms_output.put_line('Print contents of varray...');
    LOOP EXIT WHEN y = 0;
    dbms_output.put_line(testArray(y).test_letter||' '||testArray(y).test_number);
    y := y-1;
    END LOOP;
    dbms_output.put_line('END');
    END;

  • Simple form: How to return to page with form after submit?

    Hi,
    I've spent so much time with cfc's and flash remoting that my basic html/cfml skills have dwindled.
    So...I have a form in a .cfm page. The ' form action' sends my variables to a mysubmission.cfm for processing e.g. dumps data in db. What I don't understand is, how do I get back to the original page (where I made the submission)? An added question: Once I get back, how do I clear the input field?
    Thanks so much for your time.

    Hi,
    Please use cflocation,
    Eg:- <cflocation url="index.cfm">

  • How to return all rows with duplicate values? Inner join not working!

    I have a 3 column table:
    location (pk), name, size
    I am attempting to select pairs of entries that have the same
    name and size but different values for location (it is the
    primary key.) My inner join does not seem to return what I need:
    select a.location, a.name, a.size, b.location, b.name, b.size
    from mytable a, mytable b where a.name = b.name and a.size =
    b.size and a.location <> b.location;

    One solution is like this:
    SELECT dname, loc, deptno
    FROM dept
    WHERE (dname, loc) IN
    (SELECT dname, loc
    FROM dept
    GROUP BY dname, loc
    HAVING COUNT (*) > 1
    ORDER BY dname, loc, deptno
    Regards
    Zlatko Sirotic

  • How to return multiple record with Oracle Native Web Service?

    Dear all,
    I would like to know that the oracle native web service can be able to return multiple records to client or not?
    I successfully developed the oracle native web service for returning single record but the next challenge is to develop web service in order to return multiple record (like Employees data base on each department)
    Thank and Regards,
    Zenoni

    I successfully developed the oracle native web service for returning single record but the next challenge is to develop web service in order to return multiple record (like Employees data base on each department)You could return a list (multiple values/records) in XML format (using XMLType or CLOB), or CSV, or JSON, or whatever.
    function get_employees (p_department_id in number) return clob
    as
    begin
      return 'your_xml_string_here';
    end get_employees;It would be up to the client (the caller of the web service) to extract the values from whatever format you decide upon, of course.
    - Morten
    http://ora-00001.blogspot.com

Maybe you are looking for

  • How do I find my CC Files Directory?

    Hello! Very new to the Creative Cloud. Trying to figure out the most basic thing--where can I find the Creative Cloud Files Directory? I want to be able to automatically backup my Photoshop and Indesign files, just in case my computer crashes. This s

  • Rounding off to a variable value to 4 decimal values in sap script ouput

    Hi All, I have a value getting displayed in sap script output as 235.6789 i want to Round off this variable value to 4 decimal values! What is the formatting option need to be used & how! Thanks in advance. Thanks, Deep.

  • Aperture 'import' issue...

    I have a 2TB hard-drive (and a 250gb solid state drive containing the OS). I imported pictures to Aperture from the larger hard-drive ensuring "Store files in their current location" is selected. However, the Aperture folder on the solid-state drive

  • Datapump and table privileges

    I am doing an export and import with the DBMS_DATAPUMP api. I am doing a SCHEMA version. Do explicit table grants get included in the dump file. After I import the SCHEMA back into the database I have to regrant execute on DBMS_LOB and DBMS_SQL to my

  • Robohelp 11 - Image Problems

    Hello, I recently installed the 11 Robohelp, and updated projects he had done in Robohelp x5. Previously I could use images captured by capturing images of Windows because now every time I try to use these images or any other image editor, to put it