Can some one explain each line of this abap code

Hi..
  I got this code from a document, where they try to add account group (LFA1-KTOKK) to 0VENDOR_ATTR. I have no idea of ABAP syntax. Can some one tell me the meaning of each line of code.
Tables:  LFA1.          "vendor master data table
data:    l_tabix      like sy-tabix.
case i_CHABASNM.
*Enhancement of Vendor Master Record
     WHEN '0VENDOR'.
       case i_datasource.
         WHEN '0VENDOR_ATTR'.
           data:  l_s_BIW_LFA1_S like BIW_LFA1_S.
           loop at i_t_data into l_s_BIW_LFA1_S.
             l_tabix = sy-tabix.
             select single * from lfa1 where LIFNR = l_s_BIW_LFA1_S-LIFNR.
             if sy-subrc = 0.
               l_s_BIW_lfa1_s-ZZacctgrp = lfa1-ktokk.
               modify i_t_data from l_s_BIW_lfa1_s index l_tabix.
             endif.
           endloop.
       endcase.
   endcase.
Thanks in advance.

Hi
Tables: LFA1. "vendor master data table
<b>"here by saying Tables they have delcared the LFA1 table for further use in the program"</b>data: l_tabix like sy-tabix.
<b>"here they have defined own table index by copying the structure of system index"</b>case i_CHABASNM.
<b>"when character"</b>
*Enhancement of Vendor Master Record
WHEN '0VENDOR'.
<b>"here it says that its 0vendor"</b>case i_datasource.
<b>"when this datasource"</b>
WHEN '0VENDOR_ATTR'.
<b>"when datasource 0vendor_attr"</b>
data: l_s_BIW_LFA1_S like BIW_LFA1_S.
<b>"here we are declaring an internal table like BW internal table"</b>loop at i_t_data into l_s_BIW_LFA1_S.
<b>"here looping at i_t_data table data into l_s_BIW_LFA1_S".</b>l_tabix = sy-tabix.
<b>"here we are saying that our defined table index is equal to system index"</b>select single * from lfa1 where LIFNR = l_s_BIW_LFA1_S-LIFNR.
<b>"selecting single rows from table lfa1 where lifnr is equal to l_s_biw_lfa1 field s-lifnr"</b>
if sy-subrc = 0.
<b>"if system field returns 0 that means the above line has been executed"</b>
l_s_BIW_lfa1_s-ZZacctgrp = lfa1-ktokk.
"internal table field is equal to lfa1 field."
modify i_t_data from l_s_BIW_lfa1_s index l_tabix.
<b>"changing the internal table data as per i_t_data"</b>endif.
endloop.
endcase.
endcase.
THIS IS MY UNDERSTANDING PLEASE KINDLY CORRECT ME IF I AM WRONG.
thanks
harish

