What's wrong in this program, I want to insert a row using this program

TABLES: zemployee, sscrfields.
TYPES: BEGIN OF t_zemployee,
        empid TYPE zemployee-empid,
        empname TYPE zemployee-empname,
        dob TYPE zemployee-dob,
        dept TYPE zemployee-dept,
        END OF t_zemployee.
DATA: it_zemployee TYPE STANDARD TABLE OF t_zemployee WITH HEADER LINE,
       wa_zemployee TYPE t_zemployee .                       " OCCURS 0.
*DATA: gd_ucomm TYPE sy-ucomm.
LOAD-OF-PROGRAM.
   SELECTION-SCREEN BEGIN OF BLOCK block1 WITH FRAME TITLE t1.
   SELECTION-SCREEN SKIP.
   PARAMETERS: empid1 TYPE zemployee-empid,
               empname1 TYPE zemployee-empname,
               dob1 TYPE zemployee-dob,
               dept1 TYPE zemployee-dept.
   SELECTION-SCREEN BEGIN OF LINE.
   SELECTION-SCREEN PUSHBUTTON (10) w_button USER-COMMAND but1.
   SELECTION-SCREEN END OF LINE.
   SELECTION-SCREEN END OF BLOCK block1.
INITIALIZATION.
   t1 = 'ENTER THE VALID DATA'.
*  w_button = 'SAVE'.
   MOVE 'SAVE' TO W_BUTTON.
AT SELECTION-SCREEN.
*  AT SELECTION-SCREEN OUTPUT.
   IF empid1 IS INITIAL OR empname1 IS INITIAL OR dob1 IS INITIAL OR dept1 IS INITIAL.
     MESSAGE: 'PLEASE FILL ALL THE DATA PROPERLY' TYPE 'I'.
   ELSE.
     wa_zemployee-empid = empid1.
     wa_zemployee-empname = empname1.
     wa_zemployee-dob = dob1.
     wa_zemployee-dept = dept1.
     APPEND wa_zemployee TO it_zemployee.
   ENDIF.
  IF sscrfields-ucomm = 'BUT1'.
     sy-ucomm = 'BUT1'.
  ENDIF.
   IF sy-ucomm = 'BUT1'.
     LOOP AT it_zemployee INTO wa_zemployee.
       INSERT zemployee FROM wa_zemployee.
       IF sy-subrc = 0.
         MESSAGE 'DATABASE SUCCESSFULLY RECORDED' TYPE 'S'.
       ELSEIF sy-subrc = 4.
         MESSAGE 'EMPLOYEE ID ALREADY EXISTS' TYPE 'E'.
         CLEAR: empid1, empname1, dob1, dept1.
       ENDIF.
*CLEAR: WA_ZEMPLOYEE, IT_ZEMPLOYEE.
     ENDLOOP.
   ENDIF.

Hi
You have written this definition;
wa_zemployee TYPE t_zemployee
but the type T_ZEMPLOYEE is not like the table ZEMPLOYEE:
TYPES: BEGIN OF t_zemployee,
        empid TYPE zemployee-empid,
        empname TYPE zemployee-empname,
        dob TYPE zemployee-dob,
        dept TYPE zemployee-dept,
        END OF t_zemployee.
so probably some fields of ZEMPLOYEE are missing, you should use this declaration:
DATA WA_ZEMPLOYEE TYPE ZEMPLOYEE
Max

