Attaching PDF to FB02

Hi
I am trying to write an ABAP program for uploading a PDF document from a smartform to SAP document in FB02 in background without any user dialog.
I am using the following FMs in sequence:
1. SSF_FUNCTION_MODULE_NAME & calling the Smartform FM enabling the OTF option in the control parameters.
2. CONVERT_OTF - converts OTF to PDF
3. SWA_STRING_FROM_TABLE - converts OTF to string
4. SWA_STRING_TO_TABLE - converts string to SAP Office table
5. SO_FOLDER_ROOT_ID_GET
6. SO_ATTACHMENT_INSERT
7. BINARY_RELATION_CREATE
My program is failing in the last step - It fails with message "No model"
Following is the code snippet for the attachment part:
CALL FUNCTION 'SO_FOLDER_ROOT_ID_GET'
  EXPORTING
    region    = 'B'
  IMPORTING
    folder_id = l_folder_id
  EXCEPTIONS
    OTHERS    = 1.
ls_object_hd_change-objdes = 'Test Radha'.
ls_object_hd_change-file_ext = 'PDF'.
CALL FUNCTION 'SO_ATTACHMENT_INSERT'
  EXPORTING
    object_id                        = l_folder_id
   object_hd_change            = ls_object_hd_change
    attach_type                    = 'OTF'
IMPORTING
   attach_id                         = l_attach_id
  TABLES
    objcont                          = lt_objcont[]
    objhead                         = lt_objhead
EXCEPTIONS
   active_user_not_exist            = 1
   object_type_not_exist            = 2
   operation_no_authorization       = 3
   owner_not_exist                  = 4
   parameter_error                  = 5
   substitute_not_active            = 6
   substitute_not_defined           = 7
   x_error                          = 8
   system_failure                   = 9
   communication_failure            = 10
   OTHERS                           = 11
CONCATENATE l_folder_id
             l_attach_id
        INTO ls_obj_roleb-objkey.
ls_obj_roleb-objtype = 'MESSAGE'.
ls_obj_rolea-objkey = '1900000557'.
ls_obj_rolea-objtype = 'BUS6035'.
lc_relationtype = 'ATTA'.
CALL FUNCTION 'BINARY_RELATION_CREATE'
  EXPORTING
    obj_rolea            = ls_obj_roleb
    obj_roleb            = ls_obj_rolea
    relationtype         =  lc_relationtype
EXCEPTIONS
   no_model             = 1
   internal_error       = 2
   unknown              = 3
   OTHERS               = 4
I am not very clear about the values to be passed to the parameters in BINARY_RELATION_CREATE.
Can anyone please assist?
- Radha

hi radha,
You can attach a file like a pdf format to a document. Go to the services
for object button at the top of the document change transaction - FB02. Once
you click the button you can click the create attachment icon at the left
and a window will pop up and you can then find the file you want to attach.
thanks
karthik

