Error on extend an internal table, but the required space was not available

Hi All,
I am trying to retrieve cost data from COVP tables, as well as the quantity, cost centre, and price unit fields from MSEG / BSEG tables. Thing is, if the AWTYP value in COVP table = 'MKPF', i have to get the data from MSEG, otherwise, I need to get it from BSEG table.
I kept getting this error message:
<i>You attempted to extend an internal table, but the required space was not available.</i>
Anyone have any idea how to make my codes more efficient?
Please help. Thanks!
Regards,
Cecilia
REPORT  ZMISCY004.
TABLES : COVP, BSIS, BSEG, MSEG, MAKT, CSKU.
PARAMETERS :
P_FILE(300) DEFAULT '\sapdcdatasaprptoh.txt' LOWER CASE.
DATA MSG_TEXT(50).
DATA :
XKOKRS LIKE COVP-KOKRS,
XBELNR LIKE COVP-BELNR,
XBUZEI LIKE COVP-BUZEI,
XGJAHR LIKE COVP-GJAHR,
XPERIO LIKE COVP-PERIO,
XWKGBTR LIKE COVP-WKGBTR,
XWTGBTR LIKE COVP-WTGBTR,
XREFBN LIKE COVP-REFBN,
XREFBZ LIKE COVP-REFBZ,
XKSTAR LIKE COVP-KSTAR,
XBEKNZ LIKE COVP-BEKNZ,
XMATNR LIKE COVP-MATNR,
XBUKRS LIKE COVP-BUKRS,
XREFGJ LIKE COVP-REFGJ,
XREFBK LIKE COVP-REFBK,
XLTEXT LIKE CSKU-LTEXT,
XMAKTX LIKE MAKT-MAKTX,
XAWTYP LIKE COVP-AWTYP,
XTWAER LIKE COVP-TWAER,
XSGTXT LIKE COVP-SGTXT,
BSEG_KOSTL LIKE BSEG-KOSTL,
BSEG_MEINS LIKE BSEG-MEINS,
BSEG_MENGE LIKE BSEG-MENGE,
MSEG_KOSTL LIKE MSEG-KOSTL,
MSEG_MENGE LIKE MSEG-MENGE,
MSEG_MEINS LIKE MSEG-MEINS.
DATA : BEGIN OF ITAB_COVP OCCURS 10,
KOKRS LIKE COVP-KOKRS,
BELNR LIKE COVP-BELNR,
BUZEI LIKE COVP-BUZEI,
GJAHR LIKE COVP-GJAHR,
PERIO LIKE COVP-PERIO,
WKGBTR(15) TYPE C,
WTGBTR(15) TYPE C,
REFBN LIKE COVP-REFBN,
REFBZ(3) TYPE C,
KSTAR LIKE COVP-KSTAR,
BEKNZ LIKE COVP-BEKNZ,
MATNR LIKE COVP-MATNR,
BUKRS LIKE COVP-BUKRS,
REFGJ LIKE COVP-REFGJ,
REFBK LIKE COVP-REFBK,
LTEXT LIKE CSKU-LTEXT,
MAKTX LIKE MAKT-MAKTX,
AWTYP LIKE COVP-AWTYP,
TWAER LIKE COVP-TWAER,
SGTXT LIKE COVP-SGTXT,
BSIS_WRBTR(13) TYPE C,
BSEG_KOSTL LIKE BSEG-KOSTL,
BSEG_MEINS LIKE BSEG-MEINS,
BSEG_MENGE LIKE BSEG-MENGE,
MSEG_KOSTL LIKE MSEG-KOSTL,
MSEG_MENGE LIKE MSEG-MENGE,
MSEG_MEINS LIKE MSEG-MEINS.
DATA : END OF ITAB_COVP.
SELECT M1~KOKRS
       M1~BELNR
       M1~BUZEI
       M1~GJAHR
       M1~PERIO
       M1~WKGBTR
       M1~WTGBTR
       M1~REFBN
       M1~REFBZ
       M1~KSTAR
       M1~BEKNZ
       M1~MATNR
       M1~BUKRS
       M1~REFGJ
       M1~REFBK
       M1~AWTYP
       M1~TWAER
       M1~SGTXT
       M4~KOSTL
       M4~MENGE
       M4~MEINS
