Sapscript - Copying check amount to Voucher

Hi all,
Anyone who knows how to copy/get the value of the amount field in the CHECK window and put it in the VOUCHER which is located in the main window.
Thanks.

Hi surya,
The system processes the main window first that's why I am having a hard time getting the said value. Is it possible to let the program pass the CHECK window first without changing the standard program for check printing?
Thanks.

Similar Messages

  • Couldn't copy large amount of data from enterprise DB to Oracle 10g

    Hi,
    I am using i-batis to copy data from enterprise DB to oracle and viceversa.
    The datatype of a field on EDB is 'text' and the datatype on oracle is 'SYS.XMLTYPE'
    i am binding these to a java string property in a POJO to bind values.
    I could successfully copy limited amount of data from EDB to oracle but if there is more data, i am getting the following exceptions with different oracle drivers ( but i could read large amount of data from EDB):
    --- Cause: java.sql.SQLException: ORA-01461: can bind a LONG value only for insert into a LONG column
    at com.ibatis.sqlmap.engine.mapping.statement.MappedStatement.executeUpdate(MappedStatement.java:107)
    at com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.update(SqlMapExecutorDelegate.java:457)
    at com.ibatis.sqlmap.engine.impl.SqlMapSessionImpl.update(SqlMapSessionImpl.java:90)
    at com.ibatis.sqlmap.engine.impl.SqlMapClientImpl.update(SqlMapClientImpl.java:66)
    at com.aqa.pojos.OstBtlData.updateOracleFromEdbBtlWebservice(OstBtlData.java:282)
    at com.aqa.pojos.OstBtlData.searchEdbAndUpdateOracleBtlWebservice(OstBtlData.java:258)
    com.ibatis.common.jdbc.exception.NestedSQLException:
    --- The error occurred in com/aqa/sqlmaps/SQLMaps_OSTBTL_Oracle.xml.
    --- The error occurred while applying a parameter map.
    --- Check the updateOracleFromEDB-InlineParameterMap.
    --- Check the parameter mapping for the 'btlxml' property.
    --- Cause: java.sql.SQLException: setString can only process strings of less than 32766 chararacters
    at com.ibatis.sqlmap.engine.mapping.statement.MappedStatement.executeUpdate(MappedStatement.java:107)
    at com.iba
    I have latest oracle 10g jdbc drivers.
    remember, i could copy any amount of data from oracle to EDB but not otherway around.
    PLease let me know if you have come across this issue, any recommendation is very much appreciated.
    Thanks,
    CK.

    Hi,
    I finally remembered how I solved this issue previously.
    The jdbc driver isn't able to directly call the insert with a column xml_type. The solution I was using was to build a wrapper function in plSQL.
    Here it is (for insert but I suppose tha update will be the same)
    create or replace procedure insertXML(file_no_in in number, program_no_in in varchar2, ost_XML_in in clob, btl_XML_in in clob) is
    begin
    insert into AQAOST_FILES (file_no,program_no,ost_xml,btl_xml) values(file_no_in, program_no_in, xmltype(ost_XML_in), xmltype(btl_XML_in));
    end insertXML;
    here is the sqlmap file I used
    <?xml version="1.0" encoding="UTF-8" ?>
    <!DOCTYPE sqlMap
    PUBLIC "-//ibatis.apache.org//DTD SQL Map 2.0//EN"
    "http://ibatis.apache.org/dtd/sql-map-2.dtd">
    <sqlMap>
         <typeAlias alias="AqAost" type="com.sg2net.jdbc.AqAost" />
         <insert id="insert" parameterClass="AqAost">
              begin
                   insertxml(#fileNo#,#programNo#,#ostXML:CLOB#,#bltXML:CLOB#);
              end;
         </insert>
    </sqlMap>
    an here is a simple program
    package com.sg2net.jdbc;
    import java.io.IOException;
    import java.io.Reader;
    import java.io.StringWriter;
    import java.sql.Connection;
    import oracle.jdbc.pool.OracleDataSource;
    import com.ibatis.common.resources.Resources;
    import com.ibatis.sqlmap.client.SqlMapClient;
    import com.ibatis.sqlmap.client.SqlMapClientBuilder;
    public class TestInsertXMLType {
         * @param args
         public static void main(String[] args) throws Exception {
              // TODO Auto-generated method stub
              String resource="sql-map-config-xmlt.xml";
              Reader reader= Resources.getResourceAsReader(resource);
              SqlMapClient sqlMap = SqlMapClientBuilder.buildSqlMapClient(reader);
              OracleDataSource dataSource= new OracleDataSource();
              dataSource.setUser("test");
              dataSource.setPassword("test");
              dataSource.setURL("jdbc:oracle:thin:@localhost:1521:orcl");
              Connection connection=dataSource.getConnection();
              sqlMap.setUserConnection(connection);
              AqAost aqAost= new AqAost();
              aqAost.setFileNo(3);
              aqAost.setProgramNo("prg");
              Reader ostXMLReader= Resources.getResourceAsReader("ostXML.xml");
              Reader bltXMLReader= Resources.getResourceAsReader("bstXML.xml");
              aqAost.setOstXML(readerToString(ostXMLReader));
              aqAost.setBltXML(readerToString(bltXMLReader));
              sqlMap.insert("insert", aqAost);
              connection.commit();
         public static String readerToString(Reader reader) {
              StringWriter writer = new StringWriter();
              char[] buffer = new char[2048];
              int charsRead = 0;
              try {
                   while ((charsRead = reader.read(buffer)) > 0) {
                        writer.write(buffer, 0, charsRead);
              } catch (IOException ioe) {
                   throw new RuntimeException("error while converting reader to String", ioe);
              return writer.toString();
    package com.sg2net.jdbc;
    public class AqAost {
         private long fileNo;
         private String programNo;
         private String ostXML;
         private String bltXML;
         public long getFileNo() {
              return fileNo;
         public void setFileNo(long fileNo) {
              this.fileNo = fileNo;
         public String getProgramNo() {
              return programNo;
         public void setProgramNo(String programNo) {
              this.programNo = programNo;
         public String getOstXML() {
              return ostXML;
         public void setOstXML(String ostXML) {
              this.ostXML = ostXML;
         public String getBltXML() {
              return bltXML;
         public void setBltXML(String bltXML) {
              this.bltXML = bltXML;
    I tested the insert and it works correctly
    ciao,
    Giovanni

  • Finder issues when copying large amount of files to external drive

    When copying large amount of data over firewire 800, finder gives me an error that a file is in use and locks the drive up. I have to force eject. When I reopen the drive, there are a bunch of 0kb files sitting in the directory that did not get copied over. This is happens on multiple drives. I've attached a screen shot of what things look like when I reopen the drive after forcing an eject. Sometime I have to relaunch finder to get back up and running correctly. I've repaired permissions for what it's worth.
    10.6.8, by the way, 2.93 12-core, 48gb of ram, fully up to date. This has been happening for a long time, just now trying to find a solution

    Scott Oliphant wrote:
    iomega, lacie, 500GB, 1TB, etc, seems to be drive independent. I've formatted and started over with several of the drives and same thing. If I copy the files over in smaller chunks (say, 70GB) as opposed to 600GB, the problem does not happen. It's like finder is holding on to some of the info when it puts it's "ghost" on the destination drive before it's copied over and keeping the file locked when it tries to write over it.
    This may be a stretch since I have no experience with iomega and no recent experience with LaCie drives, but the different results if transfers are large or small may be a tip-off.
    I ran into something similar with Seagate GoFlex drives and the problem was heat. Virtually none of these drives are ventilated properly (i.e, no fans and not much, if any, air flow) and with extended use, they get really hot and start to generate errors. Seagate's solution is to shut the drive down when not actually in use, which doesn't always play nice with Macs. Your drives may use a different technique for temperature control, or maybe none at all. Relatively small data transfers will allow the drives to recover; very large transfers won't, and to make things worse, as the drive heats up, the transfer rate will often slow down because of the errors. That can be seen if you leave Activity Monitor open and watch the transfer rate over time (a method which Seagate tech support said was worthless because Activity Monitor was unreliable and GoFlex drives had no heat problem).
    If that's what's wrong, there really isn't any solution except using the smaller chunks of data which you've found works.

  • Trouble trying to get correct AP Check Amount total on a report

    Okay, the challenge is to try and explain my situation well. I am in Discoverer Plus. I am working to develop a Discoverer report that will show, for accounts payable application, a summary report by bank name and job number, a check count, invoice count, and check amount total. For simplicity sake, since I have the problem once I go past one table, I am dealilng with tables ap_checks_all and ap_invoice_payments_all from EBS, the tables joined on check id. Now, if I work just with the ap_checks_all table, I can easily get the correct sum of check amounts (column name in the table is AMOUNT). However when I bring in the invoice payments table, then I run into trouble. I first did the SUM data point for AMOUNT, and got a number that was way too high. Figured out that is because anytime I have multiple invoices on a check (which is most of the time), the check amount gets added in for each invoice. So if check amount is $100.00 and the check pays 5 invoices, $500.00 is added to the total amount, instead of the just the $100.00.
    So I tried the SUM_DISTINCT function next - SUM_DISTINCT(AMOUNT). Got me a lot closer, but now my total was too low. Figured out that was because if I had separate checks with the same check amount, that check amount only gets added in one time. Say Check 18 is for $100.00 and Check 39 is for $100.00, I only get $100.00 into the total instead of $200.00. Which when you think about it, is exactly what the SUM_DISTINCT function means. Since the chances of check amounts being duplicated are low, that is why I get close to the right number, but when dealing with tens of thousands of checks, check amount duplication does happen.
    So on my totals for the SUM_DISTINCT column, I finally figured out that a CELL SUM got me closer to the right number. I only had a problem now when, on the same bank name and job number, would still have duplicate check amounts at that key (group by) status level. Percentage wise, my error is low - off maybe $200,000 out of $180,000,000. So close to the right number, yet so far.
    The same thing happens in raw SQL. If you think about the raw join result, you can see what is happening -
    check 1, check 1 amount, invoice 1
    check 1, check 1 amount, invoice 2
    check 2, check 2 amount, invoice 3
    check 3, check 3 amount, invoice 4
    So if you do SUM(CHECK AMOUNT), well yeah, it will add in the check 1 amount twice.
    If you do SUM_DISTINCT(CHECK AMOUNT), then check 1 amount only gets counted once. Great. Ahh, but what if check 3 amount = check 1 amount? Oops, the check 3 amount is excluded.
    Does anyone know of a way to get around this problem? I have been playing around with the functions, but the SQL reference does not give many examples to help understand all the various optional parameters. I know, in vague concept, what I want. Something like -
    SUM(AMOUNT) DISTINCT ON CHECK_ID, or
    SUM_DISTINCT(AMOUNT) DISTINCT ON CHECK_ID.
    CHECK_ID is the internal Oracle id number for each check, from the ap_checks_all table. Check number is not unique enough, since different bank accounts may be using the same check number in the same time period. So I want a way to be able to add my check amount to the total one time when there are multiple invoices on the check, and then get each invidual check amount (one time) added up to get my check total amount.
    Like I said, no problems with Discoverer or raw SQL if doing just one table. But once I join checks to invoice payments, poof, I run into trouble.
    I did not think I was trying to do anything unusual. So quite surprising that having so much trouble trying to find a way around this problem.
    Hope this detail explanation makes some sense. Thanks for any help/insight anyone can give me.
    John Dickey

    Michael,
    Nope, that does not work. It truly just gives me an average. My desired (table) report row format is this -
    Bank name , Job Number, Check Count , Invoice Count , Check Amount Total
    So this is a SUMMARY report. Not a detail report. If I do detail, I do not have any problems - I get my correct check amount total. If I do just the ap_checks_all table, I get the correct amount (but then cannot get my invoice count). I get the correct check count (count distinct on check id). I get the correct invoice count. When I added a calculation column using the Average function as you suggested, I see on each row what is likely the average check amount. Which is exactly what you would expect to see.
    Now I did get a brainstorm and tried this. I calculated both the average and average distinct on check amount, then multiplied each by my check count. Darn. Still does not work. The Average Distinct * Check Count = SUM_DISTINCT(CHECK AMOUNT), which I already have. Average Distinct apparently only includes a duplicate check amount one time in calculating the average (which when you think about it, makes sense, darn it). The AVERAGE function still has the problem, it looks like, of including the check amount each time on checks with multiple invoices (and thus multiple rows in the join result) in determining the average. Which when you think about the raw join result from joining checks to invoice payments tables, makes sense. The result of AVERAGE * CHECK COUNT is better than the SUM(AMOUNT) column, but not as good as the SUM_DISTINCT(AMOUNT) column.
    Any other ideas? Interesting that something that seems like a pretty basic thing to do, if it does have a solution, is not a very obvious/simple solution.
    John Dickey

  • How to print copy check print from F110 tcode

    Hi All,
    My requirement is to print original check in one tray and copy check in second tray from t.code F110.
    I have developed a new form and assign it in
    FBZP ---> Payment methods company code -
    > Payment methods 'C' (Check)
    > Form Data -
    >Next form.
    But the problem is the new form which i have created is not printing.
    Can we attached two form to one print program or is there any other way to print a copy check print in different tray.
    Thanks,
    Ali

    Hi,
    It is not required to attach one more form.  You can just create another page with duplicate check and in the pages tab there is an option to set the trays.
    Set the Tray1 for First Page in
    <b>Print Attributes</b>
    Resource Name   TRY01
    and second Page
    <b>Print Attributes</b>
    Resource Name   TRY02

  • Check Amount is clearing and posting to same Bank Sub A/c In FCHR

    Hi,
    Can any one explain the reason for the below issue in my Bank Accounting?
    when check is cleared using FCHR, Check Amount is not moving From Bank Sub A/c (Checks Issued A/c ) to Bank Main A/c.
    Check Amount is clearing and posting to same Bank Sub A/c. I have checked all the setings are fine (Posting Rules also fine).
    Thanks
    Chandra

    Hi Chandra,
    Thats right. You would anyways do a bank recon at which point these are moved into the bank main account.
    Caio
    Raghu

  • Print astericks in check amount

    Hello'
    I am looking for function to put astericks in check amount.
    Regards
    Yifat Bar

    Hi,
    As I mentioned, use the REPLACE command.  Something like
    REPLACE ' ' with '*' into lv_amount.
    Regards,
    Nick

  • Invoice amount-tds amount=check amount discoverer report

    Hi,
    In ap_invoice_payments_all table AMOUNT column -Ve ,+Ve amounts are coming in one column how to get the saperate columns in discoverer.
    EX:-Invoice amount(1000)-tds amount(200)=check amount(800)

    Hi phani,
    AMOUNT column -Ve ,+Ve amounts are coming Here tds amount is nothing but the tax deducted source,which will be applicable at the inovice level.For example the TDS amount will be applicable to that supplier where he has raised credit memo and there will be say 2% of tax deductable from the invoice amount of 100 then
    100(invoice amount)-20(tds)=80(payment amount).
    You can find this,i mean it will be described as a descriptive flex field in ap_invoice_distributions_all .
    Spliting can be done through DECODE or CASE
    Hope this helps you.
    Best Wishes,
    Kranthi.
    Edited by: Kranthi.K on Jun 19, 2009 4:27 AM

  • How can I copy large amount of data between two HD ?

    Hello !
    Which command could I user to copy large amount of data between two hard disk drives ?
    How Lion identify the disk drives when you want to write some script, for example in Windows I sue
    Robocopy D:\folder source\Files E:\folder destination
    I just want to copy files and if the files/folders exist in destination the files should be overwritted.
    Help please, I bougth my first MAC 4 days ago.
    Thanks !

    Select the files/folders on one HD and drag & drop onto the other HD. The copied ones will overwrite anything with the same names.
    Since you're a newcomer to the Mac, see these:
    Switching from Windows to Mac OS X,
    Basic Tutorials on using a Mac,
    Mac 101: Mac Essentials,
    Mac OS X keyboard shortcuts,
    Anatomy of a Mac,
    MacTips,
    Switching to Mac Superguide, and
    Switching to the Mac: The Missing Manual,
    Snow Leopard Edition.&
    Additionally, *Texas Mac Man* recommends:
    Quick Assist,
    Welcome to the Switch To A Mac Guides,
    Take Control E-books, and
    A guide for switching to a Mac.

  • Copy Check Boxes but Making them Unique

    Hi Folks,
    Is there any way to copy check boxes but NOT have to go into properties to change the number. We have over 700 check boxes to add to a PDF. We want each one to be the same size, so we'd like to create 1 then copy it. But when you do that, you have to go into properties and change the number or else when you actually place a check mark in the first box, it will also place one in the copied box. Is there an easy workaround?
    BTW: Acrobat Professional 9 on a PC XP Professional.
    Thx,
    Sandy

    Sandy:
    Just saw your question today (July 9, 09). If you are still seeking a solution, try the following simple steps already built into Acrobat -
    1) Create the first check box and set up all of its properties.
    2) Right click on the check box and select "Place multiple fields..." option from the drop down
    3) Follow the simple instructions on the "Create Multiple Copies of Fields" menu
    4) Not only can you duplicate the fields down and across, but, the system will automatically keep all attributes and only change the field names by numbering them sequentially
    Hope this helps.
    Good luck!
    Sujit Pal
    www.skybases.com
    Gilbert, AZ

  • Payment check amount field

    Hi;
    I've already made a Z for payment check and works fine, but we have notice something when preview the checks in the spool, some checks in the amount (in numbers) field "*****999,999.99" sometimes it´s moves like this:
    1) example                                    "......******999,999.99"
    2) example                              ".............******99,999.99"
    3) example                                   "....******999.99"
    and so....
    in DEV we made a lot of test printing in paper the payment check an worked fine, but the problem is in QAS.
    How can i get that the amount doesn´t move in the sapscript...?
    Thanks on advance,
    David Fúnez
    Tegucigalpa, Honduras
    Edited by: David Funez on Feb 23, 2012 9:27 PM
    Edited by: David Funez on Feb 23, 2012 9:27 PM

    Hi David,
        create a SIGN aligned tab for that amount field. The tab is nothing but the position in the form from where the printing of that particular field should start.
    This should solve your problem.
    Please revert if you still face any problems.
    Regards,
    Praveenkumar T.

  • Copying large amount of data from one table to another getting slower

    I have a process that copies data from one table (big_tbl) into a very big archive table (vb_archive_tbl - 30 mil recs - partitioned table). If there are less than 1 million records in the big_tbl the copy to the vb_archive_table is fast (-10 min), but more importantly - it's consistant. However, if the number of records is greater than 1 million records in the big_tbl copying the data into the vb_archive_tbl is very slow (+30 min - 4 hours), and very inconsistant. Every few days the time it takes to copy the same amount of data grows signicantly.
    Here's an example of the code I'm using, which uses BULK COLLECT and FORALL INSERST to copy the data.
    I occasionally change 'LIMIT 5000' to see performance differences.
    DECLARE
    TYPE t_rec_type IS RECORD (fact_id NUMBER(12,0),
    store_id VARCHAR2(10),
    product_id VARCHAR2(20));
    TYPE CFF_TYPE IS TABLE OF t_rec_type
    INDEX BY BINARY_INTEGER;
    T_CFF CFF_TYPE;
    CURSOR c_cff IS SELECT *
    FROM big_tbl;
    BEGIN
    OPEN c_cff;
    LOOP
    FETCH c_cff BULK COLLECT INTO T_CFF LIMIT 5000;
    FORALL i IN T_CFF.first..T_CFF.last
    INSERT INTO vb_archive_tbl
    VALUES T_CFF(i);
    COMMIT;
    EXIT WHEN c_cff%NOTFOUND;
    END LOOP;
    CLOSE c_cff;
    END;
    Thanks you very much for any advice
    Edited by: reid on Sep 11, 2008 5:23 PM

    Assuming that there is nothing else in the code that forces you to use PL/SQL for processing, I'll second Tubby's comment that this would be better done in SQL. Depending on the logic and partitioning approach for the archive table, you may be better off doing a direct-path load into a staging table and then doing a partition exchange to load the staging table into the partitioned table. Ideally, you could just move big_tbl into the vb_archive_tbl with a single partition exchange operation.
    That said, if there is a need for PL/SQL, have you traced the session to see what is causing the slowness? Is the query plan different? If the number of rows in the table is really a trigger, I would tend to suspect that the number of rows is causing the optimizer to choose a different plan (with your sample code, the plan is obvious, but perhaps you omitted some where clauses to simplify things down) which may be rather poor.
    Justin

  • NMH305 dies when copying large amounts of data to it

    I have an NMH305 still set up with the single original 500GB drive.
    I have an old 10/100 3COM rackmount switch (the old white one) uplinked to my Netgear WGR614v7 wireless router.  I had the NAS plugged into the 3COM switch and everything worked flawlessly.  Only problem was it was only running at 100m.
    I recently purchased a TRENDnet TEG-S80g 10/100/1000 'green' switch.  I basically replaced the 3com with this switch.  To test the 1g speeds, I tried a simple drag & drop of about 4g worth of pics to the NAS on a mapped drive.  After about 2-3 seconds, the NAS dropped and Explorer said it was no longer accessible.  I could ping it, but the Flash UI was stalled.
    If I waited several minutes, it could access it again.  I logged into the Flash UI and upgraded to the latest firmware, but had the same problem.
    I plugged the NAS directly into the Netgear router and transfered files across the wireless without issue.  I plugged it back into the green switch and it dropped after about 6-10 pics transfered.
    I totally bypassed the switch and plugged it directly into my computer.  Verified I can ping & log in to the Flash UI, then tried to copy files and it died again.
    It seems to only happend when running at 1g links speeds.  The max transfer I was able to get was about 10mbps, but I'm assuming that's limited by the drive write speeds & controllers.
    Anyone ran into this before?
    TIA!

    Hi cougar694u,
    You may check this review "click here". This is a thorough review about the Media Hub's Write and Read throughput vs. File Size - 1000 Mbps LAN.
    Cheers

  • Sapscript - print negative amounts

    Hi,
    we have a sapscript solution for printing the content of amount items; they are defined with NETWR or KWERT data element (CURR 13/15,2). When we print negative values the format is "x,y-", with the less sign after, but now it is asked to have the format "-x,y", with the less sign before. (ex. AS IS: 123,45- => TO BE:-123,45)
    I'm looking for the less impact possible solution, any idea?
    Thank in advance for every suggestion.
    Umb.
    Moderator Message: FAQ. Wrong forum. Please search before you post.. in the right forum.
    Edited by: kishan P on Jan 19, 2011 4:41 PM

    I believe you have posted this question in the wrong forum.  There is an ABAP Forms Printing Forum.

  • Check amount vrs liability amount

    Hi,
    I need that the person who make the checks respect the liability amount so this person can`t change it in the check.
    ex. if the liability amount is US$10,000.00 the person that makes the check enter US$10,000.00 in the check.
    Right now this person can enter any amount in the check.
    Thanks on advance.

    Hi Chandra,
    Thats right. You would anyways do a bank recon at which point these are moved into the bank main account.
    Caio
    Raghu

Maybe you are looking for

  • ECC to MSSQL Server  in PI 7.1

    Hi I am in the Process of developing a scenario where my sender would be ecc and receiver would be sequl sever have requirement whenever there is any update on the database ECC it needs to update on the different server which is MSSQL Server am using

  • Moving SAP ERP Servers to a different domain.

    Hello Experts I currently have 3 SAP ERP 6.0 servers (central installs) a solution manager 7.0 EHP1 and netweaver CE machine all located in one windows domain (currenlty windows 2003 domain controllers) all running Oracle databases.  I have been aske

  • Mouse Right- Click not working

    yes, I firstly checked that the secondary button is set as right click. I disabled it and restarted the computer, but is not working, any ideas? Cheers, Daniel

  • Macbook shuts down when unplugged from wall

    Whenever I want to use my macbook as an actual laptop i go to unplug it the in about two seconds it shuts down. When I try to turn it on it starts up and then just fails to even get to the screen with the apple. It also says that my battery has full

  • Confirmation based on a button with redirect

    hi Is there a way of getting a confirmation popup box to apear based on a cancel button. I also want the button to redirect to another page if the user clicks Ok. thanks Tom