'#' unexpectedly inserted into output fields in script print preview

Hello Experts,
I came across a problem that confused me so much that when i try to see the print preview of a script form, the output fields in Main window were all printed with '#' inserted, as below:
the output is like 7#8#0#0#0#....but it should be 7800017167
and also, for other fields like date and amount, the same problem occurs.
But the most weird thing is that, the issue only occurs in the Main Window of the second page of the form, but not in the first page although they share the same  Main Window. And what's more, it only happened in the Testing System, I can not replicate them in develop system...
I know it may be a very isolate problem, but i just want to try my luck to see if any of you could shed me some light~
Thanks!

Hi Siva,
         Can you tell me please, wheather its a "Z" driver program or Standard driver program.
         After execution of the program/transaction code go for <b>systems</b>> then for <b>Status></b> then you can find the <b>program name.</b> You can go into that and search for  the <b>Open_form</b>. Before Open form set the <b>BreakPoint</b> there you can find the form name which will pass during run time through variable.
         other option is that go for <b>NACE</b> transaction and see for <b>routine,</b> <b>for example</b> If it is invoice then it will be Billing. select your that<b> area</b> and click on <b>Output type button.</b> there you can see the output types You can go in that and see for program and form name, then you can confirm the output type.
reward point if it is helpful.
Regards
Sagun Desai.

