ABAP in SapScript : syntax, data types, ... ?

Hello,
Can someone tell me what are the biggest differences between regular ABAP and ABAP in SapScript? Like syntax rules, possible data types, and so on.
Thanks!

Ok, thanks for the answers.
Just one more question
Is it then also possible to create a SmartForm form (or Adobe Form) from within SapScript? I am looking for a workaround solution for correspondence in Training and Event Management. Only SapScript forms are possible, but if it is possible to create other forms with ABAP code in the SapScript, it could work, I think?

Similar Messages

  • Pack  and Floating Point Data Type in ABAP

    Dear All,
    I am new to ABAP. Started with data types. Came across pack and floating point.
    Please let me know what PACK  and Floating Point stands for with few examples and the main difference between them.
    Regards
    Arun V

    Hi,
    You'd better ask this question in ABAP forum http://forums.sdn.sap.com/forum.jspa?forumID=50 .
    Best Regards,
    Ada

  • VL10 A - Data type "LIKPVB" was found in a newer version than required

    hi Gurus!
    in transaction VL10A i get a short dump that states that the data type LIKPVB was reloaded and but in a newer version than required in program RVV50R10C.
    I checked the abap dictionary for the data type and it said that it was modified a month ago by SAP.
    To my knowledge no new configuration or notes ware applied around this period.
    The solution that the dump indicates is really wise "try to restart the program".
    I searched for sap notes that would apply or sdn posts and came up empty.
    Please help !

    I guess you have no clue either...
    any hints?

  • ABAP Data type to XI data type mapping

    Hi,
    I am creating a message type in XI corresponding to a ABAP structure. There are couple of data types on the ABAP side (for example: RAW, QUAN, CURR CUKY, UNIT, NUMC etc) which i have no idea on what it should be mapped to on the XI side(xsd:string, xsd:token, xsd:int etc).
    Is there is any document on mapping from ABAP data type to XML data type ? if yes please send it across.([email protected])
    if no doc available, if some body could let me know what these ABAP data type would map on the XI side it would great.
    Best Regards,
    Kiran

    Hi Kiran,
    just some more background information to the data types CURR, CUKY, QUAN, UNIT:
    1) Each field of data type CURR must be assigned to a field of data type CUKY (the financial amount must be assigned to a currency) and each field of data type QUAN must be assigned to a field of data type UNIT (each quantity must have a dimension). If you want to know this assignment for your specific ABAP structure, you can find it using transaction SE11 with your ABAP structure and go to the tab <i>Currency/Quantity fields</i>. Here you find the information under <i>Reference table</i> and <i>Ref. field</i>.
    2) The default number of decimals for a field of data type CURR is 2, but this can be overwritten by the assigned CUKY field. You can check the actual number of decimals for a specific currency with transaction OY04. Here are all currency list that do <b>not</b> have 2 decimals.
    3) The default number of decimals for a field of data type QUAN is 3, but this can be overwritten by the assigned UNIT field. You can check the actual number of decimals for a specific unit with transaction CUNI. Click on <i>Units of measurement</i> (pick the correct dimension first), double click on your unit and you find the info in the field <i>Decimal places</i>.
    4) Depending on the data you receive your conversions can get quite tricky. Lets take as an example a field of type CURR. If you find the value 1000 in there, this would convert to 10.00 USD if the assigned CUKY field contains the value USD (US dollar). But the same value ca represent 1000 JPY (Japanese Yen) if the assigned CUKY field contains the value JPY. What i try to say is that the value in the field of type CURR alone does not give you the actual amount, you have to know the value of the CUKY field as well. Similar for QUAN and UNIT.
    Regards,
    Claus

  • Doubt in ABAP Data types

    Hi friends,
    I want a clear idea of what is the diference between data type 'f' and 'p' with examples and in what situation which should be used.
    Similary what and where is 'x' and 'xstring' is used .. In what situations we 'll handly BYTE data ?????
    Iam not at all clear ... so eagerly waiting for ur responses with sample examples and clear explanations
    thanks in advance
    Cheers,
    R.Kripa.

    Hi Kripa,
    Types X and XSTRING are for binary data. For type X, the length of the data is specified at declaration, whereas for XSTRING, it can arbitrarily grow as for STRING.
    X      binary octets                 RAW       base64 string 
    Type X is used for binary octets. The length of the octets sequence must be specified at declaration. The initial value of each octet is 0.
    The lexical representation of binary octets is a sequence of characters in the MIME base64 format.
    There are two possible representations of data of type X, namely base64 and hex. base64 is a preferred binary coding scheme in the Internet community. There are standard libraries for encoding and decoding. base64 uses about 33% less space over hex coding. Although ABAP MOVE uses hex coding for binary to character conversion, base64 will be used to represent data of this type in XML.
    Note that the sequence of octets is transformed by the base64 encoding. The result, interpreted as a sequence of US-ASCII characters, appears as a sequence of Unicode characters in the content of that element.
    Dictionary type RAW corresponds to this type.
    XSTRING variable length binary octets RAWSTRING base64 string 
    Type XSTRING is used for a variable length binary octets. The initial value is ''. The length can vary as the string grows.
    The lexical representation of this type is the same as Type X.
    This type corresponds to the binary type.
    Dictionary type RAWSTRING corresponds to this type.
    Regards,
    Raj

  • How to define MDM real data type in ABAP ?

    Hi,
    I want to fetch MDM Repository data using MDM API .
    I am strugling as one field in MDM is of real type .
    Please tell me how I could define Real data type field in ABAP ?
    Thanks.
    Sandesh

    I recently had a Real type added to a repository I'm working on and noticed a dump in the API itself when trying to fetch data from that field. I'm running 5.5 so you may be experiencing a different issue. I haven't resolved the issue yet as it isn't a priority but I will most likely move to a string field and just ensure that the field has its decimal rule respected logically.

  • Cannot Activate data type in ABAP Database Inconsistent

    Hi,
    can you please help me on this? We could not activate the data type abap proxy in SPROXY.
    Here is the error:
    Database inconsistent: TABL XYZ not found.
    The object is inactive. Is there a way to delete the object in the backend?
    Or do you know other way to solve this?

    I already recreated the object in ESR, but we are still getting the error in SPROXY whether you regenerate, delete or activate proxy. If I checked the proxy name, it is in a form of a structure and is  activated but the data type in SPROXY is still in inactive mode.
    I could not remember how this error came up but it seems dependent objects for the data type are not generated properly that's why the error is TABL object is not found.
    Do you have other way on how to delete the inactive proxy in ABAP?

  • DATA TYPE IN ABAP CORRESPONDING TO TYPE REAL IN MDM

    Hi all,
    I am working on a code to fetch data from MDM, using the  *MDM ABAP APIs*_._ I could retrieve almost all the Fields except for one, which has data type REAL in MDM. I need to find the type in ABAP, corresponding to the type REAL in MDM. I need to define this field in the structure but I am not sure as to which data type to put against it. I have already tried float, decimal, string, char... nothing works!!
    Kindly let me know if anybody has come across the same issue and resolved it.
    Thanks and regards,
    Aastha

    Hello,
    We're getting the same problem too.
    Have you deleted your Real fields and u've created them as a measurement field?
    Is it really necessary to create the fields with type 'measurement'?
    Or do you maintain in MDM your field with type Real and you treat it as type 'mesurement' into your ABAP API with measure 'none', while in SAP ECC it's created as a numeric with decimals.
    Thanks for your feedback!
    Carlos Santamaría.

  • Proper Data type for transferring XML from ABAP to XI

    Dear Colleagues,
    I have a question on how to wrap XML data, that itself contains an encoding
    declaration, so that it will be properly transferred to XI.
    XML Generation: "always use X"
    I have searched a lot on SDN and other resources but could not find
    information, describing how a web service should wrap unicode-data when
    making it available to XI. The XML processing group emphasizes that all generation of XML should be done using X-bases (HEX) datatypes in ABAP and preferably using UTF-8 as ancoding. This by itself is not a problem.
    But transferring UTF-8-XML - through which interface?
    When a webservice provides an XML Stream and wants to transfer it to XI then there is a bit of a paradox situation, because it has to choose between using an X-based or Character-based type for its interface
    -> as Binary data?
    - when using X-based data types in the interface, I have control of the character encoding, but I expect that the XML-information will probably be wrapped in base64 encoding and then the XI will receive a base64 encoded
    XML-block instead of "plain" XML.
    I did not find any reference information on how the soap interface of XI and the WAS behave when transferring X-based data, however.
    -> as Character data?
    - on the other hand when using Character-based data types (e.g. String), I have no control of the codepage being used. I have then only the choice to generate the default encoding of the application server. Maybe this encoding
    will be transformed later to a different encoding, but usually during this process the header, which declares the encoding in use will not be adapted as well.
    So if I have a unicode machine, it will generate UTF-16 - based XML. I have no other choice, if I use a character-based type for output. And this will also be stated in the header of the XML stream. If the XML stream
    leaves the system it will probably be transformed to UTF-8, but the XML-header will still state the content to be UTF-16, because the header will probably not be auto-converted together while adapting the Character
    encoding.
    Because of these issues I am quite insecure, on how to generate and wrap UTF-8 - based XML, so that I can properly hand it over to XI, ensuring that
    it stays UTF-8 and that XI can really unwrap it automatically.
    Does anyone have a tip in which type to wrap XML-based data on the ABAP stack so it will be usable in XI?
    Thank you very much for your attention and time.
    Yours
    Christian Steinert

    Something like this should work (with a little tweek I imagine)
    This would be in the 'Command on Target':
    OdiFtpGet "-HOST=<%=odiRef.getInfo("SRC_DSERV_NAME")%>" "-USER= '<%=odiRef.getInfo("SRC_USER_NAME")%>'" "-PASSWORD= <%=odiRef.getInfo("SRC_PASS")%>" "-REMOTE_DIR=<%=odiRef.getInfo("SRC_SCHEMA")%>" "-REMOTE_FILE=<%=odiRef.getTable("L", "COLL_NAME", "W")%>" "-PASSIVE_MODE=YES"
    Set the Technology of the 'Command on Source' as File, and the technology of the 'Command on Target' as ODI Tools
    Edited by: Bos on Jun 30, 2011 11:53 AM

  • Data type of Crystal syntax formula

    Post Author: gpeters
    CA Forum: General
    How do you control the data type a Crystal formula returns?  I'm relatively new to Crystal.  I'm developing a formula, and initially I'm having it return Boolean values.  However, my intent is to have it eventually return a string value.  Now, it seems that no matter what I do, this formula is determined to only return a Boolean value.  Should I have used Basic syntex instead?  Very frustrating to be fighting syntax stuff.

    Post Author: CoolTowers
    CA Forum: General
    Generally strings are used with text such as address blocks, names, etc. Crystal interprets anything in quote marks as a string; then you just add them together.
    You can try the ToText function to convert other data types to a string data. For example:
    "Thanks for purchasing" + ToText({lastyear.sales}) + "in parts last year".  
    Look under the Function Tree box under Strings, then ToText for ways to use the function.

  • Data Type syntax colour

    Why can't Flex hilight data types?
    Like in:
    var foo:String = "bar";
    String won't colorize.
    Is this possible to set somewhere (not in the syntax color preferences)?

    checking with different options, found that the issue was related to "ORA-01727: numeric precision specifier is out of range (1 to 38)".
    We change the Column numeric length to 8 and this solved the problem.
    Thanks for your suggestions.

  • JCO reading abap RAW data type (truncating?)

    Does anyone have experience reading an Abap RAW data type using JCO?  I am trying to read a GUID (via RFC_READ_TABLE) that is defined as RAW length 16.  When I view this field in SAP GUI, I see 32 characters.  However, when I read this field using JCO, I only see the first 16 characters. 
    The mapping documents state Abap RAW maps to a Java byte array.  I have tried that - no luck.  I have used the constructor of a string that takes a byte array - no luck.  I have made sure my character set is UTF-8 in case Unicode was a possibility.  I have turned on tracing to level 8 and only see 16 characters in the output.  I need the other 16 characters as all 32 characters are used as the primary key into other tables.
    I also posted this on the ABAP Java Development space.  I know the rule about not cross-posting, but I wasn't sure which was a better place to post something like this.  This my first post on here, so my apologies in advance.
    Larry

    Thanks for responding.  Unfortunately, the export parameter list is null. There are no export parameters.  However, there are tables.  I have tried:
    byte[] byteArray = funct.getTableParameterList().getTable("DATA").getByteArray(0);
    My SE16 query only returns one field: GUID.
    I only get 16 bytes back even though GUID is defined as raw length 32.
    Is there something I else I should try?  Do you see an error in my code?
    Thanks again,
    Larry

  • Data types in ABAP

    what is the significance of initial field and valid field in data type like float,numeric,int etc.

    hi,
    With data types p, n, c, and X you can enter a length in parentheses after the type name. If no length
    is entered, the default length for this data type is used.
    With data type P you can use the DECIMALS addition to determine the number of decimal places that
    should be used (up to a maximum of 14). If this addition is missing, the number of decimal places is
    set to zero.
    If you do not specify a type, then the field is automatically type C.
    All other literals (character, numbers with decimal places, floating point numbers) are stored as text
    literals with data type C. If a literal is assigned to a variable that does not have type C, then a type
    conversion is carried out.
    The length specification after the type name for ABAP data types C, N, and X specifies the number of
    characters in the type. For type P fields, you can also set the number of decimal places. If you omit
    these specifications, the system uses the default values
    Hope this helps, Do reward.
    Edited by: Runal Singh on Feb 11, 2008 12:18 PM

  • Return data type in Crystal syntax formula

    Post Author: gpeters
    CA Forum: Formula
    How do you control the data type a Crystal formula returns?  I'm relatively new to Crystal.  I'm developing a formula, and initially I'm having it return Boolean values.  However, my intent is to have it eventually return a string value.  Now, it seems that no matter what I do, this formula is determined to only return a Boolean value.  Should I have used Basic syntex instead?  Very frustrating to be fighting syntax stuff. 

    Post Author: SKodidine
    CA Forum: Formula
    If you could copy your formula here then it would paint a better picture to help you out.  In general, you can change the data type to string (totext) and also to number (tonumber) in a formula.  It all depends on what you are trying to accomplish.

  • SAP ABAP have the ability to handle complex data types

    Hi all,
                We are developing a Function Module/BAPI that is actually sending and receiving information to and from a third-party system and none of them are "complex data types".
    I have a question does SAP ABAP have the ability to handle complex data types ???

    could you give an instance of the same...& to what extent can it handle???
    we have a web service layer to handle complex data types between BAPI calls and the third party system.

Maybe you are looking for