Same code but different output on different cpu

Hi to all,
I realized a simple class to receive data from a tcp server.
In the code I allocate a bytebuffer with dimension of x byte. I receive this byte from a server.
the problem is: if I use a x86 processor class run correctly. If I use x86_64 processor a receive from the server a great value and then when the application try tu run ByteBuffer.allocate I receive a memory excedeed error.
Why is there a different running mode if I change cpu?
I would to attach code but in wich way I can? this forum has a limited number of words.

I have problem at the line where is
dati = ByteBuffer.allocate(tot_byte);
I post you the code: sorry but it isn't optimized ....
int numero_canali = canals.size();
        ByteBuffer packet5 = ByteBuffer.allocate(12);
        ByteBuffer packet2 = ByteBuffer.allocate(24 + 4 * numero_canali);
        packet2.putInt(0x7ABCDE0F);
        packet2.putInt(124);
        packet2.putInt(12 + 4 * numero_canali);
        packet2.putInt(0);
        for(int i = 0; i < numero_canali; i++)
            ArrayList appoggio = (ArrayList)canals.get(i);
            String s = String.valueOf(appoggio.get(3));
            int s1 = Integer.valueOf(s).intValue();
            packet2.putInt(s1);
        packet2.putInt(0);
        packet2.putInt(0);
        packet2.rewind();
        packet2.rewind();
        while(packet2.hasRemaining())
            try
                 out.write(packet2);
            catch(IOException ex)
                ex.printStackTrace();
        do
            ByteBuffer dati = null;
            //packet.rewind();
            int total_byte;
            try
                total_byte = in.read(packet5);
                System.out.println ("Numero Byte letti : " + total_byte );
            catch(IOException ex)
                ex.printStackTrace();
            packet5.rewind();
           //packet.reset();
            System.out.println((new StringBuilder()).append("Signature messaggio : ").append(Integer.toHexString(packet5.getInt())).toString());
            System.out.println((new StringBuilder()).append("Tipo Messaggio : ").append(packet5.getInt()).toString());
            int tot_byte = 0;
            tot_byte = packet5.getInt();
            //tot_byte=0;
            System.out.println("Lung mess : " + tot_byte);
            System.out.println((new StringBuilder()).append("Lunghezza del messaggio : ").append(tot_byte).toString());
            dati = ByteBuffer.allocate(tot_byte);
            dati.rewind();
            while(dati.hasRemaining())
                try
                    in.read(dati);
                catch(IOException ex)
                    ex.printStackTrace();
            dati.rewind();
            dati.rewind();
            byte b4 = dati.get();
            byte b3 = dati.get();
            byte b2 = dati.get();
            byte b1 = dati.get();
            long older_sequence_number = ((long)b1 & 255L) << 24 | ((long)b2 & 255L) << 16 | ((long)b3 & 255L) << 8 | (long)b4 & 255L;
            System.out.println((new StringBuilder()).append("Older Sequencial Number : ").append(older_sequence_number).toString());
            System.out.println((new StringBuilder()).append("Tipo pacchetto : ").append(dati.get()).toString());
            b4 = dati.get();
            b3 = dati.get();
            b2 = dati.get();
            b1 = dati.get();
            long seconds = ((long)b1 & 255L) << 24 | ((long)b2 & 255L) << 16 | ((long)b3 & 255L) << 8 | (long)b4 & 255L;
            System.out.println((new StringBuilder()).append("Secondi : ").append(seconds * 1000L).toString());
            Date prova = new Date(seconds * 1000L);
            System.out.println((new StringBuilder()).append("Data : ").append(prova.toString()).toString());
            long sub_second = ((long)dati.get() & 255L) << 8 | (long)dati.get() & 255L;
            System.out.println((new StringBuilder()).append("Sub second : ").append(sub_second).toString());
            b2 = dati.get();
            b1 = dati.get();
            long instrument = ((long)b1 & 255L) << 8 | (long)b2 & 255L;
            System.out.println((new StringBuilder()).append("Instrument ID : ").append(instrument).toString());
            ArrayList array_temp = new ArrayList(numero_canali);
            for(int s = 0; s < numero_canali; s++)
                ArrayList appoggio = (ArrayList)canals.get(s);
                boolean add = array_temp.add(appoggio.get(0));
            b4 = dati.get();
            b3 = dati.get();
            b2 = dati.get();
            b1 = dati.get();
            long sequence_number = ((long)b1 & 255L) << 24 | ((long)b2 & 255L) << 16 | ((long)b3 & 255L) << 8 | (long)b4 & 255L;
            System.out.println((new StringBuilder()).append("Sequece Number : ").append(sequence_number).toString());
            b2 = dati.get();
            b1 = dati.get();
            long payload = ((long)b1 & 255L) << 8 | (long)b2 & 255L;
            System.out.println((new StringBuilder()).append("Byte Payload : ").append(payload).toString());
            int posizione_id = array_temp.indexOf(Long.valueOf(instrument));
            System.out.println((new StringBuilder()).append("instrument \350 alla posizione : ").append(posizione_id).toString());
            ArrayList appoggio = (ArrayList)canals.get(posizione_id);
            Object set6 = appoggio.set(5, Long.valueOf(older_sequence_number));
            Object set5 = appoggio.set(6, Long.valueOf(seconds));
            Object set4 = appoggio.set(7, Long.valueOf(sequence_number));
            Object set3 = appoggio.set(8, Long.valueOf(payload));
            Object set2 = appoggio.set(9, prova.toString());
            Object set = canals.set(posizione_id, appoggio);
        } while(true);

