Update Ztable report

Hi Experts,
I want to update some FI documents into my ztable report day wise as a background, So pls help me with some example reports how to update/append records into Ztable from main table like bseg or bkpf(for example) and how to modify the same table and append the existing records,if any user changes the same document for any fields after posted.
For ex: If an LC document get posted as new document, then my report will update the records into Ztable from BSEG. If the user agains going and changing the same document ,say for example amounts, then simultaneously it has to be updated into my same document number of my Ztable.
hope its very clear.
Pls post ur examples and advises.
thanks & regards
sankar.

Example:
*Lock Table ZHPA_CON_INF
  PERFORM sub_lock_db.
*Update the table with this work area having current date and time
  MODIFY zhpa_con_inf FROM wa_zhpa_con_inf.
  IF sy-subrc = 0.
    COMMIT WORK.
  ENDIF.
*Unloak Table ZHPA_CON_INF
  PERFORM sub_unlock_db.
*&      Form  sub_lock_db
      Lock Database
      No Parameters
FORM sub_lock_db.
Declare the local variable for varkey
  DATA  : l_varkey   TYPE vim_enqkey.   "Varkey
Move the value of client to local variable
  CONCATENATE sy-mandt c_intid INTO l_varkey.
Lock the table before update
  CALL FUNCTION 'ENQUEUE_E_TABLEE'
    EXPORTING
      tabname        = c_tabname "ZHPA_CON_INF
      varkey         = l_varkey
    EXCEPTIONS
      foreign_lock   = 1
      system_failure = 2
      OTHERS         = 3.
  IF sy-subrc <> 0.
    MESSAGE i000 WITH 'Error while locking table:'(002) c_tabname.
    LEAVE LIST-PROCESSING.
  ENDIF.
ENDFORM.                    " sub_lock_db
*&      Form  sub_unlock_db
      Unlock Database
      No Parameters
FORM sub_unlock_db .
Declare the local variable for varkey
  DATA  : l_varkey   TYPE vim_enqkey.   "Varkey
Move the value of client to local variable
  CONCATENATE sy-mandt c_intid INTO l_varkey.
*Unlock the table
  CALL FUNCTION 'DEQUEUE_E_TABLEE'
    EXPORTING
      tabname      = c_tabname  "ZHPA_CON_INF
      varkey       = l_varkey.
ENDFORM.                    " sub_unlock_db

