Type of document (nif, passport) in BADI

I need to know how to obtain the value of this structure (type of document-nif, passport etc) from infotype 2 in a badi. The badi takes infotypes fields but this one is an structure (in theory I can not use it) and I need it to know if the field entered is a NIF or a passport or other type of available document, that´s why I need it.
Do you know how to do it ? I haved tried to use the field used in the infotype but it has no matchcode associated. The structure has the values fixed and that values are the ones I want to use in the badi.

Hi Bhatia,
I am opening an word document dynamically using following code.
try
File f=new File("NewDocument1.doc");
FileOutputStream fos=new FileOutputStream(f);
FileInputStream fis = new FileInputStream(f);
FileChannel fc = fis.getChannel();
byte[] data = new byte[(int)(fc.size())];
IWDCachedWebResource cachedWebResource=WDWebResource.getWebResource(data,WDWebResourceType.DOC);
cachedWebResource.setResourceName("NewDocument1.doc");
String url=cachedWebResource.getURL();
IWDWindow window=wdComponentAPI.getWindowManager().createExternalWindow(url,"cmps",true);
window.open();
catch(Exception ioe)
wdComponentAPI.getMessageManager().reportSuccess(ioe.getMessage());
wdComponentAPI.getMessageManager().reportException("Exception in Method cmps :::"+ioe.getMessage(),false);
Do u know how to close the word document dynamically and save it to the specified location.
It's very urgent.
Regards,
Rajesh

