Whats the meaning when variables are enclosed by brackets

Hi,
Whats the meaning when variables are enclosed by brackets?
like say
lv_fieldname(25) TYPE c.
lv_fieldname  = 'Material01'.
what does it mean by saying
ASSIGN (lv_fieldname) TO <fs_fieldname>.

In many statement in ABAP, brackets mean that real "name" of operand (object) will be determined during runtime.
Normally you would write
data lv_fieldname(25) TYPE c VAUE 'SOME_FIELD'.
assign lv_fieldname to <fs>.
write: <fs>.
This code is static . It means that when syntax check takes place, compilator looks for definition of lv_fieldname.
It then assigns value of this field. The resuts is printintg on screen text "SOME_VALUE"
Now you have similar code, but with brackets
data: lv_fieldname(25) TYPE c VAUE 'SOME_FIELD',
         some_field type i vlaue 5.
assign (lv_fieldname) to <fs>.
write: <fs>.
Here code is dynamic . It means that compilator doens't realy know the field name which will be assigned to <fs>.
We told him that this will be determined during runtime ( by means of brackets ) and the real field name we want to assing, is stored in LV_FIELDNAME.
This is equal to writing
assign ('SOME_FIELD') to <fs>.
When program starts, it is no LV_FIELDNAME which is assinged to <fs>, but the field which is stored in LV_FIELDNAME, namely 'SOME_FIELD'.
So the printed result will be 5 .
The same rule with dynamic operands applies i.e. in select statement
data: my_table(5) type c value 'SPFLI'.
select * from (my_table) ...
There is no table in DB named my_table , but compilator "knows" that we don't what to fetch data from MY_TABLE, but we want table name to be determined dynamically (during runtime). So, it is  'SPFLI' table which here will be taken into account.
One more note!
Such dynamic statements are generic (doesn't constitute fixed code) and open new range of possiblities.
Simple extending above example will create flexible (generic) program which can fetch data from different tables with one statement.
parameters: pa_tabname(40) type c.
select * from (pa_tabname) into ....
Of course here you need also dynamic internal table as target area, but this is of no importance here.
Hope this claryfies magic with brackets;)
Regards
Marcin

