Parsing custom document types e.g PDF, JPEG etc

Hi,
If I need to parse custom document types as I mentioned above how do I extract attributes since the documents are not structured and unlike XML there are no tags.
Thanks
KM

And as I said before, you have to know the format of the file to parse it.
PDF, PS, XLS, DOC, TIFF, JPEG, GIF, etc. are all binary files that have proprietary formats. Some are documented (JPEG, GIF, PS, for instance), others are not (DOC, XLS, for instance).
The world is moving to XML and other text-based formats because they are open standards -- they are easier to parse and more interoperable with disparate applications.

Similar Messages

  • B2B Custom Document Type not getting identified

    Hello,
    I have installed Oracle Fusion Middleware 11g on my local machine and created a custom document type with proper .xsd definition and XPath Expression Identifier in Oracle B2B interface and configured its trading partners ( Host & Remote ) along with an agreement between the partners.
    I have also configured the host listening channel of Generic-File type which picks xml files from my c:\orclsrvs_in folder.
    My problem is that the moment I drop any sample file in the expected directory, it gets picked up from B2B , but there isn't any record of the same under Reports and Metrics links.
    The Business message, Application message and Conversation message tabs are also not showing any information about the record picked, but in wire message tab, the record is shown in PROCESSING state.
    I am not able to conclude whats wrong behind this.. where can i track the logs for the same ??
    kindly help to resolve this issue.
    Thanks & Regards
    Hiteshkumar Chaudhary

    Hi Hitesh,
    i came to know that B2B extracts the TP name from the filename itselfYes, in case of Generic File, Generic SFTP and Generic FTP, file name provides the necessary values to Oracle B2B to identify the Trading Partner. You can define your own file name format in the Delivery Channel under Transport Protocol Parameters in field "Filename format" (It's an optional field but it is always good to define your own format, otherwise B2B will take it's default format - TradingPartner_DocumentType_Revision_msgType_msgId_replytoMsgID_extension.xml ). Following Filename formats can be used -
    %FROM_PARTY%
    %TO_PARTY%
    %DOCTYPE_NAME%
    %DOCTYPE_REVISION%
    %MSG_ID%
    %TIMESTAMP%
    These file name formats can be used in any combination; for example,
    %TO_PARTY%_%DOCTYPE_NAME%_%DOCTYPE_REVISION%.dat
    Note - Any file extension is allowed.
    what are the system parameters to be set in weblogic console and how?? This activity is part of the pre and post installation steps. If you have done those without getting any errors then nothing else is required.
    how shall I reinstall XEngine properly ??XEngine is part of B2B installation. If B2B gets installed without flashing any errors then we assume that other components of this part has installed properly.
    Regards,
    Anuj
    Edited by: Anuj Dwivedi, Infosys on Aug 28, 2009 5:51 PM

  • SAP Cloud For Customer : Add Custom Document Type For Attachments in Account Screen

    Hi Experts,
    I have requirement to add document type for the Attachment as shown below in COD_Account_TI screen.
    I have highlighted in yellow is it possible to add custom document type.
    1) Where we need to maintain in the configuration or we need require SDK ?
    I have maintained 1 custom document type under the path :
    Business Configuration --> Open All Activity --> Fine Tunes --> Activities --> Maintain Document Type
    2) Is this correct path or we nee do maintain in another location or path?
    3) if not possible using configuration ? How it is possible using SDK work?
    Many Thanks,
    Mithun

    Hi Mithun,
    We had this problem with the Hyperlinks.
    You should look at your Event Handler from the Inport or the Event Handler of the query. Some Data Operation with assign function can lead to an infinite loop.
    Like assigning the inport data field to your list that is bound with a custom query.
    Best Regards,
    Madalin

  • Customs document type cannot be determined for external document Type F8

    Hello Experts
    Need help
    I am trying to transfer F8 to GTS 10.1 and getting following message in GTS  Transfer log for export:
    Customs document type cannot be determined for external document Type F8
    New implementation
    GTS 10.1 running with SP 12
    ECC side Plug-In settings are fine. BAdi is Active.(There is no document mapping for F8/CUSDEC as it is not required in 10.1)
    GTS side configurations are also fine. Checked several times by 4 sets of eyes!!
    (Include general settings configurations, Customs communication configurations:)
    (Defining technical medium, conditions/output parameters, defining messages for communication process,
    defining determination for activity sequence and control settings for communication process)
    Despite this I am not able to trnasfer F8 successfully
    Can someone throw some light on this issue please?
    Keshav Murthy
    [email protected]

    Hi Dhilipan
    Here we go..
    You asked me to check the following
    Please check following things
    1) Legal regulation is activated. - Yes Activated
    2) Process template assigned to the legal regulation - Yes Assigned
    3) Activity Sequence determination - Yes done
    4) Open the activity sequence in under Control settings for Communication processes and check if there is a document type assigned to it. Table- /SAPSLL/TLEPAF - Yes done.
    It is really puzzling.
    Thanks
    Keshav Murthy

  • Billing due list problem with customized document types

    Dear Team,
    We have created a new Rental contract and Rental Invoice document types by copying the standard ones (MV & FV), while trying to get the Billing due list, unable to get the Rental Invoice type, rather the system is proposing the standard Invoice type (i have already changed the Billing type to the customized one in sales document type).
    Can you please let me know the pre-requisites for the billing due list.
    Regards
    Sreedhar

    Hi,
    Thank you for your response. But, i was not able to implement those oss notes as the current highest support package we are currently using is SAPKB70208, Software component - SAP-BASIS.
    Kindly let me know if you have more inputs.
    Regards,
    Vinitha

  • Trex is not searching texts in any document types other then PDF.

    Dear All
    We are implementing DMS in ECC 6.0.We have configured Trex 7.0 text search in ABAP stack. Trex not searching text in .dwg (Autocad) *.doc (Word files) files in SAP System through CV04N T-code it is not searching.
    It is searching only pdf files.
    System Details:
    Server ECC 6.0
    SAP_BASIS - SAPKB70010
    SAP_ABA - SAPKA70010
    SAP_APPL - SAPKH60007
    EA-APPL - SAPKGPAD07
    Error Message:
    We have added the mime types for full text search in SAP System, SPRO &#61664; Cross-Application Components &#61664; Document Management &#61664; General Data &#61664; Settings for Storage Systems &#61664; Maintain Storage System as application/acad & application/doc. And also in Trex server usr\sap\<SID>\TRX00\Trex\TREXValidMimeTypes.ini file.
    After adding we have restarted the Trex server & done the Reindexing in SAP System & tried. But it is not searching the text in autocad files.
    Kindly support for us, to solve this issue.
    Regards
    Harshavardhan.G
    Mob: - 91 99130 88039

    Hi Harshavardhan,
    could you please create a OSS ticket for BC-TRX and attach an example of DWG document to this. Please also check if the includehidden parameter (TREXFilter.ini) is set to true.
    Best regards,
    Mikhail

  • Printing Documents (doc, xls, pdf, jpeg, etc) to a specific printer

    Can anyone help with this printing issue.  I want to be able to print various kinds of documents to a specific printer.  I have looked at the PrintDocument class and the Process class.  My closest working attempt has been with the Process
    Class.
    Here is my code using a Process Class:
    Dim Proc As New Process
    Dim PrintTo As String = "\\dev003\NetPrintQueue2Fax"
    Dim outfile As String = Directory & "\" & FileName
    Dim psi As New ProcessStartInfo("AcroRd32.exe", "/t" + outfile + " " + PrintTo + " ")
    Try
    psi.CreateNoWindow = True
    psi.UseShellExecute = False
    psi.Verb = "print"
    psi.FileName = "C:\Program Files\Adobe\Reader 9.0\Reader\AcroRd32.exe"
    psi.WorkingDirectory = "C:\Program Files\Adobe\Reader 9.0\Reader\"
    psi.RedirectStandardOutput = True
    psi.WindowStyle = ProcessWindowStyle.Normal
    Proc.StartInfo = psi
    Proc.Start()
    Catch ex As System.Exception
    Dim ErrorRpt As New ErrorReporting.ErrorReporting
    ErrorRpt.Log_Errors(ex)
    MsgBox(ex.Message, MsgBoxStyle.Critical, "Error Raised")
    End Try
    My
    ulimate goal is to be able to fax these documents through a Xerox copier that has printing and faxing capabilities.
    Thank
    You
    Michael J Hill

    Thank you Mike for your friendly help and good suggestion.
    Hi Michael,
    Welcome to MSDN forums!
    Mike pointed you to the right direction.
    The following is the detailed code sample:
    How to print an external document using Process.Start method in VB.NET.
    Public
    Class Form1
    Private Sub Button1_Click(ByVal sender
    As System.Object, ByVal e
    As System.EventArgs) Handles Button1.Click
    Dim psi As
    New ProcessStartInfo
    psi.UseShellExecute = True
    psi.Verb = "print"
    psi.WindowStyle = ProcessWindowStyle.Hidden
    psi.Arguments = PrintDialog1.PrinterSettings.PrinterName.ToString()' Here specify printer name
    psi.FileName = "C:\MyFile.doc"
    ' Here specify a document to be printed
    Process.Start(psi)
    End Sub
    End
    Class
    Best regards,
    Guang-Ming 
    MSDN Subscriber Support
    in Forum
    If you have any feedback on our support, please contact
    [email protected]
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • PO document type not transferring to Customs management

    Hi,
    We have configured PO document type in GTS for Import and it got transfer to Complaince not to customs.  I have created CULOIM document type and item category on customs.  when i checked on this table /SAPSLL/V_TLEYVS i couldn't find CULOIM document type..  When i try to create a new one it say CULOIM document type already exist...
    I do not know why it is saying like that even document type not there in that table and where would i find that.
    One more question:
    When we assign document type to logical system on Customs we can see GTS document type field... when you press F4 you can see CD Cat - A... Can you tell me what is that and where do you define and assign to custom document type.
    regards
    rc gopi

    You can maintain the table by going into the SPRO and defining the doc tyoe you looking for , Onc eyou maintain there it reflects in in this table as it Configuration table.
    If you want to delete , add any entry directly in table then u can do that by getting in debug mode.
    Select a  entry in table
    Double click on it
    Do /h  to switch on the debugging
    Press Enter
    You will See different Case for "Code"
    Type the filed name Code in in "field Name"
    it will display the value 'SHOW'  you can change this value as desire like to Delete 'DELE' , to insert new value 'AVNO' and then click on change pencil.
    and press F8.
    Now you come to the screen where u can do the changes and save it.
    Custom Doc Category is taken automatically by SAP as for Export and Import doc type  in customs it is always A.
    If you cDefine Document Types for Advance Docs for Customs Declaration it is C.
    Each category has got it one chateristics , so if we defining correct documnet type we need not to worry for category as it will by default come as set in SAP.
    Kind Regards,
    Sameer

  • Set up document type "" in FI customizing

    Hello experts,
    While running MR11 (ACCM) GR/IR clearing in the backend we are getting the below error message - What needs to be done to correct this ?
    <b>Document type  not defined</b>
    Message no. F5814
    Diagnosis
    Financial Accounting service: document type "" was not found in the document type table. There are two possible causes:
    document type "" has not been set up in FI customizing
    document type is supplied incorrectly from the calling application
    System Response
    System error.
    Procedure
    There are two possible measures:
    set up document type "" in FI customizing
    system error within the calling application - get in contact with the SAP Hotline Service.
    Points will be awarded.
    Thanks,
    Manish Singhi

    Hi,
    Thnx. for ur inputs. The Document type and number ranges have all been defined. Also when we run the t-code MR11 and execute in Front end there is no issue. However, when we execute the Program SAPRCKM_MR11 and call the varaints we encounter that error. The variant has been created with the same info. what we are giving when executing in front end.
    Can you give some idea ?
    Thanks, Manish

  • Oracle Fusion Middleware 11G  B2B Document Type not getting Identified

    Hello,
    I have installed Oracle Fusion Middleware 11g on my local machine and created a custom document type with proper .xsd definition and XPath Expression Identifier in Oracle B2B interface and configured its trading partners ( Host & Remote ) along with an agreement between the partners.
    I have also configured the host listening channel of Generic-File type which picks xml files from my c:\orclsrvs_in folder.
    My problem is that the moment I drop any sample file in the expected directory, it gets picked up from B2B , but there isn't any record of the same under Reports and Metrics links.
    The Business message, Application message and Conversation message tabs are also not showing any information about the record picked, but in wire message tab, the record is shown in PROCESSING state.
    I am not able to conclude whats wrong behind this.. where can i track the logs for the same ??
    kindly help to resolve this issue.
    Thanks & Regards
    Hiteshkumar Chaudhary

    Hi Hitesh,
    i came to know that B2B extracts the TP name from the filename itselfYes, in case of Generic File, Generic SFTP and Generic FTP, file name provides the necessary values to Oracle B2B to identify the Trading Partner. You can define your own file name format in the Delivery Channel under Transport Protocol Parameters in field "Filename format" (It's an optional field but it is always good to define your own format, otherwise B2B will take it's default format - TradingPartner_DocumentType_Revision_msgType_msgId_replytoMsgID_extension.xml ). Following Filename formats can be used -
    %FROM_PARTY%
    %TO_PARTY%
    %DOCTYPE_NAME%
    %DOCTYPE_REVISION%
    %MSG_ID%
    %TIMESTAMP%
    These file name formats can be used in any combination; for example,
    %TO_PARTY%_%DOCTYPE_NAME%_%DOCTYPE_REVISION%.dat
    Note - Any file extension is allowed.
    what are the system parameters to be set in weblogic console and how?? This activity is part of the pre and post installation steps. If you have done those without getting any errors then nothing else is required.
    how shall I reinstall XEngine properly ??XEngine is part of B2B installation. If B2B gets installed without flashing any errors then we assume that other components of this part has installed properly.
    Regards,
    Anuj
    Edited by: Anuj Dwivedi, Infosys on Aug 28, 2009 5:51 PM

  • Substituion of the FI Document type from MM posting

    Dears,
    we are actually in the need of posting movement type 562 and would like to assign a specific document type when certain conditions are met.
    In transaction OMBA document type WA is associated to the goods receipt (which is the task that is being carried out with movement 562) and we would like to substitute it with a custom document type when posting the document that meet particular criteria such as Plant and G/L account.
    I have tried to create a substitution from standard transaction OBBH but, if I create it at line item level, I am not able of selecting the BLART field (since it is part of the header data) while if I create it at header level I do not have the necessary information (such as plant and G/L account) and it's not possible to select the document type as a field to be substituted.
    Do you think that it would be possible to achieve my objective by creating a substituion at line item level that has, as prerequisite, the plant and G/L account, and a UEXIT as substitution?
    Do you have any other suggestion to solve this issue?
    Thanks and best regards
    Davide

    Hello Davide,
    You can try to change the attribute to the BLART and make it subsitutable (by maintaining VWTYGB01 view via SM30) and build your subsitution on complete document, but I doubt if SAP will allow to substitute such sensitive field.
    Regards,
    Eli

  • Document type AER

    Greetings,
    I am told that document type AER is a good document type to utilise. In my DMS system I see that such as ACT, ADA, ADC, ADE are there but not AER.
    Is there a website where I can see how document type AER is configured since I cannot see this in my DMS system?
    Regards,
    Keith

    Hi Amaresh,
    Thanks for the reply. Indeed I will also peruse SAP help
    The business requirement is as follows (below was how it was communicated to me):
    "Look at how the Ownership documents (Document Type AOS) in SAP are configured and see if we can replicate this configuration (in the development portal) for Engineering reports.  The design of the Engineering Reports will be very similar to the AOS types.  I propose that we use the document types AER for these Engineering Reports."
    Your statement of "Document type configuration purely depends on the business requirement" leads me to ask the question - are there some standard document type configuration types? if so, it seems that document type AER is a non-standard/custom document type?
    Regards,
    Keith

  • Maintain Copy Control for Document Types.

    Hi Gurus,
    My Client has two customized documents both are order Types and wants to maintain Copy control between them.
    If i see VTAA i can find either New Entries option or copy option.
    When i go for new entries option it asks me Requirements and Routines which needs to be set for this copy control and i am not aware of those.
    The Other option is Copy as but since it's customized document types so i am not getting which document should i take as refernce for copying.
    Please suggest me how to proceed.
    Thanks in Advance!!!!

    Hi
    Ideally we don't gamble with standard settings. Not only in copy control but for all other settings related to document types, conditions, movement types etc etc. If standard settings or configuration has been deleted by human error then we should restore standard settings first. May be BASIS guy can do it and if it is not possible then open some other server where these settings are there and you should do all settings manually by copying the standard ones.
    Why we recommend to always copy standard settings and make necessary changes is that standard settings are done by SAP and they have tested it thoroughly and they have hundreds of consultants who have worked on these settings. Standard settings are reliable and we can copy them without any fear of mistake. Whereas if you copy some Z settings or create new one then there are more chances of some wrong or missing settings. Logically may be it sounds not that important or useful but technically it is really fruitful to do this.
    In standard settings system copies all subsequent settings and you don't need to do those settings again and you are already aware of this fact.
    One more benefit is that you only need to change document names and in create new entry you'll have to enter all the fields one by one and you don't know which value is more appropriate for this field. It also saves time efforts and people like me always prefer to save efforts
    Thank$

  • Use of different document type in PO??

    hii
    Can some body explain me with their real time exp about the PO and PR document types necessary in SAP system.??
    Because hope with creating new document types we can do all the Procurement type using NB ??
    Then what will be need of custom document types for the same in SAP system??
    Thanks
    Edited by: MM group on Aug 2, 2010 1:56 PM

    >
    MM group wrote:
    > hii
    >
    > Can some body explain me with their real time exp about the PO and PR document types necessary in SAP system.??
    >
    > Because hope with creating new document types we can do all the Procurement type using NB ??
    >
    > Then what will be need of custom document types for the same in SAP system??
    >
    > Thanks
    >
    > Edited by: MM group on Aug 2, 2010 1:56 PM
    Usually the standard document types are enough, customized document types are required, when there is need of release strategies getting trigged for different departments, or different departments require their own document types e.g. document type created for mechanical, as ZMNB with release strategy for this document type going to head of mechanical,
    document type ZENB for engineering where release strategy final release is HEAD OF ENGINEERING and so on and each document type can have there own number range and so on.

  • MRP and purchase requisition document type.

    Hi
    where can I set the purchase requisition document type for
    MRP?
    MRP generates purchase requisitions using document type NB instead of
    a custom document  type.
    <b>How can I set the system so that generates purchase requisitions with
    a custom document type?</b>
    Best regards

    hi,
    in Tranasction : OPPQ, you can assingn the user defined document type.
    here standard is NB. There you can change the doucment type to ZNB like.
    hope this may help you,
    Regards,
    Srinivas

Maybe you are looking for