Problem in packed type?

Hi all,
i have small problem,iam getting data  which should be check is it packed data or not for that how can i do it? please send different types off ways i can check.................
my requirement is if the data is not a packed data then i have to catch the exception in try and catch method.
note:useful ans will be rewarded
regards,
phani

data:  w_pck type p decimals 2.
data:  typ(2) type c.
describe field w_pck type typ.
if typ NE 'P'.
message 'Not Packed type' type 'E'.
endif.
write:/ 'TYPE: ', typ.
Reward if useful
Regards
Prax

Similar Messages

  • Packed type

    Hi experts
           I am using this field  
           bdmng LIKE resb-bdmng,          *  0.010
           iamng LIKE afpo-iamng,            * 150
          it_final-iamng = it_final-bdmng / it_final-psmng.
           when i do calculations in program the result of iamng
            is supposed to  6.66667E-05, but it assigns iamng = 0.
           but iamng takes Zero, i don't know why, is this problem with packed type.
           how to solve this problem and declare this decimal places.
          Thanks in advance.
    Regards
    Rajaram

    no collect is working for some data with quan field ,
    but some of the cases it is not working, i don't know why.
    see this error description.
    An exception occurred. This exception will be dealt with in more detail               
    below. The exception, assigned to the class 'CX_SY_ARITHMETIC_OVERFLOW', was          
      not caught, which                                                                    
      led to a runtime error. The reason for this exception is:                            
    The COLLECT statement stores totals in the internal table                             
      "\PROGRAM=Z_PGM\DATA=IT_FINAL[]",                                                    
    but the values are too large for the type P field intended to store them              
    The name of the field is "BDMNG".

  • How to differentiate a packing type for Finished goods based on which customer will be invoiced ?

    I need a little expertise
    The requirement for my organization is Certain Finish goods packing.
    Currently certain, Finished goods packaging items when send to Customer, is charged for the packaging items like Pallets , Q- Bit Boxes.
    There will be a deposit fee which will appear on the customer invoice.
    Moving forward they want to eliminate that deposit fee, from the customer invoice for a few of the packaging types.. (For example Pallet we would still charge the customer the same way AS_IS today but for another pack type Q-BIT boxes customer should not be charged as a deposit fee for returing the pack type.)
    From Materials management perspective… At the time of order entry how do we differentiate a particular pack type so that for that a particular Pack type customer is not charged anything…
    2 options I am thinking is introduce a new characteristics in Classification view for PK type.. Upon entering the order the User exit will check the characteristic in material master and customer invoice won’t be charged for the Packing item if Pack type = Q Bit..
    Other one is  From the  Alternate Unit of Measure translation to Common Unit of measure / Sales Unit of measure.
    Which one would you recommend ?
    Pls advise.

    Hi Joe,
    What I was suggesting was to have different material codes per pack size. If this is done, you will not need to modify anything, other than maintain condition types for the correct material codes.
    In case you are leaning towards the classification approach, I will suggest having a custom calculation type added to include  RV64ANNN with a check of the characteristic on a custom table. In this table, maintain the pack sizes with should be charged. The logic should turn  XKOMV-KBETR = 0 if the pack size is not found in the table.

  • @ Decimal Places in Packed Type Variable

    How to check if a packed type variable has decimal placed or not?

    Hi,
    Try to use the statement DESCRIBE. See the help to understand the usage. The syntax is:
    DESCRIBE FIELD <field> DECIMALS <dec>.
    This will show the number of decimals place.
    Then, you can use a condition to test.
    Regards
    RP

  • Problems with letter type

    Problems with letter type homepage www.JO-qigong.nl When I want to make another type it changes the whole page? Why?

    Thank you for responding. I am sure that I selected the text. I don't do anything different than I did many times before. But if I change a text know, for exemple in the color Red, than other text, that I didn't selected, get a different text: bigger text or other color. In iWeb everything is OK, but when I publish it, than there are those grazy changes. I use iWeb for 3 years now and had no problems till now.
    Is it because the software is not supported anymore by Apple, because you can not update the software anymore. It is a pitty, because I like iWeb. It is easy to work with.

  • Problem in Idoc type

    Hi Experts,
    I am facing one strange issue in idocs.
    I am having a scenario where for particular LS i have assigned HRMD_A06 basic type and ZHRMD_A06 extension in partner profile.
    and i am trying to implement badi HRALE00OUTBOUND_IDOC.
    in this badi at runtime wrong message type is getting picked up at the runtime(checked in debugging). But at the end it displays proper basic type.
    so for me it is getting difficult to write logic in this badi.
    Please guide is there any particular setting apart from partner profile where we assign message type to LS.

    Hi,
    In problem in idoc type , that below link will helpful to you.
    Try this link,
    http://www.riyaz.net/blog/beginners-guide-to-ale-and-idocs-a-step-by-step-approach/technology/sap/18/
    Regards,
    Sekhar

  • Problem with mime type in web.xml file

    Hi everybody,
    I actually got a problem with mime types on Weblogic 6.0 under Linux.
    I read the documentation so I added the next lines in the web.xml file in
    the WEB-INF directory of my server :
    <mime-mapping>
    <extension>
    doc
    </extension>
    <mime-type>
    application/msword
    </mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>
    ppt
    </extension>
    <mime-type>
    application/vnd.ms-powerpoint
    </mime-type>
    </mime-mapping>
    Why can't I retrieve a .doc or .ppt files with an internet browser correctly
    ? I get only text/plain ...
    Can someone help me ?
    Regards,
    Alexis Berger

    I am having the same problem with doc and xsl. I have added this
    <mime-mapping>
    <extension>xls</extension>
    <mime-type>application/vnd.ms-excel</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>doc</extension>
    <mime-type>application/msword</mime-type>
    </mime-mapping>
    to my web.xml. I even restarted the server. I still see doc and xsl in binary.
    Is there some other setting that needs to take place?
    I am using WL6.1 with fixpack 1.
    I can see the doc and excel files in the browser if I don't go through the weblogic
    server. That just confirms it's not my browser.
    Kumar Allamraju <[email protected]> wrote:
    <!doctype html public "-//w3c//dtd html 4.0 transitional//en">
    <html>
    It works fine for me in 6.1 SP1.
    <br><br>
    If the following doesn't work , can you
    <br>try application/winword instead of application/msword?
    <p>--
    <br>Kumar
    <p>Siming Mu wrote:
    <blockquote TYPE=CITE>Hi,
    <p>I setup in my web.xml a mime mapping as follows,
    <p><mime-mapping>
    <br><extension>doc</extension><mime-type>application/msword</mime-type>
    <br></mime-mapping>
    <p>When I specify a test.doc url, the doc file appears in my browser
    as
    binary data
    <br>instead of download.
    <p>Please reference change request 055002, which decribes this problem. 
    According
    <br>to edocs, it has been fixed in wls6.1sp1.
    <p>But I am seeing it fixed.  Am I doing anything wrong? Thanks.
    <p>Siming</blockquote>
    </html>

  • Is Apple Working on A Leopard "Service Pack" type update?

    I am sorry if this is a redundant post. Is anyone aware of whether or not Apple is working on a "Service Pack" type update for Leopard?

    Sorry, but no one here knows or can say (anyone who would know would be under nondisclosure). But experience shows that Apple is always working on improving their OS releases; that's why 10.4 is up to release 10, constant work in improvements. So I think we can be sure that Apple is working on fixes and improvements to 10.5 as well. When any update will appear is unknown, but as an example, the first update to 10.4 came out about three weeks after 10.4 first shipped.

  • Packed type in se11

    Hi All,
    I want to create one structure with packed type fields.Could anybody tell me how to define it.
    Regards
    Lalit

    Hi Lali,
      U can try with Decimal fields.
    Regards,
    Sri

  • Convert Char to Packed type

    Hi,
    I have a character variable which holds the value for eg as '1,234.56'
    Now i need to pass this value to an import parameter in a Function moudle .(But this parameter is of packed type).
    Now how can i convert  a character variable to a packed type ?
    Thanks!

    Hi,
    Try:
    CALL FUNCTION 'MOVE_CHAR_TO_NUM'
               EXPORTING
                 CHR             = LWA_INPUT_FILE-CRAMT
               IMPORTING
                 NUM             = NUM
               EXCEPTIONS
                 CONVT_NO_NUMBER = 1
                 CONVT_OVERFLOW  = 2
                 OTHERS          = 3.
    Thanks,
    Krishna

  • Data loading problem with Movement types

    Hi Friends,
            I extarcted data using the data source General Ledger : Line itemdata (0fi_gl_4) to BW side.
        Problem is Movement Types for some documents missing.
    But i checked in rsa3 that time showing correctly.
    i restricted the data in bw side infopackage level only particular document that time data loading perfecly.
    this data source having 53,460 records.among all the records 400 records doc type 'we' movement types are missing.
    please give me solution for this how to loading the data with movement types.
    i checked particular document of 50000313 in RSA3 it is showing movement types. then i loaded data in bw side that time that movement types are not comming to be side. then i gave the particular doc 50000313 in infopackage level loading the data that time movement types are loading correctly. this extaractor having 55000 records.
    this is very urgent problem.Please give me reply urgenty. i am waiting for your's replys.
    Thanks & Regards,
    Guna.
    Edited by: gunasekhar raya on May 8, 2008 9:40 AM

    Hi,
    we enhanced Mvement type field(MSEG-BWART) General ledger (0FI_GL_4) extractor.
    this field populated with data all the ACC. Doc . number.
    Only 50000295 to 50000615  in this range we are not getting the movement types values.
    we didn't write any routines in transfer and update rules level.
    just we mapped to BWART field 0MOVETYPE info object.
    we restrict the particular doc no 50000313 infopackage level that time loading the the data into cube with movement types.
    but we remove the restriction infopackage level then loading the data that time we missing the movement types data of particular doc no 50000295 to 50000615.
    Please give mesolution for this. i need to solve this very urgently.
    i am witing for your reply.
    Thanks,
    Guna.

  • Problem about number types

    hi,
    we are having problem on number types on odp.net.
    we add a number(6) type column to a table by alter command without a default value and there is no problem.
    when we query the table we get a short type (in c#) in datatable for the column .
    but if we add the column by giving a default value then odp.net returns a decimal for the column.
    to avoid to make anybody confused i can say it is independent from the scale,,
    whether you define a number(6) or number(1) , there is a decimal type in datatable.
    i think it's a bug, is there any suggestions/comments for this scenario??
    ** we can overcome it by following these steps , but it is not a suitable way for every case.
         - first define the column without default value,
         - then assign the appropriate value to the column for each row
         - then define the default value for column
    thanks in advance
    [email protected]

    Hi,
    I dont reproduce your complaint. I dont have 2.102.2.20 handy, I'm testing 2.102.4.0, and .net 3.5.
    Here's exactly what I'm running, and the resutls.
    Greg
    CODE
    ========
    using System;
    using System.Data;
    using Oracle.DataAccess.Client;
    class Program
        static void Main(string[] args)
            Console.WriteLine("drop table num_tab;");
            Console.WriteLine("create table num_tab (col1 number(1) default 0 not null );");
            Console.WriteLine("hit enter");
            Console.ReadKey();
            getDS();
            Console.WriteLine("alter table num_tab add (columnX number(1) default 0 not null );");
            Console.WriteLine("hit enter");
            Console.ReadKey();
            getDS();
        private static void getDS()
            using (OracleConnection con = new OracleConnection("data source=orcl;user id=scott;password=tiger;metadata pooling=false"))
                con.Open();
                using (OracleDataAdapter da = new OracleDataAdapter("select * from num_tab",con))
                   DataSet ds = new DataSet();
                   da.Fill(ds);
                   foreach (DataColumn dc in ds.Tables[0].Columns)
                       Console.WriteLine(dc.ColumnName + ": "+ dc.DataType);
    }RESULTS
    ==========
    drop table num_tab;
    create table num_tab (col1 number(1) default 0 not null );
    hit enter
    COL1: System.Int16
    alter table num_tab add (columnX number(1) default 0 not null );
    hit enter
    COL1: System.Int16
    COLUMNX: System.Int16
    Press any key to continue . . .

  • How do fix problem with iPages - type does not enter - ?

    How do I fix this problem with Pages - type from keyboard does not enter ?  If I need to re-install, How do I do that?

    Hello DonAndNorma,
    You may need to uninstall, then reinstall the Pages application. Steps for doing so can be found in the article linked below.
    OS X Mavericks: Install, update, and uninstall apps
    http://support.apple.com/kb/PH14299
    Cheers,
    Allen

  • Problem with packed data type variable?

    Hi all,
    I have a problem while doing calculations with packed data type variables . As they are saving in the format '0,00'. so unable to do calulations because of ',' . 
    To convert these fields into str and replacing ',' with '.' is very time consuming because i have many packed data type variables.
    Can you please provide any other alternative for over coming this problem? Is there any option while defining these variables?
    Thanks,
    Vamshi.

    Hi VAMSHI KRISHNA,
    First check out SU01 Tcode (if u don't have permission then u can ask BASIS to do it)
    Enter User Name
    Execute
    Goto Defaults Tab
    Check Out Decimal Notation here... set it 1,234,567.89
    SAVE it
    Log Off once and again login with the same user id and check the result...
    Hope it will solve your problem..
    Thanks & Regards
    ilesh 24x7

  • Problems with enumerated type and DataSocket

    I am publishing an enumerated type variable using DataSocket write and I am having problems subscribing to this with other clients on the network. I can get the program to work ok if I replace the enumerated type with a straight numeric or a Text Ring for example. Is there anything special I should be looking out for when using enumerated types in this type of application.
    Thanks Kelly

    Updating to the latest version of LabVIEw (6.0.2) should correct this problem:
    http://digital.ni.com/softlib.nsf/websearch/F983BDA17B8F401B862569EC005A11C2
    Also, I would suggest updating to the latest version DataSocket:
    http://digital.ni.com/softlib.nsf/web%2Fall%20software?OpenView&Start=1&Count=500&Expand=6#6
    Chris_Mitchell
    Product Development Engineer
    Certified LabVIEW Architect

Maybe you are looking for

  • Problem validating an XML document with a schema containing xs:include

    I have a problem using an include statement in xsd. I try to include another schema by using the include statement: <xsd:include schemaLocation="../../XXX.xsd"/> and get the xjc error: s4s-att-invalid-value: Invalid attribute value for 'schemaLocatio

  • Here maps hangs when finding directions

    I am bringing my lumia 720 to the uk. Origin country is indonesia. Problem is that the Phone hangs whenever i try to find directions on here maps. Sometimes it Works when the destination is very close, like 5 mules away. But when my destination is 50

  • Send flash vars to popup ASP window

    how can I send data from a flash webpage to an ASP page which has to open in a popup window. I can do them both seperatly, but how to integrate those 2 in 1.... Here's my script... Attach Code function PlaceOrder(){ SEND DATA TO MY ASP PAGE var oFTra

  • WebEngine post processing after Export

    Is it possible to have a webengine post export processing (like a trigger to a function in webengine script galleryInfo.lrweb) after the successful Export step? I would like to do some script file copy to the album exported folder based on user selec

  • No more memory and Framemaker stops

    That is proabably not a great title... Anyway, Ever since I have gotten my 64 bit computer, FM has been awful. I have FM10, Windows 7, 16GB RAM. When I make a pdf, it, of course as usual takes forever. But now it stops responding and never refreshes.