Similar Messages

  • Firefox 34.0.5 says Adobe Flash plugin is blocked, but update check reports my Flash plugin (ver. 16.0.0.235) is current. How to fix???

    About 1 month ago, I updated Flash and Firefox to most current versions. Firefox 34.0.5, running on WinXP, SP3, shows Adobe Flash plugin as ver. 16.0.0.235, but this is now being blocked again. No other versions of Flash are evident. When I choose option on Flash screen to check plugins are up to date, Firefox reports Flash plugin is up to date.
    This program behaviour is wrong and should be fixed. Checking at Adobe, current Flash is 16.0.0.305.
    Who or what is broken here? Is Firefox broken, and not reporting correctly that more current Flash plugin is available?
    I do not appear to have previous versions of Flash installed on system. This combo of software was working correctly for a while, and then became broken, without a proper path to allow users to resolve it. If Firefox is rigged to "Block" a plugin, then it *MUST* be configured to easily and **CORRECTLY** allow that plugin to be updated. Using most current software, my clicking on the "Check for updates" feature reports that Adobe Flash is most current version. Arrrrgh!!
    I am now back to "diagnose and fix broken Firefox+Flash" exercise, which I just went thru.
    Best solution here would be to allow user to easily override the "blocking" mechanism. This would assist users who only use Flash video access on trusted sites.
    If there is an obvious solution to this current Flash "BLocking" goofery, please inform. Otherwise, if and when I resolve this, I will post a reply to my own question here, indicating what I did to fix this, as it appears to be affecting other Firefox+Flash users, without a clear solution being posted.

    Adobe issued 3 new Flash 16 versions in January alone, then another new one - .305 - in February, ''along with one in early December. Five new versions in 2 months time''. So with updating Flash "about 1 month ago", you are probably 2 or 3 versions behind the latest Flash 16 version.
    Note that Adobe has its own internal updater, which by default is set to check for an update ''(only)'' once a month. Adobe does their own updates for their software, Firefox just tells you when your version is on the blocklist due to known security issues with the version you have installed. It is up to you to do a manual update between the monthly update check that Flash does for your installation.
    The "solution" is for Adobe to fix their stuff. Like maybe an updater that checks for updates more frequently, and not hide their updater user preferences where users don't know where they are and be able to set it for more a frequent update check cycle. ''[Firefox "checks" every time Firefox is launched, as does Chrome]''. Or fix the code in Flash that leads to it being so exploitable, and not have to do 5 separate security fixes in as little as a 2 month time span. ''Flash went almost 2 years prior to Dec 2014 without Mozilla needing to blocklist it, and when Mozilla did first blocklist it in Dec it was / is a soft-block where the user can still use it by using Allow per Flash presentation.''
    My advice is to grab the Extended Support Release - Flash Player 13.0.0.269 from here - https://www.adobe.com/products/flashplayer/distribution3.html - over 3/4 down that page. IMO the best version for WinXP users, as the later versions have features for Vista and later versions of Windows - won't work on WinXP or may cause problems on WinXP.

  • How i can save report updation on report builder 10g

    how i can save report updating on report builder 10g
    please help me
    any help will be appreciated

    See anwer in :
    why no body try to help me its possible no body has idea about how to save

  • Unable to upload the updated/modified Report template (rtf file) in siebel

    Hi,
    I am unable to upload the updated/modified Report template (rtf file) if already exists in the local database.
    Initially I have uploaded a rtf template, generated xliff, registered it and can view the report from the registered view. Later I have made few changes to the rtf template, in the reports template view, I have uploaded this. When i run the report in the registered view, I am able to see the earlier version and it doesnt show me the updated changes.
    I am using 8.1.1.3 siebel and BIP 10.1.3.3.1 on local.
    Looking at the metalink found "How To Upload Modified RTF Template Files In The Siebel Application For BI Publisher Reporting [ID 1136418.1]" which is related to server but I am working on local database
    Please find attached the template, xml file. can you please look into this and update me ASAP
    Thanks,
    RV

    Hi,
    Not able to find Report - Standard templates or Report - Custom templates view in Administration - BIP reports in Siebel 8.1.1.3?
    We have applied 8.1.1.3 patch on 8.1.1.0
    below are the steps followed
    Reports are not generated after 8.1.1.3 patch installtion.
    we have also followed to below steps mentioned for this issue in oracle support.
    "In order to resolve this behavior it is necessary to ensure that the 8.1.1.3 FixPack has been applied to the Siebel Tools installation. This will provide an additional .zip file in the REPPATCH folder of the Siebel Tools installation. Once this has been done please then follow the configuration steps as documented :
    change sysprefix to X_ before sif import and chage back to SBL_ after sif import.
    1) Import the sif files from Siebel\8.1\Tools_1\REPPATCH\12-1VMBCSV.zip
    2) Import the 4 SIF files in the following order:
    S_XMLP_REP_TMPL_02112010.sif
    SBL_XMLP_REPORT_SELECTION_FLG.sif
    Report Template BC.sif
    Report Template Registration Applet.sif
    3)Apply the DDL for table S_XMLP_REP_TMPL and compile repository
    Once the above steps have been completed the Selected Record flag will appear in the Report Template Registration views."
    we still not able to generated able to generate reports even after following above steps.
    Thanks
    Sean

  • Option for error handling for DTP, ' no updata, no reporting" and "deactiva

    Hello Gurus,
         option for error handling for DTP, ' no updata, no reporting" and "deactivated" , please give some explanation and instance for them?
    Many Thanks,

    On the Update tab page, specify how you want the system to respond to data records with errors:
                                a.      No update, no reporting (default)
    If errors occur, the system terminates the update of the entire data package. The request is not released for reporting. However, the system continues to check the records.
                                b.      Update valid records, no reporting (request red)
    This option allows you to update valid data. This data is only released for reporting after the administrator checks the incorrect records that have not been updated and manually releases the request by setting the overall status on the Status tab page in the monitor (QM action).
                                c.      Update valid records, reporting possible
    Valid records can be reported immediately. Automatic follow-up actions, such as adjusting the aggregates, are also carried out.
    http://help.sap.com/saphelp_smehp1/helpdata/en/42/fbd598481e1a61e10000000a422035/content.htm
    Hope it helps.
    rgds, Ghuru

  • How to update Ztable from Excel file and how to check conditions ,

    HI this uday,
    pls help me how can i update Ztable from Excel file and how to check conditions .
    regards
    uday
    Moderator message: please (re)search yourself before asking.
    Edited by: Thomas Zloch on Jul 13, 2010 12:00 PM

    Hi
    Use Fm : ALSM_EXCEL_TO_INTERNAL_TABLE.
    L_INTERN : internal table with your fields .
    make sure that the fields in the Excel should be formatted (as numeric , characher ) depending upon the data types .
    LOOP AT L_INTERN INTO WA_LINTERN .
            MOVE WA_LINTERN-COL TO L_INDEX.
            ASSIGN COMPONENT  L_INDEX OF STRUCTURE WA_INREC TO <FS> .
            IF SY-SUBRC = 0.
              MOVE WA_LINTERN-VALUE TO <FS>.
            ENDIF.
            AT END OF  ROW .                                    "#EC *
              APPEND WA_INREC TO IT_DATA.  "
              CLEAR WA_INREC.
            ENDAT.
         ENDLOOP.
    Regards
    Swapnil

  • Why won't My Verizon update usage reports?

    Why won't My Verizon update usage reports?

        Hi piddle1976 - We always want to keep you informed! How long has it been since the reports updated? When is your normal bill cycle?
    Thank you,
    YaleK_VZW
    Follow us on Twitter @VZWsupport

  • Update ztable from database table directly

    hi all,
    can u tell me the possible ways to update a ztable from database table directly.
    i mean is there anyway to update ztable whenever entry is created in database table .
    i dont want to update using insert,modify statements.
    points will be rewarded to all hlpful answers.

    A slightly dirty solution:
    Use SAP functions for reading from CDHEADER and CDPOS tables [with enough filters such that you extract minimum records possible] to read changes to MARA table fields since last run of your program. Use this information to update your ZTABLE. I would recommend having a table maintainance generator on ZTABLE. The actual update should be by a BDC by calling transaction SM30 for ZTABLE maintainance. Now the program may be set up as a batch job running 1ce an hour. You get updates to the extent of 1 hour latency.
    Alternatively, you may look if an opportunistic BADI / user Exit is there alongside MM01/02 transactions - assuming the latter are the only ones updating MARA. In this BADI you may write the code to update ZTABLE- again, look to do it by BDC call transaction sm30 to maintain ZTable. To lighten up the code -load on BADI you may simply raise a custom event and move on. You will configure a job that runs your program when that particular event is raised. This will need the 'burden' of figuring out the changes, though.
    An elegant way would be to fire a MATMAS fIDOC for every change to Material, capture that and turn back the changes to ZTABLE. This will facilitate the delta load.

  • Updating Ztable

    Hi,
    Iam trying to insert records into a Ztable from an internal table.
    Iam using the below piece of code to update Ztable.
      data: it_finalvals TYPE STANDARD TABLE OF zfirst_invoice.
    IF not it_finalvals[] is INITIAL.
        modify zfirst_invoice FROM table it_finalvals.
        commit work.
      ENDIF.
    But the Ztable is not getting updated.Pls help me to solve this problem.
    Thanks in advance.
    -Sravanthi.

    Hi !
    IF not it_finalvals[] is INITIAL.
    modify zfirst_invoice FROM table it_finalvals.
    IF sy-subrc = 0.
    commit work.
    ENDIF.
    ENDIF.
    What is the value of sy-dbcnt and sy-subrc ?
    Probably there is no new data in your it_finalvals and thats why u dont see a chnage..
    Confirm if there is atleast 1 line with changed data or a completely new line.
    Revert with results.

  • Failure Updating CUIC Reports to 9.1.2

    UCCE
    CUIC v 9.1.1
    When updating the CUIC report files to 9.1.2, we are getting an error during the import.
    [product_name=CUIC][subsystem_exception_info=][tid=http-8444-35][version_number=CUIC_9_0_1_0_0_0_23]: Information associated with the following logged exception
    0000024138: 10.116.254.123: Apr 23 2014 10:40:55.624 -0400: %CCBU___________CUIC-3-ERROR:  Failed to import report '[CUIC.Template.Agent_Skill_Group_Historical_All_Fields]' : com.cisco.ccbu.cuic.CuicException: A ValueList with this name already exists. Cannot rename new STOCK Valuelist: Skill Groups <- ImportManagerImpl.java:377 [com.cisco.ccbu.cuic.businesslogic.exportimport.ImportManagerImpl.importReportsFromXML]
    0000003618: 10.116.254.123: Apr 23 2014 10:40:57.349 -0400: %CCBU_CUIC_MODEL_OBJECTS-3-EXCEPTION: %[EXCEPTION=com.cisco.ccbu.cuic.CuicException: Following 3 reports/categories failed to import.
    Failed Reports : [CUIC.Template.Peripheral_Skill_Group_Historical_All_Fields], [Skill_Group_Abandon_Answer_DistH], [CUIC.Template.Agent_Skill_Group_Historical_All_Fields]
    ]: There was an exception that occurred.
    0000003619: 10.116.254.123: Apr 23 2014 10:40:57.350 -0400: %CCBU_CUIC_MODEL_OBJECTS-3-EXCEPTION_INFO: %[build_date=Apr 25, 2012 6:08 AM][build_type=rel][exception=com.cisco.ccbu.cuic.CuicException: Following 3 reports/categories failed to import.
    Failed Reports : [CUIC.Template.Peripheral_Skill_Group_Historical_All_Fields], [Skill_Group_Abandon_Answer_DistH], [CUIC.Template.Agent_Skill_Group_Historical_All_Fields]
    I have checked the Administrators Group permissions and both "Execute" and "Write" are enabled.  This error has occurred on both the Historical and Real Time report files. 
    Any assistance would be appreciated!

    Rossporubski,
    Sorry if I wasn't clear in my original post.  This is on UCCE CUIC not CCX Historical Reporting. When updating the report template files to 9.1.2 from 9.1, the posted error occurs while trying to rename the Valuelist.  However other report templates installed properly.

  • Displaying connect by indent in updatable sql report

    We have several normal reports that indent the identifying number field in connect by order. We also would like to do this in updatable sql reports, but they reject our attempts to use    for the indent characters in our rpad statement.

    Please see the other message sent with this. Here is the entire sql with amperands and ; removed fromt he nbsp characters.
    SELECT rpad(' ', 2 * (LEVEL - 1) + 1, 'nbspnbsp') || pr2.projectno, pr2.NAME,
    pr2.person_months, pr2.percent_staffed,pr2.test_months, pr2.testpercent_staffed
    FROM projects_view pr2
    START WITH pr2.projectno IN
    (Select pr.projectno from projects_view pr
    where pr.num_children>0 AND
    pr.projectno like NVL(:p205_projectno,'%') and
    pr.name like NVL(:p205_name,'%') and
    pr.releaseno LIKE NVL(:p205_release,'%') AND
    pr.delete_flag='N')
    CONNECT BY pr2.parent_projectno = PRIOR pr2.projectno

  • Update apex report using checkboxes

    I have searched the forums for some answers but couldn't find too much for my particular problem, even though my problem may seem somewhat basic. So I have a classic report that has some information. Each row of information is lead by a checkbox. The query for the report is:
    Select first_name, last_name, title, person_id
    From Persons
    where name = 'Mike'
    The person_id column is displayed as a simple checkbox which I have defaulted to be checked (checked="checked" in the element attributes section of the actual report column). I am looking to update this report. When a user see's the report, they should be able to uncheck some of the check boxes at the beginning of each row. Once they are done unchecking the selected rows, they should be able to click a 'Submit' button that takes them to the updated report with the rows that they left checked. It doesn't neccessarily have to be a new page, more so, like a page refresh. I'm not sure how to accomplish this. Any help would be greatly appreciated. Thanks in advance.

    Moderator Action:
    Post was originally in the Java/Swing forum, for some unknown reason.
    It has now been relocated to the ApEx forum, where the question might be on-topic.

  • Not updating ztable

    Hi experts,
    Please help me.
    following is my code to update ZTABLE.
    LOOP AT t_coil INTO w_coil.
         SELECT SINGLE * FROM zstock
                         INTO w_stock
                         WHERE coilno = w_coil-coilno
                         AND slitid = w_coil-slitid.
         IF sy-subrc = 0.
           SELECT SINGLE * INTO w_lst FROM zcoilst WHERE coilno = w_coil-coilno
                          AND slitid = w_coil-slitid.
           IF w_lst-currpos <> '91'.
             UPDATE zcoilst SET currpos = '91'
                            WHERE coilno = w_coil-coilno
                            AND slitid = w_coil-slitid
                            and TIMES = w_lst-TIMES.
           ENDIF.
         ENDIF.
       ENDLOOP.
    its working in Development but not in Quality.
    help me.
    thanks in advance
    laxman.

    Hi Laxman,
    1) Please use select queries outside loop instead you can use Read statements inside loop.
    2) Instead of using update statement in loop use update outside using internal table.
    3) If code is working perfectly in DEV and not in QAT  then try and debug the code you will surely
       get the answer.
    thanks,
    vidyasagar

  • Programati​cally update the Report Option dialog in NI Test Stand 4.2.1

    Hello,
    I would like to know, what is the procedure to modify Customise the Report Option dialog window with custom default value before displaying the window to user.
    We are writing our own process model to customise report options, Database option and User Management module of Test Stand. I am unable to update the Dialog window with modified settings.
    Please help me.
    I followed the instructions mentioned in link http://forums.ni.com/t5/NI-TestStand/Programmatica​lly-change-station-option-in-TestStand-2-0-1/td-p/​...
    But this is customization for the single sequence and also this is not updating the Report Options Dialog window. Please find the screenshot which i want to customize.
    Solved!
    Go to Solution.
    Attachments:
    ReportOptionWindow.JPG ‏64 KB

    Hi
    The screenshoot you have posted is done my CVI- modelsupport2.dll with funcion DisplayReportOptionsDialogEx.
    in side is code there is ReadReportOptionDefaultsEx (this function will be also used in model sequence "Get Report Options")
    it will read "TestStandModelReportOptions.ini" .
    So there were 2 solutions.
    1. ) Changing ReadReportOptionDefaultsEx (Not recommend because changing stuff from NI is bad, by chaninging you are in charge off)
    2.) Just change the ini File for your needs.
    Hope this helps
    Juergen
    =s=i=g=n=a=t=u=r=e= Click on the Star and see what happens :-) =s=i=g=n=a=t=u=r=e=

  • Update control report did not appear

    Dear Experts/Gurus,
    I am confusing after upgrade database version 2004A SP 00 PL 41 to SBO 2005A SP 01 PL 29, the update control report did not appear but when I upgrade database SBO 2004A SP 00 from PL 20 to PL 41, it appears after logon. Why could it be happened ? I appreciate your answer. TIA
    Rgds,
    Steve
    "ratify kyoto protocol"

    Steve,
    Not sure why that may happen.  You may want to enter a message with SAP Technical Support on this issue as you may get a quicker response as this forum is for questions related to the Business One SDK.
    Eddy

