FROM DATABASE INDX: What is this and how this it work?

Hi,
I have the following statements in one of the programs that I am modifying:
    INDX_KEY-FLAG = 'SP'.
    INDX_KEY-USERA = SY-UNAME.
    IMPORT DATA_TABLE FROM DATABASE INDX(SD) ID INDX_KEY.
What does the last statement mean? How is it able to fill the table DATA_TABLE, and where is the data taken from?
Points will be rewarded and responses will be greatly appreciated.
Thanks,
John

If DATABASE is specified, the data cluster that was written to the database table dbtab in the area ar and under the identification specified in id using the statement EXPORT is imported. The database table dbtab must be set up in the same way as described for the EXPORT statement . For id, a flat, character-type data object is expected that contains the identification of the data cluster, and the two-digit area ar must be specified directly.
After TO, a work area wa that has the same data type as the database table dbtab can be specified. During import, the values of the database fields that are between the fields SRTF2 and CLUSTR are assigned to the components of wa with the same name.
If the database table dbtab is client-dependent, a flat, character-type field cl can be specified after the addition CLIENT. This field contains a client identification. If the addition is not specified, the current client is used.
Outside of classes, the addition TO wa can be omitted. Instead, a table work area for the database table dbtab can be declared using the statement TABLES. Then, during the import, the values of the database fields that are between the fields SRTF2 and CLUSTR are assigned to the component with the same name in the table work area dbtab. In addition, outside of classes, the specification id can be replaced by the obsolete specification obs_id.
Example
The table that is imported into the internal table itab is the table exported under the name tab and the identification " TABLE" into the area "XY" of the database table INDX supplied by SAP (see the additions medium of the statement EXPORT). However, the components - which can be selected as required - are assigned to the structure wa_indx.
TYPES:
  BEGIN OF tab,
    col1 TYPE i,
    col2 TYPE i,
  END OF tab.
DATA:
  wa_indx TYPE indx,
  wa_itab TYPE tab,
  cl      TYPE mandt VALUE '100',
  itab    TYPE STANDARD TABLE OF tab.
IMPORT tab = itab
  FROM DATABASE indx(xy)
  TO   wa_indx
  CLIENT cl
  ID 'TABLE'.
WRITE: wa_indx-aedat, wa_indx-usera, wa_indx-pgmid.
ULINE.
LOOP AT itab INTO wa_itab.
  WRITE: / wa_itab-col1, wa_itab-col2.
ENDLOOP.
Rgds,
Naren