Similar Messages

  • I am unable to attach PDFs to Hotmail/Outlook email using my FF browser today. Never had issue before today.

    1. I am unable to attach pdfs today in Outlook/Hotmail email using my Firefox browser (27.0.1). I keep getting an error message that says, "The file is not a picture and can't be inserted inline." I do not understand why I keep getting this error message. I am not attempting to insert an image. I am selecting to Insert Files as Attachments from the drop down menu.
    No matter how many times I attempt to attach various pdfs to my emails today using Firefox as my browser, I keep getting this same error message. I have cleared the cache, cleared all cookies, cleared all history, signed out of my Hotmail/Outlook account, signed back in, restarted computer, etc., to no avail. Same problem.
    2. I switched to my Safari browser, and have no problem attaching pdfs in my Hotmail/Outlook email account. The pdfs are attaching perfectly as usual. My emails are being sent normally with the attachments. The attached pdfs are being received and are opening perfectly as intended.
    3. Why am I unable to attach files with Firefox today? Firefox is my browser of choice and I have used it with my Hotmail/Outlook email account without any problems, till today. Please help me! Thank you!

    Thank you jscher2000. Yes my PDFs do contain the .pdf extension. I tried your excellent idea to utilize the drag and drop method, but I still get the same error message with PDFs. I have no problem attaching photos or Word documents with either method; just PDFs.
    For further diagnostics, I started composing my email in Safari, attached all my pdfs and saved my email as a Draft.  I then went to Firefox, opened the draft to continue working on it, and voila!  There are all the pdfs I attached previously while in Safari.  I was able to send the email with attachments through Firefox with no issues. The attachments went through and were able to be opened.
    I am mystified, as Firefox has been trouble-free with my email account, and I have never had this particular issue till today. I made no changes to anything else on my computer, but I did notice very late last night that Outlook had one of those typical messages at the top of my Inbox to refresh my browser since Outlook had been updated. I refreshed and shut down for the night, and when I rebooted this morning that is when I discovered this brand new glitch with attachments. I'm assuming this has something to do their last update.

  • Create Link to attached PDF file

    Hi guys
    I am having a nightmare!
    I have been provided with a Word document which contains links to embedded PDF documents.  It all works lovely, you click on the link in the word document and up pings the embedded PDF in a new window.
    My issue is that I now have to turn the Word document into a PDF to put on our website.
    I have tried numerous ways of PDFing the Word document but none have been successful in maintaining the embedded PDFs within it.  When I open the PDFd Word Doc it can see that there is links, but when you click, nothing happens.
    I have accepted there probably isnt a way to do this, so I came up with an alternative plan of saving all of the embedded PDF links to my hard drive, PDFing the original word document, attaching the embedded PDFs to the main parent PDF and linking to them.
    HOWEVER! I cannot figure out how to link from the main PDF to the attached PDFs.  I can create a link but there doesnt seem to be a way to set it to open the attached PDFs (which ideally should open in a new window ..) ARRGHH!
    Help!
    Thanks

    Sounds like you on a Mac. And Adobe has let this bug go on for 15 years with no intentions of fixing.
    Take the word File and if You have Apple's Pages (part of the iWork package) and Open there (will be imported)
    Verify That your formatting has not been changed. (Making sure all links work.)
    If not  changed, create the PDF from there.
    Go to Print Menu
    Click on PDF and Hold
    When window pops up choose Adobe PDF
    Follow directions as the Pop up.
    All your Links should be live. IF they were live in the Pages file.
    It seems after 15-20 years Adobe programmers haven't learned various codes Word uses to make links, and. Even 2011 which used parts of Office 2007 and 2010 to create it. the only difference were UI (User Interface) and key mappings for short cuts.

  • How do I add an attachment pdf. to my email on my iPad Air?

    I am trying to upload an attachment pdf. to my email, but when ever I do it doesn’t actually attach to the email. I already have the app iCab mobile, and I am doing it through this.  But it still won’t work.

    Have you gone into your pdf app and clicked on the email icon?  something like a box with an arrow on top ( I'm guessing it is the same on on my iPhone. )
    or try:
    iUploader app
    "The iUploader app is the only way I know of to load files such as resumes and cover letters to sites such as Monster and CareerBuilder (those having the "Browse for File" links intended for desktop use) from an iOS device. If there is another way to do it, then I'm just not aware of it. I asked for this on the Apple discussion forum months ago and now here it is! Thank you app devs for this!" https://itunes.apple.com/us/app/iuploader-free-uploads-downloads/id541315293?mt= 8

  • How do I email an attached pdf file to stationary templates in mail.

    How do I email an attach PDF file using the stationary templates in mail on lion.
    I attached the PDF but when try to send it I get back a dialog box that sez:
    "This message cannot be sent because it uses stationery and contains attachments that are not images. Messages with stationery cannot contain attachments that aren’t images. You can cancel and return to editing the message or remove the stationery in order to send." My choice is to cancel or remove stationary.
    Is there a third party solution? Any suggestion?

    No
    Envoyé depuis Molto pour iPad
    De: pwillener
    Envoyé: jeudi, février 12, 2015 07:14 AM
    À: René Allamelle
    Objet:  how do I compress a large pdf file to fit in an email?
    how do I compress a large pdf file to fit in an email?
    created by pwillener in Adobe Acrobat.com Services - View the full discussion
    But generally it is never a good idea to send e-documents as email attachments.  Better use a file sharing service (Acrobat.com, Dropbox, Google Drive, Microsoft OneDrive, ..), upload the document, then send the shared download link via email.
    If the reply above answers your question, please take a moment to mark this answer as correct by visiting: https://forums.adobe.com/message/7187079#7187079 and clicking ‘Correct’ below the answer
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
    Please note that the Adobe Forums do not accept email attachments. If you want to embed an image in your message please visit the thread in the forum and click the camera icon: https://forums.adobe.com/message/7187079#7187079
    To unsubscribe from this thread, please visit the message page at , click "Following" at the top right, & "Stop Following"
    Start a new discussion in Adobe Acrobat.com Services by email or at Adobe Community
    For more information about maintaining your forum email notifications please go to https://forums.adobe.com/thread/1516624.

  • How can I retain the attached .pdf files (displayed as icons) from my word file 2010 to a pdf file?

    Hi everybody,
    I have looked for an answer in this forum ... without any good result.
    I worked on a Word 2010 file with some attached pdf files. These attached files are displayed as icons on the word file. If you double click on them, you can consult them. This works very good.
    Problem: I would like to convert this word 2010 file into a pdf file, which keeps the icons (linked to attached files) active. If I "pdf" this with my current system, icons are displayed as pictures: I cannot open the attached files.
    My question is very simple: is it possible to retain these active icons (= to open attached documents) in a pdf file? Which adobe package should I use?
    Many thanks for your help 
    cheers
    elgreengo

    No, it's not possible, but I agree it would be a very nice feature.

  • Error while attaching PDF to FI doc via SAP services

    Hi,
    I am calling SCMS_DOC_CREATE_FILES funtion module to attach PDF to FI doc via SAP services and SAP internally calling standard function 'HTTP_POST_FILESu2019 with RFC_DESTINATION u2018SAPHTTPAu2019 and returned error due to connection fail.
    RFC DESTINATION SAPHTTPA checked and   its working fine.
    call function 'HTTP_POST_FILES' destination rfc_destination
        EXPORTING
          uri                   = absolute_uri
          path                  = component_path
          proxy                 = proxy
          trace                 = http_trace
          prefix                = component_prefix
          user                  = user
          pwd                   = password
        IMPORTING
          status                = status_code
          stext                 = stext
          error                 = cerror
          etext                 = comp_err
        TABLES
          resp                  = response_entity_body
          resphead             = response_headers
          reqhead               = request_headers
          comp                  = components
          compx_255             = componentsx
        EXCEPTIONS
          system_failure        = 1  message msg
          communication_failure = 2  message msg.
         output:   Sy-subrc is 0 and status_code is '403'
    response_entity_body internal table return the below error information:-
    -     HTTP/1.1 403 Forbidden
    -     Server: Apache-Coyote/1.1
    -     X-ErrorDescription: Genuine channels operation exception: Can not connect to the remote host "gtcp://127.0.0.1:49008". System error message: No connection could be made because the target machine actively refused it 127.0.0.1:49008.
    -     Content-Type: text/html;charset=utf-8                           Date: Tue, 08 Nov 2011 21:36:02 GMT
    -     Connection: close
    Please help i am not to able find the reason why i am getting status_code is '403' and RFC failed.
    Thanks
    Sireesha
    Edited by: Sireesha_SAP on Nov 10, 2011 8:53 PM
    Edited by: Sireesha_SAP on Nov 10, 2011 10:16 PM

    Hi,
    I would like to know what font type, you are using in the forms.
    Ideally it should be HELVETICA .
    If you are using any other font in your style/form,try changing it to HELVETICA & Test.
    Also Check the OTF data at the call of gen. FM,before converting it to PDF.
    Regds,
    AS
    Edited by: abheesawant on Oct 12, 2011 7:48 AM

  • Cannot Attach PDF documents when broadcasting a report in BI.

    Hi All,
    When Attaching PDF file in broadcasting reports via bex i'm getting an error . This happens only with PDF files and I can successfully attach other file such as HTML,ms xls. Please find the error details under /usr/sap/BIP/DVEBMGS00/j2ee/cluster/server0/log. This happens after upgrade the system from 703 to 705.
    #1.#005056865BFF0059000003770000175B0004BBA717D6F754#1332226240739#com.sap.engine.services.rfcengine##com.sap.engine.services.rfcengine#ISIRIJ#8910##n/a##01c45f95725911e19eaa00000036eb2e#SAPEngine_Application_Thread[impl:3]_27##0#0#Error#1#/System/Server#Plain###Bean RSRD_X_GET_PORTAL_INFO_PROXY not found on host ENCARTA, ProgId=ENCARTA_PORTAL_BIP: Object not found in lookup of RSRD_X_GET_PORTAL_INFO_PROXY.registered entries for FuctionName=JNDIName : {}#
    #1.#005056865BFF0059000003780000175B0004BBA717D6F797#1332226240739#com.sap.engine.services.rfcengine##com.sap.engine.services.rfcengine.handleRequest#ISIRIJ#8910##n/a##01c45f95725911e19eaa00000036eb2e#SAPEngine_Application_Thread[impl:3]_27##0#0#Error##Plain###java.lang.RuntimeException: Bean RSRD_X_GET_PORTAL_INFO_PROXY not found on host ENCARTA, ProgId=ENCARTA_PORTAL_BIP: Object not found in lookup of RSRD_X_GET_PORTAL_INFO_PROXY.#
    #1.#005056865BFF0059000003790000175B0004BBA717D6F7B6#1332226240739#com.sap.engine.services.rfcengine##com.sap.engine.services.rfcengine.handleRequest#ISIRIJ#8910##n/a##01c45f95725911e19eaa00000036eb2e#SAPEngine_Application_Thread[impl:3]_27##0#0#Error##Plain###java.lang.RuntimeException: Bean RSRD_X_GET_PORTAL_INFO_PROXY not found on host ENCARTA, ProgId=ENCARTA_PORTAL_BIP: Object not found in lookup of RSRD_X_GET_PORTAL_INFO_PROXY.
            at com.sap.engine.services.rfcengine.RFCDefaultRequestHandler.handleRequest(RFCDefaultRequestHandler.java:138)
            at com.sap.engine.services.rfcengine.RFCJCOServer$J2EEApplicationRunnable.run(RFCJCOServer.java:254)
            at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
            at java.security.AccessController.doPrivileged(AccessController.java:207)
            at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:104)
            at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:176)
    #1.#005056865BFF00700000001E0000175B0004BBA71A566B26#1332226282646#com.sap.engine.services.rfcengine##com.sap.engine.services.rfcengine.handleRequest#ISIRIJ#8915##n/a##7c272c1971be11e1825600000036eb2e#SAPEngine_Application_Thread[impl:3]_23##0#0#Error##Plain###com.sap.engine.services.jndi.persistent.exceptions.NameNotFoundException: Object not found in lookup of RSRD_X_PRODUCE_PROXY.#
    #1.#005056865BFF00700000001F0000175B0004BBA71A566B4A#1332226282646#com.sap.engine.services.rfcengine##com.sap.engine.services.rfcengine.handleRequest#ISIRIJ#8915##n/a##7c272c1971be11e1825600000036eb2e#SAPEngine_Application_Thread[impl:3]_23##0#0#Error##Plain###com.sap.engine.services.jndi.persistent.exceptions.NameNotFoundException: Object not found in lookup of RSRD_X_PRODUCE_PROXY.
            at com.sap.engine.services.jndi.implserver.ServerContextImpl.lookup(ServerContextImpl.java:649)
            at com.sap.engine.services.jndi.implclient.ClientContext.lookup(ClientContext.java:344)
            at com.sap.engine.services.jndi.implclient.ClientContext.lookup(ClientContext.java:639)
            at javax.naming.InitialContext.lookup(InitialContext.java:361)
            at javax.naming.InitialContext.lookup(InitialContext.java:361)
            at com.sap.engine.services.rfcengine.RFCDefaultRequestHandler.handleRequest(RFCDefaultRequestHandler.java:129)
            at com.sap.engine.services.rfcengine.RFCJCOServer$J2EEApplicationRunnable.run(RFCJCOServer.java:254)
            at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
            at java.security.AccessController.doPrivileged(AccessController.java:207)
            at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:104)
            at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:176)
    #1.#005056865BFF0070000000210000175B0004BBA71A566C7E#1332226282646#com.sap.engine.services.rfcengine##com.sap.engine.services.rfcengine#ISIRIJ#8915##n/a##7c272c1971be11e1825600000036eb2e#SAPEngine_Application_Thread[impl:3]_23##0#0#Error#1#/System/Server#Plain###Bean RSRD_X_PRODUCE_PROXY not found on host ENCARTA, ProgId=ENCARTA_PORTAL_BIP: Object not found in lookup of RSRD_X_PRODUCE_PROXY.registered entries for FuctionName=JNDIName : {}#
    #1.#005056865BFF0070000000220000175B0004BBA71A566CBB#1332226282646#com.sap.engine.services.rfcengine##com.sap.engine.services.rfcengine.handleRequest#ISIRIJ#8915##n/a##7c272c1971be11e1825600000036eb2e#SAPEngine_Application_Thread[impl:3]_23##0#0#Error##Plain###java.lang.RuntimeException: Bean RSRD_X_PRODUCE_PROXY not found on host ENCARTA, ProgId=ENCARTA_PORTAL_BIP: Object not found in lookup of RSRD_X_PRODUCE_PROXY.#
    #1.#005056865BFF0070000000230000175B0004BBA71A566CD8#1332226282646#com.sap.engine.services.rfcengine##com.sap.engine.services.rfcengine.handleRequest#ISIRIJ#8915##n/a##7c272c1971be11e1825600000036eb2e#SAPEngine_Application_Thread[impl:3]_23##0#0#Error##Plain###java.lang.RuntimeException: Bean RSRD_X_PRODUCE_PROXY not found on host ENCARTA, ProgId=ENCARTA_PORTAL_BIP: Object not found in lookup of RSRD_X_PRODUCE_PROXY.
            at com.sap.engine.services.rfcengine.RFCDefaultRequestHandler.handleRequest(RFCDefaultRequestHandler.java:138)
            at com.sap.engine.services.rfcengine.RFCJCOServer$J2EEApplicationRunnable.run(RFCJCOServer.java:254)
            at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
            at java.security.AccessController.doPrivileged(AccessController.java:207)
            at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:104)
            at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:176)
    #1.#005056865BFF00790000001A0000175B0004BBA71F03D1DA#1332226361119#com.sap.engine.services.dbpool#sap.com/irj#com.sap.engine.services.dbpool#J2EE_GUEST#0##n/a##80d27a94719811e197d500000036eb2e#Thread[Thread-81,5,SAPEngine_Application_Thread[impl:3]_Group]##0#0#Error#1#/System/Server#Java#dbpool_0314##Connection is closed.##
    #1.#005056865BFF00790000001B0000175B0004BBA71F03D276#1332226361119#com.sap.engine.services.dbpool#sap.com/irj#com.sap.engine.services.dbpool#J2EE_GUEST#0##n/a##80d27a94719811e197d500000036eb2e#Thread[Thread-81,5,SAPEngine_Application_Thread[impl:3]_Group]##0#0#Error#1#/System/Audit#Java###Exception {0}#1#com.sap.engine.services.dbpool.exceptions.BaseSQLException: Connection is closed.
            at com.sap.engine.services.dbpool.cci.ConnectionHandle.checkIfClosed(ConnectionHandle.java:516)
            at com.sap.engine.services.dbpool.cci.ConnectionHandle.checkIfValid(ConnectionHandle.java:488)
            at com.sap.engine.services.dbpool.cci.ConnectionHandle.prepareStatement(ConnectionHandle.java:80)
            at com.sap.portal.webreport.DataReporter.insertUserData(DataReporter.java:682)
            at com.sap.portal.webreport.DataReporter.dbAdd(DataReporter.java:582)
            at com.sap.portal.webreport.DataReporter.saveUsers(DataReporter.java:291)
            at com.sap.portal.webreport.DataReporter.flushData(DataReporter.java:148)
            at com.sap.portal.webreport.DataReporter$TimerTaskImpl.run(DataReporter.java:768)
            at java.util.TimerThread.mainLoop(Timer.java:461)
            at java.util.TimerThread.run(Timer.java:408)
    #1.#005056865BFF00790000001D0000175B0004BBA71F03D2EF#1332226361119#com.sap.portal.activityreport#sap.com/irj#com.sap.portal.activityreport#J2EE_GUEST#0##n/a##80d27a94719811e197d500000036eb2e#Thread[Thread-81,5,SAPEngine_Application_Thread[impl:3]_Group]##0#0#Error#1#/System/Server#Java###  Event: Flushing of data has failed.  Impact: The collected statistics from memory could not be dumped into the raw data db tables.  PossibleActions: Restart the Activity-Report service, and if reproduces contact SAP support.##
    please help me to find out the root cause for this error.

    Hi,
    It is a memory or buffer related problem. Contact your BASIS.
    Looks like there is a shortage of space. Analyse the dump in ST22 and look for its proposals.
    OSS note 965351 might be applicable (if you are on 640/ unix).
    regards,
    NR

  • I can no longer attach pdf scans to my emails.   It has all changed.    How do I do it now please.

    I have always attached pdf scans to my emails veyr easily.   Now having been away for five weeks things have changed and I can  no longer do it.   Please help me to find a new way to do this.   I have scanned a document and can open it but cannot attach it what is wrong?.

    You really need to provide some details...
    what is your operating system?
    what is your email client?
    what is your Adobe Reader version?
    what means "can not" (or "no longer");
    how do you try attaching the file?
    what happens when you try?
    also, how large is your scanned document?

  • Can no longer attach pdf files into email.

    I recently purchased a new computer with Windows 8.1 as the OS.  Seems that I am no longer able to attach PDF files into any email.  Any clues as to what has gone wrong?

    Thanks for the help.  Seems I had a failed Windows update several weeks past I had forgottent about.  Had to do a restore to the prior date to get back to the right configuration.  Did an online session with Mircosoft, reinitiated the update, and it seems as if the issue is resolved.  We were able to re-test attaching and send pdf files. Seems there is still some slight issue with IE, but you appear to be on the right track about focusing on Web Outlook if the problem continues to surface.  Thanks again.

  • When trying to upload a PDF to an interactive site I get the announcement:"The attached PDF file references a non-embedded font Tahoma. Please remove file, embed the font and reattach." How do I embed this, or in fact any other font ?

    When trying to upload a PDF to an interactive site I get the announcement: "The attached PDF file references a non-embedded font Tahoma. Please remove file, embed the font and reattach."
    I could not get rid of the Tahoma font in the WORD file.
    How do I embed this, or in fact any other font ?

    Thank you very much !
    Indeed, I was unaware of the enormous number of options that can be selected when converting a WORD file to PDF.
    I went thru the settings and found the right one for embedding the fonts.
    Thanks again !
    Oren

  • Issue with attaching pdf in work item

    Dear Friends,
      I am trying to attach Adobe form output to a work item and send it in for approval. I have converted the Adobe form output to binary format inside the program using function module 'SCMS_XSTRING_TO_BINARY and passed it to the workflow container while starting the workflow and then inside the workflow i used the below code inside a method convert the binary to xstring format and then attach it to the workitem. But when I open the attachment from business workplace I am getting an error that There was an error opening this document, the file is damaged and could not be repaired.
      I tried to debug the method and found that everything seems to be fine, even I checked the Adobe output by sending it as an email attachment and I am able to open the same Adobe form attachment in the email. So I suspect that I am doing something wrong while converting the same(binary to xstring) in the workflow. Please advise what would be wrong with the below code.
    DATA:  wid TYPE swwwihead-wi_id,
                op_len TYPE wsuser-wsuserinstanceno,
               it_solix_tab TYPE solix-line OCCURS 0.
    DATA : zswr_att_header TYPE swr_att_header,
               zswr_att_id     TYPE swr_att_id,
               lo_sofm TYPE swc_object,
               zxstring TYPE xstring.
    swc_get_element container 'WID' wid.
    swc_get_element container 'OP_LEN' op_len.
    swc_get_table container 'IT_SOLIX_TAB' it_solix_tab.
    CALL FUNCTION 'SCMS_BINARY_TO_XSTRING'
       EXPORTING
         input_length = op_len
       IMPORTING
         buffer       = zxstring
       TABLES
         binary_tab   = it_solix_tab.
    zswr_att_header-file_type = 'B'.
    zswr_att_header-file_name = 'Attachment.pdf'.
    zswr_att_header-file_extension = 'PDF'.
    zswr_att_header-language = 'EN'.
    BREAK-POINT.
    CALL FUNCTION 'SAP_WAPI_ATTACHMENT_ADD'
       EXPORTING
         workitem_id = wid
         att_header  = zswr_att_header
         att_bin     = zxstring
      IMPORTING
        att_id      = zswr_att_id.
    swc_create_object lo_sofm 'SOFM' zswr_att_id-doc_id.
    swc_set_element container 'SOFM' lo_sofm.

    Hi
    I feel like this part of teh code might be creating a a problem.
    zswr_att_header-file_type = 'B'.
    zswr_att_header-file_name = 'Attachment.pdf'.   "<------ Just give the name of the file , no extension needed as .pdf"
    zswr_att_header-file_extension = 'PDF'.              " <---- Since here you are already specifying the type of file.
    zswr_att_header-language = 'EN'.
    Regards
    Pavan

  • Preview show all attachment (pdf) as locked

    just i want to ask about why (preview.app) show all attachment (pdf) as locked and when you want to unlocked press in the top of file to open it , why there is some step to do this ,not like before in snow leopard. and how i install old preview to work on it in side Mac lion ox????

    I have Brother Control Center3 and if I click the "Configuration" button in Control Center and then click on the type of scan (e.g., image, file, ocr, etc) there is a window where I can select the file type of the output, the application that opens with the document after the scan and the ability to adjust a number of other settings.  I suspect that this was similar in earlier versions but if not you can likely download a later version from the Brother support site.

  • Attach PDF file to Service notification

    Hi Everyone,
    Can somebody tell me how I can attach PDF file from local folder into the attachment list in the service notification(tcode IW52) ?
    Also how i can get the list of documents attached to the  service notification ?
    I should attach the file from module pool program(from custom transaction).
    Is there any FM or some class methods that can make the attachment ?
    Thanks,
    Dime Slavkov

    1. Make your pdf files readily available on your PC desktop.
    2. Go to IW52, Click on GOS icon, Create... --> Create Attachment.
    You will get a file select Dialog box, refer to your desktop file and attach. You can attach number of files this way. If you want to see the files you've attached, click on the Attachment list shown below Create.. in the above picture. You will get the list of all files attached. You can choose anyone and view.
    KJogeswaraRao

  • Script on parent pdf opens attached pdf, but attached is no longer Reader-enabled

    Hello everyone,
    I have a fill-in pdf that uses the following JS to auto open an attached pdf:
    this.exportDataObject({cName: "mypdf.pdf", nLaunch: 2});
    Now, the problem is that the user (if using Adobe Reader) cannot save data entered into the attached document.  Using Acrobat, I reader-enabled the attached file "mypdf" before attaching it to the parent pdf.  Somehow, when it becomes attached, it just loses this functionality.  Even when I reader-enable the parent pdf, it warns me that it cannot reader-enable attached files.
    This seems like a huge flaw, so I imagine there's a solution.  Any ideas? Anyone face this problem before?

    That's extremely helpful. Thanks. Works fine now. David

