Deleting Data Package with Abap - error in Abap statement

Hi,
I am trying to delete data with abap but my logic is not working and it failed with error message Error in an abap/4 statement  when processing
requirement
- Delete data package when plant = INDIA
- Delete data package when Area = 01 OR Group =  J001 in customer master data table.
Logic
Data: T_Data TYPE DATA_PACKAGE_STRUCTURE Occurs 0 WITH HEADER LINE.
data: lt_BI0_PCUSTOMER LIKE /BI0/PCUSTOMER OCCURS 0 WITH HEADER LINE.
LOOP AT DATA_PACKAGE.
MOVE-CORRESPONDING DATA_PACKAGE TO T_DATA.
Refresh lt_BI0_PCUSTOMER.
select * from /BI0/PCUSTOMER into TABLE lt_BI0_PCUSTOMER
WHERE CUSTOMER = T_DATA-SOLD_TO.
Read table lt_BI0_PCUSTOMER WITH KEY CUSTOMER = T_DATA-SOLD_TO.
IF sy-subrc EQ 0.
LOOP AT lt_BI0_PCUSTOMER.
IF lt_BI0_PCUSTOMER-AREA= '01' or
lt_BI0_PCUSTOMER-GROUP = 'J001'.
DELETE T_DATA.
APPEND T_DATA.
endif.
ENDLOOP.
ENDIF.
ENDLOOP.
DATA_PACKAGE[] = T_DATA[].
* Delete data package when Plant EQ INDIA
DELETE DATA_PACKAGE WHERE PLANT = 'INDIA'.
thanks
Edited by: Bhat Vaidya on Oct 19, 2010 8:41 AM
Edited by: Thomas Zloch on Oct 19, 2010 9:55 AM

Hi,
DELETE DATA_PACKAGE WHERE PLANT = 'INDIA'.
Above syntax for delete data from internal table
For deleting the database table write statement as follows
DELETE From DATA_PACKAGE WHERE PLANT = 'INDIA'
Your are missing the from keyword from statement.
What could i have understand, if it is your solution of Query.
Exactly you want to delete data from database table or internal table ?

