Create document with Compound Attributes

Hi, does anyone can solve my problem
I have created a customer parser to parse my customised document say "XXX.PO". I followed the instruction in the developer guide (create customised parser). Everything is fine except the compound attributes, i don't know how to handle the compound attributes in java code. the following is my document definition.
//po detail
<?xml version = '1.0' standalone = 'yes'?>
<ClassObject>
<Name>PoDetail</Name>
<Description>Po attribute definition</Description>
<Superclass Reftype = "name">ApplicationObject</Superclass>
<Attributes>
<Attribute>
<Name>TagName</Name>
<DataType>String</DataType>
<DataLength>80</DataLength>
</Attribute>
<Attribute>
<Name>TagValue</Name>
<DataType>String</DataType>
<DataLength>4000</DataLength>
</Attribute>
</Attributes>
</ClassObject>
//class domain
<?xml version="1.0" standalone="yes"?>
<ClassDomain>
<Name>DocumentDetailDomain</Name>
<DomainType>1</DomainType>
<Classes>
<ArrayElement reftype="name">PoDetail</ArrayElement>
</Classes>
</ClassDomain>
//Document definitaion
<?xml version= '1.0' standalone = 'yes' ?>
<ClassObject>
<Name>PoDocument</Name>
<Description>PoDocument </Description>
<Superclass Reftype = "name">Document</Superclass>
<Attributes>
<Attribute>
<Name>PoNumber</Name>
<DataType>String</DataType>
<DataLength>50</DataLength>
</Attribute>
<Attribute>
<Name>ItemDetail</Name>
<DataType>PublicObject</DataType>
<ClassDomain RefType="name">DocumentDetailDomain</ClassDomain>
</Attribute>
</Attributes>
</ClassObject>
Does anyone can show me how to handle compound attributes
Many thanks
Ernest
null

Dear Dmitry Rassakhatsky
Can you please elaborate what you are trying to achive using BAPI_DOCUMENT_CREATE02  and SAP XI.
We would be in better position to suggest solution.
Also most of us will not be able to understand Technical ABAP so request you to provide detail scenario.
With Warm Regards
Mangesh Pande

