Insertion of external document(URL) in FB03 programmatically.

Hi All,
I have to insert the external document(URL) in the FB03 programmatically.File will contain Document Number, Company Code,
Fiscal Year along with the url.Is there any FM to accomplish such a requirement?
any help will be appreciated.
Thanks in advance.
Regards,
Sarbajit.

Hi Sarbajit,
Would you mind sharing your solution?
Regards,
Brian

Similar Messages

  • Create External document (URL) in SAP Personas

    Hi Smart People!
    To save some steps and incorporate a scanner I am working on creating buttons to "Attach Documents" in different areas such as MM03, FB03, and a few others where we have to keep a scanned in document attached to certain other Materials or Payables and such. All docs are scanned in and saved online and then we use the "create external document (url) menu option to link it where it is needed in SAP.
    In one place it works just fine and in the others it is not working at all and custom button or even just following the already existing menu options it keeps giving me this error. I tried search on the SCN and Google and no such luck on this error. Anyone have any ideas? See pic below and also the text below is the separated error so you can see what it actually says.
    [Unknown] ses[0]/wnd[0]/usrUSRAREA/ctlcntITS/itsdoc
    Thank you for any help you can give!

    That screen shot is for the Silverlight browser plugin.
    You can check your Personas version and patch level in System -> Status. Clicking on the magnifying glass in the SAP System Data box will list all the components of the ERP system. It will tell you what Personas version and SP is installed.
    Something like this:
    The above means Personas 2.0 SP2.
    If you indeed happen to have Personas 2.0 with no support package (so SP level says 0000), then the first thing I'd recommend is to bring the system to the latest level, which would be like in the screen shot, and then trying again. There is a good chance the problem will be resolved.
    If your system is completely up-to-date and it still gives you trouble, then create an OSS incident.

  • Tnx. IW22 Change PM Notification -  Create external document (URL) posting

    Hi:
    I am in transaction IW22 i.e. Change PM Notification.  There is a 'Services for object' drop down which appears below the enter tick.  This appears in online but not in BDC.  I have tried it through the transaction SHDB i.e. Transaction Recorder also herein the 'Services for object' does not appear.  I need to post entries through 'Create external document (URL)' through the 'Services for object' drop down using BDC / BAPI / etc.
    Please advice.
    NB.

    Hi NB,
    We have similar issue for QM notification and I have used function "SO_OBJECT_INSERT".
    I am enclosing my code may be useful for you:
    FORM CREATE-URL-ATTACHMENT.
      CALL FUNCTION 'SO_FOLDER_ROOT_ID_GET'
        EXPORTING
          REGION    = 'B'
        IMPORTING
          FOLDER_ID = FOLDER_ID
        EXCEPTIONS
          OTHERS    = 1.
      CLEAR: LS_OBJCONT, LT_OBJCONT, LT_OBJHEAD.
      REFRESH: LT_OBJCONT, LT_OBJHEAD.
      CONCATENATE '&KEY&' H-URL INTO LS_OBJCONT.
      APPEND LS_OBJCONT TO LT_OBJCONT.
      CLEAR: L_OBJ_DATA.
      L_OBJ_DATA-OBJSNS = 'O'.
      L_OBJ_DATA-OBJLA  = SY-LANGU.
      L_OBJ_DATA-OBJDES = 'NOTES URL'.
      CALL FUNCTION 'SO_OBJECT_INSERT'
        EXPORTING
          FOLDER_ID             = FOLDER_ID
          OBJECT_TYPE           = 'URL'
          OBJECT_HD_CHANGE      = L_OBJ_DATA
        IMPORTING
          OBJECT_ID             = L_OBJ_ID
        TABLES
          OBJHEAD               = LT_OBJHEAD
          OBJCONT               = LT_OBJCONT
        EXCEPTIONS
          ACTIVE_USER_NOT_EXIST = 35
          FOLDER_NOT_EXIST      = 6
          OBJECT_TYPE_NOT_EXIST = 17
          OWNER_NOT_EXIST       = 22
          PARAMETER_ERROR       = 23
          OTHERS                = 1000.
      CLEAR: IS_OBJECT.
      IS_OBJECT-OBJKEY = WQMNUM.
      IS_OBJECT-OBJTYPE = 'BUS2078'.
      CLEAR: REL_DOC.
      CONCATENATE FOLDER_ID L_OBJ_ID INTO REL_DOC-OBJKEY.
      REL_DOC-OBJTYPE = 'MESSAGE'.
      CALL FUNCTION 'BINARY_RELATION_CREATE'
        EXPORTING
          OBJ_ROLEA    = IS_OBJECT
          OBJ_ROLEB    = REL_DOC
          RELATIONTYPE = 'URL'
        EXCEPTIONS
          OTHERS       = 1.
      IF SY-SUBRC EQ 0.
        COMMIT WORK.
      ELSE.
        T_MESSAGE = 'Notification Attachment Add Failed'.
        APPEND T_MESSAGE.
        CLEAR: T_MESSAGE.
        T_MESSAGE = 'Reference:'.
        T_MESSAGE+11(20) = H-REF.
        APPEND T_MESSAGE.
        CLEAR: T_MESSAGE.
        T_MESSAGE = 'Notification:'.
        T_MESSAGE+14(12) = WQMNUM.
        APPEND T_MESSAGE.
        CLEAR: T_MESSAGE.
        T_MESSAGE = 'URL:'.
        T_MESSAGE+5(72) = H-URL.
        APPEND T_MESSAGE.
        PERFORM SEND-EMAIL.
      ENDIF.
    ENDFORM.                    "create-url-attachment
    Hope this may help you.
    Please reward all the useful answers.
    Regards,
    Lanka

  • MM03/MM02 Need to create external document URL

    Hi All,
        We are having a requirement to create web link for materials using transactions MM03 or MM02.
        The exact path for this is as follows:
        Go to MM03/MM02 -> Enter material ->Basic data view -> Systems Menu -> Services for object -> Create external document URL.Here we need to enter the title and URL.
        The other path is clicking on the services for objects button that comes on the title bar and create the same.
        Is there any BAPI that can be used to achieve this.
    Reward points assured.
    Thanks and regards,
    Nilesh.

    Hi Nilesh,
        can you try 
    Using this function module:
      CALL FUNCTION 'GUI_RUN'
      EXPORTING
      command ='IEXPLORE.EXE'
      PARAMETER ='WWW.YAHOOMAIL.COM'.
    CD =
    IMPORTING
    RETURNCODE =
    in the appr place of coding
    <u>Reward pts if found usefull :)</u>
    Regards
    Sathish

  • FM to create external document(URL)   FBL1n transaction

    Hi!
    I'm trying to create a URL link in FBL1n but I'm not been able to do it.
    I checked this link[ FM to create external document(URL)|FM to create external document(URL)]
    but I'm not getting the URL in the link list.
    I can create the link manually as Vimal kumar  did, but in transaction FBL1n.
    My code is like this (I think one of the parameters is wrong.)
    data: it_BAPIPROPER type BAPIPROPER occurs 0,
          wa_BAPIPROPER like BAPIPROPER.
    DATA: WA_logical_system LIKE TBDLS-LOGSYS.
    CALL FUNCTION 'OWN_LOGICAL_SYSTEM_GET'
    IMPORTING
       OWN_LOGICAL_SYSTEM         = WA_logical_system
    EXCEPTIONS
       OWN_LOGICAL_SYSTEM_NOT_DEFINED       = 1
       OTHERS                               = 2.
    wa_bapiproper-prop_name = 'DESCRIPTION'.
    wa_bapiproper-prop_value = 'Test'.
    APPEND wa_bapiproper TO it_bapiproper.
    CALL FUNCTION 'BDS_BUSINESSDOCUMENT_CRE_O_URL'
    EXPORTING
    LOGICAL_SYSTEM        = WA_logical_system
    classname = 'BSEG'
    classtype = 'BO'
    object_key ='10001900000000210001'
    url = 'http://metcold/ss2000/plainlinkurl.asp?dbid=08&k=Supplier_No,Invoice_No&v=22549,029214758&username=guest&password=guest.url'
    mimetype = 'TEXT/PLAIN'
    TABLES
    properties = it_bapiproper
    commit WORK.
    this is been execute with sy-subrc eq 0.
    Any idea?
    Thanks.

    Hi
    I tried attach an URL to document line, but without results. If I tried add URL to document header, all works perfectly. Maybe its not possible to add url-s into document lines...

  • FM to create external document(URL)

    Hi All,
    I need to create external document(URL) for equipment and functional location. Manually it is done by clicking a button (called Services for Object) which appears in the left upper corner (on the left side of the transaction heading) and then selecting option (Create External Document URL). Infact this button is availaible in many transactions.
    I need FM/BAPI using which i can create external document(URL) to equipment and functional location programmaticaly.
    Regards,
    Vimal

    Hi Viquar Iqbal,
    Thanks for ur help. It worked.
    The working code (For others reference)
    wa_BAPIPROPER-PROP_NAME = 'DESCRIPTION'.
    wa_BAPIPROPER-PROP_VALUE = 'Test'.
    APPEND wa_BAPIPROPER to it_BAPIPROPER.
    CALL FUNCTION 'BDS_BUSINESSDOCUMENT_CRE_O_URL'
      EXPORTING
        classname             = 'EQUI'
        classtype             = 'BO'
       OBJECT_KEY            ='000000000020000038'
        url                   = 'http://sparsh/V1/'
        mimetype              = 'TEXT/PLAIN'
    TABLES
      PROPERTIES            = it_BAPIPROPER
    Regards,
    Vimal
    Edited by: Vimal  kumar on Feb 18, 2009 2:59 PM

  • FM to create external document(URL) in IE02

    Hi,
    I need to create external document(URL) for equipment master.
    We can create manually it is done by clicking a button Services for Object and then selecting option (Create External Document URL).
    I refered many links but failed to create the url in IE02.Please help me with the example.
    Regards,

    Hi,
    You will need to use function BINARY_RELATION_CREATE for this.
    Check how is it handled in function SGOS_URL_CREATE_DIALOG. Also check code in PAI of screen 2400 (subroutine create_url_doc). You will need to use that code.
    Sridhar

  • Services for Object - Create external document (url) 132 characters limit

    Hello,
    I have this requirement:
    Maintenance people would like to relate a document on our portal on a work order to be able to print it with the work order.
    My suggestion was to use Services for Object in the Order -> Create external document (url).
    But the adress field cannot contain more than 132 characters.
    I have URL longer than 132 chars:
    eg: http://server.domain:port/irj/go/km/docs/documents/AAI/Gestion%20documentaire/Public/Entretien/Instructions%20de%20travail/EU-IT-01-02.pdf
    What do you suggest me?
    Thanks,
    François

    Thank you Pete but we are release 700 and this note applies to release 620 and older. I will try to find another note or another way.
    In the meantime we use the short-ID of SAP Portal Documents which are long to retrieve but always under 132 char.
    François

  • External document (URL) don't save the link

    Hi experts,
    I want to show "Service for object" button by creating Business Object (SWO1) with
    Interface = IFGOSXSERV
    Keyfield = Ref. Table --> ANLA
                     Ref. field --> ANLN1
    And my codes :
    CONSTANTS: OBJTYPE TYPE BORIDENT-OBJTYPE VALUE 'ZGOS'.
    DATA: MANAGER TYPE REF TO CL_GOS_MANAGER,
          OBJ TYPE BORIDENT.
    PARAMETERS: MATNR TYPE MARA-MATNR.
    AT SELECTION-SCREEN OUTPUT.
    CLEAR OBJ.
    SET OBJECT TYPE TO 'ZGOS'
    OBJ-OBJTYPE = OBJTYPE.
    SET OBJECT KEY = REPORT NAME
    SELECT SINGLE NAME
    FROM ANLA
    INTO OBJ-OBJKEY
    WHERE BUKRS = p_bukrs AND
                 ANLN1 = p_anln1 AND
                 ANLN2 = p_anln2.
    CALL GOS MANAGER WITHOUT CONTAINER (WILL BE DISPLAYED IN THE TOOLBAR)
    CREATE OBJECT MANAGER
    EXPORTING
    IS_OBJECT = OBJ
    EXCEPTIONS
    OTHERS = 1.
    What I want is each AssetNo have external Link (URL), but when I add external link and I rerun the program from SE38, the link is not saved.
    And I want to have a reference with External link between AS02 and my custom program. (If you add external link in particular AssetNo by AS02, it will be shown in my custom report, otherwise)
    Can you help me on this?
    Regards,
    Andreyus
    Edited by: Andreyus on Aug 8, 2011 11:56 AM

    Barbara,
    Some additional tips.
    AppleWorks has stopped working correctly
    Document content not saved
    AppleWorks fails to save properly
    ali b

  • 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

  • How can I hyperlink from FM to an external document and make the links work in PDF-XChange Viewer?

    A couple of months ago some of you kindly taught me how to insert links to an external document in FrameMaker. The syntax that made all the difference, was the following:
    message openfile "H:/folder name/to/your/file.ext"
    I converted my FrameMaker file to PDF format using Acrobat Distiller, and everything worked like a charm when the users opened the resulting PDF document in Acrobat Reader.
    Much to my frustration, someone has now decided that the organisation should use PDF-XChange Viewer instead of Acrobat Reader, and my links don't work anymore... Nothing happens when you click on them. (This only applies to links to external documents. Links to e.g. websites work nicely.)
    Has anybody got any idea what I could do to make the links work in PDF-Xchange Viewer as well? Or am I trying to do the impossible now?
    Best regards
    Jorunn

    Jorunn H wrote:
    A couple of months ago some of you kindly taught me how to insert links to an external document in FrameMaker. The syntax that made all the difference, was the following:
    message openfile "H:/folder name/to/your/file.ext"
    I converted my FrameMaker file to PDF format using Acrobat Distiller, and everything worked like a charm when the users opened the resulting PDF document in Acrobat Reader.
    Much to my frustration, someone has now decided that the organisation should use PDF-XChange Viewer instead of Acrobat Reader, and my links don't work anymore... Nothing happens when you click on them. (This only applies to links to external documents. Links to e.g. websites work nicely.)
    Has anybody got any idea what I could do to make the links work in PDF-Xchange Viewer as well? Or am I trying to do the impossible now?
    Best regards
    Jorunn
    Have you tried contacting the PDF-Xchange company's technical support? What results?
    Regards,
    Peter Gold
    KnowHow ProServices

  • Uploading External Documents (*.doc, *.pdf, *.html) using JSP, Servlets, JDBC

    I would like to upload external documents to an Oracle 8.16 db without using agents or interMedia.
    Documents can range from *.doc, *.pdf, *.html and so forth. Ive been all over OTN and all I keep finding are examples on uploading Audio, Video or Image data - which is fine.. but damn, can we get a couple "Real World" examples in there?
    Im even looking at iWorkplace which is excellent.. but a little out of my league when it comes to uploading external documents. But that's exactly what Id like to do. The documentation on this issue is very scarce - Please help.
    Any help in this matter would be greatly appreciated.
    Many Thanks in Advance.

    Is anyone having problems loading text files using this routine? I can load a file with this, but even though the table contains a CLOB, the file is uploaded as binary and one only sees a series of question marks when looking at the CLOB. So, basically, the file appears to be converted somehow from text to binary. Any thoughts? I'm using 8.1.6.0.0 on Sun Solaris 2.7. character set in the database is UTF8.
    Thanks.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by Rick Post:
    Steps you need to follow are:
    1. Create a table to hold the documents
    CREATE TABLE XML_DOCUMENTS (
    DOCNAME VARCHAR2(200) NOT NULL,
    XMLDOC CLOB,
    TIMESTAMP DATE
    2. Create a directory
    CREATE OR REPLACE DIRECTORY bfile_dir AS /private1/LOB/files;
    3. Grant READ privileges on the directory to the appropriate user
    GRANT READ on bfile_dir to SCOTT;
    4. Create a procedure
    CREATE PROCEDURE insertXmlFile( dir VARCHAR2,
    file VARCHAR2,
    name VARCHAR2 := NULL) IS
    theBFile BFILE;
    theCLob CLOB;
    theDocName VARCHAR2(200) := NVL(name,file);
    BEGIN
    -- (1) Insert a new row into xml_documents with an empty CLOB, and
    -- (2) Retrieve the empty CLOB into a variable with RETURNING..INTO
    INSERT INTO xml_documents(docname,xmldoc) VALUES(theDocName,empty_clob())
    RETURNING xmldoc INTO theCLob;
    -- (3) Get a BFile handle to the external file
    theBFile := BFileName(dir,file);
    -- (4) Open the file
    dbms_lob.fileOpen(theBFile);
    -- (5) Copy the contents of the BFile into the empty CLOB
    dbms_lob.loadFromFile(dest_lob => theCLob,
    src_lob => theBFile,
    amount => dbms_lob.getLength(theBFile));
    -- (6) Close the file and commit
    dbms_lob.fileClose(theBFile);
    COMMIT;
    END;
    5. Execute the procedure
    INSERTXMLFILE('bfile_dir', filename, 'description');
    Good Luck!
    <HR></BLOCKQUOTE>
    null

  • Create external document

    Hi all,
    I just want to know if it's possible ti create an external document on a sales order programmatically ?

    ok

  • External Document Linking

    Can someone tell me if it's possible to link to a specific
    area of an external document via ColdFusion?
    For example, I can create a link to a Micorsoft Word
    document. But is it possible to link to a certain page or paragraph
    within the document?
    Thanks,
    Brian

    i was thinking that this is not possible, but, after testing
    with it a couple minutes... select the word where you want your
    "anchor". then under the insert menu you have the bookmark option.
    give it a name (myAnchortest) save your document and upload it to a
    web server.
    refer to the document from a page...
    myMSWordDoc.doc#myAnchortest
    that looks like it will work...i just didnt test it.

  • Biiling with reference to external documents

    Is it possible to create invoice with reference to the external documents (from SAP Real Estate) automatically in SD?  Please advise.
    Thanks,
    ak

    If you want to preserve the xml exactly as is, then store it as varbinary(max).  This will of course mean you can't use the features of the xml datatype.
    USE tempdb
    GO
    DROP TABLE [dbo].[XmlTest]
    GO
    CREATE TABLE [dbo].[XmlTest] ( xml XML, vbin VARBINARY(MAX) )
    GO
    DECLARE @xml NVARCHAR(MAX);
    SET @xml = '<!DOCTYPE R [<!ELEMENT R (#PCDATA)> <!ENTITY ndash SYSTEM "http://localhost/ExEnt.ent">]><R>&ndash;</R>';
    INSERT INTO [dbo].[XmlTest] VALUES(CONVERT(XML, @xml, 3), CONVERT(VARBINARY(MAX),@xml));
    GO
    SELECT *, CAST( VBIN AS nvarchar(MAX))
    FROM [dbo].[XmlTest]
    Is that an option for you?

Maybe you are looking for

  • Table name(s) to report on Sales Text

    Hi, I am searching a way to get a report of the Sales Text related to the material master per sales org. Ran through a bunch of tables, but none of them provide info on the Sales Text. Could anyone help me on which tables I need to combine to get to

  • AS2 Certificates and URL

    Hi, We are setting up a party and going to exchange via AS2. As the messages would involve outbound and inbound, they had forwarded their certificates along with URL path. Also, they were requesting GLN number.  Please let me know what is it about.

  • Request Date Quantity

    Hello - In the availability window, request date qty value is being shown. Can anyone help me know where this field - request date qty is being stored? What table is being used to populate this information. I've found one table MRP_ATP_SCHEDULE_TEMP

  • Maximum number of concurrent devices that could be used with embedde oracle

    Hi, How to know what will be the maximum number of concurrent devices that could be used with embedded oracle? Any help will be needful for me Thanks and Regards

  • How to effectively import photos from iPhoto

    I had a pretty large iPhoto library and try to keep it under control by exporting photos into folders on an external HD. I also have mobile me albums from multiple computers live. I tried importing photos from iPhoto into Aperture and encounter probl