Entering multiple entries in ZTABLE after changing a key field to nokey.

HI Experts,
This is Hema Iam new To ABAP.
My senario is I have created a ZTABLE with companycode, GLAccount, costcenter,profitcenter,plant.
AT first my table has companycode and GLaccount has key fields..
But to enter the multiple entries for cocode and GLaccount (ZBUKRS and ZHKONT) i have changed GLaccount has non key fields and table maintainence regenarated for the same.
my issue is as there are repeating entries for cocode and glaccount it is not possible to enter the entries as it is saying the entry is repeated and asking me to skip because cocode is primarykey there...
how can i overcome thsi issue to enter multipel entries for cocode and GLaccount.
As it should be done quickly ur help would be usefull
Thanks In Advance
L.Hemalatha.

Hi
I created zslno field and made it has primary key field aslo but still iam getting eror message while entrying entries as
"an entry already exists with the same key"
wht should be done i maintainance recreated after adding this field nad in se14 i adjusted the table too still what steps should be done ?
eg i need to enter data:
client cocode  zslno GLacount Cost center profit center plant
010    1000                 1483100   1001199                       0035
010     1000                 226100     101199                        0076
so while entering second record and trying to save iam getting that error.... help me out

Similar Messages

  • HT1399 When I import a CD to itunes, it splits the album in to multiple entries. I have changed the info on some but others just will not merge. Is there an easy way to do this and can I stop them from splitting in future? Thanks

    When I import a CD to itunes, it splits the album in to multiple entries. I have changed the info on some but others just will not merge. Is there an easy way to do this and can I stop them from splitting in future? Thanks

    Okay this is what fixed my problem. Some kind of error/glitch occured half-way through importing that third cd that prevented further imports from any other cd. Once I completely removed the half-imported cd album from my library I could further import cd's without any problems.

  • Master-detail: detail field not displayed after changed by master field

    I want to use the Depends on item with Clear/refresh value functionality in a master detail situation. Within the same group it is no problem to use the setter method of a field to change a second field and then displaying this new value. But in the detail group, I can not select items from the master group as a depends on item.
    In the setter of the master field, the value in a field for each row in the detail (table layout) is updated. The only problem is that this updated value is not displayed, the old value doesn't change. When saving the changes, the displayed value is committed to the database. When de updated field is not displayed at all, the correct value is saved, so I know the detail field is updated.
    How can I make sure the displayed value in the detail is displayed after changeing a master field? I already gave the detail field the correct partial trigger.

    Wouter,
    I guese you don;t see the changed value when you display the detail item because after the depends on item update changed the detail item, JSF procesing continues and the detail table changes are sent to the server which will override again the detail item attriibute, resetting it to the old, still displayed value.
    So, the trick is to get PPR working. Make sure the partialTYriggers property of the detail item is set to the value of the id property of the master item. If it still doesn't work, try setting the partial triggers property on the table, instead of the individual item.
    Steven Davelaar,
    JHeadstart team

  • Insertion of a blank row after change of persk field in a HR report

    Hi,
    I want to Insert of a blank row after change of persk field in a HR report.
    Any suggestions??
    rgrds,
    pranjal

    Hi,
    use this....
    INSERT INITIAL LINE INTO <tab> INDEX <idx>.

  • Creating multiple entries in ztable with the same name

    Dear sir / madam,
    iam new in sap-abap , i have created ztable in se11, table name zrajesh
    and fields i have created zemp_name and zempid which has data element and domain also. and zprice.
    when iam creating entries in table mataince generator
    eg: zemp_name     zempid       zprice
          rajesh              001             100
          raj                     002            110
          rajesh              001             200  
          rajesh             001              300
         rajesh              001              250
    i am looking forward to create multiple entries of the same employ name .. as shown in example . iam able to create numbers of entries with the help of different names. is it possible to create numbers of entries with same name..
    and it will show all the entries in the list when display.
    please help me..
    regards,
    rajesh swami

    hi,
    have a look at these tables
    VBAK -  Header table
    VBAP -  Item table
    here in table VBAK we have a key field VBELN(document no.)
    Whereas for the same document no. we can have many entries in the the table VBAP where the key is VBELN(document no.)
    and POSNR (line item no.).
    You have to do something of this type i suppose ............
    Hope it helps you,
    Regards,
    Abhijit G. Borkar

  • Problem Changing a key field lenght

    Friends,
    I've changed the data element of the object field whitch is one of the keys in the Ztable.
    After that, automaticly, all the declarations were changed 'couse all the container variables were pointing to this table field.
    I thought it isn't get problem but it got problems to my woakflow. The first task didn't return an result that I made to an table and after that  others tasks didn't work to.
    I'm sure that the declarations are poitting ti this (workflow key) field I changed the element.
    I think I saw all the things.... What else can I do ?
    Sorry for my bad english. I'm brazilian.

    Hi Ismael,
    Here it's all right. The wheather is cold and rainy here in Rio de Janeiro, but it isn't normal here. Here usually is sunny and hot.
    By the way, Thanks for your help. Now it's working ok. I agree with your answer, because I simply deleted the bindings and made it again and after that it began to work alright again.
    thanks.

  • Changing Non key field to Key field in a custom table

    Hello Abap gurus:
    I have a requirement in which i need to change a non key field in my custom table(Z TABLE) to key field.
    For example; i have field sequence as
    field 1  key field
    field 2 key field
    field 3 key field
    field 4 non-key field
    field 5 non-key field
    field 6 non-key field
    field 7 non-key field.
    i want to change field 7 as key field.
    Can i do perform operation??
    when i am tryingto perform bove operation it is taking long time to get the table activated.
    Could any one please help me in getting this resolved.
    regards,
    Sravanthi.

    Use DB Utility (se14) to perform alter table or conversion. The latter is used when atemps to perform first operation fails. Which one is used, really depends on system and current DB table state (i.e. if has any content and what is being adjusted).
    The way Max suggested is similar to [conversion process|http://help.sap.com/saphelp_nw04/helpdata/EN/cf/21f1b8446011d189700000e8322d00/content.htm] which system takes care of itself.
    Refer [Adjusting Database Structures|http://help.sap.com/saphelp_nw04/helpdata/EN/cf/21f1ab446011d189700000e8322d00/content.htm] and already given link to conversion.
    Please also consider potential errors while doing conversion . This can lead to data loss, so you should think of some backup to prevent that.
    Regards
    Marcin

  • Track changes showing multiple entries for a single change?

    Hi there .. I'm using Pages '09 v4.1 to edit MS Word '97 documents. I've been using the 'track changes' feature to work on chapters in a book and have done so with no problems so far (about 6 chapters so far in separate files). I went to start the next chapter and noticed that when I make a single change such as highlighting a word and making it italic, the tracking bubbles will show up as individual entries for every letter instead of for a single word. The really annoying thing is that it's not consistent .. some whole-word changes show up as a single entry, while some show as a few entries but don't necessarily correspond to how many letters are in the word being changed. When I try deleting specific tracking bubbles to see which part of the word they correspond to, it varies. For example, if I put the word "similar" in italics on page one, paragraph one, it shows up as 2 entries. When I delete the last entry, "imilar" will go back to standard font, while "s" stays italic until I delete the other entry. It's as though the words in the document are being recognized based on something other than the obvious, and certain letters are being grouped together in the program's brain, while others are separate.
    It's not isolated to italics, btw. If I reformat the entire document to be left-aligned instead of center-aligned, it will show lots of separate tracking bubbles in various places through the document, rather than showing one bubble for my single change.
    I've tried duplicating and saving a new version of the document, as well as creating a new doc and pasting everything into that and saving as a new doc, though I wasn't sure if this would carry over the problem .. It did.
    It's not the end of the world as far as finishing this job, but it's pretty annoying and will be worse for the person who ultimately verifies the changes I've made. Any help is greatly appreciated.

    TekWarrior wrote:
    I'm part of the end user computing and we are in the process of making a consolidated tnsnames.ora file as part of our migration from Windows XP to 7.
    The following two entries are to the same host, but are named different and use different ports, we can't locate the original programmer that set it up.
    I need to know if this would cause conflicts or not?
    PYRPROD.WORLD =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(Host = [same hostname])(Port = 1521))
        (CONNECT_DATA =
          (SID = pyrp1)
    PYRP1 =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = [same hostname])(PORT = 1526))
        (CONNECT_DATA =
          (SERVICE_NAME = pyrp1)
    TekWarrior wrote:
    I'm part of the end user computing and we are in the process of making a consolidated tnsnames.ora file as part of our migration from Windows XP to 7.
    The following two entries are to the same host, but are named different and use different ports, we can't locate the original programmer that set it up.
    I need to know if this would cause conflicts or not?
    PYRPROD.WORLD =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(Host = [same hostname])(Port = 1521))
        (CONNECT_DATA =
          (SID = pyrp1)
    PYRP1 =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = [same hostname])(PORT = 1526))
        (CONNECT_DATA =
          (SERVICE_NAME = pyrp1)
    It  won't cause any problem.

  • After change license-key.xml I got an HTTP error 404

    Hello,
    after i changed the license-key.xml i get now a HTTP error 404 if I connet to the webfrontend. Do anybody know what i can do?

    Originally Posted by linux30
    Hello,
    after i changed the license-key.xml i get now a HTTP error 404 if I connet to the webfrontend. Do anybody know what i can do?
    Check catalina.out. 404 error tells you that Teaming is not working. Teaming did not start correctly after you licence change. Check permissions on the licence which is a common mistake.

  • "Error when activating update rule" after changing ODS key

    Hi Gurus,
    I have problem when transporting in productive system an existing ODS & the update rule linked. The message is  :  "Error when activating update rule".
    This is when i move one field from the key to a simple field of the ODS.
    Before transporting requests, i deleted data in the ODS by right-click on ODS --> Request tab --> select the request --> click on delete....
    I don't understand because i did the same in Qual environment and everything is OK : transport request & ODS loading...
    Please help.....

    Hello,
    Please try to check/perform the following steps:
    1- You must ensure for the update rule have mapping between infosources
       and ODS/CUBEs correct, this means that also these objects need
       to be of the same version in the source system of the transport as in
       target system.
    2- Please ensure all infoobjects in the cube are active.Please
       reactivate all the objects again in source system.
    3- Ensure all infoobjects are found in the communication structure.
    4- Please try to collect the update rule via BW transport connection
       with the grouping option "only necessary objects" and then transport
       those objects again.
    Could you please reactivate the infocube and its update rules again
    and then create a new transport for this infocube and transport it
    again.
    Best regards,
    Paula Csete

  • Change primary key field in Master-Detail Form (Urgent)

    Hi,
    Can some experts share your valuable experience on the problem below?
    We have created a form Master-Detail relation. For some reasons, we have to allow the primary key field to be editable. But we couln't achieve it in Form 6i. It gives update error during commit.
    Your kind help will be highly appreciated.
    Regards,
    YM

    Hi there,
    I think the problem is because u are updating the primary key in the master block but since it is a master detail block u need to update it in the detail block as well.so what i suggest u to do is in the pre-insert trigger assign the value of master primarykey to the detail primary key....
    just check this out hopefully this shud help u.
    Bye
    Atul

  • Enter multiple documents

    Hi Experts,
    In MIR7, i already have the screen exit . I have created a button for billing document no.(VBRK-VBELN)
    against which i have the icon for multiple selction (the same icon that we see in SE11 for entering
    multiple inputs). Now my requirement is that, when i click on this button, i should get a pop-up
    in which i can enter multiple billing doc. nos. one below the other and then say continue.
    Then in the exit ( i also have found out a badi for the same) , i should be able to access these
    multiple billing nos. entered along with all the data on the current screen of MIR7 and then
    do the further coding.
    My problem is that i am not able to enter multiple billing nos. and capture those in the BADI.
    Please suggest me if there is any Function Module to enter multiple entries.
    Thanks in advance.
    Any soln?
    Edited by: priti suryawanshi on Apr 22, 2009 8:09 AM

    hi ,
    use this function module
    CALL FUNCTION 'COMPLEX_SELECTIONS_DIALOG'
    EXPORTING
    title = 'Pop-up for sales office'
    text = 'MODEL'
    signed = 'X'
    search_help = v_shelp
    tab_and_field = struc_tab_and_field1
    TABLES
    range = VBRK-VBELN
    EXCEPTIONS
    no_range_tab = 1
    cancelled = 2
    internal_error = 3
    invalid_fieldname = 4
    OTHERS = 5.
    IF sy-subrc EQ 0.
    "your code
    ELSEIF sy-subrc EQ 2.
    MESSAGE s899 WITH text-003. "user cancelled
    ELSEIF sy-subrc 0 AND sy-subrc 2.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    hope it will help u .

  • How to pass Multiple entries of select-options to FM

    Hi friends,
            i need to pass values date_from and date_to of FM BAPI_AR_ACC_GETSTATEMENT in my report. i have select-option in the selection screen for the posting date i.e, s_pstgdate-low = date_from and  s_pstgdate-high = date_to.
        My question is how to pass values if the user enters multiple entries in s_pstgdate (selection-screen).
        Hope i'm clear with my question.
        Thanks in anticipation.
    Regards
    Poorna

    Hi,
    This is not possible.
    You may wish to call it multiple times with each row of your select-option, and consolidate the returned records.
    Better is to restrict the select-option with no-extension.
    cheers,

  • Multiple entries for the same company.

    Anybody out there have any idea how to enter multiple entries for the same company in Mail without having to enter all information every time for each individual. This was a very basic feature in MS Outlook. Possibly a workaround if not an option within Mail? Thanks.

    Select a card with the details on it, and Edit/Copy /Edit/Paste (Command-C Command-V). Now edit one of the cards with the new individual's details. If starting from scratch, create a company card with no personal information and duplicate it as needed.
    AK

  • Change color of key field in salv_table

    Hello,
    this is my first post in scn. This community helped me a lot so far.
    Now i have a problem with the SALV. I can change the color of normal fields but not of key fields. I changed the attribute like this:
    INCLUDE <color>.
         lv_col-col = col_negative.
         TRY.
             lo_column ?= lo_columns->get_column( 'AUFNR' ).
             lo_column->set_key( ' ' ).
             lo_column->set_visible( 'X' ).
             lo_column->set_edit_mask( ' ' ).
             lo_column->set_color( lv_col ).
           CATCH cx_salv_not_found.
         ENDTRY.
    TRY.
             lo_column ?= lo_columns->get_column( 'RSDAT' ).
             lo_column->set_key( ' ' ).
             lo_column->set_color( lv_col ).
           CATCH cx_salv_not_found.
         ENDTRY.
    He get the correct column and changes set_key from 'X' to ' ' but the color is still blue. Maybe anyone has an idea what to change on the column object.
    Thanks in advance

    Hi Marco,
    Try to change the key field to normal like this :
    lo_column->set_key( if_salv_c_bool_sap=>false ).
    Regards,
    Tanmay

Maybe you are looking for

  • How can I exit a collection window and return to parent folder?

    I would "love" to have a place where I could ask the simple questions like this that come up and seem so simple to those who know, they don't mention the details I need like how to close a working collection window and move back to the parent folder

  • Download as a CSV file

    hi all,     I have created a ALV ,  and i am trying to download it as a CSV file , but when i got the file , the issue occurs: as you know , the columns in CSV file is seperate by ' , '  , but one of my column is currency , the value is ' 123.456,789

  • CS6 InDesign install errors

    I have CS5 Illustrator and Photoshop installed, and now I'm trying to install CS6 InDesign.  I get an error message that the installer can't be initialized.  I've ran the Adobe Support Advisor that gave me that message.  I've done all the corrective

  • Workflow for CRM.

    Dear Experts, I am a beginer to Workflow. I have a scenario in CRM. 1,The requester logs into portal and creates an activity in CRM PCUI screen. what i want to do in workflow is When the requester creates the activity and saves their is a field with

  • Midio 1.3 doesn't work with garageband 10.0.1 can anybody help me?

    To work with my songs that i created on my ipad i installed garageband 10.0.1 so i can transfer the songs from ipad to imac garageband. Than came the message that the midio plugin doesn't work anymore.  Is there any plugin like midio to work with gar