BSP data locking

I have some table data that I want to update and I want to LOCK it. The standard enqueue/ dequeue method doesn't work across different user sessions in a BSP environment.
Has anyone else solved this issue? Is there a 'standard approach'? or is it a case of build your own locking table?
regards and thanks in advance,
Nigel

Hi,
you mean, no one else may update it at the same time ?? or are you the only one to update it ?? This is a difficult case and you must think how you create it.
Is there any representation of the table in BSP ?? If so, then create a subroutine where you save in a variable the user name of the first one to call it and erase that variable when leaving the page. If some one else calls that page, he won´t be able to work with it in case there´s a value in your variable.
For the second option you can work with authorizations for calling transaction SE16:
AUTHORITY-CHECK OBJECT object
    ID name1  FIELD f1
    ID name2  FIELD f2
    ID name10 FIELD f10.

Similar Messages

  • Some problem of download BSP data into excel using  cl_bsp_utility= download

    Hello Experts,
    I have read the blog of thomas.jung for download bsp data into excel, and it's working correct, and after some try and error, now I can download the excel with multi sheets.It's all cool except one thing.....when I add a button on the standard screen of the supplier qualification of the slc to download the excel file, after the popinp up screen, the standard screen can't do any operation at all......there are no any error message and the downloaded file is all correct .
    Does any one know what can I do?

    any ideas?
    By the way, after some research, maybe the issue was caused by the setup of the button, but I don't know how to fix it...0rz
    the standard code for buttton is
    lv_id = mv_id && '>display'.
    lo_edit_display_button = cl_thtmlb_button=>factory( id       = lv_id
                                                       text     = lv_button_text
                                                   tooltip  = lv_button_text
                                                   enabled  = 'TRUE'
                                                  onclick  = lv_button_action ).
    WHILE io_page_context->element_process( element = lo_edit_display_button ) = if_bsp_element=>co_element_continue.
    ENDWHILE.
    so I copy it and modify like this:
    lv_id = mv_id && '>download'.
        lo_download_excel_button = cl_thtmlb_button=>factory( id       = lv_id
                                                            text     = w_text
                                                        tooltip  = w_text
                                                        enabled  = 'TRUE'
        onclick  = /srmsm/if_ql_ext_ui_c=>ZC_ACTION_DOWNLOAD_EXCEL
    WHILE io_page_context->element_process( element = lo_download_excel_button ) = if_bsp_element=>co_element_continue.
    ENDWHILE.

  • BSP Data Entry Application in a SAP BW System

    Would it be unwise to develop a BSP data entry application within a BW system?
    The application's purpose in life is to collect data for reporting in BW.
    The application would store its data in transactional ODS tables.  From there, the data would be extracted and loaded into the InfoCube for analysis and reporting.
    Your words of wisdom would be appreciated.
    Regards,
    Shawn Searcy

    anniee ,
    This is pretty easy , I have done this for my implementation.
    Data will be entered from a Web Application back into BW using a BSP.
    but this post already has the status as answered ..  so a solution has been found ?
    or like durai athavan raja has asked .. we could have it as a separate post ... ( then you could give me more points!!!;-) )
    Arun
    P.S I have done this being a newbie to ABAP and BSP .. so I could give you my code and the experts here could help me in making it better. It works for the moment and no problkems as such...!!!

  • Data locks in BPC

    Hi,
    In BPS, when user A is modifying a dataset, user B at the same time can't modify the same dataset because of the data locks.
    I wonder how does it work in BPC. In script logic when you add a particular value, say company 1000, in the dataset using XDIM_MEMBERSET instruction, does it mean that now company 1000 is locked and can't be modifed by another user at the same time?
    Thanks, Rahul

    Hi Rahul,
    There is no lock when users are editing data in BPC. Two users could edit the same data, so the second user could overwrite the data of the first one.
    To avoid this situations, you can.
    - Define security accordingly (only one user can write to a particular entity)
    - Define Business Process Flows (so that each user is working only on his data range)
    In the end, this is more a process issue, if two users are responsible to plan the same figures
    Regards,
    Marcel

  • Why BC4J PS_TXN table , sometime may occur data  lock situation ?

    My appliation be develop in Jdev 10.1.2 with BC4J/JSP solution, but in production environment sometime when the application user request is heavy will occur the PS_TXN data lock situation and caused the application be hang and no any other user can access the application, so what situation wrong or event happen may caused the PS_TXN lock issue ? who have meet the situation and have the good idea to avoid the issue ?

    Hi Nies......
    If you want to Import Libraries to your target client then you need BASIS Consultant..........
    For any report writer report we need a library.
    Go to GR23 & specify the library name 1VK & press 'Enter'.
    If it doesn't display......
    Please check with your FI consultant as they are the users of the report writer reports and they only create the same.
    there may be chance that this library has been deleted.
    Is your system newly upgraded?
    Solution..........
    Library 1VK is SAP standard and exists in table T801K in client 000.
    1. Create transport of table with library and transport to target client.
    2. Or in target client, use transaction OKD3 to import the library 1VK from 000.
    3. You can also use transaction GR29 to import individual libraries.
    Thanks
    Dhruv Malhotra

  • How to avoid: Material data locked by another user

    Hi,
    'Material data locked by another user'
    We want to avoid this kind of situation  so that two different users can do the transactions on same material at same time.
    Regards,

    hi,
    As per SAP std. configuration its not possible...And if we the reason...then it good for a user...
    so, that once the user 1's work is not done fully user 2 can't work untill then and by this we avoid making of extra GR/IR or any of the duplicate documents...
    Regards
    Priyanka.P

  • USMM :- data locked for transfer

    Hi All,
    I am doing system measurement using USMM.
    But I am getting error "Measurement Data locked for Transfer"
    I tried note 412391.
    But its not working acc. to the note
    I m getting a to do task in transaction SDCCN for early watch alert
    I m not able to delete the table entries as mentioned in the note
    I m using release 640
    Kindly help me in this problem
    Thanks
    Tajinder

    closing the thread

  • Mac Book Pro Wifi Data Locked up/freezes.

    Hello, i have had this problem now for about 3 months.  I have tried to search for the issue but i may be missing some key terms so if this is a known topic or somone can provide a link to a solution i would love it.
    So i primarly use my MBP on wifi in the home, i have an ipad on wifi, pc laptop on wifi and a hardwired TV.  Sometimes while on the computer all of a sudden i will stop getting data from the internet, usualy i notice because a webpage loads about half way or does not load at all then i get the thinking wheel in the web browser.  If i turn off the wifi card, wait about 15 seconds then turn it back on it always comes right back on and away i go.
    For some details  It is a Mac Book Pro 8,2 16gig ram, OS10.6.8  all security and software is up to date.  I recently put a new hard drive in the machine and use the migration assistant to transfer everything across from the old one but with a fresh install of the OS.  The problem existed before and after the HDD swap.  I use Chrome as the primary browser, but it is not application spesfic, mail and safari both loose the network data as well.  I do not have a lot of large downloads, 90% of my network use is e-mail, and web no bit torrents or streaming on this computer.  Finaly to see if it was the router while the laptop is locked up the other devices on wifi and hard lined all still work fine.  Also according to the laptop i still have 100% wireless strength and connection, i dont have any other wifi networks so i can not try to switch to another one, the only fix i have found is to click "turn airport off" wait a second, then back on.  Also time does not seem to be a part of it, i can have the machine running all day for several days no issues, then it goes down, or i just open it up and in an hr it locks.
    To me i hate to hear that it is a bad network card in the computer, but if anyone knows if there is maybe a setting or somthing i can reset on the network card that may be setting me up on a "timed lease" of my ip address, thanks for the help.

    Welcome to Apple Discussions
    Boot from your original install DVD and run Repair Disc and Repair Permissions, this might then allow you to Boot as normal and have all your data intact.
    If not then you need to re-install the OS from that same DVD but select 'Archive Install' and it will preserve your User data and Applications.

  • BI-IP To track the planning changes after Data Locking

    Hi All,
    Need your help to design solution for one critical user requirement in IP.
    We all know that in CC Planning, every month after certain date we lock the planning tool and freeze the data. But on exceptional basis, we might require to unlock planning tool to allow users to do some changes in planning data.
    User wants to track these changes and report it out. Is there any standard functionality that SAP-IP has provided to track these kind of changes? If not what is the best way to achieve this?
    Appreciate any input regarding this ! Thanks a lot!
    Som

    Hi,
    You need to have additional characteristics for User & Date in your RTP to record who changed when and what plan record.
    Then you can create a characteristic relationship of type 'Exit Class' to derive User Id(last changed by) and the date(last modified).
    Itu2019s not necessary to include User-ID and Date in any of the aggregation levels, but the Source Characteristic(Company code may be in your case) based on which the values are derived for User-ID & Date, must be present in each aggregation level.
    Then create a custom class say ZCL_LOC_CR_LINE_ITEM by taking class CL_RSPLS_CR_EXIT_BASE  as super class and then redefine the method DERIVE of interface IF_RSPLS_CR_METHODS in your class.
    You can write following code in your method DERIVE:
    CLEAR e_t_mesg.
    FIELD-SYMBOLS: <l_chavl> TYPE ANY.
    ASSIGN COMPONENT '/BIC/ZUSERID' OF STRUCTURE c_s_chas TO <l_chavl>.
      <l_chavl> = sy-uname.
    ASSIGN COMPONENT '0DATE' OF STRUCTURE c_s_chas TO <l_chavl>.
      <l_chavl> = sy-datlo.
    This will solve your purpose.
    Regards,
    Deepti

  • Material valuation data lock causing failure in PGI

    Greetings experts,
    I am running into an issue where a material valuation lock is causing deliveries to fail goods issue when PGI is triggered from the shipment. These shipments contain many deliveries and are sometimes processed in mass (VT12). This is causing issues since the operator is not immediately aware an error occurred as the shipment completes normally and all attached deliveries not containing the affected material are posted. The lock appears to be originating from MIRO during AP invoice creation.  Late exclusive block (OMJI) has been activated and set to 30 seconds however this has not eliminated the issue. This supports the MIRO theory since any other posting conflict (other PGIs) should have completed and released the lock within the 30 seconds.
    Has anyone ever run into this issue before or found a work around? Custom logic to create a lock record for every material on the delivery seems excessive but may be the only way to notify the users of VT02 and MIRO that the corresponding material valuation data is already locked.
    Thanks,
    Dom

    Hi Paresh,
    Are you the person - who worked with for in Heineken? How do you do? No update from you..
    We can not change the values in the material master because of that issue..
    I have checked for the OSS notes.. but the issue had reassigned to FI team - they had raised it to SAP.
    If we create new material, there won't be a problem at all..
    Paresh - really we are all missing you..
    waiting for your reply Paresh..
    Thanks,
    Venkatesh.S.P
    Edited by: venkatesh paulraj on Mar 17, 2009 1:00 PM
    Edited by: venkatesh paulraj on Mar 17, 2009 1:01 PM

  • Download BSP data into Excel

    Hello all,
    I want create a BSP page, with 2 radio buttons,
    If 1st selected I want read 2 tables and display data other BSP page.
    If 2nd one selected I want download 2 tables data into excel file.
    Any one can help how to download data into excel file and display data into other bsp page.
    Thanks,
    Regards,
    Venkat

    For downloading to a spread sheet:
    Convert your fetched data to a string and convert to XSTRING format and finally download to a spread sheet.
    Sample: I selected data from vbak say vbeln and kunnr in an internal table.
    data : v_string type string, v_xstring type xstring.
    <header portion - to have the heading in the spread sheet>
    concatenate 'Order Number' 'Customer'
       cl_abap_char_utilities=>cr_lf into v_string
       separated by cl_abap_char_utilities=>horizontal_tab.
    <Line item entries from my internal table say i_vbak>
    loop at i_vbak into wa_vbak.
      concatenate v_string wa_vbak-vbeln wa_vbak-kunnr
       cl_abap_char_utilities=>cr_lf into v_string
       separated by cl_abap_char_utilities=>horizontal_tab.
    endloop.
    All the data is now in string format. Calling the FM to convert to XSTRING
      call function 'SCMS_STRING_TO_XSTRING'
        exporting
          text     = v_string
          mimetype = 'APPLICATION/MSEXCEL; charset=utf-16le' (probably create this in a variable and call here)
        importing
          buffer   = v_xstring.
    concatenate cl_abap_char_utilities=>byte_order_mark_little v_xstring into v_xstring in byte mode.
    Now we have it in XSTRING format - this can be downloaded to a spread sheet.
    v_appl = 'APPLICATION/MSEXCEL; charset=utf-16le'.
    runtime->server->response->set_header_field( name = 'content-type' value = v_appl ).
    Eliminating the cache problems when loading Excel Format
    runtime->server->response->delete_header_field( name = if_http_header_fields=>cache_control ).
    runtime->server->response->delete_header_field( name = if_http_header_fields=>expires ).
    runtime->server->response->delete_header_field( name = if_http_header_fields=>pragma ).
    Start excel in a separate window
    runtime->server->response->set_header_field( name = 'content-disposition' value = 'attachment; filename=Order_list.xls' ).
    Displaying the data in excel.
    v_len = xstrlen( v_xstring ).
    runtime->server->response->set_data( data = v_xstring length = v_len ).
    navigation->response_complete( ).
    All the above code can be written in onInputprocessing event (probably your loop/selection can be in a method of your appl class).
    I believe you are triggering the event based on a click (say radio button or a button after selecting the radiobutton).
    In the other screen you can use tableview to display your data - probably two sub screens(page fragment) to display each table.
    Regds,
    Krish

  • BSP date type input datepicker blanking out

    When I introduced tabstrips to my application(main controller view) and called the subcontroller as item of each tab the datepicker dropdown for the date fields shows up as a blank box .I have read through such similar posting but the suggestion (e.g change design to 2002+2003 ) have not worked .I would appreciate anyone inputs from anybody.
    Thanks,
    Manoj
    e.g
    <htmlb:inputField id        = "im_date3"
                      value     = "<%= test %>"
                            design  = "STANDARD"
                            type      = "DATE"
                             showHelp  = "True"
                             size = "10" />

    please post this in BSP forum for better response.
    Business Server Pages (BSP)
    check out OSS note no. 616900
    Regards
    Raja
    Message was edited by: Durairaj Athavan Raja

  • Group data locked error for MM01 using parallel processing

    Hello gurus,
                       I am using Call txn method (MM01) Parallel Processing method ( around 9 threads ). The Materials are getting locked around 10 percent sometimes.
    This is happening randomly ..one day i dont have any locking errors ..next day i have ...Any ideas why this could be..any prereq i need to check before executing the parallel processing..
    Thank you in advance..
    sasidhar p

    Hi Sasidhar
    I guess you are either extending the Sales Data or MRP Data. Just make sure that you are processing these transactions in a linear form for a single material. We can use parallel processing for different materials but for a single material if we go for parallel processing we can definetely expect the Lock Objects error.
    Kind Regards
    Eswar

  • HELP! - MONTHS OF DATA LOCKED IN BBB.file

    I pray there is a simple answer for this problem, because I'm ready to throw my Playbook under a truck!
    Two days ago, I sync'd my Blackberry Playbook with my PC.  The sync process created a bbb. archive file with 9G of pictures and videos from my Playbook.  During that same process, all the videos and pictures were automatically removed from my Playbook.  The files are now locked in a bbb. file on my computer, which I can not open, access, read or restore to my Playbook.  Months of photos, data, video all lost?!?  WTF!!!
    I've already tried the restore option under the Blackberry Desktop Software, and it will not restore the photos and videos to the Playbook.
    Is there some way to open a bbb. file?
    Is there some way to restore the photos and videos to my Playbook?
    Is there some way to access the photos and videos so that I can use, edit or re-save them on my PC?
    Any assistance would be most appreciated!
    John
    Hamilton, ON

    There are a couple of options for extracting and viewing data from a the backup files.
    1. The IPD Parse macro is designed to read a Blackberry IPD file and create reports in MSWord or MSExcel. It is free, and you can find out more here: https://sites.google.com/site/ipdparse/home
    2. Another options is MagicBerry from MenaStep... which extract from a backup IPD or BBB file, split IPD files, etc. http://menastep.com/pages/magicberry.php
    3. Another IPD and BBB file utility is BlackBerry Backup Extractor, and is available for PC and Mac, and can be found here: http://www.blackberryconverter.com/ There is a free and paid version.
    I'm not sure which of those might work for you.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Data lock even after commit work and wait

    Hi Experts,
    Data is still locked even after commit work and wait step has run, which made me very confusing.
    The following are the details:
    These steps are in a FOP.
    Step1: Change Move-in Date of a move-in document in background after get the new move-date from user.
    Step2: Run BAPI_TRANSACTION_COMMIT and pass the wait parameter.
    Step3: Bring move-in document transaction to the user for other information changes.
               After the user confirms the changes and presses SAVE button, error message shows that the move-in document is still locked. But no other transaction is opened for the specified move-doc changing.
    Does any1 have any idea on this? How can I solve this issue?
    Thanks in advance and points will be rewarded.
    Vincent

    Hi,
    Normally every BAPI will work on Update task so that the data will be updated once the commit work is done. For the commit work, we will normally call the bapi function module - BAPI_TRANSACTION_COMMIT. It should work.
    In your case, just try the below option:
    Please call the bapi - BAPI_ACC_DOCUMENT_POST & BAPI_TRANSACTION_COMMIT in a seperate function module and call this function module in your program (just pass the import / export / table parameters accordingly).
    For the information, I had once a similar type of issue and it got solved once I did like the above.
    Regards,
    Selva K.

