Can anyone please help me on this Material master report exercise.

TABLES USED: MARD, MARC, MARA, MAKT.
Internal tables:
I_MAT_DETAILS with fields:
MATNR type matnr
WERKS type werks_d
LGORT type lgort
XCHAR type marc-xchar
MAKTX type makt-maktx
LABST type mard-labst
I_MCH1 this is an internal table with the same structure as MCH1
Select Screen
select-options for matnr,ernam,ersda
parameters for werks, lgort.
parameters werks & lgort must be mandatory.
default plant value to BP01, lgort to be 0010.
1)Select all entries from table MARD for selection criteria
      Select corresponding record from table MARC
          Select corresponding record from table MARA
check that the industry sector MARA-MBRSH is the value for mechanical engineering.
select material description from table MAKT where the language = SY-LANGU.
store all valid records in an internal table called i_MAT_DETAILS.
2) For each record in I_MAT_DETAILS where XCHAR='X' find if any batches exist.
    Select batches from table MCHB and store in an internal table I_MCHB.
3) Loop at internal table I_MAT_DETAILS.
   Write Out the material number(MARA-MATNR), Material Description(MAKT-MAKTX), Plant(MARC-WERKS), Storage Location(MARD-LGORT), Valuated unresrticted stock(MARD-LABST).
Read table I_MCHB with key details from I_MAT_DETAILS if a batch record exists then write out I_MCHB-CHARG, I_MCHB-ERNAM on a separate line.
Endloop.
Thanks in advance.
Edited by: Narahari Kotaru on Jun 11, 2008 8:55 AM

From your Business Card and Question I can see you are new to ABAP.  Why not try writing the code yourself first and then post if you have a problem.  Use the F1 Help Key in your editor, use the SAP Help, and use the Search Feature in this forum and Google.  Getting your fingers dirty and digging into things yourself is the best learning tool for you.  Use this forum as a resource when you are stuck and need help/advice.  What do you plan to learn by having some eager point hunter write the code for you?   I feel sorry for the Company who hired you if you are not willing to try this on your own first.   Good luck and enjoy your learning experiences.