Similar Messages

  • Data type mismatch when inserting into text field

    Hello all,
    Using VB script and ASP.
    I have a page that inserts into a field (casenum) in a table (clientsw) in a database. The field (casenum) in the table is data type TEXT :
    I create a recordset and then an insert statement which the following is part of:
    Code to insert the casenum into the field
    rsClients("Casenum")=Right(Date(),2) & "E-100" & rsCasenumber("countervalue")
    It inserts a number like 09E-1004500
    I then have code that takes that string and passes it to the next page as a variable
    Session("UserID")=rsClients("CASENUM")
    response.redirect "done3.asp"
    When it gets to the next page it is assigned as UserID
    Dim svuserid
    svuserid = "0"
    if (Session("UserID") <> "") then svuserid = Session("UserID")
    %>
    My information inserts into the database exactly as I want it, but when it gets to the next page I get an error that is displayed that says the following:
    Microsoft JET Database Engine error '80040e07'
    Data type mismatch in criteria expression.
    /done3.asp, line 16
    My code on the second page is as follows:
    <%@LANGUAGE="VBSCRIPT"%>
    <!--#include file="Connections/connNewdatabase1.asp" -->
    <%
    Dim svuserid
    svuserid = "0"
    if (Session("UserID") <> "") then svuserid = Session("UserID")
    %>
    <%
    set rsClients = Server.CreateObject("ADODB.Recordset")
    rsClients.ActiveConnection = MM_connNewdatabase_STRING
    rsClients.Source = "SELECT *  FROM CLIENTSW WHERE CASENUM=" + Replace(svuserid, "'", "''") + "  ORDER BY CASENUM"
    rsClients.CursorType = 0
    rsClients.CursorLocation = 2
    rsClients.LockType = 3
    rsClients.Open()
    rsClients_numRows = 0
    %>
    Line 16 is the one that says rsClients.Open()
    If I take the concatenation out of rsClients("Casenum")=Right(Date(),2) & "E-100" & rsCasenumber("countervalue") and have only rsClients("Casenum")=rsCasenumber("countervalue") and change the table field to number, I don't get the "datatype mismatch error"
    What do I change to enable me to leave the above statement concatenated and insert into the table correctly and complete the stuff on the next page?

    >This is an access database, varchar is not an option for a datatype.
    Sorry. In another thread I thought you mentioned using SQL Server
    >I changed the + signed to ampersands instead and it doesn't make a difference.
    I didn't think that was the problem. I was just pointing out that it's a bad practice. If you use the '+' on two strings that can evaluate as numeric, it will actually add rather than concat them.

  • Using select query to insert into a field

    Hi,
    I am working with a jdbc-to-jdbc scenario, in which on source side iam geting data from 2 tables t1 & t2 and inserting this data into two tables tb1 & tb2 on target side.A field in tb2 has to be inserted with a value which is equal to the number of records inserted into the table tb1 i.e with the number equal to 'how many records from the table t1 has been retrieved inorder to insert into table tb1'.
    Can anybody please suggest me.....
    Thanks & Regards,
    Radhika.

    consider ur strucutre
    <Data>
    <id> 1 </id> 0..1
    <id> 2 </id>
    <id> 3 </id>
    <id> 4 </id>
    </Data>
    here i meant context to <id>. Mapping id > count > target will give the nunmber of records in Data i.e. 4
    note: here u have change the context of <id> to <data>
    Message was edited by:
            Prabhu  S

  • Insert into a field which is long

    i use stream method to insert into a
    long type field , but unsuccess.
    my code is:
    PreparedStatement pstmt = conn.prepareStatement("insert into forlong(thelob) values(?)");
    InputStream is = new FileInputStream ("c:\\notes.txt");
    File file = new File ("c:\\notes.txt");
    pstmt.setAsciiStream (1, is, (int)file.length ());
    is.close();

    I do not have TOAD, but I tried your posted example from PL/SQL Developer and it seems to work as expected. Can you post some more detail as to how you are doing it from TOAD and what the issue is, with errors, if any:
    Connected to Oracle Database 10g Enterprise Edition Release 10.2.0.1.0
    Connected as kkishore
    SQL>
    Table created
    View created
    Trigger created
    1 row inserted
            F1
             1
             1
    OWNER                          TABLE_NAME                     COLUMN_NAME                    UPDATABLE INSERTABLE DELETABLE
    KKISHORE                       DUMMY_V                        F1                             NO        NO         NO
    SQL>

  • Script print preview

    hi all,
    i am seeing the print preview in tcode recpa520, giving company code,f8,press print preview. i am seeing the invoice print preview,i want to find the output type,application type,form name for this.in this tcode there i no messages option to see the output type.
    recpa520 is tcode for invoice correspondence. can any body help me how to find the script name,output type,application type for this.
    thank in advance
    siva

    Hi Siva,
             Can you tell me please, wheather its a "Z" driver program or Standard driver program.
             After execution of the program/transaction code go for <b>systems</b>> then for <b>Status></b> then you can find the <b>program name.</b> You can go into that and search for  the <b>Open_form</b>. Before Open form set the <b>BreakPoint</b> there you can find the form name which will pass during run time through variable.
             other option is that go for <b>NACE</b> transaction and see for <b>routine,</b> <b>for example</b> If it is invoice then it will be Billing. select your that<b> area</b> and click on <b>Output type button.</b> there you can see the output types You can go in that and see for program and form name, then you can confirm the output type.
    reward point if it is helpful.
    Regards
    Sagun Desai.

  • Unicode Sap Scripts - Print preview contains overwriting

    Hi All ,
    After doing unicode test, the program output when i see in print preview gives me unreadable charecters and overwritings . Earlier version 4.6 c did not had this problem ... i am new to sap scripts any  help is highly appreciated.
    regards,
    Amarnath Reddy.

    Amarnath Reddy,
    SAP GUI code page you can check in the following way:
    open SAP GUI, put cursor on your system item, click 'properties', 'change' or 'settings' (not sure how it is called) and you will get it.
    I am not an expert in basis but to check application server code page you can run report RSPARAM1 and search for parameter that contain 'codepage' in its name (for example install/codepage/appl_server).
    Perhaps that the reason of your problem,
    Kind regards,
    Tomasz Kozerski

  • Crystal Report: Show Field only in Print-Preview

    Dear Experts,
    is it possible to show a field only in the print preview (when the report is generated) without printing this field?
    Thanks for Help.
    Jacqueline

    No, it is not possible to display a report object on screen then suppress it when printing.
    Fuskie
    Who thinks you would have to use 2 reports or use a parameter that offers the option of formatting for view versus for print...

  • Printer output does not match Print Preview

    I'm just starting out with this and did a layout of some photos I took with captions. Using File>Print and then clicking "Preview in the resulting dialogue box shows that everything fits on the sheet of paper. HOWEVER, after printing the page, the bottom is cut off. What is the problem? The printer is an HP DeskJet 5150. As a work-around I've started doing the layouts as if the paper is 8" x 10".
    Also, what does the "Soft Proof" check box do in the Print Preview window?

    OK romad, the memory problem isn't the Macs but it could be the printers. I have seen this many years ago.
    You could also create a test page with one long line from top to bottom and print it. Does the problem still show?
    Does it happen if you print a full page photo from i.e. iPhoto directly.
    Do you still have AW on this machine? can you paste the content of your problem page into an AW page and print? What is the result?
    Somehow we need to do tests to pin down from where the problem is emanating from.
    I agree that AW does have a lot that isn't implemented in iWorks, but there are other features that are much better in Pages.

  • Update/Insert into two fields based on value of one.

    How would I do the following in ADDT.
    Example:
    I have a database about dogs. When user completes form they make a selection from a recordset feed drop down box of breeds. Lets say they select "PUG" based on the selection two fields are populated from the same recordset size="small" and color="brown".
    I hope I've explained this well enough
    Thanks!
    Rich

    >>
    I think I understand. I'm using two forms One to select the item from a list. I'm passing that items value to the next page where I'm placing that value into a query which will give me the options available based on the query results?
    >>
    what I meant, is first have the user insert the new record and let him specify the desired "breed" already there -- the following page(s) will need to make sure that he´s going to update the newly inserted record with additional values, that´s why you should use the "SELECT dog_id FROM dog_table ORDER BY id DESC LIMIT 1" - query on page 2. However, once this new record had been clearly identified "by id", you can add whatever options available in the secondary table which are related to the "dog_id" (breed) that has been stored when inserting the new record. Maybe *I* don´t get it, lol ;-)
    >>
    I currently do this the dropdown value to a case statement that takes the value of the dropdown and determines the correct values for the database update
    >>
    OK, but when each dog just has one option
    (thought it were two ones: "color" and "size"), isn´t your existing dependant dropdown enough for specifying that "based on breed" option without having to use a hidden field at all ? Ah well, have you ever used ADDT´s / Kollections "dependant drop-down" wizard -- that should do it for one option
    >>
    hidden field that I need to update value based on what the value is above
    >>
    humm -- updating the value of a hidden field in the very same page then ? Never heard of this being possible apart from using some hand-made javascript.
    Guess I gotta ask my dog what it thinks about all that :-)
    Günter Schenk
    Adobe Community Expert, Dreamweaver

  • PHP remember Form-button data to insert into form field

    Hi,
    I am creating a book website where people can reserve books (one at a time).
    Basically what I want to do is have a reserve button under each book which contains hidden values (the title and author of the book) and when they click on the button they will be taken to a 'reserve book' page with a form on it where they will have to fill out their details. However I want the book title and author to automatically be entered into the appropriate fields, so to save the users from having to do it themselves.
    I'm sure this is possible with PHP, but not sure how to go about it in the right way.
    I would appreciate any help with this.
    Thanks

    Thanks for that, however I can't seem to get the first part of the code right. I have the following:
    Reserve book button:
                   <form action="reserve.php" method="post">
                        <input type="hidden" name="bookName" id="bookName" value="Eclipse" />
                        <input type="hidden" name="author" id="author" value="Stephenie Meyer" />
                        <input class="button" type="image" value="send" alt="reserve" src="images/reserve.gif" width="81" height="22"/>
                    </form>
    Reserve book form:
       <form action="process-form.php" method="post">
                  <label for="name">Your Full Name:*</label>
                 <input type="text" name="name" id="name" />
                  <label for="telephone">Tel no:*</label>
                  <input type="text" name="telephone" id="telephone"  />
                  <label for="email">Email:*</label>
                  <input type="text" name="email" id="email"/>
                  <label for="Title">Book Title:*</label>
                  <input type="text" name="book_title" size="25" value="<?php echo $bookName ?>" />
                  <label for="Author">Author:*</label>
                  <input type="text" name="author" size="25" value="<?php echo $author ?>" />
                  <input class="button" type="image" value="send" alt="reserve" src="images/reserve.gif" width="81" height="22"/>         
                </form>

  • After inserting into one field using LOV,  how to populate other fields ?

    Hi,
    I have a BLOCK based on a table (ex:EMP)
    And I have a LOV on the field(item): EMPNO.
    When I select one EMPNO from the LOV (when the field:EMPNO is populated with an emp number), the other fields should be populated
    Can some body let me know, which trigger I need to use and .......
    Thanks

    while creating LOV at empno you can this query
    select empno,ename,deptno from emp
    and define return item for each column.
    You can populate LOV manually at New_instance_item or Key_next_item
    of item empno.

  • Smartform - Output window (Accept, Cancel, Print, Preview)

    Dears experts,
    when i execute a preview of a Purchase Order, a message windows appears and you can select the diferents message( print, external send) and  Accept, Cancel, Print or Preview.
    I want to do 2 things.
    - I only want to view Accept and Cancelled button in the Output Message window. how can i do it? with the parameters output?
    - I want that when I accept the message with the OK ICON, execute the code to send the purhcase order as email. nowadays, the pdf code is execute when I chose Preview.
    Any idea?
    thanks a lot!

    Hi friend sure.
    You need to increment the index only at the loop no where else and the variable for holding the index value is global.
    If you create before the read every time it gets trigerred.
    After each loop you assign the sy-tabix value to that variable.
    Just like this ,
    v_index = sy-tabix.
    Then at the window just read the table as shown
    READ TABLE t_chq INTO x_chq INDEX v_index.
    This will do friend.
    I will update the flow of my code here, then you many understand it much clear.
    Page1
      Main window (below page1)
        Loop (inside Main win)
          program lines. code : v_index = sy-tabix. v_lines =  lines( t_chq ). (inside loop)
          Condition (inside loop)
             True
                check the v_index < v_lines if true break page, for page break create a command and do it (Inside true condition)
             false
               blank.
      Secondary window (below page1)
        program line (inside sec wind)
        Inside program lines the code is READ TABLE t_chq INTO x_chq INDEX v_index. (inside sec wind)
      Secondary window2  (below page1)
         program line (inside sec wind2)
        Inside program lines some other code. (inside sec wind2)
    This is my logic try like this friend.
    I think for other records its coming fine because since it is an local variable its getting updated some where and also showing 1 bec its always initializing.
    Try this you will get if any issues please revert back to me
    Thanks,
    Sri Hari
    Edited by: srihari.kumar on Jan 6, 2012 11:04 AM
    Edited by: srihari.kumar on Jan 6, 2012 11:05 AM

  • How to insert the new field to standard scheduling agreement script form.

    Hi Gurus,
    how to insert the new fields to standad sheduling agreement script form. its a need for me, i want to display the AEDAT field in scheduling agreement form ,
    The below one is my requirement,
    ex:-   Itu2019s requested the change of Scheduling Agreement printout. Itu2019s requested for this type of   document, the insertion, into the field u201CData Emissionu201D into the print, of the document last modify date instead of the document creation date. (This change will be done only for position change into the Scheduling Agreement). No change into the PO.
    Change SAPSCRIPT printout. Introduction, into the Scheduling Agreement, of last modified  
          document date (field EKPO-AEDAT).
    Thanks & Regards
    chinnu

    open TNAPR table and give the output type you need to modify.... get the print program name and check if some structure already have the date you wanted... if you have it already... then open the form in SE71 tr. and provide the strcuture name - feild in the position you want to have the date...
    se71--->
    &<str. name>-AEDAT&

  • Insert into a clob field in a procedure based form

    Hi,
    I have a table with a clob field. I wrote a procedure to insert into this table. Then I built a form based on this procedure. Here is my code:
    drop table clob_test;
    create table clob_test(id NUMBER, note CLOB);
    insert into clob_test values(10,empty_clob());
    Create or Replace PROCEDURE PROJECTS.SET_CLOB
    ( p_id IN CLOB_TEST.id%TYPE,
    p_note IN VARCHAR2 default null)
    as
    v_loc CLOB;
    v_amt binary_integer;
    v_pos integer :=1;
    v_clob varchar2(32000);
    Begin
    insert into clob_test values(p_id,empty_clob());
    v_clob := p_note;
    v_amt := LENGTH(v_clob);
    select note into v_loc from clob_test where id = p_id;
    DBMS_LOB.WRITE(v_loc,v_amt,v_pos,v_clob);
    End;
    When I try to insert into note field more than 4000 charaters. I got this error:
    An unexpected error occurred: ORA-06502: PL/SQL: numeric or value error: character string buffer too small (WWV-16016)
    Why this happens? I know portal form doesn't support clob, but this procedure deal directly with database. Can anyone from Oracle give me help? Thanks in advance!

    I use a dynamic page instead of a form on the procedure. It's working.
    Apparently Oracle is not supporting a varchar2 more than 4000 in any form format, even using textarea for p_note.

  • Cannot insert Chinese character into nvarchar2 field

    I have tested in two environments:
    1. Database Character Set: ZHS16CGB231280
    National Character Set: AL16UTF8
    If the field type of datatable is varchar2 or nvarchar2, the provider can read and write Chinese correctly.
    2. Database Character Set:WE8MSWIN1252
    National Character Set: AL16UTF8
    The provider can not read and write Chinese correctly even the field type of datatable is nvarchar2
    I find that for the second one, both MS .NET Managed Provider for Oracle and Oracle Managed Data Provider cannot read and write NCHAR or NVARCHAR2 fields. The data inserted into these fields become question marks.
    Even if I changed the NLS_LANG registry to SIMPLIFIED CHINESE_CHINA.ZHS16CGB231280, the result is the same.
    For the second situation, only after I change the Database Character Set to ZHS16CGB231280 with ALTER DATABASE CHARACTER SET statement, can I insert Chinese correctly.
    Does any know why I cannot insert Chinese characters into Unicode fields when the Database Character Set is WE8MSWIN1252? Thanks.
    Regards,
    Jason

    Hi Jason,
    First of all, I am not familiar with MS .NET Managed Provider for Oracle or Oracle Managed Data Provider.
    How did you insert these Simplified Chinese characters into the NVARCHAR2 column ? Are they hardcoded as string literals as part of the SQL INSERT statement ? If so, this could be because, all SQL statements are converted into the database character set before they are parsed by the SQL engine; hence these Chinese characters would be lost if your db character set was WE8MSWIN1252 but not when it was ZHS16CGB231280.
    Two workarounds, both involved the removal of hardcoding chinese characters.
    1. Rewrite your string literal using the SQL function UNISTR().
    2. Use bind variables instead of text literals in the SQL.
    Thanks
    Nat