Maybe you are looking for

  • Can i receive both iCloud emails on one device

    When I entered the APPLE world I had NO CLUE where to begin so I screwed up! I wound up with two similar id's while trying converting a gmail to iCloud so now i have 2 apple id's there and 2 iCloud emails. Then spouse n I created a new combined apple

  • How do I download my contact photos to my Mac?

    I cannot seem to be able to save my contact photos to my mac. It does not appear on the Camera Roll. The photos were taken as I added new contacts and now I would like to save the whole picture. The contact sync with Address Book only gives a small t

  • Crystal Report JSP Integration

    Where do I need to place the rpt file to embed it using JSP? Do I need a separate Report server to be installed in my machine? I tried by placing the report in the webapps folder. But it does not work. Kindly help me.

  • Installation order of Lion and Ofc for Mac 2011

    Getting ready to install lion 10.7.  I also need to upgrade my MS Ofc suite to 2011.  Which should I install first?, Getting ready to install lion 10.7.  I also need to upgrade my MS Ofc suite to 2011.  Which should I install first?

  • Desktop Intelligence unable to connect to Oracle

    Dear Experts, I have installed BO XI 3.1 SP3 on Windows 7 client laptop. I have installed it with default SQL and Tomcat. I can successfully login to CMC, InfoView and Desktop Intelligence with Admin usernamae with no password. Now I wanted to know h