Similar Messages

  • Dynamically create document type Item Attribute using WF_ENGINE.AddItem API

    Hi
    Is WF_ENGINE.AddItem API , supported to create document type Item attributes dynamically ? If yes how do we set the display name of the attribute. If no then is there is any other method to dynamically create document tyoe item attribute?
    Thanks

    Hi,
    If the document is stored on a file system, then I would replace the message body with a PL/SQL document which includes links to the files as straightforward URLs. There would be no need to include them in the Workflow in any way. For example, I recently worked with a client where all the (file) attachments made within eBusiness Suite were then migrated into Oracle Universal Content Management and the attachment was replaced with a URL to the new document. Any notifications now just reference the URL link to the document within the document management system in an HTML notification. While the processing is going on, the user is given the list of files that exist as attachments, but no links because the document is being processed by the management system.
    If the attachments are going to be stored in Workflow as documents, you won't be able to change the display name though - display name is set for the attribute on the message, not for each specific notification. Changing the value of the display name for the message would impact all notifications that use that message, which isn't what you want.
    What you need is to dynamically build the notification (either using PL/SQL or OA Framework) and include a list of attachments in the notification. This may be a direct link to the document (either in a document management system or on a file system somewhere) that you can render as a URL, or a link to code that can retrieve the document from the database and serve that to the user. This is not a straightforward piece of work.
    If this is purely internal, you might be better off having a custom form / screen which displays the different documents, and link to that from the notification. Or you could link to a standard form for the transaction and have the users pick up the attachments directly from the transaction.
    HTH,
    Matt
    WorkflowFAQ.com - the ONLY independent resource for Oracle Workflow development
    Alpha review chapters from my book "Developing With Oracle Workflow" are available via my website http://www.workflowfaq.com
    Have you read the blog at http://www.workflowfaq.com/blog ?
    WorkflowFAQ support forum: http://forum.workflowfaq.com

  • Create Documents with any Currency

    Hi,
    it´s possible create documents with SDK objects in any currency?
    I need create a invoice in Local Currency or System Currency depending the source.

    Hi Victor,
    Yes, you can create marketing documents through the DI API and set any currency code (...well, any currency code that already exists in the company setup). The Documents object has a DocCurrency and DocRate property for defining the currency.
    Kind Regards,
    Owen

  • Error while creating document with attachment.

    Hi,
    I am getting an error "An error occured while creating the original attribute for PDF"
    I tried with out file attachment, it works as you know it is simple....
    I tried with various types of attachments like .TXT and .WRD (changed both wsapplication and docfile parameters), however i get the same error. I tried both from presentation and application server (by providing   pf_ftp_dest                = 'SAPFTPA'    pf_http_dest               = 'SAPHTTPA' )
    Any idea on how to solve this?
    All i need is create a DMS document with a PDF attachment from application server. Are there any other ways to solve this issue?
    ws_docdata-documenttype = 'ARE'.
    ws_docdata-description = 'BAPI DMS'.
    ws_docdata-statusextern = 'CR'.
    ws_file-storagecategory = 'DMS_C1_ST'.
    ws_file-wsapplication   = 'PDF'.
    ws_file-description = 'Job output'.
    ws_file-docfile = 'C:\CAD Integ BAPIS_46.pdf'.
    append ws_file to it_files.
    CALL FUNCTION 'BAPI_DOCUMENT_CREATE2'
      EXPORTING
         documentdata               = ws_docdata
    IMPORTING
         return                     = v_ret
    TABLES
         documentfiles              = it_files   .
    BREAK-POINT.
    IF v_ret-type CA 'EA'.
      ROLLBACK WORK.
      WRITE : v_Ret-message.
    ELSE.
      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
        EXPORTING
          wait = '5'.
    ENDIF.
    Thanks
    Pavan

    Hi,
    I found that it is due to document type = 'ARE'. I changed hte document type to one of hte standard type 'TST'. It works for presentation server, but does not work for application server. Any ideas? Any help is appreciated with points.
    ws_docdata-documenttype = 'TST'.
    ws_docdata-description = 'BAPI DMS'.
    ws_docdata-statusextern = 'CT'.
    ws_docdata-documentnumber = 'ZNG-10000000017'.
    ws_file-storagecategory = 'DMS_C1_ST'.
    ws_file-wsapplication   = 'PDF'.
    ws_file-description = 'Job output'.
    ws_file-docfile = p_file.
    append ws_file to it_files.
    CALL FUNCTION 'BAPI_DOCUMENT_CREATE2'
      EXPORTING
        documentdata               = ws_docdata
       pf_ftp_dest                = 'SAPFTPA'
       pf_http_dest               = 'SAPHTTPA'
    IMPORTING
       documentnumber             = v_docnum
       documentpart               = v_docpart
       documentversion            = v_docver
       return                     = v_ret
    TABLES
       documentfiles              = it_files   .
    IF v_ret-type CA 'EA'.
      ROLLBACK WORK.
      WRITE : v_Ret-message.
    ELSE.
      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
        EXPORTING
          wait = '5'.
    ENDIF.
    Thanks
    Pavan

  • Creating document with content from a remote system

    Any sample code that I have seen for creating a new document requires that the file (the content) of the document resides on the Server machine.
    What is the best way to create a document with content that comes from a remote file?

    The Java code which is trying to load a file into IFS must have access to the file to load it.
    If the file you are trying to load is in a remote location from the Java code, then you would need to use some remote access protocol, such as NFS, to ensure the file was accessible to the Java code.

  • Am creating document with Pages. pages are in "portrait" orientation, but two charts at end need to be "landscape". changing the orientation for one section changes it for entire doc. can i have different orientations in Pages for different sections?

    am creating a document with Pages.  all pages using "portrait" orientation, except 2 appendices need to be in "landscape".  in Word for Windows it is possible to have different page orientations for different sections of a document.  is that possible with Pages.  Even when i put the appendices in a different section, changing the page orientation changes it for the entire doc.

    Make a separate document the size and orientation you want.
    Turn that into a pdf and add it back into the original Pages document or into the pdf from from that document.
    Peter

  • Create document with PL/SQL xml parser

    Hello,
    I'm trying to create a document with PL/SQL package xmldom on 8.1.7 and write to a file.
    The problem is that my file is empty when it's created.
    Can anyone send me an example of this simple problem or fullfill my example so it's works.
    As you understand I'm new in using XML. :)
    My example is:
    declare
    doc xmldom.DOMDocument;
    n xmldom.DOMNode;
    e xmldom.domelement;
    t xmldom.domtext;
    begin
    doc := xmldom.newdomdocument;
    t := xmldom.createtextnode(doc, 'ROOT');
    n := xmldom.makenode(t);
    doc := xmldom.makedocument(n);
    xmldom.writetofile(doc, 'd:\orant\xdk\plsql\demo\test.xml');
    end;
    Regards
    Hekan

    Your problem may be memory for the JavaVM. Remember, the PL/SQL
    parser uses the Java XML Parser APIs which run in a VM instance.
    Are you running Oracle 8i? If you are you can access our Java
    XML parser loaded in 8i's VM directly from your PL/SQL code.
    That is in fact how our PL/SQL Parser does it.
    Finally, we have no experience loading other XML Parsers into
    Oracle.
    Oracle XML Team
    http://technet.oracle.com
    Oracle Technology Network
    Premal Mehta (guest) wrote:
    : Hi,
    : I asked about his a few days back. Pl/SQL parser does not
    work
    : for XML files of size greater then 500Kb. You replied saying
    : that there were no such problem.
    : However whenever I try, either I get some exception or
    Pl/SQL
    : crashes due to memory error. I am clueless. Is there some
    : setting that I can do to get away with the problem? Please
    : guide...
    : Also, tell me about the alternatives.
    : Can I write code in Java and load these class filesin Oracle
    : and then reference these classes from Pl/SQL code. Can I load
    : any other parser for Java in Oracle.
    : Looking forward for help...
    : Premal.
    null

  • Create document with refrence + update some fields by passing some  values

    Hello Experts,
    I have a small problem . I have to create the sales order from BAPI ...but the scenario is
          have to create with refreence to another document
          some fields like condition types or material or order quantity etc are passed from an excel sheet
    hence some information which is populated in excel sheet should be picked up rest everything should be picked up
    from the refrence document
    How can use both information (from the refrence document and externally passed from the excel)  and create a new document
    please suggest!!!!
    regards,
    Khushy

    Hi,
    I am  not sure whether I really understand your request. Let me try to help.
    > Example: <FT_TAB> TYPE STANDARD TABLE,
    >                 <FS_TAB> TYPE ANY,            
    >
    > DATA: INT_TAB  is my dynamic table values.
    >
    >
    > LOOP AT INT_TAB.
    >  ASSIGN COMPONENT 'MATNR'  OF STRUCTURE <FS_TAB> TO <F_VALUE>
    > <F_VALUE> = INT_TAB-MATNR.
    >  APPEND <FS_TAB> TO <FT_TAB>
    Here <FT_TAB> must already be assigned to some internal table with a given (dynamic) structure. Did this happen before this piece of code?
    What I would do is to create a dynamic table (see documentation to CREATE DATA) with MATNR and the STYLE field (LVC_T_STYL). See the documentation for CREATE DATA - creation of internal tables. When collection the field descriptions for that internal table I would also build the field catalogue for the ALV.
    Then assign <FT_TAB> to that newly created internal table, <FS_TAB> to a newly created structure (same as a table line).
    Move the MATNR to component 1 (or component 'MATNR') of the table and fill the style table according to your needs. Then insert the <FS_TAB> into <FT_TAB>.
    Finally call the ALV SET_TABLE... method with your dynamic table and your field catalogue.
    Regards,
    Gerd Rother

  • Reg Creating Document with predefined content and it should be send by mail

    Hello Friends,
    I created one report containg Customer Realted Info.
    Requirement:
    now when user click or select one customer no then that time one document will be generated with predifined format having that selected customer no and address
    and that document will be sent by mail to 4 persons. ( like automailers ).
    so plz tell how to create that document with predefined letter content and how can i send that document via mail ????
    Thanks in advance.
    Marmik

    Hi
    <b>Here is custom sample code for E-mail purpose</b>
    *& Report  ZSEND
    report zsend .
    tables: kna1.
    data for send function
    data doc_data  like sodocchgi1.
    data object_id like soodk.
    data objcont   like soli occurs 10 with header line.
    data receiver  like somlreci1 occurs 1 with header line.
    select * from kna1 where anred like 'C%'.
      write:/ kna1-kunnr, kna1-anred.
    send data internal table
      concatenate kna1-kunnr kna1-anred
                             into objcont-line separated by space.
      append objcont.
    endselect.
    insert receiver (sap name)
      refresh receiver.
      clear receiver.
      move: sy-uname to  receiver-receiver,
            'X'      to receiver-express,
            'B'      to receiver-rec_type.
      append receiver.
    insert mail description
      write 'Sending a mail through abap'
                     to doc_data-obj_descr.
    call function 'SO_NEW_DOCUMENT_SEND_API1'
         exporting
              document_data              = doc_data
         importing
              new_object_id              = object_id
         tables
              object_content             = objcont
              receivers                  = receiver
         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.
    Hope this will help.
    Please rewards suitable points.
    Regards
    - Atul

  • CV01N - create document with template - path length

    Hi all,
    i want to create a document from a template document with an original file.
    A popup is displayed and i specify the new path for the new original file.
    --> Error when copying from ... <directory>
    Only 50 characters of the directory string are displayed in the message box???
    Any ideas?
    regards

    hi,
    go to trasaction dc30
    If you are using word file, then select it and click on define template for original file. Make new entry, define all things
    like  Document Type
    Applic.
    Language
    No
    Description
    Copy from...............
    this way you can maintan the template for original file.
    create new document, cleck on create original.
    once you click it, there is a button create with template.
    in dc20 ,click Define data carrier type "server, front end".
    if you are not using content server , then say default entry.
    regards
    nitin
    Award point if useful.

  • Problem creating document with function ISH_N2_MEDICAL_DOCUMENT

    Hello,
    first of all, creating a document with correct data works. But our customer wants the documents also to be created if the name of the responsible employee is wrong or not existing.
    Can this be done in some way? Because when i try to use the function "ISH_N2_MEDICAL_DOCUMENT" i get the message "message employee NAME is not employee responsible" and the document is not created.
    regards
    Daniel

    Dear Daniel,
    basically you cannot create a medical document without an existing employee responsible (business partner). Depending on your system configuration the EmR may to be assigned to the documenting ou.
    So how you can deal with that restriction?
    a) use a dummy bp for these onces which doesn't exists. You can check BP by the IS-H BAPI for Business partners.
    b) create the BP on the fly before creating the document.
    Regards,
    Axel

  • Create document links and attributes in Portal KM

    Hi,
    I'm not sure if this has been done before but it's an interesting issue:
    We have an external Open Source Document Management System with which a large number of documents and graphics are managed (including translations). This DMS also contains vast amounts of META data for each object.
    We now want to generate URLs in EP6 (in a repository) for these documents and graphics that are managed and stored in the external DMS to provide access for portal users (yes we want to keep the DMS).
    The META data found in the DMS is to be used to provide search functionality in the portal and create Taxonomies.
    N.B.: It's not possible to migrate the Objects (Documents and Graphics) and their META data from the DMS to the Portal for several reasons - nor does there exist an interface of any kind between the Portal (SAP) and DMS (Open Source). However we are able to extract the META data and construct access details (i.e. a URL to the DMS).
    Anyone come across an issue like this? We would be thankful for any leads on documentation, hints, tips, possible solutions, etc.
    Wolfgang

    Does the DMS support webdav - i.e. is it a webdav server?  If it is then you could probably have URL's directly to the documents in the DMS or even integrate the files stored in the DMS into the portal by adding it as a webdav repository.
    Paul

  • Creating documents with SCMS_DOC_URL_CREATE in SAP Content Server

    Hi there,
    I have a Problem here  with the Knowledge Provider concerning SCMS_DOC_URL_CREATE and hope anyone could help me out.
    For a SAP Records Management document I am calling BAPI_SRM_DOC_CREATE and get a LOIO and a PHIO ID for my new document. The PHIO-ID I pass to SCMS_DOC_URL_CREATE which then creates the URL to put the file on a SAP Content Server with a 3rd party tool. That works totally fine and I can see the file on the Content Server with its metadata,
    Unfortunately SAP Records Management doesn't recognize that a file has been uploaded. When I open the file in the transaction ORGANIZER it has no content and no components.
    Is there any function call I am missing to tell the Records Management document that I have uploaded something?
    All is working fine when I get the uploaded content into NetWeaver with SCMS_GET... and call BAPI_SRM_CHECKIN_DOCUMENT. But of course this is not what I want (transferring the file directly in the local network area where the content server stands, then getting it back to NetWeaver and back again to the content server).
    Any help would really be appreciated.
    Thank you
    Marcus

    Answer: because SCMS_DOC_URL_CREATE is not remote enabled by default.

  • Adobe's Common Extensibility Platform CEP create pulldown with InDesign Attributes

    Hi all
    I am working on a plugin that follows the new CEP way of doing things.
    How do I create a pulldown that reflects the InDesign Attributes?
    I am sure this is a standard functionality that many Extension/Plugins will need.
    It is easy enough to create the index.html with a field that will display the values. (Then again: Adobe CEP: array as a datalist for an input field doesn’t work.)
    The jsApp.js would need to handle the traffic between the display field and the jsxApp.jsx. (Would we need to check the validity of the field?)
    A simple example would be to "choose" between the colors in the swatches. (This would not need a validity check as we only flick between the existing values in the swatches).
    Anyway just the mechanics between the HTML5 panel to the jsxApp.jsx are tricky enough. Anybody has a working template for such a task?
    Thank you for your help
    Regards
    Romano

    Hi Romano,
    I've several paid Extensions for Photoshop published on Adobe Add-ons (like ALCE, Vitamin BW, Double USM, PS Projects) and few free ones.
    Things are more or less as you depict them - it's a matter of having an account on both Add-ons and Fastspring (if you want to get paid) and submit your product. I'd say that the code signing certificate isn't as expensive as you wrote. I got mine from Komodo for I guess $100 few years ago, but didn't renew it. I'm using a free, self signed certificate now and so far none of my customers has really complained about it.
    (by the way, if you stick to Adobe Add-ons and its peculiar way to deploy products - via the CC app - there's no any difference between self signed and paid certificates; only when you install via Adobe Extension Manager, it would pop up an alert that the user has to dismiss).
    I usually upload an hybrid ZXP (HTML Panels Tips: #10 Packaging / ZXP Installers | Photoshop, etc.) but there are other simpler way to pack stuff, it takes two or three days for the approval and it's published.
    Hope this helps, good luck!
    Davide Barranca
    www.davidebarranca.com
    www.cs-extensions.com

  • Loading Master Data with compounding attributes

    Hello All,
    I have a characteristic, "Commission Code", compounded to "Product" and "Commission Code" is an attribute of the InfoProvider, "Sales Rep".
    Now, I'm not able to load data into the master data for "Sales Rep" from a flat file because as I get the same sales rep with two different commission codes I get an error caused by "duplicated keys":
    below an extract of the flat file which goes in error :
    SalesRep (key)     ///     CommissionCode     ///     Product
    1000                    ///       10%                      ///    ProdA
    1000                    ///        20%                      ///     ProdB
    how to load the master data in the proper way ? Where I'm wrong ?
    Thanks in advance.

    Hi ,
    Sales rep infoobject should be compounded by commision code. I think you will get the compound of commision code (product) as well in the compound.
    This will make the records unique and you would be able to load same sales rep with two different commision code.
    So your key then would be sales rep, commsion code and product together.
    Hope it helps,
    Regards,
    Sunmit.

Maybe you are looking for

  • How do i find my backed up ipad files on my computer ?

    my ipad was restriced by my little cousin cause he put in a password on the iPad and disabled my Apps Store app, can someone tell me how to retrieve the Restriction Code without restoring the iPad ?

  • Windows Error 48 Ipod can't update

    Anybody know how to fix this problem Everything has worked fine for about 3 weeks. Connected Ipod Nano 4gb to Itunes tonight and got message "Error 48 - Problem with Ipod cannot update Ipod". Only solution I could find was to reset Ipod and reload al

  • There is no sound in my laptop after the update. hp envy m6

    I updated my laptop with hp update and after that there is no sound in laptop. if i play something online only then i get the sound else whatever files or movies or music i have in my laptop there is no sound.  I use envy series.. windows 8.. i5 proc

  • Interface program in file concept

    Hi,     please help me in solving this interface. Iam new to this area , please hel me. 1) Select all the entries from the ZSWAPHISTORY table where the ‘ApproveDate” = SY-DATUM.      The data should be selected on the basis that the entries that are

  • ABAP Query and Translation

    Hi Experts, I have a Tcode and it looks like it is generated through ABAP Query. I know the Report name also, so how i can find the Query and Infoset Name. Please suggest me some ideas. I have another doubt when i am Trying to Translate the text elem