Table entries update through tcode me21n

Hi ,i want to update the database table ekpo through the screen fields execution.
please help me with the code lines.
thanks

i am doing like this for updating the entries through tcode me21n.
IN PBO;
data: v_date type ekpo-zzpldte,
      v_code type ekpo-zzreason.
if sy-tcode = 'ME21N'
or sy-tcode = 'ME21'.
  loop at screen.
    if screen-name = 'EKPO-ZZREASON'
     or screen-name = 'EKPO-ZZPLDTE'.
      screen-input = '0'.
      modify screen.
    endif.
  endloop.
endif.
IN PAI:
types:ekpo.
data:it_ekpo like standard table of ekpo with header line,
     wa_ekpo like ekpo.
select * from ekpo
into corresponding fields of table it_ekpo.
loop at it_ekpo into wa_ekpo.
wa_ekpo-zzpldte = v_date.
wa_ekpo-zzreason = v_code.
modify ekpo from wa_ekpo.
endloop.
i dont know whther i am doing it correctly,
will this will give me the database updates.
please note v_date and v_code is my feilds on th screen for the user entry.
please suggest.
thanks.

Similar Messages

  • CDHDR table entry updation with different Time Stamp

    Hi Experts,
    I'm changing the Contract Partner First Name. The time stamp updation in Change Document Object DEBI is with UTC but the BUPA_BUP Object with Local Time Stamp.
    We want both time stamp with the UTC.
    Time Zone mentioned at SPRO level is UTC.
    Have anyone faced such situation earlier?
    Thanks and Regards,
    Jyoti Shankar

    Jyothi,
    I'm not sure whether this answers your query or not but suggest you to look at these 2 FMs'
    BUS_CUA_VARI_FUNCTION_CONVERT
    BUS_LOCATOR_OKCODE
    Ist FM uses table TBZ4 that uses GUI.
    Probably this is the reason you view object BUPA_BUP in the table with GUI time.
    Rgds
    Rajendra

  • Table not updating while command button is held down

    Hi guys,
    My application obtains data and then outputs this into a table which updates after each set of data is read. This part works fine, however I also require the user to be able to hold down one of two buttons to control control the function of an actuator (forwards and rearwards). To explain this further, when one of these buttons are pressed a voltage is output, when released the voltage is reset to zero. However, while the button is held down the table does not continue to update, when the button is released the table then updates through all the queued values. I understand that this is most likely a problem with the holding of the button causing the other user interface events to not be processed. I have therefore tried using ProcessSystemEvents(), ProcessDrawEvents(), and experimented with using an async timer to control the updating of the UI through the use of PostDeferredCallback(), all without success.
    If anyone can help with a solution that would allow me to perform both of these required functions simultaneously it would be greatly appreciated!
    Thanks in advance
    Ben
    Solved!
    Go to Solution.

    Could you use a toggle button instead of a simple button to be hold down? If yes, then in the button callback you could simple test the value of the toggle (1 if pressed, 0 if released) and operate turn on/off the output voltage to the actuator. You'll have a commit event every time the operator changes button state. (you may need to apply some security limit switch or timeput on the control in case the user forgets to turn the toggle off: the situation is similar to a three-state switch that controls a motorized window blind).
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • How does SAP updates MKPF Table Through TCODE MB0A

    Hello There,
       how does SAP updates MKPF Table Through TCODE MB0A ( POST GOODS RECEIPT )? I tried to debug the same by posting GR, but could not figure out.
    Awaiting Reply
    Santosh

    Hi ,
    These are the table that are updated through the MB0A ,,
    DGESV DMAEX DMAKT DMAPE
    DMARM DMEAN DMKAL DMLAN
    DPROW DQMAT DUNGV MARA
    MARC MARD MBEW MFHM
    MLGN MLGT MPGD MPOP MVKE,
    MCHA, MCHB, MCHD.
    Regards,
    Bharani

  • Recepient type not updating in entries posted through F-54

    We have a scenario as follows
    1. First we have made advance payment to vendor through F-48 with TDS posting.
    2. We received 4 bills against these advance payment and we booked these bills with TDS posting.
    3. We have used F-54 T-Code to nullify the TDS effect in FB60 and to process open item of FB60 against the advance payment through F-48.
    Now it working fine while open item clearance ( there is 1Re.diff which we are rounding up).
    But while making TDS payment through J1INCHLN two of the entries posted through F-54 ( KA Documents ) are not getting picked up as a result there is differenc between total TDS payable & what is shown in J1INCHLN open items.
    On checking in WITH_ITEM table it is found that Receipent type is not updating for these particular entries.
    Additional observation : we have three tds codes for basic, surcharge & E cess and three seperate line items are generated for each while posting TDS. It is observed that for these particular invoices as the amount is in hundreds the E cess amt is less than Re.1 so the only two line items are created i.e. Basic & Surchage.
    Please guide us for solving this.
    Thanks & Regars,
    Chandrakant

    Hi,
    You have to check two tables :
    T059C for Receipient types for country IN whether all the WH Types are maintained for CO and OT.
    V_T001RWT - WHT Rounding Rules - normally it will be 100 for INR (min Re.1) you may have to change it.
    Regards,
    Sadashivan

  • Update personnel information through tcode PA40

    Any bapi or function module to update personnel information through tcode PA40

    Hi,
    You can Use Function Module "HR_MAINTAIN_MASTERDATA".
    Functionality
    This function module enables you to maintain master data for employees and applicants. You can enter field names and contents in the 'proposed values' table. This will then be transferred to the corresponding infotypes. The same validation checks take place as would in the individual maintenance screens for the infotypes. You can enter as much data as you like. You can enter several records or infotypes at once. You are responsible for making sure that the data is consistent. If necessary, the module returns an error message. The error messages are the same as the those which appear in the dialog, in other words, the individual maintenance screen error messages are transferred rather than interpreted by this module.
    Regards,
    Ajay Jangid

  • Regenerate all entries in tab InfoSource through tcode RSA1

    Dear !
    I am having a problem with tab InfoSource of Modeling in NW 7.0 EHP1 system through
    Tcode RSA1. I have already installed a new NW 7.0 EHP1 system (new system
    - no data)
    My apprentice already deleted all entries in tab InfoSource of Modeling. Now tab
    InfoSource empty
    My apprentice already deleted following:
    Nodeling -> InfoSource -> Delete Technical Content and delete all entries in Unassigned Nodes
    I want to regenerate all original entries in tab InfoSource. How ?
    Please help me
    Thanks and best regards
    Edited by: myfriend280985 on Jan 31, 2010 6:23 AM

    I'm not sure if your are talking about Technical Business Content. If so it seems you have to re-activate it from Business Content.

  • Function Module to update Characteristic Value (AUSP table entry)

    Looking for a function module/BAPI to update a characteristic value (AUSP table entry).
    This is for a material master Material classification value, not a Variant Config value that I need to update.
    Anybody have one?  I have one that will find the value, but not change it.
    Thanks.

    That wasn't it, but it gave me the one piece I was missing.
    Answer is:
    Function Module "CLAE_CLASSIFY_OBJECT"
    In CHANGE_KSSK
    M = 0
    KLA = (Class Type)
    OBJEK = (Material Number for the Material Characteristic being changed)
    OBTAB = MARA
    CLASS = (Class Name with Characteristic to be changed)
    S = 1
    S = (blank)
    AENNR = (EC Change Number or Blank)
    DATUV = (Today's Date or date for change)
    C = "X"
    In CHANGE_AUSP
    OBJEK = (Material Number for the Material Characteristic being changed)
    ATINN = (Chararacteristic to be changed)
    M = 0
    KLA = (Class Type)
    ATWRT = (New Value for Characteristic)
    C = X

  • How to check the way table S066 is updated through VKM3

    Hello Experts!
    I'm debbuging transaction VKM3. This is used to release open orders. Within this functionality infostructure S066 (credit managment for open orders) will be updated.
    My problem is that I can't see the values it's using to update the table because it is being updated through a "commit work and wait" statement.
    this is where the update takes place:
    include MV45AF0B_BELEG_SICHERN
        if call_function = space or us_syncron = charx.
        if us_syncron = space.
            commit work.
        else.
           commit work and wait. " This is getting executed
        endif.  
    I've already activated the update mode debugging (so it's calling all the update functions registered through "call fucntion in update task"), but I think it's calling some system functions (not sure about it).
    Is there a way to check how the update takes place?
    thanks in advance for your help!

    Hi,
    Yes there is another way where you view the values used to update S066.
    As Rob said you can get the details through ST05.
    Else after we do the UPDATE DEBUGGING ON and once a COMMIT WORK  statement is encounted then the debugging session will open in another screen there goto menu path Breakpoints->Breakpoints at->Statement----"UPDATE"....
    Similary for "INSERT" & for "MODIFY". This will stop at all the DB tables update where in if S066 is updated then definetly it will stop at S066 UPDATE.
    Please try this once and let me know if any.
    Regards,
    Srinivas

  • How to lock a database Z table before updating it through a report program

    Hi,
    How to lock a database Z table before updating it through a report program and also how to unlock it after my updation.
    The whole process is done through report program.

    Hi,
    Go to SE11, in the option 'Lock object' enter the name of your lock,
    begin with 'E', suppose 'EXXXX' And create. In tab 'Tables' fill the
    table name where the record you want to lock exist and select the
    lock mode. Lock mode can be shared and exclusive. If 'shared',
    when you lock the record, other can also read data, but can not
    modify. If 'exclusive', when you lock the record, other can neither
    read nor modify the record. After save and activate, you will get two
    function module.'ENQUEUE_EXXXX' to lock record,
    'DEQUEUE_EXXXX' to release lock on one record.
    When use this function module it only lock one record at a time. It
    does not lock the table.
    Regards,
    Omkaram.

  • Update Asset Values through TCode AS92

    HI all,
    We would like to update Asset values ( Depreciation values) based on depreciation areas through Tcode AS92.
    Can some one suggest a Function module or any alternative to do the same. Would like to get help at the earliest.
    Thank you for your immediate attention.

    I think that you are trying to post prior-year assets.
    You can use the standard programs:
    <b>RAALTD01</b> - Batch Input
    <b>RAALTD11</b> - Direct Input
    Or take a look at these FMs:
    <b>BAPI_FIXEDASSET_CREATE1</b>
    <b>BAPI_FIXEDASSET_OVRTAKE_CREATE</b>
    Also, since FS91 is simple you can do a BDC recording!

  • How to know the List of Tables that are updated through a ABAP Program

    Hi,
    Is there a program or something that will help me to identify the List of Tables that are used in a ABAP program(ABAP Report, Transaction .... program) without debugging it or looking at the dictionary structure.
    I really need this urgently. Try to give me many methods as possible.
    Thkx
    Kishan

    Hi,
    I created a Z-transaction for my SE49 and debugged a little bit - it's not so fantastic any longer - just like the proposal of SE80 - DDIC list.
    SE49 (and I guess similiar functions, too) just scan the source code for a list of key words: tables, select, update, insert, modify, export, import.
    But very (very!) often updates are encapsulated into function modules - and here this technical cross reference (just like SE80 DDIC list) is of no help.
    So a SQL trace (or runtime analysis) is still the best option to get a complete list. Still these tools just analysis one process - if in other circumstances more tables are involved, can't be judged.
    E.g.:
    - creating one new entry: 1 table
    - changing existing entry: 2 accesses to 1 table + log table
    Regards,
    Christian

  • PO not updates in ICH due to table entry error

    Hi Experts,
    I have an issue while sending the PO from R/3 to SNC. Below error has occured and not able to understand what exactly this error. I have checked the PO data and everything is correct in R/3.
    "Error changing a table entry (secondary index /1OM/ORDR7MP3100, mode M)"
    Could you please help me to resolve the issue as many PO's are blocked due to above error.
    Regards
    Gowri

    Hi Gowri,
    It looks like ODM is not activated properly for PO.
    Check whether ODM activation is done properly or not.
    You can refer step 1,3 and 4 in SAP note 1178483 for activation of ODM or SAP note 836457.
    If above steps are already perform and still the same issue then you need to force generate the ODM go to
    transaction code:
    /N/SCMB/ODM_GEN_ORC for force activation of the component(check the force generate check box)
    /N/SCMB/ODM_GEN_ORDTP for force activation of the order data type(check the force generate check box)
    /N/SCMB/ODM_GEN_ORDA for force activation of the order data area(check the force generate check box)
    And perform the steps mentioned in the above SAP note.
    Regards,
    Nikhil

  • Add entries to database tables using update function module

    Hi All,
    I have a small requirement, in which I need to update Z-tables usimg update function module in update task. In the calling program, I have gathered the data in a field symbol value of type any. I need to pass the same to that function module to update the data which is in the field symbol.
    Please guide me how to achieve this technically.
    Thanks in advance,
    Pradipta .

    Hi,
    I believe you already have evrything with you.....Start Coding the same and come back with any Coding issue.
    I believe you will not be able to pass the Field Symbol in FM Interface.....You need to pass the Variable which Field Symbol is referring....

  • No table entries found for specified key

    Hi All,
    I have developed a program to upload data from flat file with the help of GUI UPLOAD. It is succesfully updating data in my Z-table.
    Whenever I tried to view the content of table for specific field, message shows No table entries found for specified key. However if I add * as a suffix, it shows the data & when I directly Execute table it also displays the data.
    I have also cross checked the spaces before or after the specific content, no space found.
    Only two fields are creating this issue Individually (one of them is key field)
    Regards
    Mukul Maheshwari

    Hi Dear ,
    Here i had implemented program go through it you can understand easily.
    While creating table give one field as primary as you know that.
    tables zdata1.
    data it_tab type TABLE OF zdata1 WITH HEADER LINE.
    CALL FUNCTION 'GUI_UPLOAD'
      EXPORTING
        FILENAME                      = 'C:\Documents and Settings\E50039\Desktop\data.txt'     ***************File path
       HAS_FIELD_SEPARATOR           = 'X'
      TABLES
        DATA_TAB                      = it_tab
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    LOOP AT it_tab.
    zdata1-no1 = it_tab-no1.
    zdata1-name = it_tab-name.
    zdata1-empid = it_tab-empid.
    insert zdata1.
    ENDLOOP.
    Flat file
    1 name1 empid1
    2 name2 empid2
    note: Give the tabspace between values in flat file.
    Edited by: Aditya.G on Oct 12, 2011 10:22 AM

Maybe you are looking for

  • A better way to initialize imported taskflows and BCs with current user

    Hello. I'm currently developing a composite application containing one main application and a number of subapplications (modules) packed in adflibs. Main application has a side menu and a dynamic region, showing taskflows (on fragments) from adflibs.

  • How do I convert an mp3 or WMA file to a m4a file?

    I read on another forum that iTunes can convert mp3 and wma files to m4a format. How do I do this?

  • Error while accessing portal.....

    Hi Experts,    We have installed EP 7.0 SP 9.  It's working fine, but yesterday we met the problem, we can't able to access portal.   After giving username and password, its opening the portal homepage with the following JavaScript Error on the taskb

  • EXP Issues with 9.2.0.3 upgrade from 9.2.0.1

    We've been experiencing something weird with 9.2.0.3 on Windows that we were not experiencing with 9.2.0.1. When trying to export any database, we are unable to perform a full database export. Individual table exports work, but full exports fail. To

  • Can't sync ipod because the playlist created could not be found

    Hello. Really need your help. MY itunes library is more than the ipod capacity. I clicked yes when it said that it will create a playlist for me, but, I deleted that playlist. Now it wont sync. I have tried making a smart playlist, but the problem is