URL Attachment

Hi all,
i hope there is someone that can help me.
My question is: i've used in an ABAP custom program the FM SGOS_URL_CREATE_DIALOG: is this the way to create a report that may create me an URL attachment to MM document?
I ask you this because i don't able to create the URL attach in follow report:
report  z_attach_url.
tables: ekko.
parameters: p_contr like ekko-ebeln.
parameters: title type sood-objdes.
data: document_id type borident-objkey.
data: is_object type borident occurs 0 with header line.
start-of-selection.
is_object-objkey = p_contr.
is_object-objtype = 'BUS2014'.
append is_object.
call function 'SGOS_URL_CREATE_DIALOG'
    exporting
      is_object = is_object
      ip_title  = title
    importing
      ep_url    = document_id.

Hi,
You are missing COMMIT WORK
eport z_attach_url.
tables: ekko.
parameters: p_contr like ekko-ebeln.
parameters: title type sood-objdes.
data: document_id type borident-objkey.
data: is_object type borident occurs 0 with header line.
start-of-selection.
is_object-objkey = p_contr.
is_object-objtype = 'BUS2014'.
append is_object.
call function 'SGOS_URL_CREATE_DIALOG'
exporting
is_object = is_object
ip_title = title
importing
ep_url = document_id.
commit work.  " <<<<<<  Give Commit here <<<<<

