Error while updating custom db table with internal table

Hi experts,
My question is : I define a itable like
types begin of ty_data,
        f1(3)  type  c,
        f2(4)  type  c,
       end of ty_data.
data itab type standard table of  ty_data.
and my custom table(YDATA) is also same structure of  itab.
then  I use insert statement like this
loop at itab into wa_data.
  INSERT into YDATA values wa_data.
endloop.
my problem is I get  an error like this
The type of the database table and work area (or internal table)          
"wa_data" are not Unicode-convertible . . . . . . . . . .     
please give me the solution for this error.
Thanks     
durga prasad

Please post ABAP-questions in one of the <a href="https://forums.sdn.sap.com/index.jspa#42">ABAP forums</a>.
My small addition to the existing hints: define the work area using LIKE LINE OF, the LIKE keyword is a very nice way of ensuring that data types match. You can reference input parameters, other locally defined variables and more.
DATA: t_ydata TYPE STANDARD TABLE OF ydata,
      l_ydata LIKE LINE OF t_ydata[].

Similar Messages

  • XD01 assertion failed error while updating customer master data

    Hi Guys,
    This is an error when I use transaction XD01 to create customers accounts, If you have any ideas do let me and we'll try it....
    The error does not let an BDC or LSMW progress as well. There are also no recent sap notes on the same.
    The error is as follow
    ASSERTION_FAILED
    Short text
    The ASSERT condition was violated.
    What happened?
    In the running application program, the ASSERT statement recognized a
    situation that should not have occurred.
    The runtime error was triggered for one of these reasons:
    - For the checkpoint group specified with the ASSERT statement, the
    activation mode is set to "abort".
    - Via a system variant, the activation mode is globally set to "abort"
    for checkpoint groups in this system.
    - The activation mode is set to "abort" on program level.
    - The ASSERT statement is not assigned to any checkpoint group.
    What can you do?
    Note down which actions and inputs caused the error.
    To process the problem further, contact you SAP system
    administrator.
    Using Transaction ST22 for ABAP Dump Analysis, you can look
    at and manage termination messages, and you can also
    keep them for a long time.
    Error analysis
    The following checkpoint group was used: "No checkpoint group specified"
    If in the ASSERT statement the addition FIELDS was used, you can find
    the content of the first 8 specified fields in the following overview:
    " (not used) "
    " (not used) "
    " (not used) "
    " (not used) "
    " (not used) "
    " (not used) "
    " (not used) "
    " (not used) "
    I have a company code CG01 with sales organization CTS0 and I want to transfer or extend all the customer master data to another company code CG03 with the sales organization CTS0
    The things that I have tried and not work
    using xd01, fd15, fd16, fd01, does not wok and gives the error as above
    The things that I have tried and it works
    Change the sales organization from CTS0 to CTS1 I am able to post the customer master data, using any of the above tcodes and it does not give any error, however the client wants to sales organization to remain CTS0
    So please give me any ideas as per your experience as this transfer of master data has to happen by Monday, else I'll be fried by my boss
    My number is 9820029197
    Will also keep you'll posted on any developments on this case,
    Ronan Pinto

    >
    > Firstly I am from SAP FI, so totally new to SAP SD
    >
    Then you are best person to explain the reason on why the same sales organization, can't be assigned to different company codes. When a sales is done through one sales organization, then will the  profit/loss be accounted in different company codes. Is it legally allowed in the country, where your customer is doing business? How you are going to develop the  balance sheet? Again being the FI person, you are best judge to provide the details to your customer and not a SD guy.
    >
    > 1) How did the system not give an error while putting the data inside CG02 with sales organisaton same as CST0 same as in company code CG01.
    >
    I dont see any other method than removing the assignments in the backend and uploading the data. You can consult a Basis person to find the  change logs for the assignment table. In my opinion, removing the sales organization from a company code assignment just for loading a customer master data and then reassigning to original sales org is  a crooked method and/or not a professional method.
    >
    > 2) Since I have limited experience of SD, If I have to convince my client about the use of CTS1 sales organisation or a unique sales organisation against his argument that it worked for company code CG02, how should I do it.......
    >
    As explained above, how the sales will be accounted  in different company codes (even if the system allows  to assign the same sales org to different company codes)?
    I would recommend you to post this question in FI forum (after closing here) to check what are the legal implications for this scenario.
    Regards,

  • Error while updating Sales Order : Another user Modified Table (RDR1 )

    Hi All,
    I am getting an error message while running the following steps.
    Steps
    1)     Pull an entry from sales order.
    2)     Add new data to line.
    3)     Update the sales order.
    a)     Sap updated the data.
    b)     Through code using DI API we updated some UDF.
    4)     With out closing / Pressing OK button…
    5)     We added new data to line.
    6)     Then Press update.
    An Error will through by B1 as “Another user modified the table(RDR1 ).” Before going to the code where we are handling the update of UDF.
    But after the 3rd step above when we do
    4) Close the window or pressed ok
    5)  take the sales order window again pull the data
    6) Add new Data to line.
    7) Update sales order then it will go smoothly.(Updating by B1 and from code )
    Can anybody tell me why this happens?And any workarounds to solve this?
    Deepesh

    are u adding a matrix row thru the code? I get this error when I am adding rows and I get the rownumber out of sync.
    if so get the max (lineid) from rdr1 and then check against the matrix.rowcount before adding a row. if lineid is greater that matrix.rowcount take lineid + 1 and assign it to the matrix.row, else take the rowcount + 1
    if not, and as a workaround, then you can try using the SBO_SP_transactionnotification stored procedure.

  • Error while updating customer data through IDOC.

    hi all,
    I am using the function module "IDOC_INPUT_DEBITOR" to update the customer master data but i was getting an error "editing was terminated".Please help to solve this problem.
    regards,
    Suresh.

    <Font Color='Red'>Valid Values for PlanningSystem
    </Font>
    bop_MRP
    bop_None
    <Font Color='Red'>Valid Values for ProcurementMethod
    </Font>
    bom_Buy
    Bom_Make
    <Font Color='Red'>Valid Values for GLMethod
    </Font>
    glm_WH
    glm_ItemClass
    glm_ItemLevel
    <Font Color='Red'>Valid Values for ItemType
    </Font>
    it_Items
    it_Labor
    it_Travel
    Valuation Method would be defined in the System Init > Company Details ....Basic Initialization TAB
    Default Valuation Method drop down
    Suda

  • Error while updating account: need help with error msg

    Hi all,
    when I try to change the AccountOwner of an Account via Web Service I sometimes get the following error:
    <faultstring>Method 'WriteRecord' of business component 'Account' (integration component 'Account') for record with search specification '[External System Id] = "27446"' returned the following error:"The selected record has already been added to the list. Please add another record or close the pop-up list and continue.(SBL-DAT-00357)"(SBL-EAI-04375)</faultstring>
    Can anyone please help me to interprete this fault?
    Thanks
    Michael

    Looks like you are creating an Account Team member who already exists in the account team vs just updating the Account owner

  • HT2693 I am getting an 1015 error while updating Iphone 3G with latest iTunes pls help me to restore iPhone 3G

    I am getting an 1015 error while updating Iphone 3G with latest iTunes pls help me to restore iPhone 3G

    Try this and see if this helps http://support.apple.com/kb/TS3694#error1015

  • Get Error while update the User defined row table through DSK Code

    Hi experts,
    I have got an error while updating the user row defined table.
    Error is - "Invalid row"
    I have created one master table "@CBF_FARM " and Child table "@CBF_FAR1"
    First i inserted 5 record in the child table so in my my child table there are 5 Line id (1,2,3,4,5 one for each row).
    after that i delete 2 rows (3rd & 4th row) from child table now in my child table there are 3 rows( Line id 1, 2, 5). Please See attachment.
    Now i am updating  the last record of child table through Code  (Line id is 5)  from other form, then i got error  invalid row.
    Following Code used for updating the user defined child table.
      SAPbobsCOM.GeneralService oGeneralService1 = null;
                                    SAPbobsCOM.GeneralData oGeneralData1 = null;
                                    SAPbobsCOM.GeneralDataParams oGeneralParams1 = null;
                                    SAPbobsCOM.CompanyService sCmp1 = null;
                                    SAPbobsCOM.GeneralData oChild1 = null;
                                    SAPbobsCOM.GeneralDataCollection oChildren1 = null;
                                    sCmp1 = clsAddOn.LDNA_Company.GetCompanyService();
                                    oGeneralService1 = sCmp1.GetGeneralService("CBF_FARM");
                                    // Get UDO record
                                    oGeneralParams1 = ((SAPbobsCOM.GeneralDataParams)(oGeneralService1.GetDataInterface(SAPbobsCOM.GeneralServiceDataInterfaces.gsGeneralDataParams)));
                                    oGeneralParams1.SetProperty("Code", oForm.Items.Item("edtFarmCd").Specific.Value);
                                    oGeneralData1 = oGeneralService1.GetByParams(oGeneralParams1);
                                    // Add lines on UDO Child Table
                                    oChildren1 = oGeneralData1.Child("CBF_FAR1");
                                    // Create data for rows in the child table
                                    SAPbouiCOM.Item oItem = oForm.Items.Item("cmbShed");
                                    oCombo = oItem.Specific;
                                    string ShedCode = oCombo.Selected.Value;
                                    ldna_Rec = clsAddOn.LDNA_Company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset);
                                    string strQuery1 = "select LineId from [@CBF_FAR1] where U_ShedCd = " + ShedCode;
                                    ldna_Rec.DoQuery(strQuery1);
                                    oChild1 = oChildren1.Item(ldna_Rec.Fields.Item("LineId").Value - 1);
                                    oChild1.SetProperty("U_Status", "Ready For Schedule");
                                    //Update the UDO Record
                                    oGeneralService1.Update(oGeneralData1);
    Please Help me it is an urgent requirement,
    -Regards
    Vikas

    hi.
    Error is - "Invalid row"
    Now i am updating  the last record of child table through Code  (Line id is 5)  from other form, then i got error  invalid row.
    As per my knowledge
    What i understood is you have 5 lines and you are going to be update 5th line
    am i correct..
    while u are updating the line in child table
    you have to consider like this..
    line number         u have to update like
    1                                        0
    2                                        1
    3                                        2
    4                                        3
    5                                        4
    which means in child table treat
    line 1  as 0
    line 2 as  1
    line 5 as 4
    If you want to update the line 5 u have to mention 4 th line

  • Error  while running custom BI report in R12.1.1

    Hi All,
    We are encountering below error while running custom BI report in R12.1.1...
    Forcing NLS_NUMERIC_CHARACTERS to: '.,' for XDO processing
    APPLLCSP Environment Variable set to :
    Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
    American_America.UTF8
    Enter Password:
    MSG-00001: started report
    REP-1401: '': Fatal PL/SQL error occurred.
    REP-0069: Internal error
    REP-57054: In-process job terminated:Terminated with error:
    REP-1401: '': Fatal PL/SQL error occurred.
    Report Builder: Release 10.1.2.3.0 - Production on Fri Jun 24 16:47:30 2011
    Please let us know how to fix this error.
    Thanks
    Praveen

    Hi Praveen,
    Seems the issue is with the rdf. Check whether all the parameters are passed correctly.
    REP-1401: '': Fatal PL/SQL error occurred.

  • Error while updating to target

    Hi Friends,
    Im trying to load the data from the DSO to the cube, while loading the data im getting a error "Error while updating to target CUBE Name".
    when i check the message in error stack im getting this "Value 'Complaints Resolution for Activity ' (hex. '0043006F006D0070006C00610069006E007400730020005200') of characteristic ZWF_NAME BRAIN 60"
    I found a notEe 1148007, this not says that
    "A program to write data is generated for each InfoCube that contains data (type "Standard"). The name of this program is stored in the table RSDCUBELOC.  When you activate an InfoCube again, the name of this program may inadvertently be deleted.
    In the DTP monitor, this error occurs in the "Update" step and message RSBK 241 is displayed: "Error while updating to target G7SD0C05 (type INFOCUBE)"
    I have checked the table RSDCUBELOC and i can see the program entry there and after that i have reactivated the cube and reloaded the data but im still getting the same issue.
    Can anyone pls suggest me how to resolve this issue?.
    Thanks in advance
    BN

    Hi,
    It is issue with the Lowe case letters of a particular info object.  You have to write a routine to convert those lower into upper.
    reason is if you chack IOB properties Lower case might be unchecked and the data you are getting in lower case.
    Let us know the details if you still have any issues.
    Reg
    Pra

  • ERROR WHILE UPDATING TO INFOCUBE

    Hi All,
    I am using a flat file to load data from datasource into infocubes.The data reaches PSA tables with no errors but after the execution of DTP , the monitors shows up Error Updating to infocube, intitally I thought there could be some problem in the data format of certain fields in the flat file but everything looks to be correct, there are no errors in the transformation rules.
    Here's the ST22 analysis :
    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).              
    Termination occurred in the ABAP program "CL_RSAWBN_NAV_TRACE===========CP" -
      in "DUMP".                                                                  
    The main program was "RSAWBN_START ".                                                                               
    In the source code you have the termination point in line 42                 
    of the (Include) program "CL_RSAWBN_NAV_TRACE===========CM004".       
    I have been deleting requests from the infocube , datasources and deleting entries from PSA but always endup getting the "Error while updating to Infocube"
    Have to figure out the solution as the planning team is waiting for me to copy the actual data to the plan cube
    Thanks

    Hi,
    You should have the following format in the flatfile :
    Considering today's date(18 Apr 2008) for example:
    0CALDAY            20080418
    0CALMONTH       200804
    0FISCPER           0042008   
    0FISCPER3         0042008 (I think this can have additional periods as well, not sure though)
    0FISCVARNT       No idea about this.
    Reward with points if helpful.
    Regards
    Hemant Khemani

  • Background job finishes but error Error While Updating Material into Standard SAP5678

    Dear
    we run background job which finishes successfully but when we sqw logs it shows
    Error While Updating Material into Standard SAP5678
    Kindly share the reasons
    Regards

    This is an ERP Upgrade space and you should consider raising threads in the right space for prompt replies. Next time consider using SAP NetWeaver Administrator space for issues like these. Also you should consider closing your previous thread with the correct answer for future reference.
    What I see is a custom job. You should check what the job does and also the trace file of the work process and the consult with the application team or the developer for more information. Unfortunately with that screenshot there is nothing much we can advice you.
    Regards
    RB

  • Error while updating vendor challan   J1INCHLN

    Dear Guru,
    my client want to use Extended withholidng Tax . i v configured totaly according to indian TDS configuration. i m getting error while updating the vendor challan.
    No unpaid tax lines exist for the given selection criteria.
    Message no. 8I702
    Diagnosis
    The corresponding withholding tax line &1& is not present in WITH_ITEM table.
    System Response
    For withholding tax recovered from the vendor, tax line is present in table BSIS, but the corresponding entry is missing in table WITH_ITEM , which is necessary for challan updation. Check the entries.
    Procedure
    check entries in table WITH_ITEM for the open tax items chosen for clearing.
    Business Place and section code updating properly line itme table.....
    Thanks & Advance
    Laxmi Narayan

    Hi,
    Also check the following:
    Sometimes, user will delete the automatic line items generated related to TDS and they will enter manually.  You can find the same as below:
    goto vendor line item in the given document and click on withholding tax icon (near to more data), if u didn't find any thing in this place means, user entered the same mannually, if you found some information in that tax box, then problem not with user.
    If u didn't found any thing in that tax tab, then system won't generate any accounting entry and will issue an error message like what u getting.  In that movement, while updating j1inchln ignore the wrong documents and continue with correct documents.
    You can suggest them, they should reverse the entries which is causing problem, there was no solution from sap side(as this is a mistake from user side)
    Earlier i also faced the same problem, identified users deleted the automatic line items and enter the tds line items mannually
    Hope it can help u to resolve this issue
    all the best
    prasad

  • Error while updating ADF task

    Hi, I'm using an initiator Task with ADF Form in BPM process with SOA version 11.1.1.6 and JDeveloper 11.1.1.6 and everytime I try to update the task I get this error:
    ORABPEL-10101
    Error while updating task .
    Error while updating task Cannot delete Comments.
    Check the underlying exception and database connection information. If the error persists, contact Technical Support Services at Oracle.
    at oracle.bpel.services.workflow.repos.driver.WFTask.updateComments(WFTask.java:5384)
    at oracle.bpel.services.workflow.repos.driver.WFTask.updateWFTask(WFTask.java:2712)
    at oracle.bpel.services.workflow.repos.driver.PersistencyService.updateWFTask(PersistencyService.java:630)
    at oracle.bpel.services.workflow.task.impl.TaskService.performPostActionOperationInTrans(TaskService.java:6586)
    at oracle.bpel.services.workflow.task.impl.TaskService.performPostActionOperation(TaskService.java:6306)
    at oracle.bpel.services.workflow.task.impl.TaskService.performPostActionOperation(TaskService.java:6277)
    at oracle.bpel.services.workflow.task.impl.TaskService.performPostActionOperation(TaskService.java:6253)
    at oracle.bpel.services.workflow.task.impl.TaskService.performPostActionOperation(TaskService.java:6235)
    at oracle.bpel.services.workflow.task.impl.TaskService.updateTask(TaskService.java:2088)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    I think this might be related to the task comments and with an internal method calling, but can't solve it in any way I know,
    I've tried to remove the userComments from the Task Form, and remove anything associated with it, but everytime I try to savbe the task it gets this error
    thanks

    Hi,
    here's the correct forum for this question: SOA Suite
    Frank

  • Updating database table from internal table

    I am updating the database table from internal table for this is have used the following syntax
    Update kna1 from table itab.
    And it is giving error message as the work are itab is not long enough.
    Please help me.

    Hi,
       Refer this code
    *&      Form  SUB_READ_UPDATE_BSEG
          text
    FORM sub_read_update_bseg.
      IF NOT it_final[] IS INITIAL.
        LOOP AT it_final INTO wa_final.
          UPDATE bseg SET zuonr = wa_final-ccnum
                      WHERE bukrs EQ wa_final-bukrs
                      AND   belnr EQ wa_final-vbeln
                      AND   rfzei EQ wa_final-rfzei
                      AND   saknr NE ' '.
        ENDLOOP.
    *--Message data updated successfully
        MESSAGE i888 WITH text-002.
        LEAVE LIST-PROCESSING.
      ELSE.
    *--Message No data found
        MESSAGE i888 WITH text-003.
        LEAVE LIST-PROCESSING.
      ENDIF.
    ENDFORM.                    " SUB_READ_UPDATE_BSEG
    Regards,
    PRashant

  • Error While updating info in the People Form-Additional Personla Details

    Hi All,
    Iam getting an Error While updating information in the People Form,Additional Personla Details DFF.
    Error Like:
    APP-PER-289974:There has been an error Processing this person,The error encountered is 'ORA-20001:HZ_STNC_SQL_EXCEP:N,PROC.sync_Person,N,ERROR.ORA-25153:Temporary Tablespace is empty ,N,POO,1265890',which occured in procedure  per_htrca_merge_tca_person at step10.
    Please contact your support represntative.
    Thanks -
    Sowmya

    Thanks you,
    By this Note id:395136.1
    Iam unable to find this Set profile 'HZ: Generate Events for DQM Real-Time Synchronization' to No
    with this Note id:278422.1
    We are unable to find this proifle option : HZ: Data Sharing and Security Enabled profile
    we are using applications 11i.
    please help to find this Profile option.
    But with this note id:ID 395136.1
    This is Working.
    Query for HZ: DQM Synchronization Method profile. Set the value to Disable.
    But iam facing proble while uploding data to DFF ,Error--SQL exception occurred during PL/SQL upload.
    Thanks for the Support-
    Sowmya.
    Edited by: user13419037 on Aug 11, 2011 11:53 PM
    Edited by: user13419037 on Aug 12, 2011 12:03 AM
    Edited by: user13419037 on Aug 12, 2011 3:45 AM

Maybe you are looking for