Similar Messages

  • Hi ! i have this new itunes account but when i wanna use this for apps he ask me for a card number but i don't have one .what i supposed to do ?

    Hi ! i have this new itunes account but when i wanna use this for apps he ask me for a card number but i don't have one .what i supposed to do ?

    Hi Mada7ina,
    If you are looking to set up an iTunes Store account without an associated credit card, you may find the following article helpful:
    Apple Support: Creating an iTunes Store, App Store, iBooks Store, and Mac App Store account without a credit card
    http://support.apple.com/kb/ht2534
    Regards,
    - Brenden

  • I have a survey sharepoint list, now i want to create a webpart using this list.

    Hi All,
    i have a survey sharepoint list, now i want to create a webpart using this list.
    webpart is to "display one question from survey sharepoint list(latest question)" and enduser participate on the survey when enduser submits the question(survey), save the result in to the list and result will display as graphical representation.
    How can i do this requirement, any help?

    You do not need to create a custom web part if you need to show the latest question and then display result in graphical way. The Survey list gives that OOTB.
    If there is a specific requirement, you can use Server/Client Object Model and achieve it.

  • I just downloaded Firefox 5 and it said that my Yahoo toolbar will not work with it. Is this true? If so I will not use this new version and will switch to another browser if Firefox stops supporting the Yahoo toolbar. Thank you.

    I just downloaded Firefox 5 and it said that my Yahoo toolbar will not work with it. Is this true? If so I will not use this new version and will switch to another browser if Firefox stops supporting the Yahoo toolbar. Thank you.

    Add-ons contain a range of compatible Firefox versions, and Firefox honors the listed range by disabling the add-on if you are trying to run it on an unlisted version.
    I'm sure Yahoo! will update its toolbar eventually, but not every add-on maker supports beta versions of software.

  • My iphone 4s suddenly has no sound whatsoever!! i have been using this for barely a month now, brand new. what's wrong with it???? but when i use my headphones, it works fine but when i took it off, it doesnt work anymore!!! grrrrr!!!!

    Ive been using this brand new iphone 4s for barely a month now and then all of a sudden, it lost its sound! but when i use my headphones, it works. when i take it off, it doesnt! grrr... what should i do?

    Yes my Iphone has done the same thing!!! I was listning to music then it just stopped.
    There is no sound coming from it what so ever!!!! I have tried eveything, i actually work for a mobile company and i on Ipone support and i know all the tricks but nothing has worked!!! Not happy at all!! Restoring to new dose nothing, the same as when i put it in to safe mode?????????

  • My account is asking for 2 security question answers. I have never had to do this before. Saying it is the first time I have used this computer to purchase not true I have used this computer everythime. Then it tells me that I put in the wrong answers.

    My account keeps asking for 2 security question answers saying this is the first time I used this computer not true used this computer many times. Then when I put ansers in says incorrect answers. What's up with this?

    There have a few other posts from people saying that they are being asked their questions despite it not being the first purchase on the computer or device.
    If you have a rescue email address (which is not the same thing as an alternate email address) set up on your account then go to https://appleid.apple.com/ and click 'Manage your Apple ID' on the right-hand side of that page and log into your account. Then click on 'Password and Security' on the left-hand side of that page and on the right-hand side you should see an option to send security question reset info to your rescue email address.
    If you don't have a rescue email address (you won't be able to add one until you can answer 2 of your questions) then you won't get the reset option - you will need to contact iTunes Support or Apple to get them reset.
    e.g. you can try contacting iTunes Support :http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Account Management , and then 'Forgotten Apple ID security questions'
    or try ringing Apple in your country and ask to talk to the Accounts Security Team :http://support.apple.com/kb/HE57
    When they've been reset (and if you don't already have a rescue email address) you can then use the steps half-way down this page to add a rescue email address for potential future use : http://support.apple.com/kb/HT5312 . Or you could change to 2-step verification : http://support.apple.com/kb/HT5570

  • Add Column Delete  in report, How to delete row using this delete Option

    Hi Friends,
    i have a report ,iwant to add an option DELETE in last column.When i click on DElete then respective id sholund be deleted.
    My Table Is
    CREATE TABLE  "DUMY_FILE"
       (     "ID" NUMBER,
         "NAME" VARCHAR2(500),
         "FILE_OBJ_ID" NUMBER,
         "MIME_TYPE" CLOB,
         "DOC_SIZE" NUMBER,
         "BLOB_CONTENT" BLOB,
         "DESCRIPTION" VARCHAR2(500),
         "UPLOAD_DATE" CHAR(25)
    How can i do this.
    Thanks
    Edited by: 805629 on Nov 16, 2010 11:51 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Trent,
    Thanks for you suggestions. .. Let me explain my problem a little better ...
    I have a report that lists fields associated with a report ... I have a delete icon which deletes a row and removes it from the underlying table ... however, I am trying to implement a Before header process which runs a pl/sql process that checks if the selected field is the last field in the report ... if so, I want a confirmation dialog to pop up ... if they click cancel .. then the deletion is aborted, else the field is deleted (which triggers other status changes).
    Based on this logic if there is a way to implement this based on your suggestion I would appreciate it ...
    Here is the process I was trying to use .... but the I have a few issues with this approach
    declare
    -- cursor to check if this is the last field
    cursor fld_cnt is
    select count(*) from prm_ptnr_rpt_fields
    where report_uid = :P22_REPORT_UID;
    num_flds number;
    msg varchar2(300);
    begin
    open fld_cnt;
    fetch fld_cnt into num_flds;
    If num_flds > 1 then
    delete from prm_ptnr_rpt_fields
    where report_uid = :P22_REPORT_UID
    and field_user_key = :P9_DELETED_FLD;
    commit;
    :P9_DELETED_FLD := NULL;
    msg := :P9_FIELD_NAME || ' Field Excluded From Report' ;
    apex_application.g_print_success_message := msg;
    else
    htp.p('<script type="text/javascript">');
    htp.p('
    var r=confirm("This is the last field included in this report .. \n Deleting it will Inactivate the report and remove it from schedule (if scheduled) ...\n Do you want to proceed?");
    if (r==true)
    {      delete from prm_ptnr_rpt_fields 
    where report_uid = :P22_REPORT_UID
    and field_user_key = :P9_DELETED_FLD;
    :P9_DELETED_FLD := NULL;
    commit;
    msg := :P9_FIELD_NAME || ' Field Excluded From Report' ;
    update prm_ptnr_rpts
    set report_status = 'INCOMPLETE',
    active_report = 'N'
    where report_uid = :P22_REPORT_UID;
    msg := msg || ' and Report Status changed to INCOMPLETE';
    apex_application.g_print_success_message := msg;
    htp.p('}else {
    alert("Delete Action Aborted");
    htp.p('</script>');
    End if;
    Close fld_cnt;
    end;
    a) Even if I click cancel ... the field still gets deleted ...
    b) :P9_DELETED_FLD is the id for the selected field ... I am setting it on the link attributes which places it on the URL ... I would rather user javascript (but not exactly sure how).
    Thanks,
    Gerald
    Edited by: user5459177 on Feb 22, 2011 2:45 PM

  • Want to insert multiple rows in table using EO

    Hi,
    I have one requirement where I need to insert multiple rows at once in table lets say Previous Employers.
    What I am trying to do is I have created few textinputboxes and getting there values and putting in HashMap.
    And manually inserting the rows to EO. I am not getting any error but the data is not populating in Table.
    here is the code snap ...please suggest!!
    public void updateKoelHrPreEmpVO(HashMap map)
    OADBTransaction txn = getOADBTransaction();
    //HashMap map = new HashMap();
    KoelHrPreEmpVOImpl empVO = getKoelHrPreEmpVO1();
    KoelHrPreEmpVORowImpl fetchedRow = null;
    int fetchedRowCount = empVO.getFetchedRowCount();
    RowSetIterator deleteIter = empVO.createRowSetIterator("deleteIter");
    if (fetchedRowCount > 0)
    if(txn.isLoggingEnabled(2))
    txn.writeDiagnostics(this,"Removing rows from KoelHrPreEmpVO :: Current count :: " + fetchedRowCount ,2);
    //System.out.println("Removing rows from KoelHrPreEmpVO :: Current count :: " +fetchedRowCount);
    deleteIter.setRangeStart(0);
    deleteIter.setRangeSize(fetchedRowCount-1);
    for (int i = 0; i < fetchedRowCount; i++)
    //System.out.println("Removing Row :: "+i);
    if(txn.isLoggingEnabled(2))
    txn.writeDiagnostics(this,"Removing row :: " + i ,2);
    fetchedRow = (KoelHrPreEmpVORowImpl)deleteIter.getRowAtRangeIndex(i);
    fetchedRow.remove();
    getTransaction().commit();
    deleteIter.closeRowSetIterator();
    if(empVO.getRowCount() == 0) {
    Row row = null;
    KoelHrPreEmpVORowImpl insertRow = null;
    empVO.first();
    if(txn.isLoggingEnabled(2))
    txn.writeDiagnostics(this,"Inserting rows to KoelHrPreEmpVO :: " ,2);
    try
    for(int i=1; i<=4; i++) {
    insertRow = (KoelHrPreEmpVORowImpl)empVO.createRow();
    insertRow.setEmployeeNumber(map.get("EmployeeNumber").toString());
    insertRow.setPersonId(new Number(map.get("PersonId").toString()));
    insertRow.setEmployer(map.get("Employer"+i+"").toString());
    insertRow.setStartDate(Date.toDate(map.get("StartDate"+i+"").toString()));
    insertRow.setEndDate(Date.toDate(map.get("EndDate"+i+"").toString()));
    insertRow.setEmployer(map.get("Designation"+i+"").toString());
    empVO.insertRow(insertRow);
    insertRow.setNewRowState(Row.STATUS_INITIALIZED);
    getTransaction().commit();
    catch(SQLException ex)
    ex.printStackTrace();
    Regards,
    Mukesh

    1. Pls check if the create() methos in EOImpl is in place, setting the primary key.
    2. Even though we insert values in this fashion , it only gets inserted if user performs any action, like manipulates some column. Pls check if there is any mechansm to make the row dirty ( as if done by user).
    Srikanth

  • Is this the fastest way to insert 100k rows into a database?

    I'm looking to insert ~100k rows into a database as fast as possible. I'm connected to the database through a small LAN with static IP adresses. The target database is running my SQL. Here's the fastest I've gotten the code so far. Task manager shows that it's only sending like 2.5mbps. If I take the size of the 2D array (64MB) and divide by the time it takes to transfer it currently, I calculate ~160kbps. Is that the best I can hope for with the NI DB Toolkit?
    CLD (2014)

    Hi,
    Use DB Tool Insert Data VI to insert the data in the database.
    You can insert complete row data at a time. No need to insert single-single element in database this will reduce your code performance.
    Thanks and Regards
    Himanshu Goyal | LabVIEW Engineer- Power System Automation
    Values that steer us ahead: Passion | Innovation | Ambition | Diligence | Teamwork
    It Only gets BETTER!!!

  • Has anyone received advertising for software called "Mackeeper".  Does anyone know if this is supported by Mac, and has anyone used this software?

    Has anyone reveived advertising for software called "Mackeeper".  Does anyone know if this software is supported by Mac, and has anyone used this software?

    Thanks Kappy, I let it do the scan and when it stopped halfway through and demanded registration I stopped and deleted it.  I still have the icon in the menu bar at the top of the screen and don't know how to remove it.  If this is not possible I can live with it.  I am new to Mac and have trouble divorcing myself from my old PC habits!

  • A website wants to open web content using this program on your computer.

    We recently deployed an update for Adobe Flash Player 11 in our environment. After the update, a small number of users are reporting the following message when visiting various websites. Our users are able to click 'Do not show me the warning for this program again' and Allow, and continue without issue.  My question revolves around any potential modifications to the installation or configuration that can be made to avoid generating this message. Is it possible to configure the installation to prevent this message going forward? Any assistance you can provide would be greatly appreciated.
    Your operating system & version  --- Windows 7 Enterprise
    Your web browser(s) & version  --- Internet Explorer 8, Protected Mode is enabled via GPO as a security requirement.
    Your Flash Player version you having problems with  --- Adobe Systems Incorporated Adobe Flash Player 11 ActiveX 11.8.800.94

    Not sure what is causing this.  Could it be that the mms.cfg file (in C:\Windows\syswow64\Macromed\Flash or C:\Windows\system32\Macromed\Flash) contains ProtectedMode=0 ?

  • I purchased this program through amazon and cannot activate my code! I downloaded the 30 day trial but now that is done and I want to be able to use the program I purchased! Please help it says the code is not valid...

    I cannot figure out the best place to contact the company there is no phone # listed and email was not helpful!!!

    Post your issue here: Recently active topics in Photoshop Family about Photoshop Lightroom some one from customer service should pick it up.

  • If i get this message"the protocol (uusee) isn't associated with any program.firefox associate protocol to open a program" how do i get firefox to use a program i already have with st video feeds? in the new version of firefox?

    im trying to watch sports feeds, and cannot associate st program with my video player? how do I change this, when I go to the applications settings st(torrents) doesnt even come up as a file type?

    maja21 wrote:
    I'm trying to connect to an online radio broadcast and when in Firefox I get the error message "Firefox doesn't know how to open this address because the protocol (htt) isn't associated with any program.  You might need to install other software to open this address".  I'm not tekkie and I don't know what else to do.
    In Safari the error is "Safari cannot open the page because the address is invalid.  My husband has no problem connecting through Explorer on his PC.  Help!
    You are mispelling the url address. Specifically it is not "htt" it should be "http" then the remainder of the address.

  • I've got a new computer and when i plug in my ipod, the message says this ipod has a different itunes library do you want to delete it and use this new library/ you will loose all content.  I want one itunes account but can't figure out how.

    i've got a new computer and when i plug in my ipod, the message says this ipod is synced with another itunes account.  do you want to erace the contents and set up with this itunes.  i want one account only but don't want to loose my ipod contents.  tried uninstalling itunes and redoing get the same message.

    Copy everything from your old computer, or your backup copy of your old computer, to your new one.

  • My iPod Nano 6th generation iLive speaker system quit on me and now I cannot find a compatible speaker system.  I don't want tiny personal speakers, I use this for music in the family room.

    I have 2 iPod Nano 6th generation.  I had them setup with different music from iTunes and I had an iLive Bluetooth docking and speaker system that charged and played them with speakers spaced in the family room.  Not a little personal setup but for reasonably loud music for the whole room.  My iLive system died on me.  It had the 20 pin place to plug in the iPod nano and a clock and the two speakers that were bluetooth.  It was the perfect setup for me.  Now that model has been discontinued and I cannot find anything like it.  Does anyone know what a good option is?  These iPods are only a couple of years old and now obsolete because they don't make anything to play them on.  I don't use earbuds, it's not what I bought them for.  One has our jazz music collection, the other has Christmas music.  I want to hear it throughout the house.

    Sorry typo it had a 30 pin place to plug in the iPod Nano

Maybe you are looking for

  • Assigning Portal Roles

    Hi All, We have installed EP 7.0. The problem we are facing is : The "Portal Content" folder is not displayed under the "Browse Category" of content administration & system administration. Why is it so? Do we need to add some other portal Roles to th

  • Can't get movie out of FCP

    Hi, I have just created a fairly simple 75-minute movie in FCP 7, and for the life of me, I can't send it to Compressor to make files for creating a DVD. Compressor will do its thing for a few hours, then "Failed". Then out of curiosity, I tried to e

  • VerifyError: Error #1053: Illegal override of AdvancedDataGridBaseEx in mx.controls.AdvancedDataGridBaseEx

    I've just installed nightly build 4.0.0.9417 and I am getting this error: VerifyError: Error #1053: Illegal override of AdvancedDataGridBaseEx in mx.controls.AdvancedDataGridBaseEx This is the first nightly build SDK I have tried to use so I am wonde

  • How to migrate legacy data from XI 2.0 to 3.0 ?!

    Hi, last year we had migrated from XI 2.0 to 3.0. We set up a totally new system and I reimplemented the scenarios (to correct some unhappy solutions of the past). Now we want to delete the old XI System but before we have to save the legacy data. Is

  • New images don't appear on upload [subject edited by moderator]

    So, maybe it is a delevoper issue although I can not figure out why it happens at all! Here is my procedure: I design the artwork in Photoshop and use Photoshop to slice I create the template in Dreamweaver (2014) I create the stylesheet (css) I plac