Similar Messages

  • Unable to open URL attachment from SBWP in CRM WEB UI

    Hello Gurus,
    Need your help please. I'm having some problem opening the URL attachment from SBWP via CRM 7 WEB UI (I used a Transaction Launcher for SBWP). The attachment is a Webdynpro application.  I am able to open the attachment in SAP GUI, but not in CRM WEBUI. This problem occured when we update the SP level of CRM 7.
    Here's the scenario,
    - whenever I click the attachment, it open a new window, which also happen even before SP level update, with the following information:
      Execute an Application on FrontEnd
      Please wait. You will be forwarded automatically.
      This page is included for technical reason.
      Execute program.
      Status: Displaying Office Document ..........
      After a couple of seconds, it will return to the Workflow Workplace screen.
    I have checked the workflow log and found no inconsistency on the attached URL.
    Immediate response would be highly appreciated. Thanks in advance.
    Regards,
    Edwin

    Thanks for the reply WD ABAP.
    Yes, I did try to use the functionality of Worklist and the URL attachment successfully opened. However, there are some limitation in its functionality as indicated in the link below that opted us to use the SBWP in CRM WEB UI via transaction launcher.
    http://wiki.sdn.sap.com/wiki/display/CRM/CRMWorklist-AdvancewithDialognotSupported
    We don't want to adjust the logic of our existing workflow at this point as described in the above link as it will entails end-to-end testing again. We just encountered this issue when we update the SP level of CRM 7.
    Hope there is an alternative solution without shifting us to Worklist.
    Regards,
    Edwin

  • How to create a pdf for the URL attached to an invoice and send it as an attachment in a mail

    HI,
    I have requirement where i need to get the URL attached to an invoice, create the pdf and send as an attachement in a mail.
    The URL attached to an invoice can be seen by following the path : VF03-> Billing document->system->Services for object ->Attachement list.
    On searching through existing forums, i found that there is a table 'SRGBTBREL' which stores relationships of GOS object. On giving the invoice number in field 'INSTID_A', i could find an entry in this table.
    To get the content, i used the class CL_FITV_GOS, method GET_CONTENT. To this method i passed following values:
    IV_ATTA_ID = FOL21000000000521URL39000000000012 (The value if field INSTID_B from table SRGBTBREL)
    IV_OBJTP   = 'URL'
    On execution, i get URL link but the content table is empty.
    Could anybody provide some input on how i get the content? Or may be how i can create pdf from the URL link and attach it to mail as an attachment?
    Thanks,

    Hi Amit,
    Solution provided by you is working when the link length is one line but it is not working for more than one line
    Eg: say link is https://......80 [80 characters long]
    I will give    <a href="https://...72            [in first line]
                     73..80">click here</a>         [in second line]
    I will get the output as 73...80">click here
    But i want only CLICK HERE in my output..
    Please suggest solution.
    Thanks,
    Kavya

  • Create an URL attachment using FM SGOS_URL_CREATE_DIALOG

    Hi all,
    i hope there is someone that can help me.
    My problem is: i've to create an URL attachment to an MM document in ME33K using a custom ABAP report.
    In my report i use FM SGOS_URL_CREATE_DIALOG but when i call ME33K and display the document i don't find the URL attachement.
    I know that if the attachment is created i'd find a new redcord in table SRGBTBREL, is ok?
    Regards,
    Alex.
    PS: my report is:
    REPORT  z_attach_url                            .
    TABLES: ekko.
    PARAMETERS: p_contr like ekko-ebeln.
    PARAMETERS: title TYPE sood-objdes.
    DATA: document_id TYPE borident-objkey.
    data: is_object TYPE borident occurs 0 with header line.
      is_object-objkey = p_contr.
      is_object-objtype = 'BUS2014'.
      append is_object.
      CALL FUNCTION 'SGOS_URL_CREATE_DIALOG'
        EXPORTING
          is_object = is_object
          ip_title  = title
        IMPORTING
          ep_url    = document_id.

    Hi Chris,
    Thanks for your advice.  It's for our own sites, so we can accept the overhead.
    The animation is simply fade in image, fade out image, fade in text message, fade out text message, fade in next image, etc.
    So, when you say "they are instead wrapped inside a single custom component", I understand it conceptually but need a few details:
    1.  Does this mean I first create the custom component (before doing anything else)?
    2.  At what point to I import/load my Photoshop file with all of the layers?
    Jim

  • Function Module used to updating URL attachment in RE80

    Hi there !
    I'm currently developing a program in RE module . I'm finding off ways on how to auto update my URL attachment in RE80 , someone told me to use the function module SO_OBJECT_UPDATE to do it , but then I don't know how it works ? Can someone teach me on how to use this ? or is there any other function module that I can use for this kind of scenario ?
    Your help will be much appreciated.
    Thank You !

    We didn't pushed through with such revision in our program , though your comments helped us alot , the program still can't manage it's import and export mechanism .
    Thanks for your help !

  • Create external document (URL) - Attachment in FI document

    Hi all,
    how can I add with a custom program an URL as attachment in a FI document?
    And how can I remove the possibility to delete this attachment for a user when he enters in change mode FB02?
    Many thanks.
    Luca

    hi,
    u have to do 2 things.....
    1) attach the created fi docs to browser(FM is available but i forgot it)
    2) call function module CALL_BROWSER and WS_EXECUTE to execute the attached fi docs...
    regards
    dinesh.a

  • External File URL attach to FB03 - document service object

    Hi ;
    My requirement is Scanned copy of hard Vouchers stored in one Windows based External drive.this drives contains yearly ,monthly wise sub folders.
    in that sub folders Scanned Copies stored with voucher numbers. this hard Copy of voucher number Updated in FI Document- document header text file.
    based on Input file name customized program to identify the File from External drive and find the URL of scanned File and attach in FB03- Service for object tool.
    How to achieve this requirement this through SFTP Script . FTP is not using in my System.
    highly appreciate if somebody help me on this..
    Regards
    satish

    Hi Satish,
    You may look into option of writing an ABAP program to scan through the list of files in the share drive and pick up one which matches the selection and then perform upload and attach to FB03.
    Some examples of coding is available in thread http://scn.sap.com/thread/1925928
    Regards,
    Deepak Kori

  • Add a URL attachment to invoice

    Hi
    We are using SRM 4.
    We want to attach to the invoice a URL link (instead of attaching a document).
    Is there a way to do it?
    Thanks
    Doron

    Hello,
    Can you please refer to the OSS Note 434218 - 3.0: Display configuration attachments/server configuration.
    Hope this might work to you for your invoice scenario also.
    Regards,
    Mani

  • How to find whether url attachment linked to invoice is deleted

    Hi all,
    I have a scenario in which a URL is retreived from a 3rd party application while creating an invoice (finance and SRM) and is displayed as an attachment (FB03/MIR4). Here PI is used as middleware and using proxies the URL is retreived from the 3rd part application and updated in the respective invoice using standard FMs.
    Now the issue is at any point of time an invoice number say 123 can have only one and the same URL say http://ABC. It was noticed that the same urls are updated twice for the same invoice number when an invoice is parked and later on when the invoice is posted.
    So in the code which updates the invoices with url, one check was made to table SRGBTBREL to check if an entry exits for the invoice number and only if sy-subrc ne 0, the code to update the url is executed and the problem of creating mutiple attachments of the url for the same invoice number was solved. But after doing this encountered another issue. When the user goes and deletes the url from invoice, the next time he tries changing the invoice, the url does not get updated because an entry for the invoice number already exists in SRGBTBREL.
    Hence is there any table or way to find out that the URL is deleted for that particular invoice (Since currently there is no attachment while viewing using FB03/MIR4).
    Please help with your kind suggestions.
    Thanks and regards,
    Hari

    I have solved the issue and closing this question.
    Thanks,
    Harikumar

  • WorkItem Attachment: URL attachment from Intranet portal (authorization)

    Hello Guru's
    Ive got a requirement to create an attachment as an URL.
    The URL points to Sharepoint 2010 server. I am able to attach local or server URL, *.doc, *.pdf etc. file into WorkItem.
    But when i attach intranet file SAP doesnt open it. It seems like user authorization, and SAP doesnt transfer user credits to Sharepoint portal.
    Could some one help?
    Best regards
    Laurynas Prikockis

    Hello Laurynas Prikockis !
                       If there is an URL for your intranet file, then you can access it by its URL by using the function module CALL_INTERNET_ADRESS.
                       Create a method within which call this function module.On execution, it will call the URL on the system's default browser.
    Regards,
    S.Suresh

  • URL Attachment in UWL - Task

    Hi All.
    We're in ECC 5.0 with EP 6.0
    My question how to tie specific url i.e.www.sdn.sap.com to particular dialog task.
    This dialog task built on ABAP Class
    We setup our dialog task as follows:
    Our Task TS90000200 have object category "ABAP Class", Object Type "YCL_WF_01" and method "DUMMY". Nothing inside method "DUMMY"
    We register this task in SWFVISU
    with visualization parameter "APPLICATION" = "CommApp"
    and "PACKAGE" = "company.net/WfComm
    Thanks in advance

    Hi Sandy,
    Can you plese send me more details on the process. We have a similar requiremetn ot call a URL for display of sales document instead of usual transaction VA03.
    I tried both the task visualization as well the Object Visualization - but it is not working.
    Thanks a lot in advance.
    Ajay

  • Function Module to delete URL attachment programatically in re80

    Hi there !
    We are currently developing a DHL project and part of our requirements is to auto delete URL attachments  programatically in re80. I tried to look for possible function modules to use like SO_OBJECT_UPDATE  for this but base on our observation it is not suitable for this . Can  someone suggest a suitable function module to use for this ?
    Your help will be much appreciated .
    Thank You !

    Hi,
    Try this F/M:
    URL_TEMPLATE_DELETE
    URL_ESCAPE_DELIM_CHARS
    SO_OBJECT_DELETE
    SO_OBJECT_ARRAY_DELETE
    SO_OBJECT_SET_ACTION_DELETE
    Make sure the entities excatly that matches your requirement..
    ihope this may helpful.
    Thank you.
    Thanks,
    AMS

  • Url attachment option in html email (jakarata common mails)

    hello all,
    i am having the query regarding the attachment of files from a differnt machine.I am able to attach, attachments from my machine but not able to do the same from a differnt machine,Can any one suggest an api which can be used to upload the file path into the attachment and help me out .

    How are you "attaching files from a remote machine"?
    What error messages are you getting?

  • URL attachements to a DIR

    Hi All,
    Just wanted to see if there is any upper limit on the number of the URL attachments to a DIR. Also what would be the realistic number of attachments that would make the system run stable.
    Points for sure!!
    Regards
    Krishna

    As per experience there is no limit for storage of URLs.
    The urls are not stored in content server.  There is no limit for number of files that could be stored in a DIR however more files may limit on number of  users checking out the files in a DIR.
    Anirudh,

  • Services Object_Create external doc. (URL) & display the attachment list

    Hello everyone,
    we are developping an interface in Web Dynpro Abap in order to manage an existing flow in SAP R/3 (4.6c).
    In this context, the following functionality need to be developped:
    - Create external doc. (URL) for objects like service notification, sales order and documents;
    - Display these documents.
    These functionnality are provided by the Objects Services.
    Is there functions module we can use in SAP R/3 to manage that ?
    Iam not in charge of the WDA dev. I just need to specify the SAP R/3 stuff.
    Thank you very much for your help.
    Christophe.

    Yes, but you should search the forum as well as the Wiki.  URL attachment via object services has been discussed many times with example code posted.

Maybe you are looking for

  • PID control of Counters (PWM)

    Hello everybody!! I work on a closed loop PID controlled problem (Labview 8.5) and I have a couple of questions in order to make some progress! Firstly, I have to declare that my loop is composed of 2 AI channels (2 accelerometers), 1 AO channel (exc

  • How to Transfer Safari Auto-Fill Passwords to Chrome

    How do you transfer all of your saved auto-fill passwords from Safari into Chrome? It won't let me do it in Preferences/Personal Stuff/Browsing Data The box "saved passwords" is grayed out and it won't let me select it! Thanks in advance for any help

  • Problem premiere element 9 and mouse

    Hello I use photoshop element 9 without any problem but i have a great problem on première 9. My computer is a latop Packard bell Easy noteLj75 , 4 ram, i5 2,27, hard drive 500 mb 300 busy , 2 extern hard drive 1terra busy at 50% , two screen one fro

  • How can I protect my classes from de-compilers?

    Is there a way to protect my *.class files from de-compilers such as "decafe pro"???? is there somewhere a good code-obfuscator?

  • How to get MAC Address from device?

    Does any one knows, how we can get programmatically the MAC address of Blackberry device? Is it possible to get it through BES IT Policy? - Thanks