SD facility

Hi!
I have found this code right here:
http://www.sap-basis-abap.com/sapab025.htm
It is very useful particular for SD purposes . Please can somebody
try to fix the error to get it working. There is an internal table missing.
Regards
Ilhan
select * from ekko.
       select * from konv where knumv = ekko-knumv
           "Get all the condition records for the purchase order
       endselect.
endselect.
* Get the info record conditions record
* First declare the record structure for the key
data: begin of int_konp,
             txt1(5),
             lifnr(5),
             matnr(18),
             txt2(4),
             txt3(1),
        end of int_konp.
clear: konh, konp, int_konp.
* data for the record key konh-vakey
int_konp-txt1    = '00000'.
int_konp-lifnr    = ekko-lifnr+5(5).
int_konp-matnr = ekpo-matnr(18).
int_konp-txt2    = 'ALL'.
int_konp-werks = ekpo-werks.
int_konp-txt3    = '0'.
select * from konh where      kschl = 'PB00'            "Conditions (Header)
                                     and datab => p_datum.       "valid from date
      if konh-vakey = int_konp.                                  "Conditions (Item)
             select single * from konp where knumh = konh-knumh.
             continue.
      endif.
endselect.

Hi Ertas,
Check this code which does not have syntax errors. Bold lines are appended/commented code.
<b>tables: ekko,konv,konh,konp.</b>
<b>parameters: p_datum type sy-datum.</b>
select * from ekko.
       select * from konv where knumv = ekko-knumv.
           "Get all the condition records for the purchase order
       endselect.
endselect.
Get the info record conditions record
First declare the record structure for the key
data: begin of int_konp,
             txt1(5),
             lifnr(5),
             matnr(18),
             txt2(4),
             txt3(1),
        end of int_konp.
clear: konh, konp, int_konp.
data for the record key konh-vakey
int_konp-txt1    = '00000'.
int_konp-lifnr    = ekko-lifnr+5(5).
<b>*int_konp-matnr = ekpo-matnr(18).</b>
int_konp-txt2    = 'ALL'.
<b>*int_konp-werks = ekpo-werks.</b>
int_konp-txt3    = '0'.
select * from konh where      kschl = 'PB00'            "Conditions (Header)
                                     and datab => p_datum.       "valid from date
      if konh-vakey = int_konp.                                  "Conditions (Item)
             select single * from konp where knumh = konh-knumh.
             continue.
      endif.
endselect.
Thanks,
Vinay