Similar Messages

  • Trying to download HSBHSL in CS4..."wrong type of document"

    I have done a search on line and on this forum and can't seem to find a solution to this.
    I have Vista and have gone here http://www.adobe.com/support/downloads/detail.jsp? ftpID=4050 and downloaded the zip folders containing the HSBHSL plug in.
    I download the 64 bit and have the HSBHSL.8BF  on my desktop. I double click it, CS4 opens and I get the following message:
    "Could not complete your request as it is not the right type of document."
    I have doubled checked and have correctly downloaded the plug in for Windows, the 64 bit version.
    Just wondering if anyone here has encountered this problem or can suggest a possible fix.
    Many thanks,
    Adrian

    You know you're off to a bad start when you keep replying to your own thread!
    The file HSBHSL file is sitting here: Plug-ins/fiilters
    It is sitting with Average, Channel Port, Clouds, Colour Halftone etc etc, directly underneath "Lighting Styles"
    It says it is an 8BF file, 20kb.
    But when I open CS4 (please not again I am NOT clicking to open the HSBHSL file, I am dragging in into the adobe folder) this blasted Owl error keeps popping up.
    Again, is there anyone who has encountered this?
    Many thanks

  • I am trying to use a interactive form and it says "If this message is not eventually replaced by the proper contents of the document, your PDF  viewer may not be able to display this type of document."  This is a IRS form and has worked before.

    I am trying to use a interactive form and it says "see below"  This is a IRS form and has worked before.
    is there a tech support phone number?
    Please wait...
    If this message is not eventually replaced by the proper contents of the document, your PDF
    viewer may not be able to display this type of document.
    You can upgrade to the latest version of Adobe Reader for Windows®, Mac, or Linux® by
    visiting http://www.adobe.com/go/reader_download.
    For more assistance with Adobe Reader visit http://www.adobe.com/go/acrreader.
    Windows is either a registered trademark or a trademark of Microsoft Corporation in the United States and/or other countries. Mac is a trademark
    of Apple Inc., registered in the United States and other countries. Linux is the registered trademark of Linus Torvalds in the U.S. and other countries

    That means you are looking at the form online with a browser that uses its own (incompatible) PDF viewer, not the Adobe Reader plugin.
    Either
    download the form to your local disk and fill it from there
    use a browser that employs the Adobe Reader plugin
    configure your browser to use the Adobe Reader plugin: http://helpx.adobe.com/acrobat/kb/pdf-browser-plugin-configuration.html

  • How to block accounting by MIRO for specific type of documents.

    Hello
    Is there any possibility to block accounting by MIRO for specific type of document? So you could only account specific type of documents by FBV* or FB*.
    Regards
    Marcin Obukowicz

    Hi,
    You can try to make a validation (OB28) which will check the document type based on transaction code prerequisites.
    Regards,
    Eli

  • How do i use the bundle for ms office to type my documents?

    how can i start using the bumdle for ms office to type my document with normal features of the pages.

    Sorry, but that adds to my confusion. The iTunes Store is for purchasing Apps for iPad/iPhone. The Mac App Store is for purchasing Mac compatible apps.

  • When I try to same an image under the command 'save as' it will only let me save as file types 'firefox document' or 'all files' and when I try to look at them later they dont work. How can I save an image as the same file type it is on the web site?!

    When I try to save an image under the command 'save as' it will only let me save as file types 'firefox document' or 'all files' and when I try to look at them later they dont work. How can I save an image as the same file type it is on the web site?!
    == This happened ==
    Every time Firefox opened
    == I updated to one of the firefox versions (Not sure which one it was)

    Thanks Alex, but sadly I already tried that. Neither .docx or .xlsx files show up in the content list. They both show as a Chrome HTML document so changing how Firefox addresses those doesn't help since it thinks its the same type of file. I don't think I can manually add files into the "Content Type" left side nav.

  • Looking for a good app to type word documents

    Looking for an app to type word documents; also, have an app for printing, but it's a hit/miss to use....any suggestions?  Thanks!

    Here's some general info.
    Working with Notes and Documents on the iPad – Alternatives & Suggestions
    http://ipadacademy.com/2012/04/working-with-notes-and-documents-on-the-ipad-alte rnatives-suggestions
     Cheers, Tom

  • Creation of new document types for document splitting rules

    Hi experts,
    We have copied from existing SA  document type to new document type.
    In standard SAP  SA  document type - define document splitting rule, we have select  "NO INHERITANCE OF ACCOUNT ASSINGNMENT", when posting the  GL document SA  document type without mapping partner profit center,system is control the derive the partner profit center.
      Our requirement is  copied from existing  SA  document type to create a new document type - we have created the new dusiness transaction variant and we have map the "classify document type to document splitting rule " and we have selet the "No inheritance of account assignment" while posting in FB01 GL document with out mapping partner profit center system is not control the " derive partner profit center".
    Could you please assist us as soon as possible
    Thanks ,
    Sreenivas
    Edited by: sapfico.srini12 on Jan 16, 2012 4:37 PM

    Hi,
    In order to create a document type for a purchase requisition  use the path
    spro-materials management - purchasing--purchase requisitions --define  document type
    in that screen you select the document type you want to copy to create your document type and perform the action.
    if you want to change the screen/field selection for your document type select the field selection key (if you select the document type as NBB the field selection key will be NBB.,and go to the screen and change the field status.
    Hope this will be suffient for your requirement.
    Regards,
    Raghu.

  • File-type "Firefox Document (.htm)" images saved to the HD won't open

    Images online occasionally default to file-type Firefox Document (.htm) as opposed to the usual jpg. They will not open even with firefox and display as coding.

    Can you describe in more detail what happens when you try to open the saved movie? I don't know what you mean by "main menu1".
    Since you saved your movie you may find it completely intact in the project's Package Contents folder. Right-click on the project icon (the one with the star on it). Select Package Contents in the drop down menu. In the Package Contents folder you should find a file named (project movie title).iMovieProj. Open that file and see if your movie is intact with all edits. If it is, duplicate it and move it to your desktop. Rename and save it as a new project. Don't otherwise mess with the Package Contents.
    Is your external drive formulated for Apple? Should be MAC OS extended or MAC OS extended (journaled).

  • I am trying to open a .tiff file in photoshop by using bridge and it opens it as a photo in windows. If I go to file open it says could not complete request because it is not the right type of document. It is a file from a lesson folder from school. Can a

    I am trying to open a .tiff file in photoshop by using bridge and it opens it as a photo in windows. If I go to file<open it says could not complete request because it is not the right type of document. It is a file from a lesson folder from school. Can anyone help me?

    Hi,
    The D810 requires Camera Raw 8.6 or later - the latest version that is compatible with Photoshop Elements 12 is Camera Raw 8.5 as far as I can see.
    You need to either buy a new version of Photoshop Elements or use the free Adobe DNG converter.
    DNG  Converter 8.8
    Win – http://www.adobe.com/support/downloads/detail.jsp?ftpID=5888
    Mac – http://www.adobe.com/support/downloads/detail.jsp?ftpID=5887
    Useful Tutorial
    http://www.youtube.com/watch?v=0bqGovpuihw
    Brian

  • GL account with line items in line type 'S' document split?

    Hi Experts,
    We found in PCP0 there are payroll documents which has GL account with with line items in line type 'S' document split. Unlike other line items with line type 'blank' these line items cannot be opened and display the wage type details. How can we know from which wage type these line items were created?
    Regards,
    Allan

    These line items are caused by company transfer and they are cleared by themselves between companies.

  • DMS BAPI_DOCUMENT_CREATE2 Class type Technical Document Category, object ty

    Hello Experts!
    The problem is that DMS import functionality stoped working after supp. pack implementation.
    The process is based on BAPI_DOCUMENT_CREATE2 functionality.
    The first problem was an error "The status set requires a previous status" which was causes dy note 1157678
    (http://wiki.sdn.sap.com/wiki/display/PLM/Error-Thestatussetrequiresapreviousstatus)
    After setting break point/de-implementing that note additional error appeared:
    "Class type Technical Document Category, object ty"
    Does anyone have idea what caused the problem, or which sap note did that? before SP19 implementation that error was not displayed.
    Current highest support package is SAPKH60403.
    Thanks in advance for help,
    Rgds,
    LB

    Hi,
    That error refers to updating characteristics for classification (addnl data tab in DIR).
    Does anyone know what could cause the problem after support pack implementation?
    Is it possible that bapi_document_create2 > api_document_maintain2 disables an option to update classification?

  • PDF viewer may not be able to display this type of document.

    I am trying to down load an HMRC file ChV1 which I believe is interactive (my layman's description - I have to fill it in) but I get the message ...
    "If this message is not eventually replaced by the proper contents of the document, your PDF
    viewer may not be able to display this type of document. , etc.,
    I am using Windows 7 and Google Chrome
    But I have the latest version - Adobe Reader Version 11.0.10.  Can anyone help, please?
    Martin

    It may be that the "PDF form" is an XFA form created by LiveCycle Designer. These forms are wrapped in PDF and to view/use one must use Acrobat or Adobe Reader.
    BUT -- today one can use browsers that provide their own built-in PDF reader that cannot 'service' XFA forms.
    Google Chrome is one of those browsers. So, don't bother with trying to view/use/do any thing to - with PDFs when using Chrome.
    Save the PDF to your computer's HDD.
    Now, open the PDF with Adobe Reader XI (fully updated of course). Process the form.
    Be well...

  • How to change content type from Document set to Item

    While creating content type I've selected Item as a parent but after created I can see its showing Document Set as a parent content type. Now can anyone please suggest if possible I can change the parent content type from Document Set to Item.

    Hi,
    From your description, I know you want to change content type’s parent after creating it.
    There is no OOB method to change content type’s parent after you create it. If current content type has not been used, you could delete it and recreate it with your desired base type. Here are similar cases:
    http://sharepoint.stackexchange.com/questions/16131/change-base-content-type-of-content-type
    https://social.technet.microsoft.com/Forums/sharepoint/en-US/b976f17e-99b5-42bb-bc82-8d4123a625cf/change-the-parent-of-a-content-type.
    This article may help you understand the relationship of Content type inheritance:
    https://support.office.com/en-au/article/Create-and-edit-content-types-3d5d45af-608d-4183-8d51-073095fe0312#__toc239159103.
    Best Regards
    Vincent Han
    TechNet Community Support

  • Japanese characters alone are not passing correctly (passing like ??? or some unreadable characters) to Adobe application when we create input variable as XML data type. The same solution works fine if we change input variable data type to document type a

    Dear Team,
    Japanese characters alone are not passing correctly (passing like ??? or some unreadable characters) to Adobe application when we create input variable as XML data type. The same solution works fine if we change input variable data type to document type. Could you please do needful. Thank you

    Hello,
    most recent patches for IGS and kernel installed. Now it works.

Maybe you are looking for