TYPE Long in ABAP

Hi all,
I'm looking for a data element in ABAP SAP compared to a long in Java
Thanks !

This is an ABAP forum, not Java : could you explain at least what is a Long in java?
Moreover, this kind of question is really too basic, didn't you look at the documentation? Or at least, why didn't you tell us that you looked at it, and the way you found to achieve the same value range (19 digits) is to define
TYPES long TYPE p LENGTH 10 DECIMALS 0.
You can also search the data elements of type DEC with 19 digits, and you get directly (at least) :
RS_LONGINT
RSDA_INT8
etc.

Similar Messages

  • Insert data 32K into a column of type LONG using the oracle server side jdbc driver

    Hi,
    I need to insert data of more than 32k into a
    column of type LONG.
    I use the following code:
    String s = "larger then 32K";
    PreparedStatement pstmt = dbcon.prepareStatement(
    "INSERT INTO TEST (LO) VALUES (?)");
    pstmt.setCharacterStream(1, new StringReader(s), s.length());
    pstmt.executeUpdate();
    dbcon.commit();
    If I use the "standard" oracle thin client driver from classes_12.zip ("jdbc:oracle:thin:@kn7:1521:kn7a") every thing is working fine. But if I use the oracle server side jdbc driver ("jdbc:default:connection:") I get the exception java.sql.SQLException:
    Datasize larger then max. datasize for this type: oracle.jdbc.kprb.KprbDBStatement@50f4f46c
    even if the string s exceeds a length of 32767 bytes.
    I'm afraid it has something to do with the 32K limitation in PL/SQL but in fact we do not use any PL/SQL code in this case.
    What can we do? Using LOB's is not an option because we have client software written in 3rd party 4gl language that is unable to handle LOB's.
    Any idea would be appreciated.
    Thomas Stiegler
    null

    In rdbms 8.1.7 "relnotes" folder, there is a "Readme_JDBC.txt" file (on win nt) stating
    Known Problems/Limitations In This Release
    <entries 1 through 3 omiited for brevity >
    4. The Server-side Internal Driver has the following limitation:
    - Data access for LONG and LONG RAW types is limited to 32K of
    data.

  • How to declare variable for Table type in the ABAP Editor

    Hi!
    I have Table Type 'FIELDNAME_TAB' (Table of fieldnames). I want to pass the list of fieldnames to this Table Type in the ABAP Editor.
    Can anyone help me in this?

    You would declare the internal table like so.
    data: itab type FIELDNAME_TAB.
    data: wa like line of itab.
    wa = 'This_value'.
    append wa to itab.
    Regards.
    Rich Heilman
    Message was edited by:
            Rich Heilman

  • Consume Type Any in abap proxy

    Hi experts,
    Is it possible to consume the type Any in abap proxy?. I dont want to change the schema type to string. The generated proxy hasn't any final type. Check the screenshoots:
    Regards.

    well XSDANY is a rawstring, it is not an ANY type. A rawstring, defined in DDIC is the same thing as a xstring in ABAP. So I propose you to look e.g. at this post:
    Guide towards a simple conversion of an XML file to ABAP Internal table, using XML parsing.

  • Data Type Convertion in ABAP

    Hi,
    i want to convert a numeric type field to character type field in ABAP,
    and also i want to concatenate some set of different types of field to a character type field at last
    if i give just like this
    <b>CONCATENATE '   ' it_pa0000-pernr it_pa0105-usrid '                        ' it_pa0105-begda into record_tab-string.</b>
    it remove space out from the string i need space also in the <b>record_tab-string</b>,
    Reg,
    Hariharan

    Hi,
    The CONCATENATE statement combines two or more separate strings into one.
    <b>CONCATENATE <c1> ... <cn> INTO <c> [SEPARATED BY <s>].</b>
    This statement concatenates the character fields <c1> to <cn> and assigns the result to <c>. The system ignores spaces at the end of the individual source strings.
    The addition SEPARATED BY <s> allows you to specify a character field <s> which is placed in its defined length between the individual fields.
    try with this sample code..........
    CONCATENATE  it_pa0000-pernr it_pa0105-usrid  it_pa0105-begda INTO record_tab-string  SEPARATED BY SPACE.
    regards,
    Ashok Reddy

  • Whats the important of "  table-type  " in sap abap?

    hi,
    i am ahmed. abap fresher.
    i want to what use and importance of table-type in sap abap which comes in      
                         datadictionary
                                V               
                        data types
    V----
    V                         V                                 V
    data element       structure                   table type
    i want to know about table type. plz give a brief idea.
    bye.

    hi,
    Transparent Tables
    A transparent table in the dictionary has a one-to-one relationship with a table in the database. Its structure in R/3 Data Dictionary corresponds to a single database table. For each transparent table definition in the dictionary, there is one associated table in the database. The database table has the same name, the same number of fields, and the fields have the same names as the R/3 table definition. When looking at the definition of an R/3 transparent table, it might seem like you are looking at the database table itself.
    Transparent tables are much more common than pooled or cluster tables. They are used to hold application data. Application data is the master data or transaction data used by an application. An example of master data is the table of vendors (called vendor master data), or the table of customers (called customer master data). An example of transaction data is the orders placed by the customers, or the orders sent to the vendors.
    Transparent tables are probably the only type of table you will ever create. Pooled and cluster tables are not usually used to hold application data but instead hold system data, such as system configuration information, or historical and statistical data.
    Both pooled and cluster tables have many-to-one relationships with database tables. Both can appear as many tables in R/3, but they are stored as a single table in the database. The database table has a different name, different number of fields, and different field names than the R/3 table. The difference between the two types lies in the characteristics of the data they hold, and will be explained in the following sections.
    Table Pools and Pooled Tables
    A pooled table in R/3 has a many-to-one relationship with a table in the database (see Figures 3.1 and 3.2). For one table in the database, there are many tables in the R/3 Data Dictionary. The table in the database has a different name than the tables in the DDIC, it has a different number of fields, and the fields have different names as well. Pooled tables are an SAP proprietary construct.
    When you look at a pooled table in R/3, you see a description of a table. However, in the database, it is stored along with other pooled tables in a single table called a table pool. A table pool is a database table with a special structure that enables the data of many R/3 tables to be stored within it. It can only hold pooled tables.
    R/3 uses table pools to hold a large number (tens to thousands) of very small tables (about 10 to 100 rows each). Table pools reduce the amount of database resources needed when many small tables have to be open at the same time. SAP uses them for system data. You might create a table pool if you need to create hundreds of small tables that each hold only a few rows of data. To implement these small tables as pooled tables, you first create the definition of a table pool in R/3 to hold them all. When activated, an associated single table (the table pool) will be created in the database. You can then define pooled tables within R/3 and assign them all to your table pool (see Figure 3.2).
    Pooled tables are primarily used by SAP to hold customizing data.
    When a corporation installs any large system, the system is usually customized in some way to meet the unique needs of the corporation. In R/3, such customization is done via customizing tables. Customizing tables contain codes, field validations, number ranges, and parameters that change the way the R/3 applications behave.
    Some examples of data contained in customizing tables are country codes, region (state or province) codes, reconciliation account numbers, exchange rates, depreciation methods, and pricing conditions. Even screen flows, field validations, and individual field attributes are sometimes table-driven via settings in customizing tables.
    During the initial implementation of the system the data in the customizing tables is set up by a functional analyst. He or she will usually have experience relating to the business area being implemented and extensive training in the configuration of an R/3 system.
    Table Clusters and Cluster Tables
    A cluster table is similar to a pooled table. It has a many-to-one relationship with a table in the database. Many cluster tables are stored in a single table in the database called a table cluster.
    A table cluster is similar to a table pool. It holds many tables within it. The tables it holds are all cluster tables.
    Like pooled tables, cluster tables are another proprietary SAP construct. They are used to hold data from a few (approximately 2 to 10) very large tables. They would be used when these tables have a part of their primary keys in common, and if the data in these tables are all accessed simultaneously. The data is stored logically as shown in Figure 3.3.
    Figure 3.3 : Table clusters store data from several tables based on the primary key fields that they have in common.
    Table clusters contain fewer tables than table pools and, unlike table pools, the primary key of each table within the table cluster begins with the same field or fields. Rows from the cluster tables are combined into a single row in the table cluster. The rows are combined based on the part of the primary key they have in common. Thus, when a row is read from any one of the tables in the cluster, all related rows in all cluster tables are also retrieved, but only a single I/O is needed.
    A cluster is advantageous in the case where data is accessed from multiple tables simultaneously and those tables have at least one of their primary key fields in common. Cluster tables reduce the number of database reads and thereby improve performance.
    For example, as shown in Figure 3.4, the first four primary key fields in cdhdr and cdpos are identical. They become the primary key for the table cluster with the addition of a standard system field pageno to ensure that each row is unique.
    Reward if helpful
    Jagadish

  • Setting the content type inside the ABAP mapping.

    Hello All,
    Can any one help me by telling me how to set the content-type inside ABAP mapping. I have searched a large no of blogs and help.sap.com for the same.
    My requirement is I want to change the MIME type of the Main Document in side SXMB_MONI so that can change the content type of Main document which is application\xml by default.
    I would appreciate an early response regarding the same.
    Abinash

    Hello Raj,
    The output of my ABAP mapping is a flat file. So when I try to open the file with content type application/xml in the message monitor it shows the file has some error which is natural. The way to get around this problem is change the content type to application\txt from application\xml.
    I am not finding an option to set the content type inside the ABAP mapping for the same.
    Abinash

  • Handling XSD type long in BPEL with empty data

    Hi Guys,
    I have XSD that has element with datatype long and but not passing any value.
    I am getting below error :
    Caught exception while handling request: deserialization error: java.lang.NumberFormatException: For input string:
    Here is the request message:
    <messages><input><Invoke_1_insertRequest_InputVariable><part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="parameters"><insertRequest xmlns="http://persistence.myhost.com/">
    <RequestType_1>
    <sId/>
    <rID>100</requestID>
    <aNumber/>
    <requestProcess/>
    </RequestType_1>
    </insertRequest>
    </part></Invoke_1_insertRequest_InputVariable></input><fault><remoteFault xmlns="http://schemas.oracle.com/bpel/extension"><part name="code"><code>Client</code>
    </part><part name="summary"><summary>Caught exception while handling request: deserialization error: java.lang.NumberFormatException: For input string: ""</summary>
    </part><part name="detail"><detail>null</detail>
    </part></remoteFault></fault></messages>
    WSDL file used for Partner link :
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://persistence.myhost.com/" name="PersistenceSessionEJBWebServiceService" targetNamespace="http://persistence.myhost.com/">
    <types>
    <schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soap11-enc="http://schemas.xmlsoap.org/soap/encoding/" targetNamespace="http://persistence.myhost.com/" elementFormDefault="qualified">
    <complexType name="RequestType">
    <sequence>
    <element name="sId" type="long" nillable="true"/>
    <element name="rID" type="long"/>
    <element name="accNumber" type="long" nillable="true"/>
    <element name="requestProcess" type="tns:ListOfRequestProcessType" nillable="true"/>
    </sequence>
    </complexType>
    <complexType name="ListOfRequestProcessType">
    <sequence>
    <element name="item" type="tns:RequestProcessType" nillable="true" minOccurs="0" maxOccurs="unbounded"/>
    <element name="test" type="string" nillable="true"/>
    </sequence>
    </complexType>
    <complexType name="RequestProcessType">
    <sequence>
    <element name="retryCount" type="int"/>
    <element name="state" type="string" nillable="true"/>
    <element name="requestProcessId" type="long"/>
    </sequence>
    </complexType>
    <element name="insertRequest" type="tns:insertRequest"/>
    <complexType name="insertRequest">
    <sequence>
    <element name="RequestType_1" type="tns:RequestType" nillable="true"/>
    </sequence>
    </complexType>
    <element name="insertRequestResponse" type="tns:insertRequestResponse"/>
    <complexType name="insertRequestResponse">
    <sequence>
    <element name="return" type="tns:RequestType" nillable="true"/>
    </sequence>
    </complexType>
    </schema>
    </types>
    <message name="PersistenceSessionEJBWebService_insertRequest">
    <part name="parameters" element="tns:insertRequest"/>
    </message>
    <message name="PersistenceSessionEJBWebService_insertRequestResponse">
    <part name="parameters" element="tns:insertRequestResponse"/>
    </message>
    <portType name="PersistenceSessionEJBWebService">
    <operation name="insertRequest">
    <input message="tns:PersistenceSessionEJBWebService_insertRequest"/>
    <output message="tns:PersistenceSessionEJBWebService_insertRequestResponse"/>
    </operation>
    </portType>
    <binding name="PersistenceSessionEJBWebServiceSoapHttp" type="tns:PersistenceSessionEJBWebService">
    <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
    <operation name="insertRequest">
    <soap:operation soapAction=""/>
    <input>
    <soap:body use="literal"/>
    </input>
    <output>
    <soap:body use="literal"/>
    </output>
    </operation>
    </binding>
    <service name="PersistenceSessionEJBWebServiceService">
    <port name="PersistenceSessionEJB" binding="tns:PersistenceSessionEJBWebServiceSoapHttp">
    <soap:address location="http://myhost:8888/persistence/PersistenceSessionEJB"/>
    </port>
    </service>
    </definitions>

    Hi,
    The Web Service you are calling is trying to create a long type variable, even you are not passing anything.
    Pass 0 for SId, it will work.
    Other solution is to modify the schema definition in the WSDL if you can.
    If an element is not mandatory then you should specify minOccurs="0" and avoid passing null elements like &lt;SId/&gt; because some XML deserializers try to parse and instantiate an element even you have specified nillable=true in schema definition.
    Change &lt;element name="sId" type="long" nillable="true"/&gt; with &lt;element name="sId" type="long" minOccurs="0" nillable="true"/&gt;
    and don's pass an element if it is empty.
    If you are using Assign activity, it will create empty element if you don't assign value to an element. Use transform activity and if check for empty elements.
    Dharmendra
    http://soa-howto.blogspot.com

  • Serializable class doesn�t declare static final serialVersion of type long

    The serializable class SomeClassName does not declare a static final serialVersionUID field of type long
    I have a lot of these warnings in my current application.
    What does it really mean?
    In what situations do I actually want/need to use this?
    If I need it somehwere, do I just declare this field?

    Putting a version number on a serializable class is a precaution against the class definition changing in a way that confuses ObjectStreams when reading old serialisations.
    You can just declare the varialble, initially make it 1 and crank it up in your source when you change the fields of the class.

  • ORA-1483 Using database type LONG, HELP!

    Running on WINNT 4.0, JDK 1.2
    When attempting to update a column of type LONG the following
    error is being recieved:
    java.sql.SQLException: ORA-01483: invalid length for DATE or
    NUMBER bind variable
    The sql statement is:
    UPDATE FSC_HELP_ITEM_DATA SET DATA_OBJ = ? WHERE DATA_ID = ?
    Where Data_OBJ is the LONG, and is being set from a String using
    setString()
    and Data_ID is NUMBER, and is being set from an int with
    setInt();
    The error occurs when the length of the String is greater than
    2000 characters in length.
    I have tried setMaxFieldSize(), but not luck there.
    I have also tried:
    ((OracleStatement)stmt).defineColumnType( 1,Types.LONGVARCHAR )
    But no luck there either.
    NOTE: I do not get the error when inserting the same data values
    in a similar fashion
    null

    I have establishing an Thin connection to a 7.3.4.0.0 database.
    The code that performs the update is:
    sqlCommand = "UPDATE FSC_HELP_ITEM_DATA SET DATA_OBJ = ?
    WHERE DATA_ID = ?";
    stmt = DbConnect.conn.prepareStatement( sqlCommand );
    stmt.setString( 1, htmlData );
    stmt.setInt( 2, newDataId );
    stmt.executeUpdate();
    stmt.close();
    htmlData is type String
    newDataId is type int
    The table FSC_HELP_ITEM_DATA is:
    Name Null? Type
    DATA_ID NUMBER
    DATA_TYPE CHAR(1)
    DATA_OBJ LONG
    JDeveloper Team (guest) wrote:
    : Hi Paul,
    : A few questions to help us track this down:
    : 1. what version of the database are you running against?
    : 2. where is this update taking place (via an Infobus data form
    : you created with the wizard, or from SQLJ or JDBC code that you
    : wrote)?
    : I'm assuming the latter for #2. If so, could you provide a
    : snapshot of the code?
    : Thanks.
    : -L
    : Paul Lawton (guest) wrote:
    : : Running on WINNT 4.0, JDK 1.2
    : : When attempting to update a column of type LONG the following
    : : error is being recieved:
    : : java.sql.SQLException: ORA-01483: invalid length for DATE or
    : : NUMBER bind variable
    : : The sql statement is:
    : : UPDATE FSC_HELP_ITEM_DATA SET DATA_OBJ = ? WHERE DATA_ID = ?
    : : Where Data_OBJ is the LONG, and is being set from a String
    : using
    : : setString()
    : : and Data_ID is NUMBER, and is being set from an int with
    : : setInt();
    : : The error occurs when the length of the String is greater
    than
    : : 2000 characters in length.
    : : I have tried setMaxFieldSize(), but not luck there.
    : : I have also tried:
    : : ((OracleStatement)stmt).defineColumnType( 1,Types.LONGVARCHAR
    : : But no luck there either.
    : : NOTE: I do not get the error when inserting the same data
    : values
    : : in a similar fashion
    null

  • TYPES statement in abap class to include structure

    hi ,
    i have declared following in a abap class...
    TYPES:
          zts_alv_line TYPE zmat_pr_costest_alv.
         TYPES:BEGIN OF ts_alv_line,
                include type zts_alv_line,
                matkl type mara-matkl,
                t023t type t023t-wgbez,
                lvorm type mara-lvorm,
                end of ts_alv_line.
         TYPES: tt_alv_data TYPE STANDARD TABLE OF ts_alv_line WITH DEFAULT KEY.
         DATA:
          alv_data TYPE tt_alv_data.
    now while refering to alv_data-matnr the sap is giving error that this component does not have matnr.
    please help.
    Edited by: Suhas Saha on Feb 3, 2012 1:11 PM

    TYPES: zts_alv_line TYPE zmat_pr_costest_alv.
    TYPES:BEGIN OF ts_alv_line,
                include type zts_alv_line,
                matkl type mara-matkl,
                t023t type t023t-wgbez,
                lvorm type mara-lvorm,
                end of ts_alv_line.
    Actually by defining this you've defined include as field of ts_alv_line. Actually ts_alv_line is a nested structure.
    I think you need to re-define the structure definition as:
    TYPES:BEGIN OF ts_alv_line.
          INCLUDE TYPE zts_alv_line.
    TYPES: matkl TYPE mara-matkl,
           t023t TYPE t023t-wgbez,
           lvorm TYPE mara-lvorm.
    TYPES: END OF ts_alv_line.
    BR,
    Suhas

  • How to Get File type in webdynpro abap

    Hi,
    I am using File Upload UI element of webdynpro ABAP to upload data  into SAP table. I want that the file type should only be tab delimited. How to get the file type to validate the same.
    Regards,
    Dhiraj Mehta

    hi,
    just follow the link :
    http://help.sap.com/saphelp_40b/helpdata/en/2a/fa02b7493111d182b70000e829fbfe/content.htm
    Hope this will help u!!!
    thanks & regards,
    punit raval.

  • Custom proces type based on ABAP OO class

    Hy,
    I have a process type and in one method of its asoociated ABAP OO class I have to check if their process chains are running or not.
      I know how to make the tests, but the problem is that I have to integrate them in one method. I'm lookink for a solution to adapt the process type from :
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/509f3ae6-e36e-2910-48a8-ab43dc167dd9   
    Any suggestions about what should I keep or not and in which method should I put my tests?
    Thank you.

    Hello,
    Sorry, not sure where my brain was. Actually I do know: at two clients with projects going live this month, so apologies for a rushed and inaccurate response. It's CL_SWF_EVT_EVENT.
    Jocelyn's blog I referred to includes a code sample using the same class on how to raise an event with an object key.
    Regarding your second question: No you don't need to do any binding. Just use an instance of your object and it will wait for an event with the same key. The WF part is very straightforward and works exactly like BOR, it's just raising event that can't be done with the WAPI.
    Cheers,
    Mike

  • How to indicate a message by a planning function type in an ABAP-OO-Class

    Hello,
    I integrated a message with following statement " MESSAGE i003(upf1) WITH v1 v2." in an ABAP-OO-Class, which is used by a Planning Function Type. The function type works but it´s not indecated after executing the Planning Sequence, neither from web template nor in the planning modeller.
    Does anybody know this problem/behavior?
    Thank for response
    Andreas

    Hi Joerg,
    how about this:
    data: l_dummy type char100.
    MESSAGE i003(upf1) WITH v1 v2  into l_dummy.
    i_r_msg->add_msg( ).
    You do not need to take special care about the variables. Just raise the message as you want it to be raised. The only thing you need to do is to raise the message into a string (..into l_dummy). The interface IF_RSPLFA_MSG and the implemetation of add_msg is going to read the standard message variables (SY-MSGNO, SY-MSGID, SY-MSGTY, MSGV1 ...). You just need to throw the message
    and call  i_r_msg->add_msg( ) e.g. in the execute method of your customer planning function.
    Please give it a try and take a look at it in the debugger.
    Hope this helps.
    Matthias Nutt
    SAP Consulting Switzerland

  • Passing values to idoc data of type edidd40  using ABAP

    Hi All,
    I am using orders05 (purchasing) idoc for creating purchase order inbound in ABAP program. I need to read a file and fill values to idoc_data of type edidd40
    and idoc control record (of type edidc) and call function module idoc_inbound asynchronous. In this, how can I fill the values to idoc_data (edidd40). If anyone has some sample program to fill idoc_data (of type edidd40), it will be helpful.
    Thanks

    Hi,
    Please find a sample code
    * Build Control records
    CONTROL_RECORD_OUT-MESTYP = MESTYP.
    CONTROL_RECORD_OUT-IDOCTP =  IDOC_TYPE.
    CONTROL_RECORD_OUT-RCVPRT = 'LS'.   " << Fill the receiver port type US/LS
    CONTROL_RECORD_OUT-RCVPRN = LOGSYS.
    * Build Data records
    *--- EDIDD40 data Here if you have multiple items then make a loop
    loop at i_itab.                   " i_itab contains the details about EDIDD40 fields
      IT_EDIDD-SEGNAM = SEGMENT.   " Will be EDIDD40
      IT_EDIDD-SDATA = i_itab.
    *--- Append the data
    APPEND IT_EDIDD.
    endloop.
    aRs

Maybe you are looking for

  • Pl help me in this issue. Pls

    Dear All, We are using SAP B1 2005. We use Purchase Requisition  In Purchase Module. In PR ADD- on Report is not generated. PR form there is button Report. when i click on it. Error message " Load Report Failed ".

  • Can't add database to ASP Javascript page?

    If I make a page with document type of ASP javascript the option to add a db connection is grayed out even though the site, type and server onumbers have checks by them.  Do the same thing with doc type of ASP VB script and I can add db.  I don't bel

  • Invalid Checksum error on PS CS6 beta install

    I'm receiving the following error when I try to mount the beta dmg: Running OS X 10.6.8. I've redownloaded twice, but it has not changed. Ideas?

  • Flash 8 Pro can't code for flash 9 and AS 3?

    Original post here was deleted before responses showed up to this thread. Since there were responses hours after I deleted this I am reinstating it with what the thread is about so others that may have similar question can see what responses there ar

  • Adobe Acrobat Headers/Footers

    We are using Adobe Acrobat 9 Standard. One of our users has a document containing both a header and a footer.  She wants to remove the header but not the footer, but it seems to be all or nothing -- removing the header also removes the footer.  Does