Maybe you are looking for

  • AIA should be part of SOA domain OR OER Domain

    Hi, We are setting up a Clustered environment with 2 Nodes with WebLogic 11g, Oracle SOA suite 11g and AIA for the Customer. In this, I have a question. We are creating two domains soa_domain (with Managed Server soa_server1 in the Node 1 and soa_ser

  • Health Service in which the location monitoring object is contained is not available

    Hello, When i am trying to discover new machines I am getting this error: Health Service 'OPMGRRMS1.xxx.xxx.xxx.xxx' in which the location monitoring object is contained is not available All services have been restarted successfully without error...

  • What oracle 10g version to download for OCA?

    Hi Just want to know which version of oracle to download for practicing for my OCA. Oracle express 10g version or Oracle Database 10g Release 2 - Enterprise/Standard Edition for Microsoft Windows Thanks

  • Cannot distribute secured form.

    Hi Everyone, Using Livecycle Designer ES2 9, with Acrobat Pro 10.0.3. Standalone implementation. When attempting to distribute a secured form, Acrobat displays "Acrobat is unable to distribute this form because of the form's security settings." The f

  • Cloud Availability In My Country

    Does anybody have any idea when Creative Cloud will be available in my country Antigua & Barbuda? I want to upgrade from CS5.5 but can't.