Similar Messages

  • How do I create an 'upload facility" for my website using Muse.

    How do I create an 'upload facility" for my website using Muse.  We are a print company and is how we receive most of our work.
    Iain

    Hey Iggy,
    These might help:
    Muse
    http://tv.adobe.com/watch/introducing-business-catalyst/getting-started-with-business-cata lyst-and-muse-what-is-business-catalyst
    http://tv.adobe.com/watch/introducing-business-catalyst/getting-started-with-business-cata lyst-and-muse-creating-and-publishing-sites
    -Dave

  • How can i view and apply new custom patterns without going to preset manager? i had this facility but have now lost it

    how can i view and apply new custom patterns without going to preset manager? i had this facility but have now lost it.  i design patterns but am fairly new to photoshop. i used to be able to click on the drop down menu in patterns in the 'fill' box but cannot now do this.  have i inadvertently clicked on something to turn this facility off?  i now have to go to 'preset manager' and manually move my new design to the first box and click 'done' so that i can use it.

    Which version of photoshop are you using?
    After you define a custom pattern it should be added to the bottom of whatever patterns are already loaded.
    For example, if you define a custom pattern and then go to Edit>Fill>Pattern, the newly defined pattern should have been added to the existing loaded patterns.

  • I have written a little book on 'Pages' initially I was able to download it to friends, however, this facility is now not working. Can anyone tell me what I can do to resolve this. Please.

    I have just written a little book, on my iPad, using 'Pages' I was able to download it for proofreading, however, this facility has now ceased.  When I press 'send' it makes the 'rushing sound' but in fact does not download!
    Please will someone help, I am an old man, 82 years old, and need all the help I can get!

    Have you tried restarting or resetting your iPad?
    Restart: Press On/Off button until the Slide to Power Off slider appears, select Slide to Power Off and, after It shuts down, press the On/Off button until the Apple logo appears.
    Reset: Press the Home and On/Off buttons at the same time and hold them until the Apple logo appears (about 10-15 seconds).
    No data will be lost.

  • After upgrading to Lion, Preview (5.2.2) appears to have lost the facility to run a slide show by using my mouse to click an icon in the visible menu bar, as I could in the previous version.  Can I retrieve that icon and thus that facility?

    After upgrading to Lion, Preview (5.2.2) appears to have lost the facility to run a slide show by using my mouse to click an icon in the visible menu bar, as I could in the previous version.  Can I retrieve that icon and thus that facility?

    Unfortunately not. Lion has made many adjustments to the previous system. Try opening your pdfs in keynote.

  • How do I use my Email facility

    I am a new Blackberry user and being of advanced years find some of the new technology difficult to understand.  I have now posted 3 questions on this forum and have been delighted with the help I have received.
    My 4th question is as follows:
    I have now updated the phone from my service provider (Orange) and now have an "Orange World" browser which gives me access to the internet and with this I have no problems.
    From the same source I also have an Email facility and would appreciate some help. 
    I have 2 email addresses one is @demon.co.uk and the other is @virgin.net.  I do not want any more.  When I am away from home I would like to be able to redirect my incoming Emails to my Blackberry and be able to reply to them by Blackberry but when I am back home receive them on my desktop as normal.
    Is this possible and if so how do I set it up?
    oldwulf
    Solved!
    Go to Solution.

    You don't need to worry about BB fetching all emails and leaving none on the server for you to download via your regular email client on the computer. The way BB's mail service is (normally) working is to push a copy of the email to your handheld device, while leaving a copy on the server. Now, if this wold prove to be untrue, there's bound to be a setting for always leaving a copy. Log in to your email settings page via a web browser on the computer, to familiarize yourself with the options. To get there, you might need to have a word with your operator. In my case, they didn't know, but using the url: operatorname.blackberry.com did the trick. You can also do this from the bb phone, and you need to set up a user login.
    The second part of your question is about syncronizing your email box on the computer with the inbox on the phone. I don't have a straight answer but there are ways to do it. For example, when you download email to your computer it is usually done via a protocol called POP. If you can change this to another protocol, called IMAP, it will synch the inbox folders on every client you are using with the email server so that you never have to read an email twice. But that is if your ISP / email provider can enable this. And having said that, I'm pretty sure there is a smarter way, let's leave room for someone else to provide a better answer.

  • I am having a problem sending photos by way of the share facility in iPhoto.  I have looked in accounts and i cloud is not listed as an option.  I removed MobileMe and reloaded it and that enabled me to send the photos but then the email didn't arrive

    When I first tried to email photos from the share facility of iPhoto 9.2.3 I received a message something along the lines of server didn't recognise your id and password.  Read other peoples posts that suggested removing and reloading icloud in the iPhone account section.  No icloud in my accounts  just email and mobile me so I removed and reloaded mobile me.  After that I sent a test email to myself.  It arrived eventually but disappeared the instant I tried to open it.  Shut down my Macbook completely and then switched it on again with exactly the same results.  I am using OS X 10.7.4.  Can anyone tell me how to get icloud as an option for my iPhoto emails?  I use icloud for my normal emails.

    I've resolved my problem now.  It wasn't iphoto: preferences:@ that I needed but iphoto:preferences:general where there is the option to choose email for sending photos.  Can't believe I missed that before.

  • How do I pay for my storage plan on iCloud?  I have followed the instructions "tap for account" but there is no facility to do this?  Help!

    How do I pay for my storage plan on iCloud?  I have followed the instructions but there is no facility to do this.  Help!

    Hi there jeanirismary,
    You may find the information in the article below helpful.
    iCloud storage upgrades and downgrades
    -Griff W.  

  • Stuck at "grey screen of death", disk I/O errors, Facility com.apple.system

    Good morning everybody!
    Yesterday, my MacBook Air revB crashed upon trying to open an mp4 video. I had to press and hold the power button until switch-off. After this, the machine wouldn't start in either normal or safe mode, but was stuck on the grey screen with the Apple logo and the spinning wheel. A start attempt in verbose mode revealed the error "[Level 3] [ReadUID 0] [Facility com.apple.system.fs] [ErrType IO] [ErrNo 6] [IOType Read]", occurring twice. After this, some normal startup posts appeared, but each after a very long time, and preceded by the name of my harddisk and "IO error". Therefore, the system hung doe to not being able to read from the disk what it wanted to read for start-up. I booted into single user mode and used the find command to search "com.apple.system.fs" from root. It was not found. I verified the find command by searching something else, and that was found. Now I renamed my User folder in single user mode and rebooted in verbose mode. The Facility com.apple.system.fs persisted, but afterwards the system booted normally, no chain of disk IO errors. I deleted the User folder that had been newly created due to renaming the old one, and changed the old one's name back to its original value. Afterwards, the system booted normally without any errors, including the "com.apple.system.fs" one. The S.M.A.R.T. status of the disk was and is "SMARTOK". In order to find this out, I opened the console, whereupon the system crashed again. Only after 20 min of 1 s-long windows of opportunity (when the beachball disappeared) was I able to force-quit the console by invoking alt-cmd-esc, and the system continued to respond normally. There are obviously corrupt log files producing the very same read errors that had originally caused the system to hang during boot. Does anybody now what is going on?
    The best,

    Hey there,
    I reread your original post... The problem to me is that what you did to make it boot again doesn't make much sense. Nothing in your home directory prevents the system from booting.
    You said that the system hung when you had Console open. Most of the log files shown there are in /var/log, /Library/Logs some are also in your User directory in ~/Library/Logs, you could try deleting everything inside...
    Why renaming your home folder changed anything is a mystery to me. The only theory I have is general file system corruption that got repaired during one of those bootups due to an automated fsck. That or the system deleted and recreated invalid plist files.
    Mac OS has important files in /Library and /System/Library. The ones in System belong to the System and are not supposed to be touched. The ones in /Library are open for Applications to add their own System-wide Configuration settings etc. The same structure exists in your home directory ~/Libary. Usually the most interesting areas in your home directory are ~/Library/Application Support and ~/Library/Preferences. However as I previously said nothing in your home directory would keep the system from booting. It would always go to the blue screen before the login screen would appear (even when you have auto login on).
    Good luck!

  • HT1040 why can i not seem to order more than one print at a time, which obviously becomes expensive with the shipping, it does not seem to offer me the facility to choose again?

    why can i not seem to order more than one print at a time, which of course becomes expensive with shipping, it does not seem to offer me the facility to choose again? either order or cancel!

    make an album containing the photos you wnat to print, select all photos in the album  and order
    LN

  • HT1267 I bought My Iphone 4s from Iran, I need to make an Apple Id but Iran is not in the registered countries?! I dont know what to choose? Also From Iran we do not have Credit card facility for payment option?!! Any idea how I can get FREE APPS on my Ne

    Hi there,
    I bought My Iphone 4s from Iran, I need to make an Apple Id but Iran is not in the registered countries?! I dont know what to choose? Also From Iran we do not have Credit card facility for payment option?!! Any idea how I can get FREE APPS on my New Phon?!!
    Please let me know how I can get this sorted as soon as possible!! Thank you very much

    You can create an Apple ID without a credit card, see this article:
    Create an iTunes App Store account without a credit card
    Check this post about iPhones from Iran:
    Re: Why Apple does not support from Iran? And why not open a store in Iran?

  • How do i search for a photo album when i use the search facility on my iPad or iPhone it will not find photo albums of a given name can anyone help

    how do i search for a photo album when i use the search facility on my iPad or iPhone it will not find photo albums of a given name can anyone help

    Photo albums are not searched by Spotlight Search.  Go to Settings > General > Spotlight Search to see and reorder the available search items.
    For more details, see page 12 of the iPad iOS 5.1 User Guide

  • I have created a Blog in iWeb and uploaded it to an FTP server.   It works fine, except that the 'Comments' facility is missing.   When I upload the blog to MobileMe   the 'Comments' facility is there and working great.   How can I solve the problem on th

    I have created a Blog in iWeb and uploaded it to an FTP server.   It works fine, except that the 'Comments' facility is missing.   When I upload the blog to MobileMe   the 'Comments' facility is there and working great.   How can I solve the problem on the FTP server Blog.

    You haven't a problem. You simply did not read the iWeb Help :

  • I would like to mark data on my iPhone / iPad as private or hide it. Is it possible? I could do it on my Palmpilot. Any data - addresses, calendar entries, files, anything could be hidden on the palm pilot. It'd be great to see this facility on apl pdts

    I would like to mark data on my iPhone / iPad as private or hide it and only unlock it with a different password. Is it possible? I could do it on my Palmpilot. Any data - addresses, calendar entries, files, anything could be hidden on the palm pilot. It'd be great to see this facility on apple products.

    I know what you meant. As I said, it's not possible to do so on the iPhone. Of course Apple could add such a feature to a future version of iOS, it's only software, but so far they haven't. You can suggest such a feature to Apple here: http://www.apple.com/feedback/iphone.html

  • Dump while running a program with OLE Excel download facility in ITS

    Hi,
    Because of some complex requirment, I had created a report program which will download the data to an Excel sheet using SAP OLE Automation Controller. For this report i had created a tcode too.
    The report which i developed is perfectly working fine in SAPGUI. But if i access the same report throught SAP ITS serice. I am getting a dump. Please find below the dump details. I am not able to figure it out why the dump is not coming in SAPGUI.
    Runtime Errors         MESSAGE_TYPE_X
    Date and Time          09.03.2010 05:35:41
    Short text
    The current application triggered a termination with a short dump.
    What happened?
    The current application program detected a situation which really
    should not occur. Therefore, a termination with a short dump was
    triggered on purpose by the key word MESSAGE (type X).
    |
    Error analysis
    Short text of error message:
    Control Framework : Error processing control
    Long text of error message:
    Diagnosis
    An error occurred when the system tried to process the commands
    from the Automation Queue on the presentation server.
    There are several possible reasons for this:
    - The installation of the SAP GUI on the presentation server is
    faulty or obsolete.
    - There is an error in the application program
    - There is an error in the SAPGUI or an integrated control
    Procedure
    1. Make sure that you have imported the appropriate Support
    Package, the current kernel, and GUI patch for the release of your
    system
    2. Check whether the error occurs locally on one or a few PCs, or
    generally on all PCs. Note whether the error only occurs for some
    users, for example because of a specific Customizing setting.
    If it only occurs locally, this suggests an installation problem
    with the PC. Check the installation; if necessary, reinstall the
    software. In the dump, search for the SY-MSGLI field, since it may
    point to the cause of the error.
    3. Activate the Automation Trace (in accordance with SAP Note
    158985).
    4.Start the transaction and continue until the screen immediately
    before the dump.
    5. From the System -> Utilities menu, choose Autom. Queue,
    Synchronous Processing.
    The status bar of the GUI displays the text:
    "Automation synchron flush mode on"
    6. If you now proceed with the application, the short dump will
    display the ABAP call that caused the error; the Automation Trace
    will contain the error on the presentation server.
    7. If necessary, load the short dump and trace files on to
    sapservX, so that SAP can analyze them.
    Technical information about the message:
    Message class....... "CNDP"
    Number.............. 006
    Variable 1.......... " "
    Variable 2.......... " "
    Variable 3.......... " "
    Variable 4.......... " "
    How to correct the error
    Probably the only way to eliminate the error is to correct the program.
    If the error occures in a non-modified SAP program, you may be able to
    find an interim solution in an SAP Note.
    If you have access to SAP Notes, carry out a search with the following
    keywords:
    "MESSAGE_TYPE_X" " "
    "SAPLOLEA" or "LOLEAU02"
    "AC_SYSTEM_FLUSH"
    If you cannot solve the problem yourself and want to send an error
    notification to SAP, include the following information:
    1. The description of the current problem (short dump)
    To save the description, choose "System->List->Save->Local File
    (Unconverted)".
    2. Corresponding system log
    Display the system log by calling transaction SM21.
    Restrict the time interval to 10 minutes before and five minutes
    after the short dump. Then choose "System->List->Save->Local File
    (Unconverted)".
    3. If the problem occurs in a problem of your own or a modified SAP
    program: The source code of the program
    In the editor, choose "Utilities->More
    Utilities->Upload/Download->Download".
    4. Details about the conditions under which the error occurred or which
    actions and input led to the error.
    User and Transaction
    Client.............. 120
    User................ "XXXXXX"
    Language Key........ "E"
    Transaction......... "ZGA_BEACON_SOX_RPT "
    Transactions ID..... "4B95E2560EB62F9AE10000000A241C33"
    Program............. "SAPLOLEA"
    Screen.............. "ZGA_REP_BEACON_SOX_REPORT 9000"
    Screen Line......... 0
    Information on Caller ofr "HTTP" Connection:
    Plug-in Type.......... "HTTP"
    Caller IP............. "10.36.28.52"
    Caller Port........... 8000
    Universal Resource Id. "/sap/bc/gui/sap/its/webgui/~flNUQVRFPTIzNzIxLjAxNC4wNC4
    wNA=="

    Hi All,
    FYI.....
    As I said because of my complex requirement, i am using OLE excel download facilities to download the data. ITS wont support this OLE download facility.  This can be done only through local SAP GUI.
    The reason for this is that, when i am using this download facility through SAP GUI, OLE object thats used in my report program will directly talk to the Local OLE excel objects (i.e. the local installed Excell application) and download the data. But if it's through ITS, my program wont be able to communicate with the local excel OLE objects because of this i am getting a DUMP.
    Thank You all for the support. All the best in future. 
    Regards
    Maneesh Chandran

  • I have a  Classic Ipod used for music and photos. When I downloaded latest version of Itunes, the photo facility seems to have disappeared, Why?

    I have used my Apple Classic Ipod for music and photo storeage/playback. When prompted to download a new versionof Itunes (11.1.0) I did so but cannot now locate any facility for removing/adding photos. Is this a deliberate action on the part of the programmers or a mistake. What can i do to recover the siutation?

    Many thanks.
    With those symptoms, I'd try the following document:
    Apple software on Windows: May see performance issues and blank iTunes Store
    (If there's a SpeedBit LSP showing up in Autoruns, it's usually best to just uninstall your SpeedBit Video Accelerator.)

Maybe you are looking for