Wht does it mean - "ASSIGN it_DB_TBL_name TO fs1 CASTING TYPE x"?

Hi Experts,
Just curious,
Pls. let me know that, Wht is the functionality of the following statement:
ASSIGN it_DB_TBL_name TO <fs1> CASTING TYPE x
thanq

ASSIGN feld TO <fs> CASTING TYPE type.
ASSIGN feld TO <fs> CASTING TYPE (typename).
ASSIGN feld TO <fs> CASTING LIKE fld.
ASSIGN feld TO <fs> CASTING DECIMALS dec.
You can use ASSIGN ... CASTING to treat the contents of a field as a value of another type using a field symbol. One application for this statement would be to provide different views on a structure with casts on different types.
One wide-spread ABAP technique is to use C fields or structures as containers for storing structures of different types that are frequently only known at runtime. The components of the structure are selected with offset/length accesses to the container. Since this technique no longer works with Unicode, you can also look upon an existing memory area as a container with the suitable type definition using a field symbol with the ASSIGN ... CASTING statement. In the next example, a certain field of database table X031L is read, whereby the field and table names are only defined at runtime.
Example:
* Read a field of table X031L
PARAMETERS:
  TAB_NAME    LIKE SY-TNAME,             "Table name
  TAB_COMP    LIKE X031L-FIELDNAME,      "Field name
  ANZAHL      TYPE I DEFAULT 10.         "Number of lines
DATA:
  BEGIN OF BUFFER,
    ALIGNMENT TYPE F,                    "Alignment
    C(8000)   TYPE C,                    "Table contents
  END OF BUFFER.
FIELD-SYMBOLS:
  <WA>   TYPE ANY,
   TYPE ANY.
* Set field symbol with suitable to buffer area
ASSIGN BUFFER TO <WA> CASTING TYPE (TAB_NAME).
SELECT * FROM (TAB_NAME) INTO <WA>.
  CHECK SY-DBCNT < ANZAHL.
  ASSIGN COMPONENT TAB_COMP OF STRUCTURE <WA> TO .
  WRITE: / TAB_COMP, .
ENDSELECT.
Until now, in the ASSIGN feld TO <f> CASTING ... statement, the system checked to ensure that the field was at least as long as the type that was assigned to the field symbol, <f>. (Field symbols can either be typed at declaration or the type specified in an ASSIGN statement using CASTING TYPE). The syntax check is now more thorough. Now, you can only assign the field field (in either a Unicode or non-Unicode program)
provided it is at least as long as the type assigned to the field symbol <f>. Otherwise, the system returns a syntax error. At runtime, the system only checks to see whether or not the lengths are compatible in the current system (as before).
If the field type or field symbol type is a deep structure, the system also checks that the offset and type of all the reference components match in the area of field that is covered by <f>. The syntax check is now more thorough. Now, the system checks that these components must be compatible with all systems, whether they have a one-byte, double-byte, or four-byte character length. At runtime, the system only checks to see whether or not the reference components are compatible in the current system
In Unicode systems, in the ASSIGN str TO <f> TYPE C/N and ASSIGN str TO <f> CASTING TYPE C/N statements, the length of str may not always be a multiple of the character length, in which case the program terminates at runtime.

