Check successful entry table

Good day!
Part of my assignment is to create a program that would transfer the values of a text file to a table in the database. So far, what I did was to first transfer it to an internal table which I will then transfer to a table in the database. I am almost done with this project but part of my assignment is not only insert the data into the respective fields of the table, but to also show the number of records successfully inserted and count those that were not successfully inserted. Is there any way to check this? Sorry for the noob question.
This is part of my code where I insert it to the table.
LOOP AT zpdpld_itab.
      INSERT (p_tab) FROM zpdpld_itab.
ENDLOOP.
ptab containes the table name
while zpdpld_itab is my internal table containing the values.

Try this:
LOOP AT zpdpld_itab.
INSERT (p_tab) FROM zpdpld_itab.
if sy-subrc = 0.
move-corresponding records to table it_messages.
else.
move-corresponding records to table it_messages.
ENDLOOP.
Loop at messages.
write:........
endloop.
In it_messages collect all entries.For the entries which are successfully inserted i.e. SY-subrc is 0 show green traffic light and for failed entries show red light.You can find the lights in table ICON.
Reward if useful.

Similar Messages

  • " Unit of measure ****** is not defined; check your entry in table T006

    I´m Trying to create a material from MDM to SAP and I´m monitoring the IDOC in  WE05 and i get the next message:
    " Unit of measure ****** is not defined; check your entry
    Message no. M3490
    Diagnosis
    The key for the unit of measure you entered is not defined in table T006.
    Procedure
    Define the unit of measure through Customizing (Materials Management). "
    In MDM we are sending as remote key the SAP Code and this code exists in the table T006, but in the information of failed IDOC say:
    " Messages have been issued: number 0000000000184470
    Message no. MK101
    Diagnosis
    During inbound processing for the IDoc, messages have arisen while checking material data. "
    If someone has information about it ,pls I´ll appreciate your answer.
    Regards Itzell T.

    I´m Trying to create a material from MDM to SAP and I´m monitoring the IDOC in WE05 and i get the next message:
    " Unit of measure ****** is not defined; check your entry
    Message no. M3490
    Diagnosis
    The key for the unit of measure you entered is not defined in table T006.
    Procedure
    Define the unit of measure through Customizing (Materials Management). "
    In MDM we are sending as remote key the SAP Code and this code exists in the table T006, but in the information of failed IDOC say:
    " Messages have been issued: number 0000000000184470
    Message no. MK101
    Diagnosis
    During inbound processing for the IDoc, messages have arisen while checking material data. "
    If someone has information about it ,pls I´ll appreciate your answer.
    Regards Itzell T.
      Hi Itzell T,
          While creating the material the unit of measurement which is entered is not existing in the SAP System. The unit of measurement entered during creation of material is cross checked from enteries of check table T006.
          So, functional consultant should take care of this issue just let him know the message.
       He know what problem actually is and fix the problem as Ankur had said.

  • How to check duplicate entries in internal table??

    Dear Friends,
    How to check duplicate entries in internal table??
    Exp: In my internal table if I am having the same records more then ones then I need to print the error message, here I am using steploop for selecting the values from screen, and the values are coming into my internal table if user enter the same value more then ones I need to print the error message.
    Thanks,
    Sridhar

    Hi,
    After storing the data into internal table say ITAb, move the data into another internal table.
    t_dup[] = itab[].
    LOOP AT itab.
        count1 = count1 + 1.
        itab-count1 = count1.
        MODIFY itab.
    ENDLOOP.
    LOOP AT t_dup.
        count2 = count2 + 1.
        t_dup-count2 = count2.
        MODIFY t_dup.
    ENDLOOP.
      DELETE ADJACENT DUPLICATES FROM itab.
      LOOP AT t_dup.
        record_dup = 'N'.
        READ TABLE itab WITH KEY count1 = t_dup-count2.
        IF sy-subrc = 0.
          record_dup = 'Y'.
        ENDIF.
        IF record_dup NE 'Y'.
          t_dup-message = 'DUPLICATE ENTRY'.
          t_dup-flag = 1.
          MODIFY t_dup.
        ENDIF.
      ENDLOOP.
    Use this sample code.
    Reward pts if it is helpfull.
    Regards
    Srimanta

  • Time evaluation generate check out entry

    Dear Gurus,
    How can we generate Check out entries thru Time evaluation?
    The sales employees come to office in the morning, they punch in and leave for sales activity. They don't get overtime, but pay / absence quota deducted if they don't check in in the system.
    While running Time evaluation, I am getting error in TE03 (delimiting error). I hv tried creating second entry using TF00. Its not working. Has anybody any solution for this?
    Regards,
    Vijay

    Hi Gurus,
    I am rephrasing my requirements.  have 2 queries,
    1. Sales Employees make only Clock In entries. System should generate the clock out entry or should not throw any error message. System should consider total working time from daily work schedule.
       - TE30 function is generated the entry in TEVEN table based on planned end time, but we need to create the entry in IT2012 otherwise, while processing next days entry, it generates error.
       - Will TF00 create an entry in Time Events IT2051 ? IF yes, how can I tweak TF00 rule to generate Time out entry.
    2. General Staff working hours need to be calculated from Shift Start even if they come early. Max working time is 12 hours with 4hrs from start of end of Shift period
       - If shift start is 7AM, I have defining Start tolerance as 6AM to 7:05AM, but still the system is considering the Clock In time for hours worked. 
    I have to write this condition. How to write ?
       If Clock-in Time < Start Time
          Then   TIP->From = Start Time
    I believe it has to be put in TL10 after rounding the Check in & check outs.. so as to update table TIP,
    Please suggest,
    Regards,
    Vijay

  • Storage bin 320 902  does not exist (check your entry)

    Storage bin 320 902  does not exist (check your entry)
    Message no. L9009
    I have created the new bins in the interim storage area 902. In the table LPAG also the storage bins are visible. I am creating thre GR for the PO in the system but still getting the error in as above . Please help me out.

    Hi
    check the movement type configuration which is used. So u can find what storage bin is used for the particular movement type.
    If not existed create the interimbin.
    Hope this helps you...
    Rgds,
    Kris.

  • Indval wagetype 2500:no entry table in t510  for key 10eeng3manager1

    Indval wagetype 2500:no entry table in t510  for key 10eeng3manager1  on 01.01.2010
    Dear experts i am new to payroll, actually i am getting above error. i did all the necessary configuration for USA PAYROLL but still i m getting above error in pa30. 2500 is basic pay wage type, EE is oayscale type,NG is payscale area,3 is ESG grouping,manager is position, 1 is LEVEL. can anybody help me in this..........thanks in advance

    Hi,
    First check the entry is there in view V_T510. Check Date Properly.
    Check Wagetype Characterestics in V_T511 with indirect Valuation TARIF and Variant 'B'
    Pradeep.

  • Entry EN 40 does not exist - check your entry

    Dear Friends
    I'm facing a Issue in MSS where when manager is trying to view the employee Trip details in UWL. I'm getting a error as "Entry EN 40 Does not Exist - Check your Entry"  I've checked the Table V_T702X & there I can view the Trip Types which I've created for Trip Provision variant 40.
    V_T702X:
    Kindly let me know what else I'm missing as this is very urgent & it need to be resolved ASAP.
    Cheers
    Pradyp

    Hi Ankur
    Thanks for the quick reply,
    I've checked the Table PTRV_HEAD, and below is the data I've found in that.
    Kindly let me know what else need to be checked.
    Cheers
    Pradyp

  • Check Lock Entries

    Hi Friends,
    I have run two programs simultaneously updating same table.I want to chaek whether there is any lock that has occured.I have no authorization for SM12.Is there any table or other transaction to check whether the table is locked.

    Hi!
    The programs should set lock entries before making a change and releasing the lock immediately afterwards. When this is the case, you could see locks in SM12, but more for information purpose - because the programs are doing well on their own.
    If one (or both) programs don't use locks, then you won't see anything in SM12 and you might get a mess in the database - depends on the actual changes.
    (IMHO) Locks aren't stored in a table, it's more organized like a global memory -> that's faster and locks don't need to be stored for a long time anyway.
    Transaction would be SM12 - and anyway, any other transaction would check the same authority object...
    Regards,
    Christian

  • How to check from which table data is picking by datasource 0CDCY_ACT_ATTR

    Hi Experts,
    Could you please help me in finding out of the table from which datasource 0CDCY_ACT_ATTR is extracting.
    As per my knowledge is should be extract from tables(infotypes) HRP5135 - 5141.If i am wrong please correct me.
    Issue : My extractor(0cdcy_ACT_ATTR) is bringing wrong ACT_TYPE (Eg :5010) where as in table HRP5141 for that particular OBJID it is 9180( different).
    Please help me why my extractor is bringing ACT_TYPE 5010.
    This standard datasource and using Function Module :  RCF_BIW_GET_ACTIVITY, How can i check from which table it is picking the data
    Thanks in Advanve
    Sree

    Hi Sree,
    In RSA3 on the first screen, you have the option to start debugging by marking the debug check box, once you put all the selections, click on execute and it will go to debug mode, then keep on pressing F5. It will debug your code line by line, then you can check for all the select statements.
    Or once the debugging is started you will have the option to put break point on all the select statements in one shot, you can get in touch with your ABAP team.
    Regards,
    Durgesh.
    Edited by: Durgesh Gandewar on Jul 24, 2011 8:20 PM

  • How to add check box in table control?

    Dear frnds,
    In our requirement i am used tablec ontrol for dialog programming, but i am confused about addition of check box as fields in table control.
    Any help are welcome from your side.

    Hi,
    Chk this demo program: DEMO_DYNPRO_TABCONT_LOOP_AT
    & RSDEMO02.
    Another way:
    Go to the edit mode of the screen select the table control column you want to make it as check box and follow the menu EDIT->CONVERT->check box.
    (make sure that column definition in itab/ddtab is of size 1 char)
    Also chek out this link:
    Add Check box in Table control
    Hope these help you.
    Regards,
    Anjali

  • Check user entry in Customer Exit Variable in i_step2

    Hi Folks,
    at the moment I'm facing a challenging problem. In an BW Query i have a Customer Exit defined as "not ready for Input" to catch the Variable in I_Step = 2 and fill by a certain algorithm. When i change the CE Variable to "Inputready", the user can enter values, but i have no chance to react on these values as i_step = 2 will not b reached during execution- And this behaviour is correct. BUT is there any chance to Check user entries in an Customer Exit variable and change this somehow in des code?
    Thanks for all replies.
    BR,
    Maik

    Hi there,
    It is possibel depending on what you wish to accomplish.
    You can create two variables for the same characteristic.
    The first is an input ready variable for the user to enter the data and the second is a not input ready variable CE where you can in step 2 process the data entered from the variable ready for input.
    You can than fill the CE variable with any data, but you will have the variable restricted by the two variables (the ready for input and the CE).
    But for validating you could throw an error message based on the variable input ready.
    Diogo.

  • Max no of records in for all entries table

    Hello all,
    Hi have used for all entries in a select statement in BW extractor. This extractor is working fine for the test data. When i moved this code to pre-production for testing, there this extractor has to deal with thousands of records. In pre-prod , this select statement is not picking up all the records available in DB. Can any one give any idea on behavior of for all entries for large number of records. and is the any max limit for for all entries table.
    Thank you..correct answer will be rewarded.
    Regards
    Sravan

    Moderator message - Please search before asking and do not offer rewards (particularly since as far as I can see, you've awarded a total of two points in the last two years - post locked
    Rob

  • Check payment entry reset

    How can i reset the check payment entry  I  tried  with  T-code FBRA  but  get the message
    Payment was posted with
    withholding tax.
    Clearing document will be reversed.
    Do you want to continue?
    if i click on yes the entry will get reversal
    I want only reset the  entry and don't want reveres it how can I do that?

    We have a similar problem. I will also like to know what the solution is. In ou case it is not a check payment but an electronic bank  payment. We also need to only RESET the payment entry but NOT reverse it. However now when we are trying to do FBRA, the system says exaclty the same message as posted in the original query here.
    regards,
    Suvarghya

  • How do I check if a table exists

    I have some embedded SQL statements to create tables and indexes
    in a database. These tables may or may not already be there. I
    would like to be able to drop the table(s) first, then create
    them. Unfortunately, an error is generated if I drop a table
    that does not exist.
    Can someone send me the proper SQL command to check if a table
    exists before dropping it in Oracle?
    TIA
    Eric
    null

    I have some embedded SQL statements to create tables and indexes
    in a database. These tables may or may not already be there. I
    would like to be able to drop the table(s) first, then create
    them. Unfortunately, an error is generated if I drop a table
    that does not exist.
    Can someone send me the proper SQL command to check if a table
    exists before dropping it in Oracle?
    TIA
    Eric
    null

  • Use of initial values check box in tables

    Hi,
    what is of use of initial values check box(after the primary key check box)  in tables.
    Regards,
    Suresh

    The flag indicates whether field inserted in the database is to be filled with initial values. The initial value used depends on the data type of the field. I.e. type n(2) is '00'.
    When you create a table, all fields of the table can be defined as NOT NULL and filled with an initial value. The same applies when converting the table. Only when new fields are added or inserted, are these filled with initial values. An exception is key fields. These are always filled automatically with initial values.

Maybe you are looking for

  • IPhone wont show up in iTunes

    So i have brand new Windows 7 installed, also installed iTunes 9.2. I connect my iPhone to PC and it shows up in Windows. iTunes freezes for a while and then there is no iPhone. iTunes simply cant see my iPhone after unfreezing himself. Windows still

  • TV Series on another mac?

    Hi, I bought an entires season of a TV series on one of my Macs and have watched it all on Apple TV. Now I want to have the series on my MacBookPro to be able to watch when traveling, How can I transfer the episodes from my iMac to my MBP? Or can I r

  • In ipad photo collection, some pictures are under year 2036. Is there a way to change the year?

    In ipad photo collection, some pictures are under year 2036. Is there a way to change the year or move the pictures?

  • Security issue to access remote ejbs, URGENT!!! please and thanks.

    Hi gurus: I have questions for you. I need to access remote ejbs. the ejb(beans) have been deployed on remote machine. I have helper class file to do JNDI lookup to point the machine and find it. I have local machine to have all of home interfaces, r

  • POL-3013 Message file is not loaded

    Hi, I have posted a publication to the server and I have succeeded also. I am able to update some tables that I have created. When I rebooted my machine I founded a popup message DMAgent failed to start during the startup. When I try to login to the