Create PO using ME59N and set field WEAKT

We are using ME59N (as a background job) to convert approved and assigned req's into PO's. However we would like to set the field EKKO-WEAKT (GR Message) so that requisitioners can be informed when there goods arrive (we have this process working when the field WEAKT is set manually).
Any suggestions would be appreciated.

Hello, I too have the same requirement.
Did you have any updates on this.
Thanks
Jay

Similar Messages

  • Create appointment using EWS and set BusyType with XML

    Hi guys,
    I have Exchange 2010 and am trying to create a calendar appointment using EWS with XML.  Everything works fine, but the "BusyType" option doesn't work.  I want the appointment to show in the calendar as "Free", but instead it
    shows as "Busy".  Here is what I have for the XML:
    <?xml version="1.0" encoding="utf-16"?>
    <CreateItemType xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" SendMeetingInvitations="SendToNone">
    <SavedItemFolderId xmlns="http://schemas.microsoft.com/exchange/services/2006/messages">
    <DistinguishedFolderId Id="calendar" xmlns="http://schemas.microsoft.com/exchange/services/2006/types">
    <Mailbox>
    <EmailAddress>{ItemProperty:OTManager_x0020_Display_x0020_Name}</EmailAddress>
    <MailboxType>Mailbox</MailboxType>
    </Mailbox>
    </DistinguishedFolderId>
    </SavedItemFolderId>
    <Items xmlns="http://schemas.microsoft.com/exchange/services/2006/messages">
    <CalendarItem xmlns="http://schemas.microsoft.com/exchange/services/2006/types">
    <ItemClass>IPM.Appointment</ItemClass>
    <Subject>Other Leave for {Common:InitiatorsDisplayName}</Subject>
    <Body BodyType="Text">Leave request</Body>
    <Location>
    </Location>
    <Importance>Normal</Importance>
    <Start>{ItemProperty:OTFrom}</Start>
    <End>{ItemProperty:OTTo}</End>
    <BusyType>Free</BusyType>
    </CalendarItem>
    </Items>
    </CreateItemType>
    I've also tried using "LegacyFreeBusyStatus" which also didn't work.  Can someone tell me how to modify my XML so that the appointment shows as "Free"?  The actual XML was generated using a workflow tool called "Nintex
    Workflow 2010", and I simply added the BusyType option to it.  I'm not sure if that makes a difference or not.  Thanks in advance!

    BusyType is not an element of the CalendarItem type it belongs to the CalendarEvent type which is part of the GetUserAvailability operation. There is a full list of CalendarItem elements on
    http://msdn.microsoft.com/en-us/library/office/aa564765(v=exchg.150).aspx (note the order of the elements is critical). You should be using the LegacyFreeBusyStatus eg the following works okay for me
    <m:Items>
    <t:CalendarItem>
    <t:Subject>tta</t:Subject>
    <t:Start>2014-02-04T12:53:33.970+11:00</t:Start>
    <t:End>2014-02-04T13:53:33.972+11:00</t:End>
    <t:LegacyFreeBusyStatus>Free</t:LegacyFreeBusyStatus>
    </t:CalendarItem>
    </m:Items>
    Cheers
    Glen

  • We now use Acrobat xi for special active forms we created that include certifications and signature fields, some of the forms are programmed to create other forms, will we have a problem upgrading to DC

    We now use Acrobat xi for special active forms we created that include certifications and signature fields, some of the forms are programmed to create other forms, will we have a problem upgrading to DC
    Our users use a form template to create other adobe forms with calculated fields, signature fields (using digital signatures)
    , and buttons. Will we be able to continue developing these forms if we upgrade to Acrobat DC?

    Hi Alex ,
    In general ,you would not have any issues and problems moving to Acrobat DC .It has a different user interface and with more enhanced features .
    You would be able to develop the kind of forms you are referring to .
    You could refer to the following document to get more information about Acrobat DC .
    FAQ | Adobe Acrobat DC
    If in case you are referring to any particular issue or problem or if you face any regarding Acrobat DC ,we are always here to help you with that .
    Please feel free to write us back .
    Regards
    Sukrit Dhingra

  • How to get UTF-8 encoding when create XML using DBMS_XMLGEN and UTL_FILE ?

    How to get UTF-8 encoding when create XML using DBMS_XMLGEN and UTL_FILE ?
    Hi,
    I do generate XML-Files by using DBMS_XMLGEN with output by UTL_FILE
    but it seems, the xml-Datafile I get on end is not really UTF-8 encoding
    ( f.ex. cannot verifying it correct in xmlspy )
    my dbms is
    NLS_CHARACTERSET          = WE8MSWIN1252
    NLS_NCHAR_CHARACTERSET     = AL16UTF16
    NLS_RDBMS_VERSION     = 10.2.0.1.0
    I do generate it in this matter :
    declare
    xmldoc CLOB;
    ctx number ;
    utl_file.file_type;
    begin
    -- generate fom xml-view :
    ctx := DBMS_XMLGEN.newContext('select xml from xml_View');
    DBMS_XMLGEN.setRowSetTag(ctx, null);
    DBMS_XMLGEN.setRowTag(ctx, null );
    DBMS_XMLGEN.SETCONVERTSPECIALCHARS(ctx,TRUE);
    -- create xml-file:
    xmldoc := DBMS_XMLGEN.getXML(ctx);
    -- put data to host-file:
    vblob_len := DBMS_LOB.getlength(xmldoc);
    DBMS_LOB.READ (xmldoc, vblob_len, 1, vBuffer);
    bHandle := utl_file.fopen(vPATH,vFileName,'W',32767);
    UTL_FILE.put_line(bHandle, vbuffer, FALSE);
    UTL_FILE.fclose(bHandle);
    end ;
    maybe while work UTL_FILE there is a change the encoding ?
    How can this solved ?
    Thank you
    Norbert
    Edited by: astramare on Feb 11, 2009 12:39 PM with database charsets

    Marco,
    I tryed to work with dbms_xslprocessor.clob2file,
    that works good,
    but what is in this matter with encoding UTF-8 ?
    in my understandig, the xmltyp created should be UTF8 (16),
    but when open the xml-file in xmlSpy as UTF-8,
    it is not well ( german caracter like Ä, Ö .. ):
    my dbms is
    NLS_CHARACTERSET = WE8MSWIN1252
    NLS_NCHAR_CHARACTERSET = AL16UTF16
    NLS_RDBMS_VERSION = 10.2.0.1.0
    -- test:
    create table nh_test ( s0 number, s1 varchar2(20) ) ;
    insert into nh_test (select 1,'hallo' from dual );
    insert into nh_test (select 2,'straße' from dual );
    insert into nh_test (select 3,'mäckie' from dual );
    insert into nh_test (select 4,'euro_€' from dual );
    commit;
    select * from nh_test ;
    S0     S1
    1     hallo
    1     hallo
    2     straße
    3     mäckie
    4     euro_€
    declare
    rc sys_refcursor;
    begin
    open rc FOR SELECT * FROM ( SELECT s0,s1 from nh_test );
    dbms_xslprocessor.clob2file( xmltype( rc ).getclobval( ) , 'XML_EXPORT_DIR','my_xml_file.xml');
    end;
    ( its the same when using output with DBMS_XMLDOM.WRITETOFILE )
    open in xmlSpy is:
    <?xml version="1.0"?>
    <ROWSET>
    <ROW>
    <S0>1</S0>
    <S1>hallo</S1>
    </ROW>
    <ROW>
    <S0>2</S0>
    <S1>straޥ</S1>
    </ROW>
    <ROW>
    <S0>3</S0>
    <S1>m㢫ie</S1>
    </ROW>
    <ROW>
    <S0>4</S0>
    <S1>euro_€</S1>
    </ROW>
    </ROWSET>
    regards
    Norbert

  • Create Custom list form and validate fields using sharepoint designer 2010

    Hi All,
    I have a requirement to create a custom job application form which will be filled and submitted by anonymous users. I have a an option to create custom user control web part but I wanted to
    create it using custom list form using SharePoint designer. My requirement is below
    Date of birth (user age should be above 22yrs )
    Email Validation
    Phone validation
    Resume attachment (should attach only word documents or PDF)
    Qualification (If other is selected then show textbox else hide)
    Can above validations be done using SharePoint designer (JavaScript or validation controls)? Or do I have to create custom control web part?
    MercuryMan

    Hello,
    I think jquery/javascript can be used to put validations on those fields. Fortunately some of validation can be done via sharepoint itself like: email, phone, age. For Attachment and Qualification fields use jquery/JS.
    See below link for column validations:
    http://thechriskent.com/2012/08/15/validate-phone-number-columns-in-sharepoint/
    http://sharepointsolutions.com/sharepoint-help/blog/2011/12/how-to-validate-an-email-address-using-column-validation-in-sharepoint-2010/
    See this for attachment:
    http://stackoverflow.com/questions/4234589/validation-of-file-extension-before-uploading-file
    For qualification:
    http://sharepoint.stackexchange.com/questions/88064/hide-show-field-on-list-form-based-on-value-from-another-field
    Hope it could help
    Hemendra:Yesterday is just a memory,Tomorrow we may never see<br/> Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • Reading UI mode and setting field mode in WebUI

    Hi
    Just getting into crm and I have some questions.
    How do I determine if a UI view is in create or change mode?
    How can i change a fields from input fields to display fields?
    The reason is I need to close 2 fields for input on the screen in change mode. But they need to be open i Create mode. It is the same view that is used for Create and Edit mode.
    Hope you can hint me in the right direction.
    Sonny

    Hi,
    I suppose you are asking for ABAP statements.
    How do I determine if a UI view is in create or change mode?
    data: lv_displaymode type abap_bool.
    lv_displaymode = view_group_context->is_view_in_display_mode( me ).
    How can i change a fields from input fields to display fields?
    view_group_context->set_view_editable( ).
    If the view groupcontext is not used, you can set the state manually on the HTMLB tags on the .htm page.
    Finetuning can be done in the GET_I methods of the context node.
    cheers Carsten

  • Error when creating Recordset using CF and Postgres

    I'm a complete newbie when it comes to databases and development so go easy on me.
    I have created a simple database with a schema (ABC) and 2 tables (_Address, _Member) in Postgres 9.0.  I have installed CF 9 in development and am creating a new application using the Construction Kit Vol 1 as my guide.  I got to the point where I am to make a Recordset and keep getting an error of:
    -1:ERROR: schema "ABC" does not exist
    org.postgresql.util.PSQLException: ERROR: schema "ABC" does not exist
    ...about 20+ lines of at errors follow (can post a screenshot if they would be helpfull)...
    From the Database tab I am able to browse my database just fine but I cannot create this recordset in the bindings tab.  I also followed the examples in the book and using their database I am able to create a recordset just fine.  CF says my data source verifies correctly.  I have verified that my password is correct as well as when in the database tab of DW I can test the connection fine.  I cannot edit the connecton from there but I get the same error when I try to edit on all of the databases, including the default test databases.
    Any suggestions would be greatly appreciated.

    Hi Loan,
    In your stock transfer Purchase Order has the correct 'Shipping Point' been determined for this item - i.e. the 'Shipping Point' associated with your 0002 Storage Location?
    The 'Shipping Point' determination is setup in config in <OVL2>, you can use the 'Loading Group' field in the Material Master (Sales:General Plant) tab to influence the shipping point that is automatically determined for a Material.
    Assuming the Shipping Point has been determined correctly for your 0002 SLoc - then in <VL10B> you will have selected this 'Shipping Point' for your delivery creation.  I also noticed that in <VL10B> on the Material tab you have the option to specify a SLoc (I'm assuming this is a source SLoc since the help doesn't clearly specify) - try entering this data too and see if you can generate your delivery.
    Good luck,
    Ravelle

  • IDOC mapping issue (calculation using parent and child fields)

    We are mapping an IDOC to a file for output to a third party.  The IDOC has many segments, some of which are embedded.  This is where I'm having the issue.  I am trying to perform a calculation on a field from the parent node (E1EDP01-MENGE) with the field from the child node (E1EDP05-KRATE) to determine the total tax for that line (qty X rate). 
    <b>Issue:</b> The mapping that is in place is using the same MENGE value for all calculations, even where the E1EDP01 segment is not a parent of the E1EDP05 segment. 
    Please review the screen prints and explain how I can correctly group the E1EDP05 child segments rate field (KRATE) with the corresponding parent segment E1EDP01 quantity (MENGE).
    <b>Example:</b>
    Parent segment, E1EDP01 / Child segment E1EDP05 (There are many E1EDP05 segments for 1 E1EDP01 segment)
    E1EDP01 (parent node)
      E1EDP05 (child node)
    <b>Target structure</b>
    ITEM (parent) --->E1EDP01 is mapped at node level
      -->ITEM_DATA --->E1EDP01 is mapped at node level
      -->ITEM_TAX --->E1EDP01 is mapped at node level
           -->(fields for item_tax)
           -->Record type
           -->Invoice number
           -->Line total
           -->etc...
    I am mapping (E1EDP01-MENGE) for calculation with (E1EDP05-KRATE) to determine tax at the line item level. I have the context set at each Node, E1EDP01 for MENGE and E1EDP05 for KRATE.  I was using CopyValue, but this was using the frist occurence of MENGE for all line items.
    <b>mapping example</b>
    <u><b>*I am using MENGE (Copy_Value) then multiplying by KRATE to get the line item total.  This was causing the same MENGE (because of Copy_Value) for all line items.</b></u>
    E1EDP01-MENGE|Copy_Value|MULT--->TAX_ITEM-LINE_TOTAL
    E1EDP05-KRATE|
    I removed the CopyValue and now I'm getting the following error:
    Cannot produce target element /ns0:MT_DTN_INVOICE1/INVOICE/ITEM/ITEM_TAX[3]/LINE_TOTAL. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd
    How can I map this so the child records (E1EDP05) are grouped with the correct parent records (E1EDP01)?
    Thanks in advance!
    Michael

    Check this blog:
    /people/claus.wallacher/blog/2006/04/17/replication-of-nodes-using-the-graphical-mapping-tool
    Regards
    Stefan

  • Creating PDFs using Pages and Mail

    Hi,
    I'm  a contractor and I use Pages and Mail to to create PDFs of invoices that I email to clients in the form of attachments. I have Mail set up to to send only Windows friendly attachments, and to put them at the end of emails. I have one client, the facilities director of a large community college, who consistently cannot open the attachments; he can read the text of the emails, but he cannot open the attachments. He has to send them to his IT department, where they use a mac computer of some kind to open the attachments, which they send them back to him. I've discussed this with their IT department, and they've told me that they have to use a mac to open my attachments. If anyone can offer some advice on this issue, I'd appreciate it.
    Caoim

    I know from my own experience that although there should be no problems with Mail's attachments, just once in a while recipients have the problems you describe.
    The solution that worked for me 100% reliably was to install the paid for plug-in Attachment Tamer from: lokiware.info
    You can use it for free to test it before committing to purchase, but I'm pretty sure all your recipients will be able to cope with all your attachments.
    To elaborate, I used to have to send numerous attachments every day to mostly PC users. Randomly some would complain that I'd either forgotten to include the attachment (I hadn't) or they couldn't read it/open it/save it, etc. It's quite likely the fault was in the way their email client was configured. All I know is that as soon as I installed Attachment Tamer (it was Mail Attachments Iconizer back then) I never had any more complaints. For the knowledge that I wasn't going to be pestered into trying different ways of sending the files I was happy to pay for the plugin.
    (Usual caveat: I have no connection with Lokiware, but very happy to recommend their product).

  • We can't create form using dblink  and synonim

    We have created a dblink pointing to a table in the remote database.
    When we create a form based on table or view using this dblink, we get the error "page not found".
    We read from
    Re: I can't create form using dblink
    that we must create a synonim, and this was done creating one in the same schema of the db-link using the "Database Objects" of oracle portal 10g (external db is an oracle 9.0.2).
    The new synonim work (tested with reports and pl/sql page)
    but if we click on "Grant Access" (of the synonim) we get the following error :
    Error: The underlying object of the synonym does not exist, is a remote object or is not of type function, procedure, package, sequence, synonym, table or view. (WWV-17076)
    Does form work only with table and view of the portal database (not external one)? or have we loose something in the creation of the synonim?
    Have someone succesfully created a form based on a db-link towards an external database?
    Thanks to all.

    Hei guys, has nobody created succesfully a data-driven forms based on a dblink towards an external database?
    I can't believe this!!!!

  • Read mail using java, and set the mail

    How can I read mail and set message "SEEN" with java? (javax.mail)
    IMAP supports flags; so there are no problems, just using
    msg.setFlag(Flags.Flag.SEEN, true);
    but,
    POP3 does not support flags; how can I solve this in POP3? I have searched for this problem, found that I can just check for the header "Status", but this header does not exsist. Then I tried to add this header, but again, then I got IllegalWriteException cause pop3-msg is writeprotected (yes: I opened the folder READ_WRITE); so; does anyone know how I can solve this problem?

    Hi !
    Could u plz send me the code u r having for reading mails using IMAP...actually v r trying to read mails from outlook but due to some security reasons our team has decided not to use pop3 ...
    Thanks in Advance
    sha

  • Problems using window.close() and setting fields

    Hi,
    I have two problems:
    First one is:
    I created a simple JSP with 'Save' and 'Exit' Buttons. In the Exit button on click event I invoked a function closeWindow, which calls teh window.close(). But on clicking Exit, the window does not close. Can anyone please tell me why.
    Second one is:
    The JSP also needs to get loaded with some values in the Textfields. Theses values are extracted from a text field using a Java class. I am able to see that these values are extracted from the text file and are loaded into Java vars, but when I am trying to set this value into a text field, it is NOT getting set.
    (filePathDetails is the instance of the class that extracts the text values)
    The entire code is posted below:
    <%@ page language="java" import="ftpScheduler.*" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
    <% FolderPathInfo filePathDetails = new FolderPathInfo(); %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>PATH DETAILS</title>
        <SCRIPT type="text/javascript">
         function setPaths(){
              with(document.pathDetails){
                   textAncPath1.value = <%=filePathDetails.localDirPath1 %>;
                   textAncPath2.value = <%=filePathDetails.localDirPath2 %>;
                   textArchivePath.value = <%=filePathDetails.archiveDirPath %>;
                   textLogPath.value = <%=filePathDetails.logFilePath %>;
         function closeWindow(){
              window.closeWindow();
        </SCRIPT>
    </head>
    <body bgcolor="#c0c0c0" onload="setPaths()">
         <FORM name="pathDetails" method="get" action="DetailsServlet.java">
         <FONT face="Arial" size="3"><STRONG>Directory Paths:</STRONG></FONT>
           <BR><BR>
           <TABLE border="0" cellspacing="" height="60" width="450"
                                                        style="FONT-SIZE: 10pt; FONT-FAMILY: Arial" align="center">
           <COLGROUP>
           <COL width="45%">
           <COL width="55%">
           </COLGROUP>
           <TR>
           <TD><LABEL>Ancillary Transmit Path1 :</LABEL></TD>
           <TD><INPUT type="text" name="textAncPath1" width="290" maxlength="350"/></TD>
           </TR>
           <TR>
           <TD><LABEL>Ancillary Transmit Path2 :</LABEL></TD>
           <TD><INPUT type="text" name="textAncPath2" width="290" maxlength="350"/></TD>
           </TR>
           <TR>
           <TD><LABEL>Archive Path :</LABEL></TD>
           <TD><INPUT type="text" name="textArchivePath" width="290" maxlength="350"/></TD>
           </TR>
           <TR>
           <TD><LABEL>Log File Path :</LABEL></TD>
           <TD><INPUT type="text" name="textLogPath" width="290" maxlength="350"/></TD>
           </TR>
           </TABLE>
           <P align="center">
              <INPUT type="submit" name="buttonSave" value="Save">
              <INPUT type="button" name="buttonExit" value=" Exit " onclick="closeWindow()">
              <BR>
           </P>
           </FORM>
    </body>
    </html>Please help me.
    Thanks in advance.

    Try the following..
    For problem 1:
    Use window.close() instead of window.closeWindow().
    For the second problem
    don't call the function setPaths() at onload. Rather
    call the function after the page is loaded. You can
    try like this.
    If it doesn't work then check whether the browser is
    giving any JavaScript error message.
    <SCRIPT type="text/javascript">
    setPaths() ;
         function setPaths(){
         alert(document.pathDetails.element[0].value);
    document.pathDetails.element[0].value =
    = <%=filePathDetails.localDirPath1 %>;
              alert(document.pathDetails.element[0].value);
              with(document.pathDetails){
    textAncPath1.value =
    e = <%=filePathDetails.localDirPath1 %>;
    textAncPath2.value =
    e = <%=filePathDetails.localDirPath2 %>;
    textArchivePath.value =
    e = <%=filePathDetails.archiveDirPath %>;
    textLogPath.value = <%=filePathDetails.logFilePath
    ath %>;
         function closeWindow(){
              window.closeWindow();
    </SCRIPT>Hi,
    Actually I did try window.close(), but I still am not able to close the current window.
    And as for the problem of setting up the field values, sorry the given solution doesnt seem to work. :-(..
    I have pasted the entire code, I dont know where teh flaw is. Please review the same and let me know.
    Your help is very much appreciated.
    <%@ page language="java" import="ftpScheduler.*" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
    <% FolderPathInfo filePathDetails = new FolderPathInfo();%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>PATH DETAILS</title>
         <SCRIPT type="text/javascript">
         function setPaths(){
              document.pathDetails.textAncPath1.value = "Anything";
              with(document.pathDetails){
                   textAncPath1.value = <%=filePathDetails.localDirPath1%>;
                   textAncPath2.value = <%=filePathDetails.localDirPath2%>;
                   textArchivePath.value = <%=filePathDetails.archiveDirPath%>;
                   textLogPath.value = <%=filePathDetails.logFilePath%>;
         function exitWindow(){
              window.close();
        </SCRIPT>
    </head>
    <body bgcolor="#c0c0c0">
         <FORM name="pathDetails" method="get" action="/FTPSchedulerApp/ftpScheduler/DetailsServlet.java">
         <FONT face="Arial" size="3"><STRONG>Directory Paths:</STRONG></FONT>
           <BR><BR>
           <TABLE name="tempTable" border="0" cellspacing="" height="60" width="450" style="FONT-SIZE: 10pt; FONT-FAMILY: Arial" align="center">
           <COLGROUP>
           <COL width="45%">
           <COL width="55%">
           </COLGROUP>
           <TR>
           <TD><LABEL>Ancillary Transmit Path1 :</LABEL></TD>
           <TD><INPUT type="text" name="textAncPath1" width="290" maxlength="350"/></TD>
           </TR>
           <TR>
           <TD><LABEL>Ancillary Transmit Path2 :</LABEL></TD>
           <TD><INPUT type="text" name="textAncPath2" width="290" maxlength="350"/></TD>
           </TR>
           <TR>
           <TD><LABEL>Archive Path :</LABEL></TD>
           <TD><INPUT type="text" name="textArchivePath" width="290" maxlength="350"/></TD>
           </TR>
           <TR>
           <TD><LABEL>Log File Path :</LABEL></TD>
           <TD><INPUT type="text" name="textLogPath" width="290" maxlength="350"/></TD>
           </TR>
           </TABLE>
           <div align="center">
              <INPUT type="submit" name="buttonSave" value="Save"/>
              <input type="reset" name="buttonReset" value="Reset" onclick="setPaths()"/>
              <button name="buttonExit" onclick="exitWindow()"> Exit </button>
              <BR>
           </div>
           </FORM>
    </body>
    </html>

  • Retreiving and setting fields from pdf

    Hi Everyone,
    I hope that you may be able to help. I'm working on putting together an extention to my program to allow users to load a pdf file from a database, and also save what the user has entered into the pdf, into a database. I started out using the ActiveView sample app and have gotten it to load a seleted pdf into my app. I am currently trying to get the fields from the pdf. I am using the FormsAutomation sample as a reference. Here is some code :
    This funtion is used to open the pdf (just like in the ActiveView sample)
        Public Sub OpenChartFile(ByRef Filename As String, PatientId As String, ChartId As Integer, isNew As Boolean )
            Dim ok As Integer
            Dim fIndex As Short
            ' change mousepointer to an hourglass
            System.Windows.Forms.Cursor.Current = System.Windows.Forms.Cursors.WaitCursor
            ' change form's caption and display new text
            fIndex = FindFreeIndex()
            Document(fIndex) = New frmPDFView
            Document(fIndex).PatientId = PatientId
            Document(fIndex).ChartFileId = ChartId
            Document(fIndex).ChartFileName = Filename
            Document(fIndex).isNew = isNew
            Document(fIndex).Tag = fIndex
            Document(fIndex).Show()
            Document(fIndex).Text = UCase(Filename)
            Document(fIndex).MdiParent = gShell
            ' open the selected file
            AcroExchAVDoc(fIndex) = CreateObject("AcroExch.AVDoc")
            ok = AcroExchAVDoc(fIndex).OpenInWindowEx(Filename, Document(fIndex).Handle.ToInt32, AV_DOC_VIEW, True, 0, PDUseBookmarks, AVZoomFitWidth, 0, 0, 0)
            ' See IAC.bas and the Acrobat Viewer IAC Overview for information on the
            ' OpenInWindowEx open modes
            If Not ok Then
                MsgBox("Can't open file: " + Filename)
                Document(fIndex).Close()
                System.Windows.Forms.Cursor.Current = System.Windows.Forms.Cursors.Default
                Exit Sub
            End If
            FState(fIndex).Dirty = False
            Document(fIndex).Show()
            Document(fIndex).FillChart() 'Used to fill the pdf from the DB
            ' reset mouse pointer
            System.Windows.Forms.Cursor.Current = System.Windows.Forms.Cursors.Default
        End Sub
    Here is were I try and get the fields which is located in the PDFView form
        Public Sub FillChart()
            If Not pisNew then
                formApp = CreateObject("AFormAut.App")
                acroForm = formApp.Fields  '<-----******Errors here, "No document is currently open in the Acrobat Viewer"
                FillChartData( pPatientId,acroForm,pChartFileId, Me.tag )
            End If
        End Sub
    Here is where I plan to fill the pdf file (Located in a module file): I
    Public Sub FillChartData(PatientId As string, acroForm As AFORMAUTLib.Fields, ChartFileId As Integer, FormIndex As integer )
        Dim field As AFORMAUTLib.Field
    Try
        field = acroForm.Item("PatientName")
    Catch ex As Exception
        MsgBox(ex.Message, MsgBoxStyle.Critical, "ModChartSupport.FillChartData")
    End Try
    End Sub
    Is it possible to get the list of fields in the current setup using the ActiveView forms? If so, what am I missing? In the FormAutomation sample it seems to get the fields this way:
            avDoc = CreateObject("AcroExch.AVDoc")
            Dim file As String = System.Windows.Forms.Application.StartupPath & "\..\..\..\..\TestFiles\FormsAutomation.pdf"
            bOK = avDoc.Open(file, "Forms Automation Demo")
            'If everything was OK opening the PDF, we now instantiate the Forms Automation object.
            If (bOK) Then
                formApp = CreateObject("AFormAut.App")
                acroForm = formApp.Fields
            Else
                System.Runtime.InteropServices.Marshal.ReleaseComObject(avDoc)
                avDoc = Nothing
                MsgBox("Failed to open PDF Document. Aborting...")
                End
            End If
    The OpenChartFile function has already created the avDoc object for the form, so I think I'm alright there. What am I missing? Thanks for any help you can provide.

    So let's say you have the following fields in your file:
    Incident_Report
    ClientsName
    Date
    You can then add this code to the file's WillSave action (under Tools - JavaScript - Set Document Actions):
    var newFileName = this.getField("Incident_Report").valueAsString + "_" + this.getField("ClientsName").valueAsString + "_" + this.getField("Date").valueAsString + ".pdf";
    app.response("Please copy the text below and use it as the new file-name:","", newFileName)
    Of course, you can adjust the message to the user, and even the format of the file-name, although I've used the format you specified.

  • Error while creating filter using BD59 and BD64

    Hi Friends-
    While creating filters for HRMD_A  message type  using BD59 i have added one field  stat2 for segment
    E1P0000    and its coming also in  BD64  while creating filter group  but when i double click on it to give value to it  it  gives me error    '  Inconsistency in  ' .
    what could be the reason  pls let me know ?
    Regards
    Meeta

    Hi,
    Try to distribute the model view in BD64 ( Edit->ModelView->Distribute).  you can check for technical inconsistencies for message type in Transaction BDM5
    Regards,
    Vinod

  • File upload using Struts and hidden field

    Hi,
    I have seen many examples to upload file using <html:file> tag. But my request is how to upload file using hidden form field and ActionServlet.
    I want to upload image without using Browse button options, through hidden field i will set the image file path and will upload to server using ActionForm.
    Please help me friends to solve this new issue,
    regards,'
    dhaya.

    That's not possible.
    If it was, it would be a huge security hole. What about mailicious websites with hidden field which points to "c:/my documents/passwords.txt" and automatically submits the form using Javascript?
    Consider a signed applet instead. If it is unsigned then you'll get a security popup "Do you trust this software?" anyway.

Maybe you are looking for