Data saved in one serail no.

Hi.
am uploading data to data base using upload FM. and after completing upload program will generate a serial no automatically program is working fine. my problem is when 2 user using same program to upload data to same database at the same time, data are stored in single same serial no. how to control this . i want to hold one user till another complete the upload.
please help me .
Regards
prajwal.

if you are restricting the user for not running simultaneously in more than one session then just add this code at the begining of your code...
DATA: PROGRAM LIKE INDX-SRTFD.
  PROGRAM = SY-REPID.
CALL FUNCTION 'ENQUEUE_ESINDX'
EXPORTING
*   MODE_INDX            = 'E'
*   MANDT                = SY-MANDT
*   RELID                =
   SRTFD                =  program
   SRTF2                =  0
*   X_RELID              = ' '
*   X_SRTFD              = ' '
*   X_SRTF2              = ' '
*   _SCOPE               = '2'
*   _WAIT                = ' '
*   _COLLECT             = ' '
EXCEPTIONS
   FOREIGN_LOCK         = 1
   SYSTEM_FAILURE       = 2
   OTHERS               = 3
IF SY-SUBRC <> 0.
message 'Program is already running' type 'E'.
exit.
ENDIF.
here the second user cant run the program if the program is already in process by frst user...
regards
shiba dutta

Similar Messages

  • I have 2 apple id's with different apps and data saved under each.  It's very annoying so now I want to create a new id with my primary email address I use now.  If I do that is there any way to transfer all my saved apps and app data like game saves etc?

    I have 2 apple id's with different apps and data saved under each.  It's very annoying so now I want to create a new id with my primary email address I use now.  If I do that is there any way to transfer all my saved apps and app data like game saves etc so I don't lose all of that information and can easily switch to a singular apple id?

    Apple does not transfer content bought with one Apple ID to another Apple ID. Apple will not merge two Apple IDs.
    If most of your content was bought with the Yahoo! Apple ID but you now want the Gmail address for your Apple ID, the trick will be to change the address used for the Yahoo ID with the Gmail address. However, to do that you must first free the Gmail address from that other Apple ID. Use the instructions from Apple to substitute another address that is not used as an Apple ID for your Gmail address in the Apple ID with the Gmail address. Then, when the Gmail address is no longer used in an Apple ID, you can use the same instructions to substitute the Gmail address for the Yahoo address in the Apple ID with the Yahoo address.
    Changing the email address you use for your Apple ID -
    http://support.apple.com/kb/HT5621

  • How do i save a calender i have created with the photo and the dates saved on separate pages?

    how do i save a calender i have created in photoshop with the photo and the dates saved as two separate pages?  when i save as pdf or jpeg they are authomatically saving 1 pg with the photo and dates on one page.  This is causing problems when i print.

    Hi there, in case your printer cannot print very large, you can also crop down two versions and print them as separate documents.
    1) Create a guide where you would like to split the pages by clicking on the ruler (hit command R if they are not showing) and dragging to the desired area.
    Creating the guide will make it so you can be precise in the way you split up your page, and so that no part of the image will be repeated or lost.
    2) Select the Crop Tool and fit the crop area to the top half of your calendar, using the guide you've just made to snap to the right spot. Hit return to finalize the crop.
    3) Go to File > Save As. Name the file something like calendar_top and select the desired file format. Hit "Save."
    4) Once you get back to your calendar file, Go to the History panel and select "Drag Guide." This will take you back to the step before you cropped the image.
    5) Repeat the steps as before for the bottom half of the calendar, once again using the guide to help you make your crop area.
    So then you would just print each of the two pages individually. The images will not be contained within one document, but if you have Acrobat you could combine the files.
    I hope this helps!

  • Where is the data saved in the srtucture for a particular tcode

    Where is the data saved in the srtucture for a particular tcode.
    For eg in MM01 there is a field with RMMG1
    where dioes the data get saved from this field as in backend it shows the stucture and the structure can hold data only at runtime,
    Please help me
    Thanks in advance
    chinnu

    Hi,
    The strcuture : RMMG1 holds data at run time only that to it can hold only one record at a time.
    so we use this structure to hold data at run time and then we insert those values into database tables for that program.
    Here you can the values stored and processed in the program in the tables : MARA (for matnr ,mbrsh,mtart..),MARC (for Plant ),MARD( for storage location : lgort )...etc.
    so if you want to fecth some data means first you have to choose right table to fetch information by passing values in the selection screen.
    Regds
    Sivaparvathi
    Please reward points if helpful...

  • DAQ vi to perform digital write and read measurements using 32 bits binary data saved in a file

    Hi
    DAQ vi to perform digital write and read measurements using 32 bits binary data saved in a file
    Two main
    sections:
    1)     
    Perform
    write and read operations to and fro different spread sheet files, such that
    each file have a single row of 32bits different binary data (analogous to 1D
    array) where the left most bit is the MSB. I don’t want to manually enter the
    32 bits binary data, I want the data written or read just by opening a file
    name saves with the intended data.
          2)     
    And
    by using test patterns implemented using the digital pattern generator or  build digital data functions or otherwise, I need to
    ensure that the     
                binary data written to a spreadsheet file or any supported file type
    then through the NI-USB 6509 is same as the data read.
    I’m aware I can’t use the simulated
    device to read data written to any port but if the write part of the vi works I
    ‘m sure the read part will work on the physical device which I’ll buy later.
    My Plan
    of action
    I’ve
    created a basic write/read file task and a write/read DAQ task for NI USB 6509
    and both combine in a while loop to form a progress VI which I’m confuse of how
    to proceed with the implementation.
    My
    greatest problem is to link both together with the correct functions or operators
    such that there are no syntax/execution errors and thus achieve my intended
    result.
    This
    project is one of my many assignments for my master thesis, so please i’ll
    appreciate every help as I’m not really efficient with LabVIEW programming but
    I prefer it because is fun and interesting if I get to know it.
    Currently I’m
    practicing with LabVIEW 8.6/NI DAQmx 8.8 Demo versions and NI USB 6509
    simulated device.
    Please see
    the attached file for my novice progress, thanks in
    advance for the support
    Rgds
    Paul
    Attachments:
    DIO_write_read DAQ from file.vi ‏17 KB

    What does your file look like?  The DAQmx write is expecting a single U32 value, not an array of I64. 
    Message Edited by vt92 on 09-16-2009 02:42 PM
    "There is a God shaped vacuum in the heart of every man which cannot be filled by any created thing, but only by God, the Creator, made known through Jesus." - Blaise Pascal

  • Automatic file naming and data saving

    Hi,
    I am building a program where there will be several I-V scan for each value of temperature. I would like to make the data saving fully automatic. 
    To explain in more deatils:
    I want the program to generate a new file on its own , give a file name depending on the temperature variable , save the data and again go for the next I-V scan and do the same way.
    So, if at a particulat temp say 300K, there are 5 iterations, my program should be such that it generates a new file evrytime say 300K_001(1st iteration), 300K_002,...300K_005(5th iteration) automatically on the hit of "run" button.
    Can some one help me on how to implement such a code.
    Thanks!
    Solved!
    Go to Solution.

    People do things like that all the time.
    Look at the Number to String conversion functions in the String palette and the Build Path function in the File palette.
    You should think about error handling. What happens if you try to create the 300K_001 file and a file with that name already exists? Do you want to over-write the file, change the name to 300K_001_a, or ask the operator for input?
    Lynn

  • Reading data saved on previous version of Labview

    I've recently bit the bullet and upgraded to Labview 8.0 after using Labview 7.0 for a good few years now. I'm currently experiencing problems accessing data saved on the previous version of Labview which I've been working on until the upgrade.
    An example is the waveform files saved on Labview 7.0 which I'm trying to read using Labview 8.0. A dialog box appears when I try to use Labview 8.0 to read the waveforms advising me to convert the files to the new version of Labview which I've duly agreed to. However, it appears that the conversion process has managed to corrupt the waveform files as I am unable to access it on either Labview 8.0 or 7.0.
    I'm including a couple of files to highlight my point, one saved on Labview 7.0 and the other converted to Labview 8.0 by the programme.
    Cheers.
    Attachments:
    Labview 7.0 Waveform1.txt ‏395 KB
    Converted Labview 8.0 Waveform File1.txt ‏1 KB

    Hi
    Have a look at this thread: http://forums.ni.com/ni/board/message?board.id=170&message.id=163651
    There you'll find a workaround regarding the message.
    Thomas
    Using LV8.0
    Don't be afraid to rate a good answer...

  • Where are the responses to questionnaire data saved (EEO)

    Hi,
    where is questionnaire data saved in e-recruitment. I am interested in getting to the responses to the EEO questionnaire. I thought they were stored in HRT5022 but it doesnt look like. Any pointers will be greatly appreciated.
    many thanks in advance
    Andy

    Suresh,
    I have managed to look at these programs and they are displaying what I need. However my requirement is to report an  arange of responses. Which methids do i use to report on questionnaires responses. Are there any standard methods or functions? I have been looking in classes CL_HRRCF* and it looks like is the right place but not sure which ones I should be using.
    Thanks in advance for your help.

  • Where the scheduled (recurring report) related data saved in OBIEE?

    Suppose I scheduled the report for daily for one month at 8.30 pm. in Oracle BI Publisher.
    I want to know at which location this all report recurring related data saved in OBIEE toll.

    hi,,
    It will be store in following tables
    XMLP_SCHED_OUTPUT,XMLP_SCHED_JOB,XMLP_SCHED_SUBSCRIPTION
    DB Instance: Where you configured the details for publisher scheduler (Admin-->Scheduler Configuration)
    thanks,
    saichand.v

  • Only message "data saved" and customices messages

    Hello All
    Is there a possibility in WAD for planning templates to suppress all messages except "Data Saved" and our customized messages from our planning functions? I know there is the "Internal Display" where one can deactivate warnings and information, but this would also include "data saved".
    Is there also a way to not show the messages inside the frame on the top but in an extra popup-window?
    Thanks in advance
    Clemens Paumgartten

    Hi Clemens,
    a good starting point would be to take a look at CL_RSPLFR_WEB_START_SEQUENCE Method EXECUTE. There you see the execution of the planning sequence. This is followed by reading the message log. Hope this helps.
    Matthias Nutt
    SAP Consulting Switzerland

  • I want to restore 300 Gigs of data, saved to Time Machine, on my new iMac 27".  I want my OS on the 256G SSD, but I want all the other data (which can be separated) on the 2TB internal hard drive.  How do I do that?

    I want to restore 300 Gigs of data, saved to Time Machine, on my new iMac 27".  I want my OS on the 256G SSD, but I want all the other data (which can be separated) on the 2TB internal hard drive.  How do I do that?

    The Apple article will transfer everything from one volume to another.  Doing what you want is not simple, unfortunately. 
    See Transferring Home Folders not on a Startup volume, especially scenario #1 in the gray box there.
    That's just recently reworded and revised; please advise if it's not clear or you have problems with it.

  • How to use multiple Spry Data Sets in one page

    I'm using two spry data sets in one page. When I add the first spry data set to my page everything runs OK, When I add the second spry data set to the page the first data set stops working. Does anyone know what the problem is?
    This is how I have my data sets listed.
    var ds1 = new Spry.Data.HTMLDataSet("/accounts/tower/list.php", "list");
    var ds2 = new Spry.Data.HTMLDataSet("/accounts/tower/numvisits.php", "chart");
    Thanks, let me know if you need more information.

    Good News!
    There is nothing wrong with what you have shown.
    Bad news!
    The problem could be in that part that you have not shown.
    Gramps

  • How to send data from 4 different data sources to one ODS

    Hello Gurus,
    There is a transaction called KSB1 in R/3.
    It has data related to cost center , cost element, G/L .
    In BI, i need to transfer the data from these Data sources to one ODS.
    Can any body give me some idea.
    Points will be awarded for any kind of response .
    Thanks .
    Anu

    Hi Rupa..
    In your requirement some data sources (Cost centre, Cost element) are master data sources.
    They are available as info Objects in BI (Content).
    So there is no need to create ODS on these.
    But the general scenario for creating ODS from multiple data sources in case of Transaction documents
    Like :
    PO header, PO line items...
    For this the Pre-requisite is to have common fields between these data sources (eg PONo).
    Hope this gives idea for u....
    Cheers...
    Varma

  • HT201269 Is there a way to download/port the missing data/SMS to one iPhone without overwriting the new SMS on the newer iPhone?

    SMS Transferring/downloading/backup : Is there a way to download/port the missing data/SMS to one iPhone without overwriting the new SMS on the newer iPhone? Here is my dilemma. My iPhone quit working and I couldn’t get it fixed as quickly as I needed to. I bought a used iPhone and started using it normally and downloaded the backup from itunes/icloud. There was a large gap in data where the first iPhone didn’t backup when I thought it had. I have SMS data on both phonesnow and  I need them for a court hearing. I have since had the other iPhone repaired and working perfectly. Will downloading a backup wipe out the newer SMS data? I am nervous because I can’t lose the information or my case mey be compromised. Any “Real Help” including programs that work to accomplish this would be very helpful. Thank You in advance…

    No, direct access to manipulating the phone's filesystem is not permitted for 3rd party apps in the iOS.  It can't be done without hacking the phone, which you certainly don't want to do.  The messages can be combined and viewed on your computer, but not on a single phone.

  • Set a PO delivery date to deliver one day ahead of demand without GR Proc.

    Any thoughts to enable the system to generate a planned PO delivery date say a day before the actual demand date without "locking" the material up as is the case with the GR processing setting.  With the GR processsing value to 1 day MRP will in fact have the material delivered a day ahead of time, but MRP will show the material is not available until the next day which causes some confusion when the planners need to move production up a day.  We'd like the GR date to be one day before demand but MRP show the material is available on the delivery date.

    Hi There
    Del date in SAP is when the goods will arrive at your premises,, and GR date date of GR ( GR pocessing time- 1 day, Del Date+1 day),, means that when the material will be available actullay for the production,, it is a STD,,
    You can manipulate the  RLT (Replenishment lead time= Purchasing processing timePlanned del timeGR processing time) as you wish to get,,
    Thanks
    Senthil