INTO (XKOKRS,
      XBELNR,
      XBUZEI,
      XGJAHR,
      XPERIO,
      XWKGBTR,
      XWTGBTR,
      XREFBN,
      XREFBZ,
      XKSTAR,
      XBEKNZ,
      XMATNR,
      XBUKRS,
      XREFGJ,
      XREFBK,
      XAWTYP,
      XTWAER,
      XSGTXT,
      MSEG_KOSTL,
      MSEG_MENGE,
      MSEG_MEINS
FROM COVP AS M1
LEFT OUTER JOIN MSEG AS M4
ON M1~REFBN = M4~MBLNR AND M1~REFBZ = M4~ZEILE AND M1~REFGJ = M4~MJAHR
WHERE M1~SCOPE = 'OCOST' AND M1~AWTYP = 'BKPF'
  OR M1~SCOPE = 'OCOST' AND M1~AWTYP = 'MKPF'
  OR M1~KSTAR = '972022'.
IF XAWTYP = 'BKPF'.
SELECT KOSTL MENGE MEINS INTO (BSEG_KOSTL, BSEG_MENGE, BSEG_MEINS) FROM
BSEG WHERE BELNR = XREFBN AND BUZEI = XREFBZ AND GJAHR = XREFGJ AND
BUKRS = XREFBK.
ENDSELECT.
MOVE BSEG-KOSTL TO BSEG_KOSTL.
MOVE BSEG-MEINS TO BSEG_MEINS.
MOVE BSEG-MENGE TO BSEG_MENGE.
ELSE.
MOVE ' ' TO BSEG_KOSTL.
MOVE ' ' TO BSEG_MEINS.
MOVE ' ' TO BSEG_MENGE.
ENDIF.
*GET LTEST
SELECT LTEXT INTO XLTEXT
FROM CSKU
WHERE KTOPL = 'COAA' AND SPRAS = 'EN'.
*GET MAKTX
IF XMATNR <> ' '.
SELECT SINGLE * FROM MAKT WHERE MATNR = XMATNR.
MOVE MAKT-MAKTX TO XMAKTX.
ELSE.
MOVE ' ' TO XMAKTX.
ENDIF.
MOVE : XKOKRS TO ITAB_COVP-KOKRS,
       XBELNR TO ITAB_COVP-BELNR,
       XBUZEI TO ITAB_COVP-BUZEI,
       XGJAHR TO ITAB_COVP-GJAHR,
       XPERIO TO ITAB_COVP-PERIO,
       XWKGBTR TO ITAB_COVP-WKGBTR,
       XWTGBTR TO ITAB_COVP-WTGBTR,
       XREFBN TO ITAB_COVP-REFBN,
       XREFBZ TO ITAB_COVP-REFBZ,
       XKSTAR TO ITAB_COVP-KSTAR,
       XBEKNZ TO ITAB_COVP-BEKNZ,
       XMATNR TO ITAB_COVP-MATNR,
       XBUKRS TO ITAB_COVP-BUKRS,
       XREFGJ TO ITAB_COVP-REFGJ,
       XREFBK TO ITAB_COVP-REFBK,
       XLTEXT TO ITAB_COVP-LTEXT,
       XMAKTX TO ITAB_COVP-MAKTX,
       XAWTYP TO ITAB_COVP-AWTYP,
       XTWAER TO ITAB_COVP-TWAER,
       XSGTXT TO ITAB_COVP-SGTXT,
       BSEG_KOSTL TO ITAB_COVP-BSEG_KOSTL,
       BSEG_MEINS TO ITAB_COVP-BSEG_MEINS,
       BSEG_MENGE TO ITAB_COVP-BSEG_MENGE,
       MSEG_KOSTL TO ITAB_COVP-MSEG_KOSTL,
       MSEG_MENGE TO ITAB_COVP-MSEG_MENGE,
       MSEG_MEINS TO ITAB_COVP-MSEG_MEINS.
APPEND ITAB_COVP.
CLEAR ITAB_COVP.
ENDSELECT.
ENDSELECT.
OPEN DATASET P_FILE FOR OUTPUT IN TEXT MODE.
IF SY-SUBRC NE 0.
   WRITE: 'File cannot be opened. Reason:', MSG_TEXT.
   EXIT.
ENDIF.
LOOP AT ITAB_COVP.
TRANSFER ITAB_COVP TO P_FILE.
ENDLOOP.
CLOSE DATASET P_FILE.

Cecilia - I think your problemn is a nested select:
*GET LTEST
  SELECT ltext INTO xltext
  FROM csku
  WHERE ktopl = 'COAA' AND spras = 'EN'.
*GET MAKTX
    IF xmatnr <> ' '.
      SELECT SINGLE * FROM makt WHERE matnr = xmatnr.
      MOVE makt-maktx TO xmaktx.
    ELSE.
      MOVE ' ' TO xmaktx.
    ENDIF.
    MOVE : xkokrs TO itab_covp-kokrs,
                 etc.
          mseg_meins TO itab_covp-mseg_meins.
    APPEND itab_covp.
    CLEAR itab_covp.
  ENDSELECT.
Do you need to do the inner select for every cost element text?
Rob

Similar Messages

  • I have deleted users but the free space is not available what did I do wrong

    Not sure what has happened.  I deleted a user and it should have freed up about 150gb of hard drive space.  It hasn't, when I go to about this make and click on storage it is still showing 100gb of space for movies, and 40gb for other, and 10gb for music.  The admin which is all that is left has no files at all, yet it says the hard drive has those files.  I can't find them to delet, what am I missing?  Is there a hidden folder full of movies and music somewhere?  How do I reclaim all that hard drive space.

    Hi, did you empty the Trash yet?
    How much free space is on the HD, where has all the space gone?
    OmniDiskSweeper is likely the easiest/best, and is now free...
    http://www.omnigroup.com/applications/omnidisksweeper/download/
    And if needed, you can use Terminal to run it in admin mode to see files/folders your user can't see...
    http://www.macobserver.com/tmo/article/how_to_recover_missing_hard_drive_space/

  • HT1727 How do you grant permission for home sharing and authorizing?  My mac did home share, but now says, "The required directory was not found or has a permissions error", when I try to authorize.

    How do you grant permission for home sharing and authorizing?  My mac did home share, but now says, "The required directory was not found or has a permissions error", when I try to authorize.

    OK, I just got off of the phone with Apple and still no joy. They had me try a few things that did not work, then told me to Archive and Install, which did not either. Anyway, thanks for the additional help very note worthy, but still no joy. Also an email to iTunes Support took me here
    http://docs.info.apple.com/article.html?artnum=93061
    I have a Users/Shared folder but since the files we are talking about are invisible, I can see how it is structured.
    And by the way I tried this one
    http://discussions.apple.com/message.jspa?messageID=3577004#3577004
    and it did not work. However, when I install a fresh copy of Tiger on the external it did authorize the computer and was able to play the downloads. But coping the invisible file to my boot drive was not successful. But , like I said the music did play when I started up from the external. So I guess that may be my only solution, unless someone can tell what the correct directory is and where it for iTunes downloads.

  • SSL ERROR : The required certificate was not found

    I am using Adobe Javascript this.submitForm to submit FDF. This works fine in Windows. When the same pdf is opened in a Linux environment I get the following error:
    SSL ERROR : The required certificate was not found
    and am required to run acroread -installCertificate.
    This I do and it succeeds but the SSL error persists.
    The this.submitForm command is given below:
    /this.submitForm({cURL: 'https://some-webpath/FILE.cgi#FDF',bFDF: true,bGet: false});
    When reading the documentation for the submitForm I see that the Acrobat Web Capture plug-in should be installed: I notice this is the case in Windows but not in Linux. Where can I get this?

    Hi Ben,
    The behavior you have noticed with the newly installed certificate files in
    [home-folder]/.adobe/Acrobat/[version]/Cert folder
    and the
    [install-folder]/Adobe/Reader8/Reader/Cert/curl-ca-bundle.crt file is correct. Further, the behavior has not changed between Reader versions 8.x and 9.x
    It is possible that the problem may be of the installed certificate not linking up to one of the Root CA-s. An Intermedia-CA certificate may be needed to be installed.
    Could you mail me at " sanath at adobe dot com ", if possible, with more information about the problem (the PDF, the certificate in question - the file named like 123456.0 ), so that we at Adobe can work on resolving your problem
    Regards
    Sandip

  • I am trying to authorize my computer and I get an error message: The required directory was not found or has a permissions error. Correct this permissions problem and try again, or deauthorize this computer if the permissions cannot be changed. Help?

    I am trying to authorize my computer and I get an error message: The required directory was not found or has a permissions error. Correct this permissions problem and try again, or deauthorize this computer if the permissions cannot be changed. Help?

    I used Terminal to change the permissions on the folder in question.  I followed the instructions in this article:
    iTunes: Missing folder or incorrect permissions may prevent authorization
    In my case, the folder was there, so I needed the command to change permissions on the folder, not to create one.   I was hesitant to use Terminal b/c I know that if I made an error I could wipe out my hard drive or render my computer unusable.  So to be SURE I didn't make an error, I carefully copied the command from that page and *pasted* it into Terminal.  Also, before I could do anything in Terminal, I had to go change my admin password (it had been a blank password before and that's not acceptable for making changes in Terminal).  I was just super careful when entering my password or doing anything else while Terminal was open (making sure I didn't accidently hit the spacebar or another key, etc.)  And it fixed the problem right away.
    What was confusing for me was that the iTunes error message said to change permissions in the FINDER, which is what I was trying to do.  It didn't mention Terminal.  What would really be helpful is if Apple included a link to a page like this in their error message.

  • I can't sync my macbook air with my ipad, problems with authorization... this keeps cropping up: "The required file was not found or has a permissions error. Correct this permissions problem and try again, or deauthorize this computer if the permi"

    Help, cannot sync completely with my ipad, and i also cannot remove or delete shared photos which are clogging up my ipad 64GB memory! Some issue with this keeps croppin gup, so frustrating:
    "The required file was not found or has a permissions error. Correct this permissions problem and try again, or deauthorize this computer if the permissions cannot be changed."
    Not sure how we can correct his permissions problem, and whether authorising or deautorizing makes any difference, with more and more errors keep popping up, this got to be such after an update of the OS, can remember which!?
    HELP!!!

    follow this:
    Launch iTunes
    select iTunes Store from the menu on the left side.
    sign in via the link on the top right area if you haven't done so already
    click the link where you Apple ID email appears, enter your Apple ID password, click View Account, this will take you to a page displaying detailed information about your Apple ID account.
    The last item under Apple ID summary should be Computer Authorisations, click Deauthorize All
    now reauthorize any computers as needed when the system prompts you.
    good luck.

  • I am trying to back up my new iPhone after downloading/updating iTunes with iCloud. I get this message: The required file was not found or has a permissions error. Correct this permissions problem and try again, or deauthorize this computer if the permiss

    I am trying to back up my new iPhone after downloading/updating iTunes with iCloud. I get this message: The required file was not found or has a permissions error. Correct this permissions problem and try again, or deauthorize this computer if the permiss
    how do I find the file and replace it or install it?

    I'll reload it tonight when I get home...basically, I bought a new iPhone and downloaded some new medical apps. also had to download an update for iTunes into my mac laptop so I could access iCloud (which was NOT on my prior iTunes software)
    When I synched my new iPhone with the newly downloaded iTunes, I registered my iphone and tried to "back it up" to iCloud and the message indicating that "the required file was not found or has a permissions error...." popped up.
    How do I correct the permissions error, or...am I able to do this somewhere? Or...how do I find the file that is missing?
    Dr. Bob001

  • I keep getting this error message The required file was not found or has a permissions error. Correct this permissions problem and try again, or deauthorize this computer if the permissions cannot be changed.

    I keep getting this messae when I try to share itune to my new mac The required file was not found or has a permissions error. Correct this permissions problem and try again, or deauthorize this computer if the permissions cannot be changed.

    Doublechecking. In the course of your troubleshooting to date, have you worked through the instructions from the following document?
    iTunes: Missing folder or incorrect permissions may prevent authorization

  • TS1459 The required file was not found or has a permissions error. Correct this permissions problem and try again, or deauthorize this computer if the permissions cannot be changed.

    please help me how to authorize my computer as it always say The required file was not found or has a permissions error. Correct this permissions problem and try again, or deauthorize this computer if the permissions cannot be changed.

    Many thanks. If you're on Mac OS, let's try the following document:
    iTunes: Missing folder or incorrect permissions may prevent authorization

  • HT1206 There was an error storing your authorization information on this computer.The required directory was not found or has a permissions error. Correct this permissions problem and try again, or deauthorize this computer if the permissions cannot be ch

    There was an error storing your authorization information on this computer.The required directory was not found or has a permissions error. Correct this permissions problem and try again, or deauthorize this computer if the permissions cannot be changed.

    I'd try the following document with that one: 
    iTunes: Missing folder or incorrect permissions may prevent authorization

  • HT1848 I cannot authorize my computer, I'm having this error message The required file was not found or has a permissions error. Correct this permissions problem and try again, or deauthorize this computer if the permissions cannot be changed." please hel

    cannot authorize my computer, I'm having this error message The required file was not found or has a permissions error. Correct this permissions problem and try again, or deauthorize this computer if the permissions cannot be changed." please help me

    Doublechecking. In the course of your troubleshooting to date, have you worked through the instructions from the following document?
    iTunes: Missing folder or incorrect permissions may prevent authorization

  • HT1420 When I try and authorise I get this message.The required directory was not found or has a permissions error. Correct this permissions problem and try again, or deauthorize this computer if the permissions cannot be changed. How do I rectify?

    When I try and authorise I get this message.The required directory was not found or has a permissions error. Correct this permissions problem and try again, or deauthorize this computer if the permissions cannot be changed. How do I rectify?

    iTunes: Missing folder or incorrect permissions may prevent authorization
    Mac OS X
    Log in to your computer using an administrator account.
    In the Finder, choose Go to Folder from the Go menu.
    Type: "/Users" (without quotes) and click Go.
    If the Shared folder exists
    Open Terminal (found in /Applications/Utilities).Warning: This step involves modifying permission settings by entering commands in the Terminal application. Users unfamiliar with Terminal and UNIX-like environments should proceed with caution. The entry of incorrect commands may result in data loss or unusable system software. Improper alteration of permissions can result in reduced system security or exposure of private data. This option requires a non-blank admin password.
    Depending on which version of Mac OS X you have, this step will vary:
    On Mac OS X v10.5.8 and earlier, type:sudo chmod -R 777 /Users/Shared
    On Mac OS X v10.6 or later, type:sudo chmod -R 1777 /Users/Shared
    Press Return.
    Quit Terminal.
    If the Shared folder does not exist
    The following steps will recreate the Shared folder if it is missing and ensure that it has been assigned using the correct permissions.
    Open Terminal (found in /Applications/Utilities).Warning: This step involves modifying permission settings by entering commands in the Terminal application. Users unfamiliar with Terminal and UNIX-like environments should proceed with caution. The entry of incorrect commands may result in data loss or unusable system software. Improper alteration of permissions can result in reduced system security or exposure of private data. This option requires a non-blank admin password.
    Type or copy and paste the following command into the Terminal window:sudo mkdir -p /Users/Shared/
    Press Return.
    Enter your administrator account password when prompted, then press Return.
    Depending on which version of Mac OS X you have, this step will vary:
    On Mac OS X v10.5.8 and earlier, type:sudo chmod 777 /Users/Shared
    On Mac OS X v10.6 or later, type:sudo chmod 1777 /Users/Shared
    Press Return.
    Quit Terminal.

  • Hello  My Ups eaton ellipse pro 1200 is in the list of USB device in systems informations but the option ASI is not available ?

    Hello 
    My Ups eaton ellipse pro 1200 is in the list of USB device in systems informations but the option ASI is not available ?
    There is no icone in the menu
    Is anyone know this probleme?

    I don't know if this helps too much, but an Airport update was released last night that fixes something that has to do with connecting to a printer wirelessly (WPS??)
    did you try option clicking on the printer under Printing prefs and reset printing system?  otherwise, I guess, go with what mooblie has said to do. don't worry about the usb cable thing. That's only if you are connecting the printer directly to your mac. because you are connecting wirelessly, then that doesn't really apply.  If you were to tell us the model number and make of your printer, we could help you a bit more.
    resetting the router (maybe a little hole on it), rebooting your mac, then your printer
    and letting it get the IP address might help??
    sorry, I can't do much more
    JB

  • The required directory was not found

    "The required directory was not found or has a permission error."
    This is the error message I get when I try to authorize my Mac Pro (10.4.10). I have repaired permissions, restarted, reinstalled iTunes, re-linked the iTunes home folder and checked all folder for correct permissions.
    Joe

    OK, I just got off of the phone with Apple and still no joy. They had me try a few things that did not work, then told me to Archive and Install, which did not either. Anyway, thanks for the additional help very note worthy, but still no joy. Also an email to iTunes Support took me here
    http://docs.info.apple.com/article.html?artnum=93061
    I have a Users/Shared folder but since the files we are talking about are invisible, I can see how it is structured.
    And by the way I tried this one
    http://discussions.apple.com/message.jspa?messageID=3577004#3577004
    and it did not work. However, when I install a fresh copy of Tiger on the external it did authorize the computer and was able to play the downloads. But coping the invisible file to my boot drive was not successful. But , like I said the music did play when I started up from the external. So I guess that may be my only solution, unless someone can tell what the correct directory is and where it for iTunes downloads.

  • The interchange contained a malformed ISA or the Service schema was not available, it is being rejected completely

    Hi All,
     I am new in EDI processing in BizTalk. Below is my configuration for EDI.
                 I have a text file of EDI 834 data. I need to generate the xml msg of the edi txt file.
                 Added a EDI 834 schema(only one schema).
                 Created two party with validation namespace.
                 Added a peceive pipeline with dis assembler component as EDI Disassembler(I did  not set any property here)
                 Deployed and created a receive location as .txt file and seted filter as bts.ReceiveProtName to send port.
    Getting the below error:            
    The interchange contained a malformed ISA or the Service schema was not available, it is being rejected completely
    Plz help me to resolve it
    Thanks in advance.
    Uttam
    Thanks UK

    I resolved it by work around.
    1. On BizTalk part, I have created an Aggrement for Sender and Receiver.
    2. The ISA6(Sender Id) and ISA8(Receiver Id) field need to be 15 characters (recomended including space).
    Thanks UK

Maybe you are looking for

  • Wacom Intuos Tablet and Pen not working on new iMac with OSX 10.9.4

    Hi there, I've been using an A3 Wacom Intuos tablet and pen for many years now on a 2006 iMac for my illustration work, but I cannot get them to appear or work on my new iMac with OSX 10.9.4.  I think they are the original Wacom Intuos tablet and pen

  • Adding Return Credit Memo

    Hi All, I would like to add Return Credit Memos to processed RA’s on this report.  Currently when an order is shipped, it will give the Invoice number, so on the returns side, I would like the return credit memo to appear as well.  In the delivery nu

  • CREATE DATABASE cannot create a control file

    I know, it's not supported. Please refrain from reminding me. I am trying to install a second database on an Oracle 8i installation (8.1.7.4) on a Windows 2003 server. I cannot use DBCA because it doesn't work, so I create the databases manually usin

  • Installation of Oracle 10g Database on Windows Vista Home Basic

    Hi All, I'm confused about the possibility of installing Oracle 10g Database Server in Windows Home Basic Operating System with Service Pack 1. Please help me out with a confirmation. Thanks in advance Prasanth

  • Create Characteristics, Data Type - Currency

    Hi All, I am trying to create characteristics in transaction CT04 for our PO release strategy. Data type is Currency. After giving all required details when I press enter the value range becomes NNNNNNNNNNNNN.NN. So I am unable to select value in rel