Similar Messages

  • Menu Object; MANUAL option. What is this, and how does it work?

    What is this... and, how does it work? Can't find documentation on this.

    My knee-jerk reaction is, "are f'n kidding me?"... but, of course, you're not.
    I must say, that is an incredibly useless option. How would that 'option" differ from simply making a text object (or text/rectangle/image combo or group) and creating a link?
    What got me looking at this option was the hope to find some way to insert a dynamic "field" that could be used on a master page to display the current page title (of a page based on that master). Something similar to Word (and other applications) that you can enter information into a document property and then insert that information anywhere within the document by using a field code for that info. I don't know if there is an HTML code that could be used to accomplish this, in this case. Something that would refer to the page title.
    Thanks for the info none-the-less.

  • TS3276 I am receiving emails from people who erroneously claim to have received emails from me. What is happening, and how do I stop it?

    I am receiving emails from people who erroneously claim that I have sent emails to them. What is the reason for this, and how do I stop it?

    Hi,
    Change the passwords on any account you have such as Google or Yahoo.
    10:12 pm      Thursday; December 19, 2013
      iMac 2.5Ghz 5i 2011 (Mavericks 10.9)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad

  • Group MMS- what is it and how does it work?

    I'm rarely one to ask questions about the iphone but I got my iphone 4G and today realized there was a setting that says group mms. I turned it on. I sent a text message to two people, expecting their replies to appear in the same window but they came as seperate relies. Was I wrong in assuming group mms meant replies from multiples would appear in the same window as the sent message? Please explain what Group MMS is and how it works. Thanks!

    Glad to help. One thing to add...
    First, in my example, I missed something...when Person B asked if someone could purchase his ticket, obviously he doesn't get his own text back to himself. I was rush typing that response, so just typed A through E, and didn't think of that, haha.
    Funny enough, this is the exact situation that made me realize what the group messaging was. I was beta testing the 4.0 Golden Master, and turned that feature on, thinking that I could go to my contacts and multiselect contacts, instead of adding them one by one from the messaging app. When my friends and I made plans for a movie, I had forgotten to turn this feature off, and everyone was having a grand old time chatting with each other, via this feature on my phone.
    After realizing what was going on, and some more testing to confirm accurate results, I found a slight use to this feature. Kind of cool, but can be a pain that you can turn it on "on the fly", and have to dig through the menus to enable it. Would also be much better to assign the feature to specific text threads, instead of having it apply to all group texts. I usually have a group thread going to inform my friends of free apps, and occasionally group message when coordinating. Don't need it enabled for the free apps thread, but no way to keep it on for one, but off for the other. Oh well...
    Oh, and if anyone was wondering, I was Person A and Person E, haha.
    EDIT: Second fail in my post was that you have to have the feature enabled BEFORE you send your group text out. Oh well, this stuff happens when the coffee shop person is on my neck, telling me that I cannot have anymore donuts, and that I must leave the vicinity. ;-D
    Message was edited by: EBSkater

  • What is efax and how does it work?

    Hi!
    eFax® is a service provided by eFax®, not Hewlett-Packard, that allows you to send and receive faxes using the Internet rather than a phone line. eFax® is easy to use, but it is different than a typical phone-based fax machine. You don't require a phone line to use it, so you don't have to worry about busy signals and you can place your printer where you want it, not where the phone jacks are located! The fax number you are provided will not typically be a local number, and may even be in a different country. You will receive 20 incoming and 20 outgoing fax pages per month for free with this service. Your page counts will reset at midnight Pacific Time on the first of each month. You can also subscribe to eFax® Plus to obtain additional pages per month by visiting: http://www.eFax.com/products/internet-fax.
    How does it work?
    eFax® uses the printer Internet connection to send and receive faxes. When you send a fax, it is sent over the Internet to the eFax® server and then eFax® sends your fax to the recipient's fax machine over a standard phone line.
    Your faxes are received in a similar manner, but the order is reversed. The sender sends the fax over a phone line to eFax® and then eFax® sends the fax to your printer using HP's ePrint service.
    This question was solved.
    View Solution.

    Hi Im_cheesecake,
    Great information, if you don't mind I just wanted to piggy back off of your post, to clear any potential confusion.
    The 20 free incoming & 20 free outgoing faxes are with HP printer's that include the eFax service print app.  As of now, we have three printer series' that include the pre-installed eFax print app: HP Photosmart 7510 Series, HP Envy 110 Series, and the HP Photosmart eStation C510a.  
    eFax also has a free plan which allows you to receive a limited number of faxes but does not allow you to send any faxes. If you exceed the number of received faxes allowed, eFax will prompt you to upgrade to a paying account. Here are the main details of the free plan:
    One remote (i.e. non-local) eFax number
    Area code/prefix is selected by eFax and cannot be changed (unless you upgrade to a paid account)
    20 incoming fax pages per month (receive-only)
    You are prompted to upgrade to a paying account if you exceed 20 incoming pages, or if you need send capability.
    Say "Thanks" by clicking the blue Kudos Star in the post that helped you.
    Please mark the post that solves your problem as "Accepted Solution"; therefore, it's easier for others to find.
    I am an HP employee.

  • Appletalk, what is it and how does it work?

    Can someone explain how Appletalk works? I have a printer at work that can use Appletalk,but the zones and all that, I dont understand.
    Thanks
    Nana

    You don't need to create/edit zones unless the network you're on is based on AppleTalk. AppleTalk can pretty much automatically configure itself. It's only when it was part of a much bigger network that zones made it easier to deal with only Macs and devices local to you and not have to sift through every single thing on the network all over a business or school network.
    What printer is this? Is the printer on a network? Does it have an Ethernet interface? An issue with older AppleTalk-compatible devices is that they only use the classic AppleTalk. Some routers will not forward AppleTalk packets. Newer Macs make use of AppleTalk over IP to run on modern networks not based on AppleTalk.

  • What is IMIP and how does it work with iCal?  (I don't mean IMAP ! ! )

    My POP email protocol includes a special folder called IMIP. This stores all emails that have "calendar" related material or invitations. However, they don't download to my MAIL application... they just stay on the MAIL SERVER in a folder called IMIP. How can I integrate this with MAIL?

    Hi Im_cheesecake,
    Great information, if you don't mind I just wanted to piggy back off of your post, to clear any potential confusion.
    The 20 free incoming & 20 free outgoing faxes are with HP printer's that include the eFax service print app.  As of now, we have three printer series' that include the pre-installed eFax print app: HP Photosmart 7510 Series, HP Envy 110 Series, and the HP Photosmart eStation C510a.  
    eFax also has a free plan which allows you to receive a limited number of faxes but does not allow you to send any faxes. If you exceed the number of received faxes allowed, eFax will prompt you to upgrade to a paying account. Here are the main details of the free plan:
    One remote (i.e. non-local) eFax number
    Area code/prefix is selected by eFax and cannot be changed (unless you upgrade to a paid account)
    20 incoming fax pages per month (receive-only)
    You are prompted to upgrade to a paying account if you exceed 20 incoming pages, or if you need send capability.
    Say "Thanks" by clicking the blue Kudos Star in the post that helped you.
    Please mark the post that solves your problem as "Accepted Solution"; therefore, it's easier for others to find.
    I am an HP employee.

  • When restart in Lion to Boot Camp am offered: Mac, Windows, and Recovery Disk. Recovery Disk is new. What is it and how does it work?

    Uaing Lion. When restart with Boot Camp, am now offered 3 options: Mac, windows, and (new) RECOVERY disk choices. Where did Recovery come from and for what?? Thanks for comments.

    Lion installs the Recovery HD to aid in restoring Lion and other chores. See OS X Lion- About Lion Recovery

  • I never ordered or subscribed to "Match" What is it and how dose it work?

    I don't understand,  Why have I been billed $24.99? Please reverse this charge

    Apparently, you did subscribe since that is the annual charge.
    iCloud- iTunes Match
    iTunes in the Cloud and iTunes Match Availability
    iTunes Store- Troubleshooting iTunes Match
    iTunes- How to add a computer or iOS device to iTunes Match
    iTunes Match on iPhone, iPad, or iPod touch
    iTunes in the Cloud and iTunes Match Availability

  • What is Nucleus and how it's work in ATG FW?

    Hi All,
    Now i'm learning ATG FW, any one could you explain about Nucleus and component?

    You should really read the documentation, available from here:
    http://www.oracle.com/technetwork/indexes/documentation/atgwebcommerce-393465.html
    Especially the programming guide available from here:
    http://download.oracle.com/docs/cd/E22630_01/Platform.1002/index.html
    Gareth

  • Airport Express: Gateway: What is the # and how does it work for wirelesstv

    I just purchased a Samsung 8000 series tv. It has wireless capability. For whatever reason it will not set up automatically. I've entered all of my airport express info into the tv, but when it tests the connection, it fails. It states that it cannot connect to the Gateway. Where do I find the proper Gateway code? There are four boxes like xxx-xxx-xxx-xxx on the setup menu. Thanks!

    Words,
    You posted in the AirPort Extreme forum but mention that you have an AirPort Express. Which do you have?
    Can you tell us whether you are trying to connect to the Samsung using an ethernet connection (recommended if you want to download movies) or via wireless?
    Almost all Audio/Video devices will connect automatically when they have an internet connection. You should not need to provide manual setup details unless you have an unusual configuration on your network.
    If you are trying to connect using wireless, you will need to have Samsung's wireless adapter for your monitor. Do you have this device?

  • Im new to CRM, can any body say about the BPEM. What is it and how work on?

    Hi SAP Gurus,
          Im new CRM, Can any body say me what is BPEM and how can i work on it. Is it present only in ISU ? or can i see it in CRM also?
    Thanks in advance.

    The line in question can be split up into 3 different lines.
    a[n] = next;
    System.out.println(a[n]);
    n++;

  • My epson stylus SX235W has all of a sudden decided it won't print from my mac. it says rastertoescpII has unexpectedly quit. what is this and how do i get it to print from my mac again?

    my epson stylus SX235W has all of a sudden decided it won't print from my mac. it says rastertoescpII has unexpectedly quit. what is this and how do i get it to print from my mac again?

    Open the Sharing pane in System Preferences. If the Computer Name is not set, enter a name. You may first have to click the lock icon in the lower left corner and authenticate to unlock the settings.
    Credit for this solution to ASC user Yuengdog1983.

  • Norton Firewall logging connections from usr/sbin/nmbd every 6 seconds...  What is this, and how can I stop it?

    This whole situation first started with a complaint from my ISP that it appeared I had a trojan virus...  around 1100-1200 messages per hour were being run through their servers via my account.  I have also Anti-Virus enabled, so I was left scratching my head...
    No viruses found on a full scan - so I started watching processes and connections.  This nmbd process is suspicious...  I don't run windows file sharing, nor have I ever.  This just popped up recently.  I also had two mac tech support calls, and one to Symantec - and it ran fine for a couple of days - but it's back again. 
    What is this, and how can I find the culprit, and remove it permanently...?
    Thanks in advance for any advice!
    --Jeff

    Thanks Thomas, appreciate the insight!  Thanks for taking the time to help me think through this...
    I have reset the password  twice now...
    It's only impacting one account, and the ISP says it's local to me - somewhere on my local network.
    I do have a few devices on my home network.  The only one with windows is my macbook air running parallels.  I just use this to browse some web projects I work on (view in IE to make sure everything is looking like it should). 
    The passwords I have used both times - they were ones set by my isp - the type you can't remember, they seem rather strong (upper/lower case letters, numbers, symbols).  That's what leads me to believe it's also local - something on my machine.  And it only seems to be impacting one email account (I have 5 running in Mac Mail).
    WiFi network is protected by WPA2 - just checked to be sure.  All good there.
    Now, in Norton Firewall log - I can see incoming and outgoing connections via Windows File Sharing/nmbd. 
    The reason I feel/felt that this is related to the spam sends is that once I saw the number of connects, and roughly equals the number of sends per hour of spam - I stopped the process with the firewall and suddenly my isp says the spam sends stop. That led me to believe they are related. Perhaps this virus or malware has spoofed it's name and is identifying itself as nmbd?  I have no idea.  Just scared to turn it all off just yet.
    I did notice that Moutain Lion does not run this...  (nmbd).
    I did wonder about the Air sending something off of windows - but this all happened while it was off, laying on the desk next to me.  It rarely gets used unless I'm testing or traveling.
    I can understand nmbd being useful part of the system, I cannot understand how it would be very useful if I didn't turn it on, it connects at that frequency, and I don't have file sharing enabled.  That's why I am hesitant to turn Norton off, and hope that everything just goes away.  I want to try and get this problem figured out as simply turning Norton off doesn't seem like I'm taking steps to eliminate the problem.  Perhaps Norton is causing other issues - and I'll be removing the software asap - but want to make sure the spam sends cease.
    Let me know if that sparks any ideas...  Thanks again! 
    --Jeff

  • When attempting a restore from Time Machine I get error code -8004. What is this and how can I correct it?  Thanks

    when attempting a restore from Time Machine I get error code -8004. What is this and how can I correct it?  I use OX 10.9.3
    Thanks

    Run it in compatibility mode and input the credentials.
    Mylenium

Maybe you are looking for

  • Logic required for a Internal table  issue

    Hi All, I have 2 internal table. I need STLNR value to another internal table. Both having same field. But while reading from one internal table to another internal table using IDNRK key, One idnrk having 2 different stlnr value. But its taking only

  • Help: Apache 2.0.36 / Tomcat 4.0.3 / mod_jk.dll

    I've been trying unsuccessfully to get Apache and Tomcat to work together on Windows 2000. I've seen various different sets of instructions for accomplishing this, but none of them have worked for me. I always end up unable to start Apache due to its

  • Open bookmarks, click on selection, opens but will not show list

    I click on bookmarks, a tab opens to the right, i click on the selection i want (with an arrow) to open the list to choose a bookmark, but the list will not open, but others in the list will, i now have several lists that will not open in this way fr

  • Netting documents.

    Hi, How do i know what netting type (Financial & Movement based) is used in SAP system. Do we have any config where we set this. Can we have both financial & movement based netting in SAP landscape. Thanks, Regards Raghavendra

  • "No camera attched" error..using iSight in iMovie HD

    I am using: iMac G5 2GHz OSX 10.4.2 iMovie HD 5.0.2 I have all software updates downloaded. I have all programs closed except iMovie. I only have the iSight (firewire port) and a Mighty Mouse (USB port) plugged in. Keyboard is bluetooth. When I run i