Maybe you are looking for

  • How can I retrieve my purchased items from itunes?

    I had to make a new user account in my computer but I had accidentally deleted all my purchased music and videos. I know I can get it back by going to the purchased list on the itunes store, but somehow nothing that I have purchased or downloaded app

  • Acrobat X Pro PDF Portfolio does not display video correctly

    Windows XP Acrobat X Pro SWF file, also SWF file converted to PDF I am trying to place an SWF file in a portfolio so that the first frame of the video will be visible as the user pages through the portfolio. All I see is a white screen. When I double

  • Problems with iTunes purchase/support

    I purchased the Matrix trillogy last night, and did not have time to download all of the content before I went to bed. I woke up this morning I tried to download the content, but iTunes is saying that I only purchased the first Matrix. I tried to con

  • Screen Failure - Reset works OK for

    Hi, I thought I'd post my experience from today as it may help others. I left my player in the car last night and when I started it this morning the screen turned on and nothing came up. It froze on me there and then and simply didn't respond to anyt

  • Download  assistant  doesnt  run

    hello.i  have  downloaded  download assistant,but  doesnt  run  at  all!.first  i  ve  tried  to  run  from  my  downloads  folder,but  it  failed.after  that  ,copy  paste  to  programs  directory  ,but  the  problem  remain.i  have  win  8x64