Maybe you are looking for

  • IPod won't connect to iTunes..have tried it all

    Ok...so a few days ago I plugged my Ipod 160gb classic into my computer to sync to Itunes. Itunes then froze up, so after I ejected it, I reset it. I plugged it back into Itunes and now everything is gone off the Ipod. No big deal, everything was bac

  • All work from Adobe CC by saving files in an external hard drive...

    I'm new into this community and my question to all CC users are: If I decide to save my PhotoShop, Illustrator, Flash, Premiere, etc... work on an external hard drive, would Adobe allow me to do so or "I Must" save my files on the cloud?

  • Oracle: Recommendation of parameters 10.2.0.5.0

    Mr. I can recommend for oracle version 10.2.0.5.0 parameters for SAP ECC 6.0 with Windows 2003 SP2 regards

  • Software apps that don't have .prb or prc files and driver solutions

    How do you install an .exe file on your pda?  I downloaded  (Pocket Divx Encoder for Palm OS) and noticed it only showed a .exe file saving? Also the quick install only wants to put the files on the SD expansion card?  Won't let me change destination

  • K410 - Windows 8 problem

    Hi, wondered if anyone could point me in the right direction.  I have a K410 it came with preinstalled windows 8.  I recently purchased the Microsoft Win Pro Media Centre upgrade, I went through the activation process all fine until it went to update