Similar Messages

  • Data load with ABAP control

    Hi:
    I need to load the data to a Cube with ABAP code in info-Package.... but am a Novice in ABAP..!
    Need your help.
    I need to load the data to the Cube only the records thta have "NETDUEDATE" gretaed than System Date
    (SY-DATUM) and drop the records that do not meet the condition. 
    Not sure what would be the code / syntax for putting this condition!
    Appreciate your help.
    Thanks....Pbs

    Hi PBS,
    You can write a ABAP logic for your requirement. In the data selction tab of the Info-package, give the type as abap routine and the variable in the type. You can implement the logic with IF-ENDIF condition.
    Reffer:
    ABAP routine in Infopackage
    ABAP Routine in InfoPackage.
    Regards,
    Satyam

  • Unable to edit or delete data driven subscription - rsInternal Error

    I have a data driven subscription that I am trying to edit or delete. If I do either, I get a message
    An internal error occurred on the
    report server. See the error log for more details. (rsInternalError)
    Get Online Help
    The status is pending.
    Help!
    Thank you
    I found in a SQL Dmpr0009.log file the following error:
    library!ReportServer_0-2!2410!02/27/2015-09:21:38:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.InternalCatalogException: Adding more than one data source with null original name, Microsoft.ReportingServices.Diagnostics.Utilities.InternalCatalogException:
    An internal error occurred on the report server. See the error log for more details.;

    I don't see an error in the Systems, SQL Server or SQL Server Agent Logs, However, I do see this in the Report ServerLog.
    System.Web.Services.Protocols.SoapException: System.Web.Services.Protocols.SoapException: An internal error occurred on the report server. See the error log for more details. ---> Microsoft.ReportingServices.Diagnostics.Utilities.InternalCatalogException:
    An internal error occurred on the report server. See the error log for more details.
       at Microsoft.ReportingServices.Library.ReportingService2005Impl.GetSubscriptionProperties(String SubscriptionID, Boolean LookingForDataDriven, String& Owner, ExtensionSettings& ExtensionSettings, DataRetrievalPlan& DataRetrievalPlan,
    String& Description, ActiveState& Active, String& Status, String& EventType, String& MatchData, ParameterValueOrFieldReference[]& Parameters)
       at Microsoft.ReportingServices.WebServer.ReportingService2010.GetDataDrivenSubscriptionProperties(String DataDrivenSubscriptionID, String& Owner, ExtensionSettings& ExtensionSettings, DataRetrievalPlan& DataRetrievalPlan, String&
    Description, ActiveState& Active, String& Status, String& EventType, String& MatchData, ParameterValueOrFieldReference[]& Parameters)
       at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
       at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
       at Microsoft.SqlServer.ReportingServices2010.ReportingService2010.GetDataDrivenSubscriptionProperties(String DataDrivenSubscriptionID, ExtensionSettings& ExtensionSettings, DataRetrievalPlan& DataRetrievalPlan, String& Description,
    ActiveState& Active, String& Status, String& EventType, String& MatchData, ParameterValueOrFieldReference[]& Parameters)
       at Microsoft.SqlServer.ReportingServices2010.RSConnection2010.<>c__DisplayClass5a.<GetDataDrivenSubscriptionProperties>b__59()
       at Microsoft.SqlServer.ReportingServices2010.RSConnection2010.SoapMethodWrapper`1.ExecuteMethod(Boolean setConnectionProtocol)
       at Microsoft.SqlServer.ReportingServices2010.RSConnection2010.SoapMethodWrapper`1.ExecuteMethod()
       at Microsoft.SqlServer.ReportingServices2010.RSConnection2010.GetDataDrivenSubscriptionProperties(String subscriptionID, ExtensionSettings& extensionSettings, DataRetrievalPlan& dataRetrievalPlan, String& description, ActiveState&
    active, String& status, String& eventType, String& matchData, ParameterValueOrFieldReference[]& parameters)
       at Microsoft.ReportingServices.UI.DataDrivenSubscription..ctor(String reportPath, Boolean isNew, String subscriptionID, Boolean loadData)
       at Microsoft.ReportingServices.UI.DataDrivenPropertiesControl.GetSubscriptionFromViewState()
       at Microsoft.ReportingServices.UI.DataDrivenPropertiesControl.Control_Load(Object source, EventArgs args)
       at System.Web.UI.Control.OnLoad(EventArgs e)
       at System.Web.UI.Control.LoadRecursive()
       at System.Web.UI.Control.LoadRecursive()
       at System.Web.UI.Control.LoadRecursive()
       at System.Web.UI.Control.LoadRecursive()
       at System.Web.UI.Control.LoadRecursive()
       at System.Web.UI.Control.LoadRecursive()
       at System.Web.UI.Control.LoadRecursive()
       at System.Web.UI.Control.LoadRecursive()
       at System.Web.UI.Control.LoadRecursive()
       at System.Web.UI.Control.LoadRecursive()
       at System.Web.UI.Control.LoadRecursive()
       at System.Web.UI.Control.LoadRecursive()
       at System.Web.UI.Control.LoadRecursive()
       at System.Web.UI.Control.LoadRecursive()
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    library!ReportServer_0-2!286c!02/27/2015-12:33:17:: i INFO: Call to GetSystemPropertiesAction().
    ui!ReportManager_0-1!21f8!02/27/2015-12:33:17:: e ERROR: System.Threading.ThreadAbortException: Thread was being aborted.
       at System.Threading.Thread.AbortInternal()
       at System.Threading.Thread.Abort(Object stateInfo)
       at System.Web.HttpResponse.End()
       at Microsoft.ReportingServices.UI.ReportingPage.ShowErrorPage(String errMsg)

  • How to delete data-records with BI-planning in BEx?

    Hi folks, masters and gurus,
    we just upgraded some of our functions from BPS to BI-Planning.
    Only one thing I could not resolve up to now:
    In BPS (web based) it was easily possible to delete data-records by choosing a radio-button beside the data-entry-field and click the "delete"-button (a red "-") on the top.
    When I tried to find a delete-function in RSPLAN now I only found one that deletes the data, but not the record itself.
    Does anyone know how to build a function that I can use to delete data-records?
    Thx in advance for your help,
    Thomas

    Oh yes ... it´s not necessary as it is easily possible to supress lines with only 0 in it with
    query-properties / rows/coloumns / supressing Zero / activ ...
    Edited by: Thomas Kejik on Jan 19, 2009 9:46 AM

  • FORCED DATA PACKAGE WITH PHONE UPGRADE

    I have been a verizon customer since cell phones were cool.  I started with a bag phone in my car.   I have 5 verizon phones.   Four on a family plan and one through a work plan.  
    My son wanted to upgrade his phone today which is eligible for early upgrade.  I was very disappointed to find out that any decent phones available come with a mandated data package.   There are two options - for the really nice phones it is $29.99/month, for the basic phones like the LG Envy which I have now it is $9.99/month.   
    So right now I spend on the family plan about $2000 per year on cell phones.  (It used to be about $3,500 before I got my work phone).   If we renewed to the basic LG Envy phones (which I like)  it would be an extra $40/month or $480 per year.  If we upgraded to the nice phones it would be an extra $120/month or $1,440 per year.  For unlimited data usage this is not a bad deal.  
    There is only one problem - I DONT WANT IT OR NEED IT!!!!!!!!   I have computers at home with wireless, a laptop with wireless, an i-touch with wireless.   Also, my spouse or children do not need unlimited data or the internet on their phones!   Who wants to pay for a 16 and 13 year old to have unlimited data and wireless? 
    I  spoke to Verizon customer service and they told me which phones are available with no data package.  Nothing against LG and Samsung but the phones available under those plans are garbage.   They have small screens and are pathetic little phones with limited features.  Even though I don't use the internet on my phone why wouldn't I want one  with a great camera, a large screen for pictures and video messaging?   
    I realize from talking to customer service that they did surveys to see what customers wanted.  I guess I am one of the only people out there that likes advanced features on a phone with out the internet available to me at all times.  I don't agree with this.  Or is it just that it is more convenient to squeeze another $500 or $1500 per year from a family?   Why not double your sales when you can.  I know every other carrier is doing it which is why Verizon can force this on its customers.   Customer service reminded me of this several times. 
    Could we afford donating this money to Verizon for no purpose? Probably but why the {word filter avoidance}
    would we?  No wonder so many people are in debt.  I think our money could be used better to send kids to college, pay the mortgage or invest it.   I think this policy is hostile towards customers.  If they really want to serve their customers offer the phones at higher price without a data package.  I guess that wouldn't work since Verizon makes its money from service agreements not the equipment.  
    - Unhappy Verizon Customer looking for other options......

    Ryder435 wrote:
    I have been a verizon customer since cell phones were cool.  I started with a bag phone in my car.   I have 5 verizon phones.   Four on a family plan and one through a work plan.  
    My son wanted to upgrade his phone today which is eligible for early upgrade.  I was very disappointed to find out that any decent phones available come with a mandated data package.   There are two options - for the really nice phones it is $29.99/month, for the basic phones like the LG Envy which I have now it is $9.99/month.   
    So right now I spend on the family plan about $2000 per year on cell phones.  (It used to be about $3,500 before I got my work phone).   If we renewed to the basic LG Envy phones (which I like)  it would be an extra $40/month or $480 per year.  If we upgraded to the nice phones it would be an extra $120/month or $1,440 per year.  For unlimited data usage this is not a bad deal.  
    There is only one problem - I DONT WANT IT OR NEED IT!!!!!!!!   I have computers at home with wireless, a laptop with wireless, an i-touch with wireless.   Also, my spouse or children do not need unlimited data or the internet on their phones!   Who wants to pay for a 16 and 13 year old to have unlimited data and wireless? 
    I  spoke to Verizon customer service and they told me which phones are available with no data package.  Nothing against LG and Samsung but the phones available under those plans are garbage.   They have small screens and are pathetic little phones with limited features.  Even though I don't use the internet on my phone why wouldn't I want one  with a great camera, a large screen for pictures and video messaging?   
    I realize from talking to customer service that they did surveys to see what customers wanted.  I guess I am one of the only people out there that likes advanced features on a phone with out the internet available to me at all times.  I don't agree with this.  Or is it just that it is more convenient to squeeze another $500 or $1500 per year from a family?   Why not double your sales when you can.  I know every other carrier is doing it which is why Verizon can force this on its customers.   Customer service reminded me of this several times. 
    Could we afford donating this money to Verizon for no purpose? Probably but why the {word filter avoidance}
    would we?  No wonder so many people are in debt.  I think our money could be used better to send kids to college, pay the mortgage or invest it.   I think this policy is hostile towards customers.  If they really want to serve their customers offer the phones at higher price without a data package.  I guess that wouldn't work since Verizon makes its money from service agreements not the equipment.  
    - Unhappy Verizon Customer looking for other options......
    Dittos to TedKord!
    There are many with situations similar to yours.  Our first of 5 lines just went month-to-month this week as there are NO UPGRADE OPTIONS to upgrade from an enV2 without the mandatory data surcharge of $120 per year.  If you are a facebook member you can do a search for Verizon and you will find a group there, several thousand strong now, that also agree and share your frustration.  You can also find links there to contact the FTC, FCC, Verizon, etc.   Take a look and join us if you haven't already.

  • Do you have to have a data package with the 3G?

    I was told that the 3G would not work without a data package. Is this true? With the 2G, you could use the phone, mp3, and Wi-Fi without the data package.

    You are supposed to have the data plan. It is part of the deal. AT&T subsidizes the iphone in exchange for the two year commitment. The iphone itself will work without the data plan.
    I don't know if AT&T will allow this.
    Call AT&T and ask them. That is really the only answer that matters.

  • Ipad wireless data package with pre-existing Verizon data plan

    Hello,
    I have a question about the wireless plan for the ipad. If I purchase an ipad with verizon wireless carrier does that mean I have to create a
    new verizon wireless account specific for the new ipad? Or can I somehow merge it with my pre-existing verizon wireless plan?
    I have a data package plan of 4G for my phone and I was wondering whether I could share that available data usage with ipad.
    I appreciate all your comments, thank you.

    No, you can't share the data plan with your phone. Yes, you can have your iPad on the same account. It will have its own data plan but appear on the same bill.

  • Deleting data package entries in start rout/update rule

    in my logic in the start routine , i wish to delete all records form data_package where data_package-fieldx = somevalue .
    can i do it using a single statement in one shot ? if yes , how ?
    or do i have to loop through the entire package , check the condition and then delete .

    create internal table with 2 fields, billno and item
    loop at datapackage
    read internal table to see if it is there,
    if not, add the record,
    if yes, delete the datapackage.
    endloop
    This way, your datapackage will have only the 1st record for each set.
    Good Luck,
    CL

  • Data transfer with some errors on registers. (Novice question)

    Hi experts.
    First of all i wat to say that i'm realtively novice in BW.
    I have an ods object.  I have a transformation>Data Transfer Processes>Infopackage to load data to it.
    I execute this with a process chain.
    well the roblem is that some registers I get are erroeous. That's ok, i just want lo load the OK regs, but when this happens the sistem does't load any.
    I want to load only the good registers and be reported about the errors too.
    Can someone please give me some advice about this?? I think thje secret is in the error handling customizing on the DTP, and maybe create a error DTP and something in the infopackage.
    Any tip to me please?
    Thank you!!!

    Hi,
    you need to maintain some parameters in the update tab of  the dtp.
    a) set the error handling to update valid records, reporting possible (request green)
    b) enhance the no. of error records to the size of the data packet.
    c) create a error dtp
    Now all records without error will be updated, the request will be green and so available for reporting. The records with errors will go to the error stack and can be edited there. The records of the error stack will be updated thru a error dtp.
    regards
    Siggi

  • Delete data dynamically with JSP and servlet (Very Urgent)

    Hi,
    I am new with servlets and JSP. On my jsp page I am populating customer names in a drop box from database and I have 3 buttons ADD, DELETE and EDIT.
    Now when I press DELETE buttong I am calling delete function which is writen in Javascript on my jsp file only,now I want to pass these selcted values ehich I have stored in an array to be pass to servlet,so I can write Delete query for it and delete.
    Could anyone help with sample code>
    Here what I am trying to say:
    <HTML>
    <HEAD>
    <script language="JavaScript" type="text/javascript">
    <!--
    function remove()
    var u = confirm("Are you sure you want to Delete Selected names?")
    if (u==true)
         var selectedArray = new Array();
         var selObj = document.getElementById('CUSTOMER_NAME');
         var i;
         var count = 0;
         for (i=0; i<selObj.options.length; i++) {
         if (selObj.options.selected) {
         selectedArray[count] = selObj.options[i].value;
         count++;
         alert("names to be deleted are:"+selectedArray);
         // selectedArray has the selected items stored
         alert("Items Deleted!")
    else
    alert("No data were deleted!!You pressed Cancel!")
    //-->
    </script>
    </HEAD>
    <BODY>
    //calling servlet on action tag of form
    <FORM METHOD= 'POST' ACTION='Remove_Customer'>
    <form ><INPUT TYPE='submit' NAME='DELETE' VALUE='DELETE' onclick="remove()"></TD></form>
    <form><INPUT TYPE='submit' NAME='MODIFY' VALUE='MODIFY' onclick="modification()" ></TD></form>
    </BODY>
    </HTML>
    PLEASE HELPME,it's very urgent.
    Since the selected Array is in javascrip language , I don't know how can I pass that to servlet.
    request.getParameter is not working,since it's an array
    Many thanks in Advance.

    Hey,
    I am having problem deleting multiple values.
    If I just select one value,it deletes it
    But for multiple values the code is not working right.
    If there 2 values selcted then the last value gets deleted,if there are more than 2 values selected none values delete.
    Could plese check the code,and let meknow what mistake am I doing?
    Please help
    String delName="";
    int pos = tStr.indexOf(",");
    System.out.println(pos);
         if (pos != -1)
                   delName = tStr.substring(0, tStr.indexOf(","));
              tStr = tStr.substring(tStr.indexOf(",") + 1 );
                   System.out.println("DElName:"+delName);
                   System.out.println("tStr::"+tStr);                              
                        delName = tStr;
                        delete_Customer(delName);
    Thanks
    ASH

  • Pleasse help me with this error in SQL statement

    Please tell me the error in this query:
    the Error given is
    java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Syntax error in INSERT INTO statement
    given :
    Databse is MS Access
    In the databse :
    account - text
    number - text
    date - date/time
    vendor - text
    Connection connection = t.getConnection();
    /* t - some object containing a connection*/
    Statement stmt = connection.createStatement();
    stmt.executeUpdate("INSERT INTO Bills (account, number, date, vendor)
    VALUES ('vai', '23', 10/12/2006, 'jaadya')");

    I would imagine the problem is with the date. Different DBs have different date formats. To avoid that problem, use a PreparedStatement.
    java.sql.Date date = ...;
    PreparedStatement ps = con.prepareStatement("INSERT INTO Bills (account, number, date, vendor) VALUES (?, ?, ?, ?)");
    ps.setString(1, "vai");
    ps.setString(2, "23);
    ps.setDate(3, date);
    ps.setString(4, "jaadya");
    ps.executeUpdate();This saves you from having to deal with vendors' various date formats, keeps you from having to escape special characters in strings, and prevents SQL injection.

  • How to run others applications with abap commands

    Is there a mothed that can use it to run an application with abap statement?
    for example: how to open a text file in program with abap command?
    thank you very much.

    CALL FUNCTION '<b>WS_EXECUTE'</b>
    EXPORTING
      DOCUMENT                 = ' '
      CD                       = ' '
       <b>COMMANDLINE</b>              = ''
      INFORM                   = ' '
      <b> PROGRAM                 </b> = 'NOTEPAD'
      STAT                     = ' '
      WINID                    = ' '
      OSMAC_SCRIPT             = ' '
      OSMAC_CREATOR            = ' '
      WIN16_EXT                = ' '
      EXEC_RC                  = ' '
    IMPORTING
      RBUFF                    =
    EXCEPTIONS
      FRONTEND_ERROR           = 1
      NO_BATCH                 = 2
      PROG_NOT_FOUND           = 3
      ILLEGAL_OPTION           = 4
      GUI_REFUSE_EXECUTE       = 5
      OTHERS                   = 6
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Here...
    In the <b>CommandLine</b> you can give the path where the file is located like for Example
    C:\Test\Hello.txt.
    In the <b>Program</b> you need to give the application that you want to open that file.
    if helpful reward points...
    Regards,
    Vivekananda Varma Dandu

  • Planning Data Pull process failed with timeout error

    Hi Experts,
    Version: Oracle apps 11.5.10.2
    Issue: Planning Data Pull process failed with timeout error
    message in the log file as follows,
    The Request id : 90018907 has Phase : COMPLETE and Status: ERROR
    Concurrent Message : Timeout error.
    There is an Unknown error in the Worker.
    Planning Data Pull process failed.
    +-------------------------------------
    Please advice what could be the problem. I submitted, standard data collection programs with 900 mins and 8 workers.
    Refresh Collection Snapshot completed without any issue

    Please see these docs.
    Data Collection Fails Because Of Time Out Timeout error [ID 339968.1]
    OPM-ASCP: Data Collection Timeout Error [ID 601539.1]
    STD COLLECTION FAILING AT PLANNING DATA PULL WITH TIMEOUT ERROR [ID 978472.1]
    Data Collections is Failing - All Errors - First Diagnostic Steps [ID 207644.1]
    Troubleshooting Errors with ATP/Planning Data Collections [ID 1227255.1]
    MSCPDC PLANNING ODS LOAD ERRORS WITH TIMEOUT ERROR - POOR PERFORMANCE [ID 417633.1]
    Thanks,
    Hussein

  • How to find packages with errors?

    I have this problem:
    When I compile all invalid packages, I get an error message saying there is one package with some errors. How can I find out which one is it? There is no red cross on any of the package displayed in the package tree.
    Thanks for help

    Hi, after some time I would like to go back to this issue...
    Last week I got this problem again, so I started to look for the problem.
    The thing is we are using multiple schemes and I compiled by accident one of the package bodies to wrong scheme. So there is an invalid package body without its specification... SQL Developer doesn't display such body, maybe because it always supposes there is some spec. This is another disadvantage of the tree structure you are using - package body should be on the same level as package spec!
    Currently if you do such mistake like I did, and use the Compile invalid packages feature, you get an error message about package containing errors and it's hard to find what is going on.

  • Data package is missing in the return structure

    Hi BW Folks,
    I have an issue with ODS activation.While activating the data in ODS object am getting following error message
    Activation of data records from ODS object XXXX terminated.
    data package XXXXX contains errors with status 9 in table 'XX' but this data package is missing in the return structure.
    In detail: The data package is entered in the return structure as incorrect.
    Can anyone provide me the solution. Thanks in advance. Have a nice time!
    Regards,
    Nani.

    HI
    Check these links
    Re: Status 9 error when activating an ODS in a Process Chain
    ODS activation error - status 9
    Error while data loading-terminated with Status 9
    Error while data loading-terminated with Status 9
    hope it helps
    regards
    CK
    Assing points if usefull

Maybe you are looking for

  • Dell Latitude E6520 fails to boot after Windows Updates

    Hello,  I have a Dell Latitude E6520 that is not starting up after Windows updates. It installs updates and requests a reboot, after which it blue screens at the splash logo and reboots again. This goes on indefinitely. The only way to repair it is t

  • Mail freezes mac os 10.8.4

    I just got the mail program to freez. It is total stoned dead. I am in the process to move our mail server to MS 365. I got good log in to our old and existing mail domain server via iphone mail and ipad mail and web verson of the mail. But the mail

  • Even after redownloading iTunes and Quicktime, iTunes still will not open.

    I was on this board a while ago with the complaint that my iTunes would not open, and I recieved no real help about it. I got replies, but nothing suggested helped at all. I looked over the boards for others with the same problem and found a LOT. Som

  • Using iTunes from another mac :)

    Hello, is there any app (for mac) which allows me (or somebody) play/pause/skip/... music played on another mac? Something like the remote.app for iPhone. I have mac, playing some music via Airport Express. When my girlfriend doesn't like the song, s

  • How do I get past the (-50) download error

    I can not dowload from ITunes. I receive the error message THERE WAS AN ERROR DOWNLOADING YOUR PURCHASED MUSIC. AN UNKNOWN ERROR OCCURRED (-50). Based on everything I have read, there is an internet block. I ckd wdws and it shows Itunes being cleared