Maybe you are looking for

  • Expression Issue - Photo Slideshow

    Dear forum, I need some advice on expression settings in After Effects. The project I am working on is a slideshow with 300 photographs. They move from left to right (panning horizontal while maintaining their vertical position) within 150 seconds. A

  • Epson 2450 Scanner no longer available as an import into Photoshop

    Hello, I am having a problem with my Epson 2450 scanner importing into Photoshop. Last week with thoughts of upgrading, I purchased an Epson V700. I installed the scanner but found it not to my liking and returned it. Yesterday I downloaded and ran t

  • Example for LVUserEvent

    Hi, I am looking for examples for using LVUserEvent. In found this: http://zone.ni.com/devzone/cda/epd/p/id/1480 but the zip-archive is not including any vi, only c-code and the dll, so I have difficulties to understand how it works. I am looking for

  • IPOD is out of whack :(

    I turned on my IPOD last nite and all it shows is Accessorize Test Please plug FW LCD ID : 1 FWPWR : ) I cant turn it off or anything. Anyone knows what is wrong??? Thanks Chris

  • System to consider only regular vendors in rating

    Dear Gurus, During vendor rating at present system is considering all vendors who were not supplied for entire quarter(say).ie, system now showing the vendors who supplied one time, un supplied vendors. but the requirement is system has to consider o