Similar Messages

  • How come extend is the physical structure ? Can some one explain.

    How come extend is the physical structure ? Can some one explain.
    thanks
    siva

    "Tablespaces physically group schema objects for administration convenience. They bridge physical structures, such as datafiles or extents, and logical structures, such as tables and indexes. Tablespaces can store zero or more segments. Segments are schema objects that require storage outside the data dictionary. Tables and indexes are examples of segments. Constraints and sequences are examples of schema objects that do not store data outside the data dictionary and are therefore not segments." - Study Guide.
    Read above, it reads "physical structures, such as datafiles or extents", this is where I got confused ?
    thanks
    siva

  • In new iPad 4g, when sim card is not inserted, I can not find the enable 4g tap in the setting-cellular data tap, can some one please tell me if this is normal and if so, then when it appears, thanks

    In new iPad 4g, when sim card is not inserted, I can not find the enable 4g tap in the setting-cellular data tap, can some one please tell me if this is normal and if so, then when it appears, thanks

    If the SIM is out of your phone, find my phone needs a data connection, so could use wifi - IF in range of a wifi and one that it can join (ie. a known network or one that is wholly open so no login required).  Your phone could also simple be turned off, so not findable, or it may have been restored (plugged into iTunes and restored as new) again, making it permanently unfindable.  Honestly, for someone stealing an iPhone, this is likely the first thing they do - restore as new and it is theirs forever.
    Find my iPhone is tied to the users iCloud account - the find function is part of the iCloud account's services and it communicates with the iCloud servers over a data connection - either wifi or 3G.
    Have you set up your iCloud account on your replacement phone, and is it working properly on that phone?

  • Adobe XI Pro trial verison, when compared two pdf files it gives error  "Expected a Name Object"..Can some one say how to fix this?

    Installed Adobe XI Pro trial verison, when compared two pdf files it gives error  "Expected a Name Object"..Can some one say how to fix this?

    Installed Adobe XI Pro trial verison, when compared two pdf files it gives error  "Expected a Name Object"..Can some one say how to fix this?

  • I got error 3295 when doing software update to 4.3.4 on my iphone4.. can some one tell me how skip this error?? I'm new to apple products..!?

    I got error 3295 when doing software update to 4.3.4 on my iphone4.. can some one tell me how skip this error?? I'm new to apple products..!

    anyone????

  • Can some one explain me on Exchange server / CAL licesing & where I can find current cost information?

    Can some one explain me on Exchange server / CAL licesing & where I can find current cost information?

    Hi,
    As far as I know, every user need a license to use Exchange server and we can choose User CAL or Device CAL.
    For more information about license, you can refer to the following articles:
    Licensing Basics: What are CALs (Client Access Licenses):
    http://blogs.msdn.com/b/mssmallbiz/archive/2007/11/06/5942350.aspx
    Exchange Server 2013 licensing:
    http://office.microsoft.com/en-001/exchange/microsoft-exchange-server-licensing-licensing-overview-FX103746915.aspx
    Exchange Licensing FAQ:
    http://office.microsoft.com/en-001/exchange/microsoft-exchange-licensing-faq-email-for-business-FX103934581.aspx
    For the cost issue, I recommend you call Microsoft Licensing for useful information. And they will be able to give you an estimate based on your requirement.
    http://www.microsoft.com/licensing/
    If you have any question, please feel free to let me know.
    Best regards,
    Angela Shi
    TechNet Community Support

  • Hi frnds...im new 2 BI can some one explain me basics in BI...

    HI frnds..
      I jst started BW/Bi training..can someone explain me basics in BW.. like
    what are dimesion id's n surrogate id's??
    what is extended schema???
    what is master data??
    how master data is stored??
    what is datasource,infosource,infopackage,application component,transfer rules,update rules....have much confusion..
    please can some one clear it...

    First of all this is not the correct forum for your questions. This forum handles questions regarding the BusinessObjects on Demand offering.
    Secondly it is not realistic to expect an answer to ALL those questions in a forum. I would suggest either to buy book about SAP Netweaver/BW (Beginner's level) or search for the keywords you are refering to either in SDN or in the Internet. There are some SAP BW tutorilas available out there.
    eg.
    Step By Step BW Exercise
    http://searchsap.techtarget.com/tutorial/SAP-NetWeaver-BI-training-tutorial
    Regards,
    Stratos

  • Deadlock - can some one explain pls?

    public class Lazy {
         private static boolean initialized = false;
         static {
              Thread t = new Thread(new Runnable() {
                   public void run() {
                        initialized = true; // Deadlocks here
              t.start();
              try {
                   t.join();
              } catch(InterruptedException e) {
                   throw new AssertionError(e);
         public static void main(String[] args) {
              System.out.println(initialized);
    }The above given program deadlocks at the point specified in comment. Can someone explain the reason for this? Thanks in advance

    Sounds reasonable. But I do also expect some voodoo
    magic to be involved since the posted code isn't
    synchronized.If I understand the few lines of the VM Spec correctly, the above would lead to:
    public class Lazy {
         private static boolean initialized = false;
         static {
              Thread t = new Thread(new Runnable() {
                   public void run() {
                                    // <VM>
                                    if( !Lazy.class.ready() ) {
                                         synchronize( Lazy.class ) {
                                                 // Do Lazy init
                                    // </VM>
                        initialized = true; // Deadlocks here
              t.start();
              try {
                   t.join();
              } catch(InterruptedException e) {
                   throw new AssertionError(e);
         public static void main(String[] args) {
              // <VM>
                    if( !Lazy.class.ready() ) {
                   synchronize( Lazy.class ) {
                              Do Lazy init
              // </VM>
              System.out.println(initialized);
    VM Spec (squiggly thing)2.17.5 Detailed Initialization Procedure
    Message was edited by:
    mlk

  • Can some one help me to execute this program

    Curve is not displayed when this program is executed
    Write an applet to draw a red curve on a blue back ground which follows your mouse pointer. 
    Use anonymous inner classes.
    import java.applet.*;
    import java.awt.event.*;
    import java.awt.*;
    <applet code="Curve" width=200 height=100>
    </applet>
    public class Curve extends Applet {
         int x, y;
         String msg = " ";
         public void init() {
              setBackground(Color.blue);
              setForeground(Color.red);
              addMouseMotionListener(new MouseMotionAdapter(){
                   public void mouseMoved(MouseEvent me) {
                        msg = "*";
                        x = me.getX();
                        y = me.getY();
                        showStatus("x="+x+" "+"y="+y);
                        repaint(x, y, 1, 1);
         public void paint(Graphics g) {
              g.drawString(msg,x, y);
    }     

    I buffered it then it started working but problem is buffer size is
    limited. When the buffer is full then we have to start fresh again.You have made a buffer with two arrays of ints - and that allows you to
    paint the last 300 mouse positions. This is OK if you want the curve to
    have a fixed length: a bit like a snake following the pointer around.
    To avoid losing the whole curve you can initialise the x[] and y[] arrays
    to something "offscreen". For example fill both arrays with -100. Then
    in your paint() method you should draw all 300 positions.
    If you want the complete curve from the start with nothing lost then you
    are going to have to use a different sort of buffer. What you do is to
    create a BufferedImage the same size as your applet. When you create
    it you fill the buffered image with the background colour of your applet.
    In the mouseMoved() method you draw the * at the appropriate place into
    the buffered image. (There are other drawing strategies at this point:
    you could draw a line connecting this point to the previous one.)
    Finally in paint() you simply draw the whole buffered image into the
    applet's window.
    There is a discussion and example of using images as buffers this way
    in Sun's Tutorial here: http://java.sun.com/docs/books/tutorial/2d/images/doublebuffering.html
    repaint (int x, int y, int width, int height) - How this method works.This method says that a part of the applet's window should be
    repainted as soon as possible. repaint() without any arguments is
    used to signal that all of the window should be repainted.
    I would not worry about the 4 argument form at this stage - get
    something working first. Later you might find the 4 argument form is
    more effecient.
    Is there any reason why you're using Applet and not JApplet? If not,
    I would use the newer classes. In that case you'll get the best help in
    the Swing forum.

  • Can some one have a look at this php script?

    Ok! hear's the script! It work's fine! but with one problem.
    when I get the email it look's like this>
    Base Color: NaturalTread Color: Black
    What I want the email to look like is>
    Base Color: Natural
    Tread Color: Black
    ie i don't want all the "var's" on on line!
    Hear's my php code>
    Can someone have a look to give me some poniters?

    I too am learnig. And just found this>
    <?php
    $sendTo = "******@hotmail.com";
    $subject = "Combo Test Two";
    $headers = "From: " . $_POST["name"];
    $headers .= "<" . $_POST["email"] . ">\r\n";
    $headers .= "Reply-To: " . $_POST["email"] . "\r\n";
    $headers .= "Return-Path: " . $_POST["email"];
    $message .= $_POST["baseColor"] . "\r\n";
    $message .= $_POST["treadColor"] . "\r\n";
    mail($sendTo, $subject, $message, $headers);
    ?>
    u need to put Line-Feed & Carridge Return:
    \r\n
    And good luck to you! Thanks for the help my friend!

  • Can some one pls help me in this....

    When i try to start the domain1 to get into the admin console....
    with
    asadmin start-domain domain1
    after a series of steps it says this::
    Redirecting output to /opt/SDK/domains/domain1/logs/server.log
    Domain domain1 failed to startup. Please check the server log for more details.
    CLI156 Could not start the domain domain1.
    Can someone telll me why ???
    Thanks
    shruthi

    Oh Thank you..
    But is it the only way...
    I am running on apache2 and tomcat5...
    This server is all there in /opt/SDK....
    Will there be any dependencies That I am gonna miss by just trying to uninstall this....
    Lemme Know..
    Thanks in Advance
    Shruthi

  • Can some one explain me oracle MVC configuration or point me to a guide

    I use oracle MVC in my application. cle20.jar is used for it. The application was working fine and now all of sudden I get a null pointer exception in my code where i use this line of code: "ProcessInfo info = (ProcessInfo)getInfo(aKey);" where getInfo is from the oracle.cle.process.GenericProcess and aKey is not null.
    Any help or direction will help. I debugged the application and see that getInfo is always returning null value for all values of aKey.
    Error Message is as follow:
    ERROR [STDERR] java.lang.NullPointerException
    15:23:32,752 ERROR [STDERR]      at myapp.application.process.GetData.persist(GetData.java:302)
    15:23:32,752 ERROR [STDERR]      at oracle.cle.process.PersistingProcess.start(PersistingProcess.java:83)
    15:23:32,752 ERROR [STDERR]      at oracle.cle.process.CLEStateMachine.start(CLEStateMachine.java:61)
    15:23:32,752 ERROR [STDERR]      at oracle.cle.process.Process.start(Process.java:108)
    15:23:32,752 ERROR [STDERR]      at oracle.cle.process.GenericProcess.start(GenericProcess.java:84)
    15:23:32,752 ERROR [STDERR]      at oracle.cle.process.ParentProcess.start(ParentProcess.java:226)
    15:23:32,752 ERROR [STDERR]      at oracle.cle.process.DisplayGroup.start(DisplayGroup.java:75)
    15:23:32,752 ERROR [STDERR]      at oracle.cle.process.CLEStateMachine.start(CLEStateMachine.java:61)
    15:23:32,752 ERROR [STDERR]      at oracle.cle.process.Service.start(Service.java:389)
    15:23:32,752 ERROR [STDERR]      at oracle.clex.process.controller.HttpServletController.doPost(HttpServletController.java:422)
    15:23:32,752 ERROR [STDERR]      at oracle.clex.process.controller.HttpServletController.doGet(HttpServletController.java:836)
    15:23:32,752 ERROR [STDERR]      at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
    15:23:32,752 ERROR [STDERR]      at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    15:23:32,752 ERROR [STDERR]      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
    15:23:32,752 ERROR [STDERR]      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    15:23:32,752 ERROR [STDERR]      at myapp.application.servlets.SessionFilter.doFilter(SessionFilter.java:42)
    15:23:32,752 ERROR [STDERR]      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
    15:23:32,752 ERROR [STDERR]      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    15:23:32,752 ERROR [STDERR]      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
    15:23:32,752 ERROR [STDERR]      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
    15:23:32,752 ERROR [STDERR]      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    15:23:32,752 ERROR [STDERR]      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
    15:23:32,752 ERROR [STDERR]      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
    15:23:32,752 ERROR [STDERR]      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
    15:23:32,752 ERROR [STDERR]      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
    15:23:32,752 ERROR [STDERR]      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
    15:23:32,752 ERROR [STDERR]      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
    15:23:32,752 ERROR [STDERR]      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
    15:23:32,752 ERROR [STDERR]      at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
    15:23:32,752 ERROR [STDERR]      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
    15:23:32,752 ERROR [STDERR]      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
    15:23:32,752 ERROR [STDERR]      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
    15:23:32,752 ERROR [STDERR]      at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
    15:23:32,752 ERROR [STDERR]      at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
    15:23:32,752 ERROR [STDERR]      at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
    15:23:32,752 ERROR [STDERR]      at java.lang.Thread.run(Thread.java:595)
    Thanks in advance....
    Edited by: user1694903 on Feb 10, 2009 12:46 PM
    Edited by: user1694903 on Feb 10, 2009 12:48 PM

    KB 60446, How to clean an LCD Panel

  • I keep gettinf this error message can some one help!!!

    I keep getting an error -50 when i try to display teh album artwork on my ipod can some one help me please

    Error 1604
    This error is often related to USB timing. Try changing USB ports, using a different dock connector to USB cable, and other available USB troubleshooting steps (troubleshooting USB connections. If you are using a dock, bypass it and connect directly to the white Apple USB dock connector cable. If the issue persists on a known-good computer, the device may need service.
    If the issue is not resolved by USB isolation troubleshooting, and another computer is not available, try these steps to resolve the issue:
    Connect the device to iTunes, confirm that the device is in Recovery Mode. If it's not in Recovery Mode, put it into Recovery Mode.
    Restore and wait for the error.
    When prompted, click OK.
    Close and reopen iTunes while the device remains connected.
    The device should now be recognized in Recovery Mode again.
    Try to restore again.
    If the steps above do not resolve the issue, try restoring using a known-good USB cable, computer, and network connection.

  • I have CS6 Master Collection and Photoshop will not do a save as with any files that I am trying to save, can some one please help me?

    Can some one please help me with this?

    You would probably get some response if you posted your question in the Photoshop forum ...
    I'll move it there for you.
              - Dov

  • Hi there, I have MacBook Air (Mid 2012) with OSX 10.8.2. I want to update to latest OSX but it is saying that I need to first install MBA Flash Firmware Update 1.1. When I try to install this firmware, I am told I should have OSX 10.8.3,can some one help?

    Hi there, I have MacBook Air (Mid 2012) with OSX 10.8.2. I want to update to latest OSX but it is saying that I need to first install MBA Flash Firmware Update 1.1. When I try to install this firmware, I am told I should have OSX 10.8.3, Each one asking other to update first, can some one help me in this regard ?

    If you don't already have a current backup, back up all data, then reinstall the OS.* You don't need to erase the startup volume, and you won't need the backup unless something goes wrong. If the system was upgraded from an older version of OS X, you may need the Apple ID and password you used.
    If you use FileVault 2, then before running the Installer you must launch Disk Utility and select the icon of the FileVault boot volume ("Macintosh HD," unless you gave it a different name.) It will be nested below another icon with the same name. Click the Unlock button in the toolbar and enter your login password when prompted. Then quit Disk Utility to be returned to the main screen.
    There are ways to back up a computer that isn't fully functional. Ask if you need guidance.
    If you installed the Java runtime distributed by Apple and still need it, you'll have to reinstall it. The same goes for Xcode.
    *The linked support article refers to OS X 10.9 ("Mavericks"), but the procedure is the same for OS X 10.7 ("Lion") and later.

Maybe you are looking for

  • How to Change the iPod "name"

    Well friends, I posted a msg and got an answer that my wife claims doesn't work. Short story - I am new to iPod. Never touched one before. Bought one for wife in Iraq. Loaded music and shipped it in 24 hours. Well, somewhere in the process I "changed

  • Small Office fax problem through verizon phone line

    Instead of sitting on the phone for 3 hours I figured I would try this first. I have a small office with Verizon internet and phone. I have one phone line, a credited machine, a computer and a 4 in one print scan fax copy. I was just wondering if any

  • Choose which content type to use in sharepoint 2013 list using InfoPath 2013

    So, in my head it seems pretty simple and a feature that might be standard to InfoPath so much in fact I can't find anything on it... My goal is to a have one list where you can do a drop down or buttons to choose which content type to use. I will be

  • Programmatic skinning, charts and images.  Oh My!

    So here is a sample of the code I'm working with: for (var i:int = 0; i< numBlocks; i++) { var tmpImg:Image = new Image(); tmpImg.source = "test_disc_one.png"; tmpImg.y = startY - (8*i); tmpImg.blendMode = BlendMode.NORMAL; trace("["+i+"]: " + this.p

  • Use versions in command line

    Hi Community, is it possible to use the "versions" functions from CLI? When yes, how? I work more often with Vim and some scripts to create ASCII files... I think it should be possible to use a command for versioning (staging/commit) like in git, but