Similar Messages

  • What to do when my iPhone is asking for password of old apple I.D. when I don't have it and have created a new applie i.d.  Can anyone please help me on this issue?

    Can anyone please help me on this issue "What to do when my iPhone is asking for password of old apple I.D. when I don't have it and have created a new applie i.d."??

    Sir, Thank you very much for your prompt response.  I have already done this.  But the problem is still persisting.  Actually, I want to upgrade my WhattsApp application and as soon as I click the upgrade button in App Store, it asks for the password of previous apple i.d., which I don't have as I have bought this phone from somebody.  There is no option for log out or log in.  It there any other way out to upgrade the WhatsApp ????

  • I've bought the first season of Death Note on itunes, and i've was never able to download the 11th episode (Assault), it gives me error -50 each time I try. Can anyone please help me with this?

    the title pretty much has my question i guess. it's my first post so i'm not sur if you'll see all of it. I'll just copy paste it anyhow.
    i've bought the first season of Death Note on itunes, and i've was never able to download the 11th episode (Assault), it gives me error -50 each time I try. Can anyone please help me with this?

    Perhaps try the "Error -50," "-5000," "8003," "8008," or "-42023" section in the Specific Conditions and Alert Messages: (Mac OS X / Windows) section of the following document:
    iTunes: Advanced iTunes Store troubleshooting

  • HT201401 Q) Can anyone please help me with this: My in coming call ringing tone not working?

    Q) Can anyone please help me with this: My in coming call-messges ringing tone not working? All I am getting in Vabration + Flashing light when receiveing messages or incoming Calls. I am missing my phone Calls constantly. Please Help me?
    I have just received this phone as a replacement from my insurance company, as I had lost my own phone. It has taken them 3 weeks to sort this out. This has ruined my business because it has taken so long. I really do not have time to send it back to them. Because it will waist another three weeks for them to sort it out again. Please Help!

    HA! By Jove I've Got it! it was simples..
    TURN ON THE RINGING ON / OFF BUTTON ON THE SIDE OF YOUR PHONE JUST ABOVE THE VOLUME BUTTONS. THEN MAKE SURE THE VOLUME IS UP TO THE HIGHEST. NOW JUST TRY THIS!
    I ALSO LOOKED UP A MANUAL ON IPHONE4:
    Ringtones, Ring/Silent switch, and vibrate
    iPhone comes with ringtones that sound for incoming calls, Clock alarms, and the Clock timer.
    You can also purchase ringtones from songs in iTunes. See Chapter 22, iTunes Store, on page 94.
    Set the default ringtone: Go to Settings > Sounds > Ringtone.
    Turn the ringer on or off: Flip the switch on the side of iPhone.
    Important:  Clock alarms still sound even if you set the Ring/Silent switch to silent.
    Turn vibrate on or off: Go to Settings > Sounds.
    Assign a different ringtone for a contact: In Contacts, choose a contact, tap edit, then tap
    Ringtone and choose a ringtone.
    For more information, see Sounds on page 139.
    THE REASON MY PHONE HAD NO RING TONE, WAS SIMPLY BECAUSE THE VOLUME WAS TURNED DOWN. :-/
    I HOPE THIS HELPS OTHERS INFUTURE!   :-D

  • Getting an error while using if statement in calculated column.can anyone please help me with this issue

    I am trying to learn HANA on my own.i have product id,product name,delivery date and Grossamount in my calculated view.i am trying to create calculated column where i need Grossamount in two columns based on delivery date.I have 2012 and 2013 as values for my delivery date.so i have created two column as grossamount_2012 and grossamount_2013.if i have delivery date as 4thdec,2012 i want the grossamount value to be in coloumn grossamount_2012 and the grossamount_2013 should be blank.i have written an expression like this
    if("Deliverydate" <= longdate(2012-12-04),"Grossamount","0")
    and it looks like this is wrong.i am getting the text Grossamount rather than values for that field in my output.so can anyone help me please?

    Hi chandra
    i am trying to get the same result by using sql script and CE functions.i have written the following code
    select A."PRODUCTID",
           E."TEXT" as "PRODUCTNAME",
           C."COUNTRY",
           D."DELIVERYDATE",
           Sum(D."GROSSAMOUNT") as "GROSSAMOUNT"
           from "SAP_HANA_DEMO"."sap.hana.democontent.epm.data::EPM.MasterData.Products" as A     
           inner join "SAP_HANA_DEMO"."sap.hana.democontent.epm.data::EPM.MasterData.BusinessPartner" as B
           on A."SUPPLIERID" = B."PARTNERID"      
           inner join "SAP_HANA_DEMO"."sap.hana.democontent.epm.data::EPM.MasterData.Addresses" as C
           on B."ADDRESSID" = C."ADDRESSID"
           inner join "SAP_HANA_DEMO"."sap.hana.democontent.epm.data::EPM.Purchase.Item" as D
           on A."PRODUCTID" = D."PRODUCTID"
           inner join "SAP_HANA_DEMO"."sap.hana.democontent.epm.data::EPM.Util.Texts" as E
           on A."NAMEID" = E."TEXTID"
           GROUP BY A."PRODUCTID",E."TEXT",C."COUNTRY",D."DELIVERYDATE"; 
    this is working fine but i want to split the grossamount based on current year and last year.Any idea how to do this
    In calculation view using script can we use if and case statements?

  • I have problem with browsing. when i browse a new unnessary window is open automitacally. can anyone please help to solv this problem.

    an atuomatically page open like this. http://rnzzz.exclusive-rewards.prizespy.xyz/?sov=62551901&hid=gqmqqssogwsokos&kw =DIRECT&email=email&redid=797&gsid=68&id=XNSX.1%3A%3APEERFLY-r797-t68

    If you're getting prompts that say something like this:
         To view this web content, you need to install the Java Runtime Environment
    then the Apple Java runtime is not installed. Some third-party web plugin is installed that depends on Apple Java.
    You may have installed the Oracle Java runtime, which is different. Neither installing nor removing the Oracle Java will have any effect on the prompts. The only thing that will stop the prompts is either to install Apple Java, or to remove the web plugin that depends on it, as I wrote earlier. I don't know all the possible plugins that might be involved, but I mentioned a couple of common ones.
    Any third-party software that doesn't install by drag-and-drop into the Applications folder, and uninstall by drag-and-drop to the Trash, is a system modification.
    Whenever you remove system modifications, they must be removed completely, and the only way to do that is to use the uninstallation tool, if any, provided by the developers, or to follow their instructions. If the software has been incompletely removed, you may have to re-download or even reinstall it in order to finish the job.
    I never install system modifications myself, and except as stated in this comment, I don't know how to uninstall them. You'll have to do your own research to find that information.
    Here are some general guidelines to get you started. Suppose you want to remove something called “BrickMyMac” (a hypothetical example.) First, consult the product's Help menu, if there is one, for instructions. Finding none there, look on the developer's website, say www.brickmymac.com. (That may not be the actual name of the site; if necessary, search the Web for the product name.) If you don’t find anything on the website or in your search, contact the developer. While you're waiting for a response, download BrickMyMac.dmg and open it. There may be an application in there such as “Uninstall BrickMyMac.” If not, open “BrickMyMac.pkg” and look for an Uninstall button. The uninstaller might also be accessed by clicking the Customize button, if there is one.
    Back up all data before making any changes.
    You will generally have to restart the computer in order to complete an uninstallation. Until you do that, there may be no effect, or unpredictable effects.
    If you can’t remove software in any other way, you’ll have to erase and install OS X. Never install any third-party software unless you're sure you know how to uninstall it; otherwise you may create problems that are very hard to solve.
    Trying to remove complex system modifications by hunting for files by name often will not work and may make the problem worse. The same goes for "utilities" such as "AppCleaner" and the like that purport to remove software.

  • How to store jpeg images in SQL server using NI database Connectivity Toolset. Can anyone please help me in this regard.

    Please tell how to store jpeg images in SQL Server using NI Database Connectivity Toolset.

    http://www.w3schools.com/sql/sql_datatypes.asp
    You setup a field as BLOB and store the binary of the picture there. Depending on the database it can be called differently as you can see in the link, in SQL server there's even a Image datatype.
    /Y
    LabVIEW 8.2 - 2014
    "Only dead fish swim downstream" - "My life for Kudos!" - "Dumb people repeat old mistakes - smart ones create new ones."
    G# - Free award winning reference based OOP for LV

  • Can anyone please help me with this error I am getting from my application

    javax.servlet.ServletException: Index: 0, Size: 0
         at com.evermind.server.http.EvermindPageContext.handlePageThrowable(EvermindPageContext.java:595)
         at com.evermind.server.http.EvermindPageContext.handlePageException(EvermindPageContext.java:537)
         at jsp.edit__service._jspService(edit_service.jsp:117)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:356)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:498)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:402)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:847)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:340)
         at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:229)
         at mil.usmc.m4l.servlets.M4LServlet.forward(M4LServlet.java:34)
         at mil.usmc.m4l.servlets.EditService.doGet(EditService.java:175)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
         at mil.usmc.m4l.filters.M4LCMSFilter.doFilter(M4LCMSFilter.java:150)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:673)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:340)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:285)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:126)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
         at java.lang.Thread.run(Thread.java:534)

    user,
    my computer doesn't work, can you fix it?
    You've not provided any information whatsoever that would help someone help you solve your problem. What version of JDeveloper are you using? What technologies? What are you trying to do that is not working? You really need to be a bit more explicit with your questions.
    John

  • HT201263 When my ipod touch is in recovery mode, when i try to restore it, the itunes page says the website has timed out so it won't recover. Can anyone please help me?

    When my ipod touch is in recovery mode (when I try to re-store it) the itunes page sayes the website has been timed out and so it won't re-store. There is a limited time, whilst restoring the ipod, it lasts for approx 5 mins, then asks to start again all over again. Can anyone please help me?

    This device is not eligible for the requested build (Also sometimes displayed as an "error 3194")
    Update to the latest version of iTunes. Mac OS X 10.5.8 (Leopard) users may need to download iTunes 10.6.3.
    Third-party security software or router security settings can also cause this issue. To resolve this, followTroubleshooting security software issues.
    Downgrading to a previous version of iOS is not supported. If you have installed software to performunauthorized modifications to your iOS device, that software may have redirected connections to the update server (gs.apple.com) within the Hosts file. Uninstall the unauthorized modification software from the computer.
    Edit out the "gs.apple.com" redirect from your hosts file, and then restart the computer for the host file changes to take affect. For steps to edit the Hosts file and allow iTunes to communicate with the update server, see iTunes: Troubleshooting iTunes Store on your computer, iPhone, iPad, or iPod—follow steps under the heading Blocked by configuration (Mac OS X / Windows) > Rebuild network information > The hosts file may also be blocking the iTunes Store. If you do not uninstall the unauthorized modification software prior to editing the hosts file, that software may automatically modify the hosts file again on restart.
    Avoid using an older or modified .ipsw file. Try moving the current .ipsw file (see Advanced Steps > Rename, move, or delete the iOS software file (.ipsw) below for file locations), or try restoring in a new user to ensure that iTunes downloads a new .ipsw.

  • Hi there, can anyone please help? Download itunes and it says The Itunes library .itl file is locked, or on a locked disk or you do not have write permission for this file.

    Hi there, can anyone please help? Download itunes and it says The Itunes library .itl file is locked, or on a locked disk or you do not have write permission for this file.

    Holding down the shift key while iTunes is opening. That will bring up the 'choose iTunes library' dialog. Select 'Choose LIbrary' from the choices and navigate to your music folder and iTunes music folder.
    Or refer to this article:
    iTunes for Windows XP: "Disk is locked" or "iTunes folder cannot be found" when installing or opening iTunes
    http://support.apple.com/kb/HT1866

  • HT2953 i-tunes could not be used because the original file could not be found.could not locate.this error occurs on most of my songs in my library and will not play even though they are in my i-pod and play with no trouble.can  anyone please help?

    i-tunes could not be used because the original file could not be found.could not locate.this error occurs on most of my songs in my library and will not play even though they are in my i-pod and play with no trouble.can  anyone please help?

    I was not complete clear.
    Since you never changed the settings in the advanced section of iTunes preferecnes, you have to chech that your music is really in the location setted in the folders reported in the advanced section.  If not you have 2 ways: reset the position of this folders or in the actual disk organisation or in the pointing on the preferences.
    If you press the reset button you just give to itunes its default setting as for the position of the music files: probably this will be a good choice if you have never changed any default preference.
    But before I would check the folders and see if the songs are really there
    In my iTune I have this, and I believe it is the default.
    Users/YOURHOMEFOLDERNAME/Music/iTunes/iTunes Music

  • HT1349 WHEN I TURN MY IPHONE 3S ON IT ASKS ME TO CONNECT TO ITUNES AND RESTORE. I HAVE DONE THIS 10 TIMES AND STILL GET THE SAME SCREEN. CAN ANYONE PLEASE HELP??

    WHEN I TURN MY IPHONE 3S ON IT ASKS ME TO CONNECT TO ITUNES AND RESTORE. I HAVE DONE THIS 10 TIMES AND STILL GET THE SAME SCREEN. CAN ANYONE PLEASE HELP??

    Has your phone been jailbroken?  If so, you will likely never get it to work again.
    You can try placing your phone in DFU mode (search google) and restoring.

  • Can anyone please help? Every time I start up my imac OSX 10.6 desktop my Aperture 3 programme opens up without being requested. Is it possible to stop this from happening and only open by using the desktop icon? Thank you for any assistance.

    Can anyone please help? Every time I start up my imac OSX 10.6 desktop my Aperture 3 programme opens up without being requested. Is it possible to stop this happening and only allow Aperture to open by using the desktop icon? Thank you for any assistance anyone may be able to give.
    Best regards, John.

    because there is absolutely no mention in my System Preferences of either Users & Groups nor Start Up Items.
    John,
    William's solution was much easier - just for completeness sake: The preferences panes to edit your startup items moved between the Mac OS X updates: I forgot that the "Users&Groups" preference pane used to be called "Users" in Mac OS X 10.6; it is the panel that you use to create new User accounts; and earlier systems had a separate preferences panel "Login" to enable and to disable the applications that are launched at login. Both are now combined in "Users&Groups". Sorry for sending you on a wild goose chase with the wrong Preferences panel.
    Regards
    Léonie

  • Can anyone please help me to overccome this download error message: "Error getting License, License Server Communication Problem: E_ADEPT_DOCUMENT_OPEN_ERROR. I would be most grateful.

    Can anyone please help me to overcome this e-book download error message? It reads: "Error getting License, License Server Communication Problem: E_ADEPT_DOCUMENT_OPEN_ERROR. I would be most grateful.

    Please try de-authorizing and authorizing again.
    Steps to De-authorize
    1) Switch to Library Mode by clicking Library button
    2) Select menu item Help--> Erase Authorization or Press Ctrl+Shift+D
    3) Click Erase button to De-authorize
    Steps to Authorize
    1) Launch ADE
    2) Switch to Library Mode by clicking Library button (if you are in Reading Mode)
    3) Select menu item Help-->Authorize Computer or Press Ctrl+Shift+U
    4) Enter the valid credential to Authorize
    Hope this solves your problem.

  • My Iphone 4 is changing screens without me touching it. I will be in a msg and it will jump out of that msg and into another one... can anyone please help me with what this could be?

    my Iphone 4 is changing screens without me touching it. I will be in a msg and it will jump out of that msg and into another one... can anyone please help me with what this could be?

    Try the basics from the manual.
    restart.
    reset.
    restore.
    iPhone User Guide (For iOS 4.2 and 4.3 Software)

Maybe you are looking for