Similar Messages

  • HT204150 I have 2 iphones registered under same account, but both phones had different contacts in them, somehow icloud duplicated, exchanged them. and deleted could not restore the contacts, how do I restore it? plz help

    I have 2 iphones registered under same account, but both phones had different contacts in them, somehow icloud duplicated, exchanged them, and I turned off the icloud on one of them, while doing that it asked me if I want to keep them on my phone or not. I pressed the one saying not to keep them. I deleted all of them and could not restore the contacts, how do I restore it? when I sign in to my icloud account online it only shows the contacts that were on the other phone. plz help

    I access a personal iPhone and iPad, and a business iPhone with the same Apple ID.
    The iPhone's passcode lock feature is completely separate from another iPhone or iOS device.
    All apps, all paid and free apps include DRM protection which is tied to the Apple ID that was used to download the apps. If some apps were downloaded with one Apple ID and then a new Apple ID is created, in order to download an app update that was installed with the original Apple ID requires using that Apple ID and password.

  • Need help to sync two iphones to one computer with one user. Want the same library but both phones have different contact lists.

    There are two iphones in the family. We want to share the same music but separate pictures, contacts and apps. Do I have to create user accounts on the computer and different libraries?

    check out method one from this support article -> How to use multiple iPods, iPads, or iPhones with one computer

  • Same code, but difference result in Windows & Linux ??!!!

    my code below:
    String s1 = "&#27979;&#35797;Test";    // < ----- the s1's content include double bytes charset, e.g: Chinese
    String s2 = null;
    byte[] b = null;
    try
    b = s1.getBytes("iso-10646-ucs-2");
    for (int i=0; i<b.length; i++)
    System.out.print(b[i] + " ");
    System.out.println();
    s2 = new String(b, "iso-10646-ucs-2");
    b = s2.getBytes();
    for (int i=0; i<b.length; i++)
    System.out.print(b[i] + " ");
    System.out.println();
    catch (UnsupportedEncodingException e)
    e.printStackTrace();
    }

    if the String content is Englist is no problem.
    but why? java is dependence on OS?Yes. When you do this:b = s2.getBytes();that converts the String s2 to bytes, using the system's default charset. And different environments have different default charsets, depending on how they are configured.
    If you don't want different values, don't write code that uses default values that may vary from one system to the next.

  • Same report on two instances but PDF output in different fonts

    I would appreciate that Report developer with no Apps experience also read this problem.
    We have 2 running APPS11i environments.
    One production, up and running at the customer.
    One development , up and running at our site, develop department.
    We developed some reports (rdf's) in Reports 6i Builder.
    These reports are known in Oracle Applications by placing the reports in the <OUR_TOP>\11.5.0\reports\US directory
    and of course as concurrent programs in Apps11i.
    The Requests are submitted by using FND_REQUEST package in our custom application, this works ok.
    On BOTH environments the reports are printed with expected font (=Arial) and layout.The concurrent programs have output information set: format (postscript), style and printer.
    Secondly we defined another set of concurrent programs, almost the same as the above con.programs mentioned.
    Except with this difference that the output information set is format (PDF) and printer is empty (print flag is off).
    ONLY on our development site adobe acrobat reader is launched with the expected fonts (arial). SO DEVELOPMENT IS OKAY for us.
    On our production site acrobat reader is launched, but the used font is not Arial, instead a font Devicefont10cpi is used.
    But these Arial fonts are in the fonts direcory (by looking in control panel | fonts).
    When we run the reports stand-alone (reports builder or rwrun60.exe in a DOS box) on the production environment the pdf outputs are created okay with the correct font.
    What could we have been forgotten when deploying the reports on production?
    In other words what could be responsible for running reports in APPS11i in ignoring the builder defined font.
    Thanks in advance auke quist
    [email protected]

    I would appreciate that Report developer with no Apps experience also read this problem.
    We have 2 running APPS11i environments.
    One production, up and running at the customer.
    One development , up and running at our site, develop department.
    We developed some reports (rdf's) in Reports 6i Builder.
    These reports are known in Oracle Applications by placing the reports in the <OUR_TOP>\11.5.0\reports\US directory
    and of course as concurrent programs in Apps11i.
    The Requests are submitted by using FND_REQUEST package in our custom application, this works ok.
    On BOTH environments the reports are printed with expected font (=Arial) and layout.The concurrent programs have output information set: format (postscript), style and printer.
    Secondly we defined another set of concurrent programs, almost the same as the above con.programs mentioned.
    Except with this difference that the output information set is format (PDF) and printer is empty (print flag is off).
    ONLY on our development site adobe acrobat reader is launched with the expected fonts (arial). SO DEVELOPMENT IS OKAY for us.
    On our production site acrobat reader is launched, but the used font is not Arial, instead a font Devicefont10cpi is used.
    But these Arial fonts are in the fonts direcory (by looking in control panel | fonts).
    When we run the reports stand-alone (reports builder or rwrun60.exe in a DOS box) on the production environment the pdf outputs are created okay with the correct font.
    What could we have been forgotten when deploying the reports on production?
    In other words what could be responsible for running reports in APPS11i in ignoring the builder defined font.
    Thanks in advance auke quist
    [email protected]

  • After updating my 5s it will not longer logon to free wifi at our local YMCA. It worked perfectly before and works at all other free wifi's. My wifes 5s works perfectly at the same Y but it shows a different IP address for their wifi than mine.

    After updating my iphone 5s to ios8 it will no longer log onto the free wifi at my local YMCA. It works prefectly everywhere else. My wife's 5s works perfectly there but shows a different IP address for their router. Mine worked prefectly there before. What can be done?

    After updating my iphone 5s to ios8 it will no longer log onto the free wifi at my local YMCA. It works prefectly everywhere else. My wife's 5s works perfectly there but shows a different IP address for their router. Mine worked prefectly there before. What can be done?

  • Same sql statement gives output in different lines in 12.1.3 vs 11i

    Hi all,
    DB:11.2.0.3.0
    EBS:11i and 12.1.3
    O/S: Solaris SPARC 64 bits 5.10
    The below query gives the output in one line in 11i as expected but it gives the output in two separate lines in 12.1.3. Are there any server level settings for linesize and pagesize to be performed?
    set term off;
      set serveroutput on size 1000000;
      set feedback off;
      set pagesize 0;
      set head off;
      set linesize 72;
      set pause off;
      set colsep '';
    select
            lpad(code_combination_id,15,0)||
            rpad(to_char(start_date_active,'YYYYMMDD'),8,' ')||
            rpad(to_char(end_date_active,'YYYYMMDD'),8,' '),
            substr(SEGMENT1,1,3)||  --entity
            rpad(substr(SEGMENT2,1,6),6,' ')||  --account
            rpad(substr(SEGMENT3,1,5),5,' ')||  --costcenter
            rpad(substr(SEGMENT4,1,6),6,' ')||  --activity
            substr(SEGMENT6,1,3)||  --product
            substr(SEGMENT7,1,3)||  --service
            substr(SEGMENT5,1,3)||  --country
            substr(SEGMENT8,1,3)||  --intercompany
            rpad(substr(SEGMENT9,1,8),8,' ')||  --regional
            substr(enabled_flag,1,1) -- active flag
    from gl_code_combinations
    where last_update_date >=
          (select nvl(max(actual_start_date),'01-JAN-1951')
           from fnd_concurrent_requests
           where concurrent_program_id = (select concurrent_program_id
                                          from fnd_concurrent_programs
                                          where
                                          concurrent_program_name = 'XYZACCT')
           and status_code = 'C'
           and actual_completion_date is not null)
    order by 1;
    OUTPUT in 11i
    ============
    00000000000100020120930        7014912000000000000000000000000000000000Y
    00000000000100120120930        5014912000000000000000000000000000000000Y
    OUTPUT in 12.1.3
    ==============
    00000000000116020120930
    4881124010000000000000000000000000000000Y
    000000000001161
    6103229990000000000000000000000000000000Y
    11i and 12.1.3 should get the output in one line as per the above sql statement.
    Could anyone please share the fix on the above issue?
    Thanks for your time
    Regards,

    Hi,
    Can you confirm in what session are you running this query.
    Try this
    Column Code_Date_Range format a25
    Column Segments format a50
    set lines 300
    set pages 200
    set term off;
      set serveroutput on size 1000000;
      set feedback off;
      set pagesize 0;
      set head off;
      set linesize 72;
      set pause off;
      set colsep '';
    select
            lpad(code_combination_id,15,0)||
            rpad(to_char(start_date_active,'YYYYMMDD'),8,' ')||
            rpad(to_char(end_date_active,'YYYYMMDD'),8,' ') Code_Date_Range,
            substr(SEGMENT1,1,3)||  --entity
            rpad(substr(SEGMENT2,1,6),6,' ')||  --account
            rpad(substr(SEGMENT3,1,5),5,' ')||  --costcenter
            rpad(substr(SEGMENT4,1,6),6,' ')||  --activity
            substr(SEGMENT6,1,3)||  --product
            substr(SEGMENT7,1,3)||  --service
            substr(SEGMENT5,1,3)||  --country
            substr(SEGMENT8,1,3)||  --intercompany
            rpad(substr(SEGMENT9,1,8),8,' ')||  --regional
            substr(enabled_flag,1,1) Segments -- active flag
    from gl_code_combinations
    where last_update_date >=
          (select nvl(max(actual_start_date),'01-JAN-1951')
           from fnd_concurrent_requests
           where concurrent_program_id = (select concurrent_program_id
                                          from fnd_concurrent_programs
                                          where
                                          concurrent_program_name = 'XYZACCT')
           and status_code = 'C'
           and actual_completion_date is not null)
    For more details, please see:
    Formatting SQL*Plus Reports
    Thanks &
    Best Regards

  • Report with same measure but opened by 2 different level of emp hierarchy

    Hi all, I need to have a report with columns like these:
    COLS: Region -- Employee Level 3 -- Product Class -- Forecast ($) for Emp Level 2 -- Forecast ($) for Emp Level 2
    SAMPLE: NAS -- Anthony Fernicola -- Apps -- 100 (forecast for Anthony) -- 500 (forecast for Anthony's manager which is Keith Block)
    I mean, on the report criteria I drag those columns and and from the emp hierarchy dimension I drag that EMPLOYEE LEVEL 3 column since the report must show all those employees for that level, but as you can see on the same line of the report we should show as well the forecast for the manager, in this case the EMPLOYEE LEVEL 2..
    To get that measure I tried:
    1) on the formula the SUM (forecast($)) BY EMPLOYEE LEVEL2 but the data is not matching the real data..
    2) I also tried to use the FILTER function on the formula but I don't know how to filter it since it requires a filter_expression that I cannot give, I just want to show on that "Forecast ($) for Emp Level 2" column the forecast measure by that level 2..
    3) I also tried UNION but on the results the report is showing as well the LEVEL 2 for the employee and we do not want it since we want to show all LEVEL3 only...
    do you know how to do this?
    thank you!!!!

    Are you sure the brackets are in the right location?
    This:
    SELECT
    0 s_0,
    "A - Sample Sales"."Sales Person"."E1 Sales Rep Name" s_1,
    "A - Sample Sales"."Sales Person"."E9 Manager Name" s_2,
    "A - Sample Sales"."Base Facts"."1- Revenue" s_3,
    SUM("A - Sample Sales"."Base Facts"."1- Revenue" BY "A - Sample Sales"."Sales Person"."E9  Manager Name") s_4
    FROM "A - Sample Sales"
    ORDER BY 1, 3 ASC NULLS LAST, 2 ASC NULLS LAST
    works fine for me
    Regards
    John
    http://obiee101.blogspot.com
    http://obiee11g.com

  • Different output in different systems

    I have a question that when I write the following LOC in my smart form the output is correctly visible in the development system (my system) but not in the user system (a different server):
    "here>> g_po and w_curr_desc is
      "of type vbak-vbeln and vbak-waerk
    "respectively.
    set country space.                                                  
    g_po = wa_vbak-vbeln.
    w_curr_desc  = wa_vbak-waerk.
    select single dcpfm from usr01 into (w_dec_note)
      where bname = sy-uname.
    " here>>W_DEC_NOTE TYPE XUDCPFM
    " here>> l_char type char20
    <i>MOVE w_total_vat to l_char.</i>
    condense l_char no-gaps.
    if w_dec_note = 'X'.                                          
      replace all occurences of ',' in l_char with ''.
    elseif w_dec_note = 'Y'.
      replace all occurences of ',' in l_char with '.'.
      condense l_char no-gaps.
    elseif w_dec_note = space.
      replace all occurences of '.' in l_char with ''.
      replace all occurences of ',' in l_char with '.'.
    endif.
    condense l_char no-gaps.
    Now instead of the code line mentioned above in italics I write the following code-linethe problem goes away,I did that to recrify the problem but dont know the reason for it:
    <i>write w_total_vat to l_char currency wa_vbak-waerk.</i>
    1.Can anybody please explain me the reason for exactly what  happened before and after theis change is made?
    If the output is  say as '180' 'currency'  which we see on our systems.The user sees it as '18000' 'currency'.

    Whenever currency is involved, the system determines the number of decimal places in the output according to the currency , say C, If the contents of C exist in table TCURX as currency key CURRKEY, the system sets the number of decimal places according to the entry CURRDEC in TCURX. Otherwise, it uses the default setting of two decimal places. This means that table TCURX must contain only exceptions where the number of decimal places is unequal to 2.
    The output format for currencies does not depend on the decimal places of a number that may exist in the program. The system uses only the sequence of digits. This sequence of digits thus represents an amount specified in the smallest unit of the currency in use, for example Cents for US Dollar (USD) or Francs for Belgian Francs (BEF). For processing currency amounts in ABAP programs, SAP therefore recommends that you use data type P without decimal places.
    I think that for the currencies you use, there is an entry in your TCURX table and none in your client end, may be thats why this addition of two zeros occur.

  • Two AM's with the same name but different forms causes Deployment problems

    Two Masters forms, DOC & PM are cloned except for the "where clause" in the View's query and the titles in their JSP's.
    DOC workspace has a BC project and a BC4JSP Project. The BC project comprises of the EO and VO named ComVsStaticValue. In the Edit prop-> query for the VO I have specified the "where clause" as VSSV_VS_CODE='DOCTOR'.
    In Java Webserver :-
    The JSP's are located in C:\source\Doctor\ .. and the *.xml and *.class files generated by the BC proj is in C:\source\Doctor\pol_ValueSet\..
    If I execute Doctor in JWS the records are getting filtered properly.
    PM workspace has a BC project and a BC4JSP Project. Again The BC project comprises of the EO and VO named ComVsStaticValue. In the Edit prop-> query for the VO I have specified the "where clause" as VSSV_VS_CODE='PAY_MODE'.
    In Java Webserver :-
    The JSP's are located in C:\source\PMode\ .. and the *.xml and *.class files generated by the BC proj is in C:\source\PMode\pol_ValueSet\..
    If I execute PM in JWS, the PM's JSP comes (the title is correct) but the records pertaining to DOC appears. I checked the View's xml file in C:\source\PMode\pol_ValueSet\ the "where clause" is correct. The xml & classes have the same name but their contents are different.
    I want to know whether this problem is because both have the same name for the AM and the BC4JSP's property file.
    Please clarify.

    Deploying two app modules with the same name will definitely cause problems.
    The JSPs use the information in the properties file to connect to the application module and get the data they need from the appropriate View Objects in those app modules. If you have two app modules with the same name, when a JSP tries to connect, it has no way of knowing which one of the app modules to connect to if they both have the same name.
    You could:
    1. Just use one application module that contains all the View Objects you need to access.
    or
    2. Rename one of the application modules or the package it is located in so the names are distinct. If you choose this method, you will also need to update the JSPs (specifically the 'registerApplicationFrompPopertyFile' method call), and your JSP project's appmodule property file.

  • Click to Call: same destinations but different prefixes

    Hello community,
    /* Style Definitions */
    table.MsoNormalTable
    {mso-style-name:"Table Normal";
    mso-tstyle-rowband-size:0;
    mso-tstyle-colband-size:0;
    mso-style-noshow:yes;
    mso-style-priority:99;
    mso-style-qformat:yes;
    mso-style-parent:"";
    mso-padding-alt:0in 5.4pt 0in 5.4pt;
    mso-para-margin-top:0in;
    mso-para-margin-right:0in;
    mso-para-margin-bottom:10.0pt;
    mso-para-margin-left:0in;
    line-height:115%;
    mso-pagination:widow-orphan;
    font-size:11.0pt;
    font-family:"Calibri","sans-serif";
    mso-ascii-font-family:Calibri;
    mso-ascii-theme-font:minor-latin;
    mso-fareast-font-family:"Times New Roman";
    mso-fareast-theme-font:minor-fareast;
    mso-hansi-font-family:Calibri;
    mso-hansi-theme-font:minor-latin;
    mso-bidi-font-family:"Times New Roman";
    mso-bidi-theme-font:minor-bidi;}
    We have a network with several regions and a centralized CUCM 7.1(5) cluster. Each region uses different prefixes to make calls to the PSTN according to their old PBXs. So if a user from Site A needs to make a national call he dials 9 and a 10 digit number starting with 2 (92XXXXXXXXX). Another user from Site B makes the same call but is using a different prefix, let say a 0 (02XXXXXXXXXX). How am I going to distinguish this when using Click to Call and ADRs? Let say that I create the following ADRs:
    Name: national, Number begins with: 2, Number of digits: 10, Digits to be removed: 0, Prefix with pattern: 9
    Name: national, Number begins with: 2, Number of digits: 10, Digits to be removed: 0, Prefix with pattern: 0
    If I place the rule with prefix 9 first, then everyone in the cluster who will use C2C will dial the number with 9. So the user from Site B will automatically dial 9 followed by the highlighted number and the call will fail because there is no route pattern starting with 9.
    And let say that I create double route patterns for each destination on the same partition to every region, one for 9 and one for 0. The route list though uses a port to the region GW that it is connected to another PBX that specifically needs a 9 for Site A and 0 for Site B. You see what I’m trying to say. So…
    Is there any other way to differentiate the calls for use with C2C?
    Thank you,
    Stefanos

    Application Dial Rules are not site specific.  If you have different prefix in different sites, you should use translation pattern or transformastion pattern.  Those patterns could be put in call partitions so you can make them site specific.
    Michael
    http://htluo.blogspot.com

  • Same setting for two file adapter but different output

    Hi ,
    I am having two receiver file adapter for two differrent scenario with same settings but different structure.
    I want the output of the file for both the scenario should be displayed line by line but it is working fine for one scenario.File type,file encoding and FCC are same in both the interface except the fieldsnames in FCC.
    When i check both the output file i found that the scenario which is working fine  having OA OD hexadecimal value at the end of line of each line.and the second scenario which is giving the output in single line is having only OA.
    waitng for Valueable inputs!!!
    Thanks
    Santosh

    Hi Santosh,
    Kindly elaborate your question.
    it would be helpful if you post the content conversion parameters of the erroneous file channel.
    Regards,
    Varun

  • Different Payment advice config for same company code but diff Payment metd

    Hi Guys,
    Payment advice form is configured in FBZP in the PAYING COMPANY CODES and it is company code level, But I need to use different forms for different payment methods in the same company code, Whether is this possible in the config level or whether  any BTE or BADI or User-exit exisist??
    regards,
    Prabhu

    Hi Radhika,
    We have to config a payment methd for a Check and in the path u mentioned we have Check form already,
    And we need to config the Payment advice for this check.
    So in FBZP - "Paying Company codes"  we have configured the Payment advice form which works fine.
    Requirement is we need a different Payment advices for this payment methd and this company code has several other Payment methd.
    I hope this can be done by modifying the Payment medium program.
    regards,
    Prabhu

  • Invoice Split for same customer but for different output types

    Hi Gurus,
    I have a requirement from the customers. A new output type has to be created with reference to the old type and for this output type a new driver program and SAP script was created with reference to the old one.They wants  invoice split to be happened based on item level PO number. That was done successfully.
    This invoice split logic  was written in the billing routine  RV60C901(Customized).
    But now they came back with a issue that the invoice split  should be done  only if they use the new output  type but not for the old one. That means for the same customer for one output type invoice split should be done based on item level po number and for one output type it should not. How can this be controlled for a particular
    output type?
    This output types will not be used in the billing routine as the split happens at the sales order level. Is there any configuration that allows split for a particular output type.
    Please suggest me how to proceed???

    Hi,
    In the invoice split routine check if it is possible to find the output type making use of field symbols.
    Just check in debug if the variable for output type is available as follows:-
    (Program Name)variable name.
    Regads,
    Ankur Parab

  • Same exact Code but different results

    I am trying to fill a Listbox in a single Dialog based program using names
    from a file. I started by using an example program from the MSDN - Modeless.
    A simple Dialog based program using a modeless dialog to add strings to a
    Listbox in the main dialog. I inserted into the sample program the following
    code, which works perfectly:
    #include <Fstream>
    BOOL CLeasesDlg:nInitDialog()
    char* names;
    CListBox* pList = (CListBox*) GetDlgItem(IDC_LIST);
    infile.open("Leases",ios::in, filebuf:penprot);
    while( (infile.getline(names,25,'\n')) != NULL)
    pList->AddString(names);
    infile.close();
    Sunce the sample program was just a stepping stone I created my own Dialog
    based program using the AppWizard. I inserted the above code. I now receive
    an "unhandled exception" error every time during the "getline" execution. I
    have been trying for the last several days to track down the problem but can
    not.
    Some of what I learned:
    First-chance exception in Leases.exe (MSVCIRTD.DLL): 0xC0000005: Access
    Violation.
    so I wrote code to establish access permissions:
    int test = 0;
    // Check for existence
    if( test = ((_access( "Leases", 0 )) != -1) )
    // Check for read permission
    if(test = ((_access( "Leases", 4 )) != -1) )
    I stepped thru both with no problem. The file exist and is readable but can
    not retreive the first name.
    In the disassembly window it stops on this line:
    strgetl.cpp --------------------------------------------------------------
    102A75CD 88 08 mov byte ptr [eax],cl
    I do not understand how the code can work in the sample program and not work
    in the one I created. I looked back at another program I wrote several years
    ago and I used the exact same code with no problem. I would think that my
    compiler was corrupted but it compiles the modeless sample program.
    I am totally baffled .... PLEASE ... PLEASE help!
    I would be greatly appreciative

    Hey Randy,
    This forum is reserved for Measurement Studio questions.  I recommend checking with Microsofts forums because the people there will have more experience doing what you are looking for. 
    Regards,
    jigg
    CTA, CLA
    teststandhelp.com
    ~Will work for kudos and/or BBQ~

Maybe you are looking for