Similar Messages

  • Wht does it mean by reprocesing of idoc

    wht does it mean by reprocessing of idoc
    BD87 - Inbound IDoc reprocessing
    BD88 - Outbound IDoc reprocessing
    do we recreate an idoc again ...
    how do we do this ?

    Hi ,
           Some times in outbound process , idocs are generated but may not sent to other system and get errors like status 29, 27  or may get only 03(idoc created).So we can reprocess these error idocs using BD88(outbound).
        For inbound idoc is able to get but unable to post data into sap and get some errors .So these inbound idocs are reprocessed using BD87.
    Reward if it is usful.
    Thanks,
    Srikanth.A

  • U can hide the message by using #EC! Wht does it mean?

    Hi Experts,
    When am doing Extended Prog. check, am getting,
    1- <i><b>U can hide the message by using #EC!</b></i>
    Wht does it mean?
    2 - <i><b>No read access to field my_field!</b></i>
    Wht does it mean?
    thanq.

    Hello,
    This is error is gave by Tcode SLIN,
    Now in ur case the ur_field is not used any where in the report except the declaration line.
    So this error is give by SAP.
    In order to hide thiw warnigng u can use the  word "  # EC NEEDED.-
    This is will hide the warning.
    But my suggestion is remove the field from declarion.
    Regards,
    Vasanth

  • What does LabVIEW mean by "Error 71: File Datalog Type Conflict"

    What does LabVIEW mean by "Error 71: File Datalog Type Conflict" (Hex code:47)
    Thank you.

    Please provide us further information on when you are getting the error and what the functionality of the VI is. That would help us to troubleshoot your issue.
    Is the error caused by a similar situation as the one descibed in this KnowledgeBase?
    Best regards,
    Philip C.
    National Instruments
    - Philip Courtois, Thinkbot Solutions

  • Wht does it mean of   " * " in Long texts of  potextheader-text_form = '*'.

    Hi Experts,
    clarify one of my simple doubt, am populating the header text to PO, by BAPI, so, code is,
        potextheader-text_id = 'F01'.
        potextheader-text_form = '*'.
        MOVE t_vbak-kunnr TO potextheader-text_line.
        APPEND potextheader.
    let me know that, Wht does mean of " * " in the statement of      potextheader-text_form = '*'.
    thanq
    Edited by: Srinivas on Jun 19, 2008 3:44 PM

    Some format keys are defined by SAPscript. They have a predefined meaning and can be used in all texts:
    "*" Default paragraph
    The format definitions which are specified for the paragraph defined in the assigned style or form as the default paragraph are used for the output formatting of the paragraph involved.
    "/" New line
    The subsequent text is written to a new line during output formatting. The formatting attributes of the last paragraph format are retained.
    "/:" SAPscript control command
    The characters contained in the actual text line are not output as text but are regarded as a control command. They are not interpreted or executed until output formatting of the text. Control commands must always fit into a line fully. Subsequent lines are not allowed.
    "/*" Comment line
    This line is not taken into account during output formatting of the text.
    "=" Extended line
    This line is not subject to the line formatting in the SAPscript editor. The text contained in this line is appended directly to the character of the preceding text line which was output last. If this is not required, there must be at least one blank at the beginning of the extended line.
    "/=" Like extended line
    But the subsequent text is placed in a new line during output formatting.
    "(" Raw line
    The subsequent editor line is not interpreted by the SAPscript composer during output formatting. This means that character formats, symbols, tab characters, masking characters, or hypertext links which may be contained in this line are not evaluated and are therefore passed unchanged to the output device. The text contained in this line is also appended directly to the character of the preceding text line which was output last. If this is not required, there must be at least one blank at the beginning of the extended line.
    "/(" Like raw line
    But the subsequent text is placed in a new line during output formatting.
    ">x" Fixed line
    The line is not ready for input in the SAPscript editor. It can also not be deleted or separated. You can only create fixed lines with a program . You can therefore give a text a fixed structure, for example, which cannot be changed by the user.
    You can use any number or letter for the 'x'. You can therefore separate different sub-headings, for example. If several fixed lines occur consecutively with the same indicator, they are regarded as a unit by the SAPscript editor. It is not possible to insert anything between these lines in the editor.
    In the case of fixed lines, SAPscript print formatting interprets the first two characters of the line as a paragraph format for formatting. You therefore need to enter the required paragraph format or blank here.

  • What does it mean ASSIGN lv_data- * TO lt_data .

    Hello
    Can somebody explain me the meaning of this construction
    ASSIGN lv_data->* TO <lt_data>.
    Thanks
    Edited by: Thomas Zloch on Mar 24, 2010 4:15 PM - subject fixed for forum overview

    Hi
    from sap help:
    statement assigns the memory area specified using mem_area to the field symbol <fs>. You can assign a data object or a memory area calculated from the address of a data object. After the assignment, the field symbol refers to the assigned memory area and can be used in operand positions. When used in a statement, it behaves like a dereferenced data reference, meaning that the statement works with the content of the memory area.
    PS:
    I don't like your NIK
    Marco

  • What does it mean by "Deprecation of MBeanHome and Type-Safe Interfaces" ?

    The "Javadoc" for the type safe WebLogic MBean interfaces have this disclaimer;
    Deprecation of MBeanHome and Type-Safe Interfaces... This is a type-safe interface for a WebLogic Server MBean, which you can import into your client classes and access through weblogic.management.MBeanHome. As of 9.0, the MBeanHome interface and all type-safe interfaces for WebLogic Server MBeans are deprecated. Instead, client classes that interact with WebLogic Server MBeans should use standard JMX design patterns in which clients use the javax.management.MBeanServerConnection interface to discover MBeans, attributes, and attribute types at runtime.
    Link: http://otndnld.oracle.co.jp/document/products/wls/docs100/javadocs_mhome/weblogic/management/configuration/DomainMBean.html
    I don't understand what this means;
    1) Is all the WebLogic MBean interfaces in the "weblogic.management.configuration.*" deprecated?
    2) Is the usage of MBeanTypeService also deprecated. since it requires the an WebLogic MBean interface as input for it's getMBeanInfo method?
    3) If the WebLogic MBean interfaces will dispear, wil there be any reliable source for type information about WebLogic MBean since the information returned by MBeanTypeService.getMbeanInfo(), MBeanserver.getMbeanInfo() or WebLogicObjectName.getMbeanInfo() isn't consist in its naming schemes (tries to but..)?

    Hi,
    While scheduling background job, you can trigger the job based on existing job status as dependency or schedule the job based on the SAP Event.
    Dependency Job like first background job completes successfully then second followup job will executed other job will not triggered.
    Event Jobs: While importing data through transportation, some RDD* jobs automatically triggers. These are event based jobs.
    Regards,
    Ganesh
    ****Reward points if Helpful*****

  • Wht does mean of CONFIRMing of a Stock Transfer Order - STO??

    Hi Experts,
    Would like to know that,
    1 - Wht does mean of CONFIRMing the Stock Transfer Order-STO?
    2 - I guess, CREATing STO is just like that creationg of a PO, Am I correct?
    3 - Is ther any BAPI for CONFIRMing a STO?
    thanq

    Hi,
    Do you think of 'vendor confirmation'? Maybe it is possible to use it in case of STO...the fields are active...
    http://help.sap.com/saphelp_47x200/helpdata/en/75/ee13e855c811d189900000e8322d00/frameset.htm
    BR
    Csaba

  • Wht does mean of CONFIRMing of Stock Transfer Order-STO?

    Hi Experts,
    Would like to know that,
    1 - Wht does mean of CONFIRMing the Stock Transfer Order-STO?
    2 - I guess, CREATing STO is just like that creationg of a PO, Am I correct?
    3 - Is ther any BAPI for CONFIRMing a STO?
    thanq

    Sri,
    May be it looks like but you can also look at and test in SE37 before applying:
    Pls check the BAPIs,
    BAPI_OUTB_DELIVERY_CONFIRM_DEC BAPI for Outbound Delivery Confirmation from a Decentralized System
    BAPI_OUTB_DELIVERY_SPLIT_DEC BAPI for Subsequent Outbound-Delivery Split from a Decentralized Syste
    and at last call this for commit work:
    BAPI_TRANSACTION_COMMIT
    Amit.

  • My airport says self assigned ip. what does that mean?

    My situation is I am able to connect to the wifi at work and everywhere else, but for the last 3 weeks I am not able to connect to the wifi at my house. When I do it says airport has self assigned IP what does that mean  ? and how do you fix it ??! I tried everything almost possible.

    It means, you had better power-cycle your modem.

  • Wht does the term Conversion Factor - Banking term exactly mean???

    Wht does the term Conversion Factor - Banking term exactly mean???

    If you are referring to JAX-WS 2.x and the asynchronous client APIs, it is the latter.
    If you are not referring to the JAX-WS APIs, it probably means the former.

  • 'Device sharing same IP address as your computer' - what does this mean?

    I purchased an Airport Express yesterday and was having connection problems after setting it up to only join my existing network (to play wireless audio to speakers in the kitchen) - I seem to have solved the issue by switching off WPS on my base station (provided by my ISP)
    My question is: after making this change to the settings, I got a message saying 'this device' (presumably meaning the Airport Express) was now sharing the same IP address as my MacBook Pro.
    What does this mean, and will there be any detrimental effects?

    Thanks BTF. Presumably only my MacBook Pro and the Apple TV are connected to the internet as the Airport Express is only set up to join the existing network with the crappy router as the base station. Neither the ATV or AE have static IPs assigned.
    I have since restarted my MacBook Pro and at present have Airplay audio streaming to the AE and video to the ATV simultaneously without any (at the moment) problems.

  • HT1452 Repair permissions says Group 0 should be group 80...what does this mean?

    What does this mean...Group 0 should be 80?
    Some say Group 80 should be 0?

    It just means the item is assigned to the wrong owner. 0 is the OS, 80 is the admin user. So the item's permissions were improperly assigned to the OS as the owner rather than the admin account.

  • TS1702 I purchased an app and got a 'waiting' message on my itouch screen.  What does this mean?

    I purchased an app and got a 'waiting' messae on the itouch screen.  What does this mean?

    You have a router that assigns IP addresses in sequential order. 
    Always turn your devices on in the exact same order and you will avoid the message.
    It is not a serious problem.
    If your router supports DHCP reservations based on MAC address of the devices that will resolve the problem.

  • Unicode convertible, what does it mean?

    TYPES: BEGIN OF zbficheentry_list2,
    FICHENO type zbficheentry-ficheno,
    LOGISTICSCENTER type zbficheentry-logisticscenter,
    KANTARNO type zbficheentry-kantarno,
    TRDATE type zbficheentry-trdate,
    TRHOUR type zbficheentry-trhour,  line_color(4) type c,
    END OF zbficheentry_list2.
    DATA: zbficheentry_list TYPE STANDARD TABLE OF zbficheentry_list2 WITH HEADER LINE,
          wa_ficheentry TYPE zbficheentry_list2.
    The program triggers the error:
    The type of the database table and work area (or internal table)          
    "WA_FICHEENTRY" are not Unicode-convertible . . . . . . . . . .          
    What does this mean?
    Please help.
    Thanks.

    Hello,
    U have to use like this :
    DATA: zbficheentry_list TYPE STANDARD TABLE OF zbficheentry_list2 WITH HEADER LINE,
    wa_ficheentry TYPE line of zbficheentry_list2.
    <b>WHAT is UNICODE ?</b>
    About brief idea about unicode
    In the past, SAP developers used various codes to encode characters of different alphabets, for example, ASCII, EBCDI, or double-byte code pages.
    ASCII (American Standard Code for Information Interchange) encodes each character using 1 byte = 8 bit. This makes it possible to represent a maximum of 28 = 256 characters to which the combinations [00000000, 11111111] are assigned. Common code pages are, for example, ISO88591 for West European or ISO88595 for Cyrillic fonts.
    EBCDI (Extended Binary Coded Decimal Interchange) also uses 1 byte to encode each character, which again makes it possible to represent 256 characters. EBCDIC 0697/0500 is an old IBM format that is used on AS/400 machines for West European fonts, for example.
    Double-byte code pages require 1 or 2 bytes for each character. This allows you to form 216 = 65536 combinations where usually only 10,000 - 15,000 characters are used. Double-byte code pages are, for example, SJIS for Japanese and BIG5 for traditional Chinese.
    Using these character sets, you can account for each language relevant to the SAP System. However, problems occur if you want to merge texts from different incompatible character sets in a central system. Equally, exchanging data between systems with incompatible character sets can result in unprecedented situations.
    One solution to this problem is to use a code comprising all characters used on earth. This code is called Unicode (ISO/IEC 10646) and consists of at least 16 bit = 2 bytes, alternatively of 32 bit = 4 bytes per character. Although the conversion effort for the R/3 kernel and applications is considerable, the migration to Unicode provides great benefits in the long run:
    The Internet and consequently also mySAP.com are entirely based on Unicode, which thus is a basic requirement for international competitiveness.
    Unicode allows all R/3 users to install a central R/3 System that covers all business processes worldwide.
    Companies using different distributed systems frequently want to aggregate their worldwide corporate data. Without Unicode, they would be able to do this only to a limited degree.
    With Unicode, you can use multiple languages simultaneously at a single frontend computer.
    Unicode is required for cross-application data exchange without loss of data due to incompatible character sets. One way to present documents in the World Wide Web (www) is XML, for example.
    ABAP programs must be modified wherever an explicit or implicit assumption is made with regard to the internal length of a character. As a result, a new level of abstraction is reached which makes it possible to run one and the same program both in conventional and in Unicode systems. In addition, if new characters are added to the Unicode character set, SAP can decide whether to represent these characters internally using 2 or 4 bytes.
    A Unicode-enabled ABAP program (UP) is a program in which all Unicode checks are effective. Such a program returns the same results in a non-Unicode system (NUS) as in a Unicode system (US). In order to perform the relevant syntax checks, you must activate the Unicode flag in the screens of the program and class attributes.
    In a US, you can only execute programs for which the Unicode flag is set. In future, the Unicode flag must be set for all SAP programs to enable them to run on a US. If the Unicode flag is set for a program, the syntax is checked and the program executed according to the rules described in this document, regardless of whether the system is a US or an NUS. From now on, the Unicode flag must be set for all new programs and classes that are created.
    If the Unicode flag is not set, a program can only be executed in an NUS. The syntactical and semantic changes described below do not apply to such programs. However, you can use all language extensions that have been introduced in the process of the conversion to Unicode.
    As a result of the modifications and restrictions associated with the Unicode flag, programs are executed in both Unicode and non-Unicode systems with the same semantics to a large degree. In rare cases, however, differences may occur. Programs that are designed to run on both systems therefore need to be tested on both platforms.
    You can also check out these official SAP locations on the SAP Service Marketplace:
    http://service.sap.com/unicode
    http://service.sap.com/unicode@SAP
    http://service.sap.com/i18n
    Regards,
    Deepu.K

Maybe you are looking for