Similar Messages

  • Do you know what it means when messages are blue on iphone, do you know what it means when messages are blue on iphone

    do you know what it means when messages are blue on iphone

    Green messages are normal SMS messages and consume your carrier's SMS plan messages. Blue messages are those sent via the new iMessage service and are sent over a wifi or data connection. They do not count toward SMS limits, and can be sent to anyone with iMessage activated on any iDevice - iPhone, iPad, or iPod.

  • What it means when psoprdefn table doesnot have PS user

    what it means when psoprdefn table doesnot have PS user?
    invalid access id and password for signon see your security administrator
    getting this message please help!
    Thanks,
    kishore

    Can you please describe what you are doing and about the oracle error that prompted.
    Shafiulla Syed

  • HT2729 What the meaning of iOS 6.0

    Explain what iTunes means when I am downloading videos that I need iOS 6.0

    If you have an iPad 1, the max iOS is 5.1.1. For newer iPads, the current iOS is 6.0.1. The Settings>General>Software Update only appears if you have iOS 5.0 or higher currently installed.
    iOS 5: Updating your device to iOS 5 or Later
    http://support.apple.com/kb/HT4972
    How to install iOS 6
    http://www.macworld.com/article/2010061/hands-on-with-ios-6-installation.html
    iOS: How to update your iPhone, iPad, or iPod touch
    http://support.apple.com/kb/HT4623
    If you are currently running an iOS lower than 5.0, connect the iPad to the computer, open iTunes. Then select the iPad under the Devices heading on the left, click on the Summary tab and then click on Check for Update.
    Tip - If connected to your computer, you may need to disable your firewall and anitvirus software temporarily.  Then download and install the iOS update. Be sure and backup your iPad before the iOS update. After you update to iOS 6.x, the next update can be installed via wifi (i.e., not connected to your computer).
     Cheers, Tom

  • I have a problem with your app store, always I want to update a new app, I want to know what Schiffer and novelty app! Most of my applications are in English, and they write what the improvement and renewal are written in English, and I do not speak the

    Hi
    I have a problem with your app store, always I want to update a new app, I want to know what Schiffer and novelty app! Most of my applications are in English, and they write what the improvement and renewal are written in English, and I do not speak the language! I try to copy the text, color (gray) is not successful, the variance can it, so we can copy the text and translate?
    I thank you for your help, it can help to humanize

    You are right, but how could i send it to Apple? when the phone company first replaced my iphone they had in stock alots of iphones and they just sent mine back to Apple and gave me a new one, so all i did is to give them my phone, but now how could i sent it to Apple? and i cant send it by myself, and the store wont do that, its a lost for them.. so sending it to Apple wasnt an option from the begining.
    and for the record, i dont think the store where i bought it is an authorized shop.. its just a store who boughts phone's from Apple in a low price and sells it in much more money..

  • Some movie rentals i can transfer from ipad but most not! Whats the problem? They are all SD.

    Some movie rentals i can transfer from ipad but most not! Whats the problem? They are all SD. Some are watched others not. It just seems to be a fluke sometimes that they show up in the rented movies when i sync. And bought movies I always have to manually transfer to my computer!

    How did you rent them ? From http://support.apple.com/kb/HT1657 :
    If you download a rented movie on your computer: You can transfer it to a device such as your Apple TV (1st generation), iPhone, iPad, or iPod if it’s a standard-definition film (movies in HD can only be watched on your computer, iPad, iPhone 4 or later, iPod touch (4th generation or later), or Apple TV). Once you move the movie from your computer to a device, the movie will disappear from your computer's iTunes library. You can move the movie between devices as many times as you wish during the rental period, but the movie can only exist on one device at a time.
    If you download a rented movie on your iPhone 4 or later, iPad, iPod touch (4th generation or later), or Apple TV: It is not transferable to any other device or computer.

  • Whats the meaning of this value (What does it represent)

    Please can anybody explain whats the meaning of the values after by
    ORA-01652: unable to extend temp segment by 12137 in tablespace SYSTEM
    ORA-01652: unable to extend temp segment by 12140 in tablespace SYSTEM
    ORA-01652: unable to extend temp segment by 12137 in tablespace SYSTEM
    ORA-01652: unable to extend temp segment by 18206 in tablespace SYSTEM
    ORA-01653: unable to extend table AA.Table1 by 4980 in tablespace OTHERS
    ORA-01653: unable to extend table AA.Table2 by 80 in tablespace OTHERS
    ORA-01653: unable to extend table AA.Table3 by 33353 in tablespace HISTORIES
    ORA-01653: unable to extend table AA.Table4 by 4392 in tablespace HISTORIES
    ORA-01653: unable to extend table AA.Table5 by 41 in tablespace CUSTOMERS
    Aqeel Nawaz
    Thanks

    Ummm, because it is ;)
    However, if that isn't enough to convince you, just take a look at the description in the error message.
    If that's not enough, then perhaps this demo might help (note database has 8K block size):
    SQL> create tablespace small datafile 'c:\temp\small01.dbf' size 2M extent management local uniform size 1m;
    Tablespace created.
    SQL> create table t1 (id number) tablespace small;
    Table created.
    SQL> alter table t1 allocate extent;
    alter table t1 allocate extent
    ERROR at line 1:
    ORA-01653: unable to extend table BOWIE.T1 by 128 in tablespace SMALL
    Finally, what temporary tablespace are you referring to, where did the user state the version of Oracle, the type of tablespace they were using or the fact uniform sizes are being used ?
    Therefore, your assumption that the "temp" tablespace has fixed extent sizes might not be correct ...
    Cheers
    Richard Foote
    http://richardfoote.wordpress.com/

  • I'm having trouble converting my RAW files to jpegs. Even though my RAW files are 90MB plus, the jpegs when converted are only around 6MB.  Am I doing something wrong?  Thanks,  A

    Dear Forum,
    I realise this isn’t necessarily your problem, buy I’m having trouble converting my RAW files to jpegs.
    Even though my RAW files are 90MB plus, the jpegs when converted are only around 6MB.
    Am I doing something wrong?
    Thanks,
    A

    HHi Barbara, thanks for replying to my post.
    No there's nothing wrong with the Jpegs, but I want to srart uploading images for sale in Alamy, but they say they must be a minimum of 17mb un compressed. Does that mean that at 6mb compressed from 90mb they'd be acceptable?
    thanks,
    alex

  • Whats the meaning of 'reaction' !

    in a SAP standard code i found a systax like
    if reaction = 'A' then ,........
    Whats the meaning of this ?

    Well, basically, that is a conditional statement which is comparing the variable REACTION to the literal "A".  REACTION is a variable of some type in the parameter, and if its value is = "A", then the program will do some lines of code.
    This could mean anything within the context of the program, this variable could be used to evaluate a variable from a function module which the user is giving some answer via a button, or anything.
    Regards,
    Rich Heilman

  • What The Meaning Of Sorry, this Adobe product is currently not available for sale in your country

    What The Meaning Of Sorry, this Adobe product is currently not available for sale in your country

    And, um, what country are you currently in (connecting from)?

  • What does mean when a imac screen goes all white

    what does mean when a imac screen goes all white

    Hopefully its not the logic board. try a PRAM reset: http://support.apple.com/kb/HT1379
    basically hold cmd, option, P, and R directly after start. Keep holding them down until you hear two chimes. That indicates a successful PRAM reset. It is not uncommon to hear 3.
    If that doesnt work try an SMC reset. Pull out the power cord from the back of the mac for atleast 15 seconds. plug it in again for 5 seconds and power back on ...http://support.apple.com/kb/HT3964
    Regards,
    Cody

  • Does anyone know what it means when u enter your account information it says it doesnt match bank records??

    does anyone know what it means when u enter your account information it says it doesnt match bank records??

    Also, frequently it is the billing address.
    Also see:
    iTunes Store: My credit card's security code or zip code does not match my bank's records

  • HT1420 Absolutely useless!!!! clicked on store to authorize my computer and I DO NO SEE "Authorize this computer" anywhere. Not going to purchase songs using itunes anymore. Whats the point when I cant transfer them.

    Absolutely useless!!!! clicked on store to authorize my computer and I DO NOT SEE "Authorize this computer" anywhere. Not going to purchase songs using itunes anymore. Whats the point when I cant transfer them.

    You are looking at the Store drop-down menu at the top of iTunes (on a PC with iTunes 11 press alt-S and the Store drop-down should appear) ? e.g.

  • Charges outside my allowance SMMTUV what the meaning of this?

    I am getting Charges outside my allowance SMMTUV what the meaning of this?

    Hi 
    Welcome to the EE Community.
    It sounds like you are subscribed to a Third Party service.
    Where this shows on your bill there will be a 5 digit code either on the entry above or below.
    Click Here for the EE Bills explained Help pages. Under the section Charges from other companies enter the code and this will give the information for the company.
    Hope this helps!
    Thanks. 

  • How do you save your photos in iPhoto and be able to find the photos when you are in different programs. When i try to find them I can only find the iPhotos not the individual photos.

    How do you save your photos in iPhoto and be able to find the photos when you are in different programs. When i try to find them I can only find the iPhotos not the individual photos.

    Use the media browser. In every open/attach window in tithe lower left hand corner under media ==> photos ==> iPhoto
    LN

Maybe you are looking for

  • IPod 40gig 4G seen in windows but not iTunes

    So this ipod is a couple years old and has worked flawlessly. I've never had an issue with itunes until now. When I upgraded to version 7 I started seeing weird behavior. It would only find the ipod intermittently. Once it found it I restored it to f

  • Is there any way to read a ......... password on my iPad?

    I just bought an iPad Air and my Ymail account keeps asking for my password, however I must have forgotten it , my iPad3 is still receiving mail from my Ymail account but I have agreed to sell it to a friend, to complicate matters my rescue email add

  • Creating a case-sensative partition

    Hello, I need to create a case-sensitive partition on my laptop so that I can check out source code using Subversion. One of my co-workers said that I should be able to use the Disk Utility to create a partition with Mac OS Extended (Journalled, Case

  • With new IOS7 there is no attachment feature in mails!

    Need help, no attachment feature in mail since installation of IOS7

  • How to go back to lion

    I upgraded OSX Lion to Mountain Lion please I need to go back to Lion again please help