Put some data form the databse of SQL Server into SAP and auto general PR?

Dear all,
        Can you tell me how I can put some data from the databse of SQL Server into SAP and auto general PR?
Best regards,
Merryzhang
Edited by: merry zhang on Feb 4, 2009 9:10 AM

Hi Zhang,
If i have understood your question properly, I guess you wanted to create Purchase Requistion automatically right?
Then you have lots of option simpilest one would be create a couple of Z table with all the fields that you require for header and Item.
create a Program and use BAPI function module to create the PR by reading the values from those Z tables. after creation delete the contents from the table. Schedule this program in Background periodically like everyday or weekly once however you would like it to be. So once the table has contents in it and when the program runs it will create the PR's (Purchase Requisition).
You can also use a workflow with the Z table. Once the Z table is filled you can trigger a workflow based on the Table change. I'm not sure like how to do it but I nkow that this process can also be used.
Hope this might have thrown some light upon.
Thanks,
Prashanth

Similar Messages

  • Can you tell me how I can put the data of sql server into SAP to auto gener

    Dear all,
             Can you tell me how I can put the data of sql server into SAP to auto generate PR?
    Best regards,
    Merry zhang

    Many thanks ,it is ok now.

  • How can I get a date without the hour from sql server 2000 ?

    hellou!
    I have a JTable, and one of it's columns has to show a date. This date i have to show is specified as datetime on the Sql Server 2000 database where I have to take the data.
    the query of the dataset attached to the JTable is something like "select * from Table".
    The problem is that the JTable column that displays the date shows the date and the hour, for example:
    7/10/04 0:00:00
    and I need to show the date without the hour, only the 7/10/04. Can anyone tell me how to do that?
    thank you very much! : )

    The easiest way to format a date is with java.text.SimpleDateFormat. When creating it you pass a format string which can be used to parse or format date objects.
    SimpleDateFormat formater = new SimpleDateFormat( "MM/dd/yyyy" );
    // Get date objects directly from sql
    Date foundDate = result.getDate( 1 );  //where result is the ResultSet and 1 is the date column
    String formatedDate = formater.format( foundDate );Now the JTable's table model can be adjusted to store a formated String instead of a Date. If for some reason it is required to store the value as a Date overload the table model to return the formated string when getValueAt is called.

  • SQL Server Error 9001 and auto close on Property

    Hello,
      While talking to one of my application developers, he encountered Fatal Error 9001 while connecting to the database from .NET Application. In the past , he had similar issues and he mentioned that taking the database offline and bringing it back online
    fixed the problem. So we did the same this and the problem got fixed.
    I asked the question why are we having this problem in first place?.I used the SQL Credentials our .NET App uses and I was able to connect to the SQL Server using those credentials and execute the stored procedure. 
    Doing some online searching, sometimes, turning on Auto close property causes this problem. This particular database had that property turned on and I turned it off. I am not sure how it got turned on in the first place. By default it should be off.
    My question is Whats causing this behavior ?. How can I avoid getting 9001 Errors?.
    I am tying to figure out the root cause and better undestand whats going on with the server?.
    I understand the pros/cons of the auto close property but it shouldn't cause 9001 error.
    Your help would be much appreciated.
    My SQL Server Version:
    select @@version
    Microsoft SQL Server 2008 (SP3) - 10.0.5500.0 (X64) 
    Sep 21 2011 22:45:45 
    Copyright (c) 1988-2008 Microsoft Corporation
    Standard Edition (64-bit) on Windows NT 6.0 <X64> (Build 6002: Service Pack 2)
    Thanks,
    I90Runner

    Hi,
    If you refer to
    Microsoft definition of error 9001 it means Log for database is not available. Hope you are using English language
    select text
    from sys.messages
    where message_id = 9001
    and language_id=1033
    Now why would SQL server say log for database is not available, it would say such thing when it wont be able to communicate with log file or wont be able to communicate with disk on which log file resides. I would say this might be disk issue. Not only SAN,
    disk controllers, HBA and other connections which are involved between database and storage should be checked. Please immediately consult your vendor. At first it might seem all is fine but remember I said through check. I faced this issue in cluster and it
    boiled down to Storage issue SQL server was just victim.
    Reg AUTOCLOSE AFAIK by default it is true for express edition not fot other editions
    Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it.
    My TechNet Wiki Articles

  • Want to pull data from MDM into SAP and send it to portal.

    Hi,
    I have a requirement where-in i want to get some data from master data management application(a third party application) into sap and send that data to portal. Kindly suggest me on how to go about doing the same. Awaiting your kind responses guys.
    Regards
    Shailendra.k

    Hi Shailendra,
    Your requirement is a huge activity with multiple tasks which can be done in multiple ways.
    Some basic points:
    1. You can read data from your Third party application using
    a. Native SQL or
    b. a middleware as PI or
    c. using connectors based on the platform of the Third party application (VB, .NET, etc.)
    2. Data can be sent to portal using
    a. Middleware as PI or
    b. Creating RFC's
    c. BAPI's.
    For any specific details, you can check SDN as detailed posts on each of the above is available or can post further.
    Regards,
    Pranav.

  • Is it possible to put some data, such as numeric and string, on the pront panel

    Hi guys,,,
    Is it possible to put some data,such as numeric or string as input data on the front panel? In general, I only know how to create text file by using notepad, for example,
    after that open and read that text file to show on the table control and plot XY graph. On the other hand, If I don't want to read the input data file from text file, I would like to use some tables in LabVIEW to serve as the input data instead of notepad, for example, on the front panel, and then take that input data table to plot XY graph afterwards. Is that possible?
    Thanks in advance
    Mannie

    There is a palette on the front panel if you right-click. It has controls on it that you can use as inputs and outputs. I've attached a picture.
    Also, you may want to run through Getting Started with LabVIEW. It covers things like this.
    (Edit: Oops, forgot the picture.)
    Message Edited by DJDDA on 12-10-2007 02:24 PM
    Attachments:
    controlspal1.gif ‏16 KB

  • How can I architect my data layer to yield query result pages to the application as SQL Server prepares them?

    I tried to make the question as explicit as possible.
    Refer to Sql Server Management Studio's Results view.  Depending upon the structure of the execution plan, the Results pane may begin displaying results while the query is still executing.  Can someone point me in a direction for architecting a
    data layer (I am tech and framework agnostic for this task. Any solution will suffice) that will begin receiving pages of the set before SQL Server has completed the entire query?
    The call from the data layer to SQL Server will obviously have to be asynchronous, but is there any additional ceremony that I need to be aware of when issuing OPTION (FAST x) to the query optimizer?

    Thanks for the reply. (I actually meant to put this in the SQL Data Access forum, not the T-SQL forum)
    "Generally the last step is ORDER BY in a
    query, so nothing can start before that executes."
    I would imagine you cannot ORDER BY and yield results as they are fetched because of the execution plan that would be generated.  For the purposes of this post, please assume that sorting will be done purely client side
    "Can you post your query?"
     For purposes of discussion, let's assume that the query is
    select *
    from information_schema.columns
    and also assume that you have "lots" of columns to display.
    This was an exploratory question to see what would be necessary to replicate the behavior of Management Studio's Query Result view in a custom application. 
    I would imagine that there's going to be a lot of analysis of the execution plans that get generated in order for the OPTION (FAST x) optimizer hint to do any good, but apart from general tuning concerns that would allow SQL SERVER to yield a page of data
    "fast", I was wondering if there was anything else required of the calling client to force it to yield return its first page.
    After thinking about this (and phrasing it the way I did in the last sentence) perhaps this is the incorrect forum for this question.  I imagine that my concerns are better addressed in forums dedicated to the technology of the calling client (which
    would be a .NET assembly)
    Be that as it may, if there is any ceremony that SQL Server imposes on clients in order to yield return, I would expect that my question would be in the scope of SQL Server discussions (even though I intended this to be in a different SQL Server forum)

  • How to export some data from the tables of an owner with integrity?

    Hi to all,
    How to export some data from the tables of an owner with integrity?
    I want to bring some data from all tables in a single owner of the production database for development environment.
    My initial requirements are: seeking information on company code (emp), contract status (status) and / or effective date of contract settlement (dt_liq_efetiva) - a small amount of data to developers.
    These three fields are present in the main system table (the table of contracts). Then I thought about ...
    - create a temporary table from the query results table to contract;
    - and then use this temporary table as a reference to fetch the data in other tables of the owner while maintaining integrity. But how? I have not found the answer, because: what to do when not there is the possibility of a join between the contract and any other table?
    I am considering the possibility of consulting the names of tables, foreign keys and columns above, and create dynamic SQL. Conceptually, something like:
    select r.constraint_name "FK name",
    r.table_name "FK table",
    r.column_name "FK column",
    up.constraint_name "Referencing name",
    up.table_name "Referencing table",
    up.column_name "Referencing column"
    from all_cons_columns up
    join all_cons_columns r
    using (owner, position), (select r.owner,
    r.constraint_name fk,
    r.table_name table_fk,
    r.r_constraint_name r,
    up.table_name table_r
    from all_constraints up, all_constraints r
    where r.r_owner = up.owner
    and r.r_constraint_name = up.constraint_name
    and up.constraint_type in ('P', 'U')
    and r.constraint_type = 'R'
    and r.owner = 'OWNERNAME') aux
    where r.constraint_name = aux.fk
    and r.table_name = aux.table_fk
    and up.constraint_name = aux.r
    and up.table_name = aux.table_r;
    -- + Dynamic SQL
    If anyone has any suggestions and / or reuse code to me thank you very much!
    After resolving this standoff intend to mount the inserts in utl_file by a table and create another program to read and play in the development environment.
    Thinking...
    Let's Share!
    My thanks in advance,
    Philips

    Thanks, Peter.
    Well, I am working with release 9.2.0.8.0. But the planning is migrate to 10g this year. So my questions are:
    With Data Pump can export data just from tables owned for me (SCHEMAS = MYOWNER) parameterizing the volume of data (SAMPLE) and filters to table (QUERY), right? But parameterizing a contract table QUERY = "WHERE status NOT IN (2,6) ORDER BY contract ":
    1º- the Data Pump automatically searches for related data in other tables in the owner? ex. parcel table has X records related (fk) with Y contracts not in (2,6): X * SAMPLE records will be randomly exported?
    2º- for the tables without relation (fk) and which are within the owner (MYOWNER) the data is exported only based on the parameter SAMPLE?
    Once again, thank you,
    Philips
    Reading Oracle Docs...

  • What is the easiest way to export all tables data from Oracle to MS SQL Server?

    Hello MS,
    I would like to export all tables from Oracle 11.2 to MS SQL Server 2012 R1.
    Using the tool "Microsoft SQL Server Migration Assistant v6.0 for Oracle" did not work for me because there are too many warnings and errors regarding the schema creation (MS cannot know it because they are not the schema designer). My idea is
    to leave/skip the schema creation to the application designer/supplier and instead concentrate on the Oracle data export and MS SQL data import.
    What is the easiest way to export all tables data from Oracle to MS SQL Server quickly?
    Is it:
    - the „MS SQL Import and Export Data“ Tool
    - the “MS SQL Integration Services” Tool
    - not Oracle dump *.dmp format because it is a propritery binary format
    - flat file *.csv (delimited format)
    Thanks!

    Hi lingodingo,
    If you want to directly export all tables from Oracle database to SQL Server, I suggest you use SQL Server Import and Export Wizard. Because you just need to follow the wizard with GUI, this is the easiest way.
    If you want to make some modification for the tables‘ data before loading to SQL Server, I suggest you use SQL Server Integration Services package. For more details, please refer to the following similar thread:
    https://social.msdn.microsoft.com/Forums/sqlserver/en-US/38b2bed2-9d4e-48d4-a33f-1d9eed1c062d/flat-file-to-sql-server?forum=sqldatamining
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • I want to store the data form the PWM and the value of the changing duty cycle into a file simultaneously and continually

    i want to store the data form the PWM and the value of the changing duty cycle into a file simultaneously and continually but having problem.Please can anyone help out.
    Attachments:
    data.vi ‏60 KB

    Hello,
    Have you looked at the "Write Binary File.vi" and "Read Binary File.vi" examples?
    They give you a good clue as how to write and read arrays to and from binary files.
    For your data it means that you could put the two data items to write in an array and write the array to file, for the read its important to in what sequence the number were written to file.
    Kind regards,
    André
    Regards,
    André
    Using whatever version of LV the customer requires. (LV5.1-LV2012) (www.carya.nl)

  • We have two iPads. mine is the first one purchased. I opened iTunes to put some photos from the Mac to my wife's iPad. I plugged in my wife's iPad.  Both ipads have the same apple id and password. iTunes synced everything from my iPad to my wife's iPad. N

    We have two iPads. mine is the first one purchased. I opened iTunes to put some photos from the Mac to my wife's iPad. I plugged in my wife's iPad.  Both ipads have the same apple id and password. iTunes synced everything from my iPad to my wife's iPad. Now we have two identical iPads looking like mine. Everything on her ipad seems gone and replaced with mine, all her recent holiday photos, emails, settings, etc etc seem gone. 
    I'm toast!
    Help!!
    LJ

    How to use multiple iPods, iPads, or iPhones with one computer
    http://support.apple.com/kb/HT1495
    How to Share a Family iPad
    http://www.macworld.com/article/1163347/how_to_share_a_family_ipad.html
    Using iPhone, iPad, or iPod with multiple computers
    http://support.apple.com/kb/ht1202
    iOS & iCloud Tips: Sharing an Apple ID With Your Family
    http://www.macstories.net/stories/ios-5-icloud-tips-sharing-an-apple-id-with-you r-family/
    How To Best Use and Share Apple IDs across iPhones, iPads and iPods
    http://www.nerdsonsite.com/blog/2012/06/07/help-im-appleid-confused/
     Cheers, Tom

  • Hi guys, an empty folder is stuck in my trash & I get this message: "The Finder can't complete the operation because some data in the folder can't be read or written. (Error code -36). It won't shift no matter how I try to Secure Empty trash. Any ideas?

    Hi guys, an empty folder is stuck in my trash & I get this message: "The Finder can’t complete the operation because some data in the folder can’t be read or written. (Error code -36). It won't shift no matter how I try to Secure Empty trash. Any ideas?

    The Time Machines Backup is formated as Mac OS Extended (Case Sensitive, Journaled), my mac is formated as Mac OS Extended (Journaled).
    The names on the file are all Uppercase
    When I try to copy the Aperture file, it copies about 70% of the file (it's about 33GB in size), and halfway through I get this error.
    I'm able to copy 99.99% of all of the images if I open the Aperture Folder using the "show package contents" under the backups using finder (Time Machine Backups>Backups.backupdb>CQ Macbook Air>2012-04-30-070933>HD.....>Pictures>Aperture Library). The only file I can't copy is that picture, which I'm totally ok with deleting, but Finder won't delete it for me. If nothing else works, I could copy the individual masters and re-create the folders, however I'd hate to do this as I would have to go through 10,000+ pics

  • I can't put some files in the Trash

    Hello everyone,
    Unfortunately, I'm having some trouble putting some files in the trash...
    They say they're adobe dreamweaver files, but I've never installed dreamweaver - I was only flagged up about them when I tried to install dreamweaver, and was told that it was already installed and I needed to remove any files etc.
    So I did a search for all adobe or dreamweaver files, and sure enough there they were. I consequently tracked to whack them all in the bin, but to no avail. The computer would say "this will permanently delete the file, are you sure?" - I would click yes, and it froze for a moment every time I tried and then popped up with this error message:
    "Sorry, the operation could not be completed because an unexpected error occurred
    Error code -61"
    Here's a screen grab:
    http://img78.imageshack.us/my.php?image=picture2cb3.png (the error message)
    http://img213.imageshack.us/my.php?image=picture3sx0.png (the files in question are highlighted)
    If anyone knows how I could delete these, that would be extremely helpful...
    I've tried the get info, unlocking trick, and there's been no joy there - the read only options are faded out and not possible to change. I've also tried TrashIt, which was recommended, and didn't work...
    Any ideas would be very kind, thanks...

    I can't find my OSX disk
    I don't really understand this (that disk shows up in the screenshot you uploaded of the Finder window resulting from your search), but I also think it's irrelevant.
    I went back and read your original post, and I saw this: 'The computer would say "this will permanently delete the file, are you sure?"'. I've since seen another entry in this Topic List which indicates that you get such a message when your .Trash folder is gone. (Of course, there may be other reasons why you can get the message too.) If that's true, then you really need to fix it. One easy way to find out is, try creating an ordinary file in your home directory, and then drag it to the trash? Does that work? I suspect you'll get the same message about "this will permanently delete the file, are you sure". But if you say "yes", it should succeed in deleting it. But it does indicate that your .Trash folder is probably gone.
    if I create a new account that is also an administrator, then bin them, are you sure this will work?
    (I assume that by "bin them", you mean "drag them to the trash".) In fact, you can just create a new account that isn't an administrator (unlike what I said in my previous post). If that account drags the stuff to its trash, Finder will prompt it for the name of an administrator account (like, yours), and its password. If you provide it, then empty that account's trash, the stuff should go away just fine.
    Incidentally, the Subject of the item I mentioned above is "Trash deletes any file without emptying".
    If I'm right about your trash not working, and you want a way to "fix" it, you can get back. Or maybe make a new problem.

  • I put some photos in the itouch and when I updated it, I lost all my photos... What can I do? Please... I need it!!, I put some photos in the itouch and when I updated it, I lost all my photos... What can I do? Please... I need it!!

    I put some photos in the itouch and when I updated it, I lost all my photos... What can I do? Please... I need it!!, I put some photos in the itouch and when I updated it, I lost all my photos... What can I do? Please... I need it!!

    You can only import photos from the camera roll into the computer. Is that the album that you are seeing?
    Any albums that you create on the device itself (the iPad that is) cannot be transferred to your computer. iPad created albums do not contain copies of your photos but merely pointers to those photos so they do not actually exist in those albums.

  • I have my catalog "Back Up Each Time Lightroom Exits" checked, and always have. That means the catalog should have been backed-up and saved everyday, if not more than once on some dates. So with a a major problem now and needing to use the Catalog backup

    I have my catalog "Back Up Each Time Lightroom Exits" checked, and always have. That means the catalog should have been backed-up and saved everyday, if not more than once on some dates. So with a a major problem now and needing to use the Catalog backup from last Friday, I go to my Lightroom Backups folder - and the most recent one showing not only isn't yesterday, it's OCTOBER 28 !?? Where the hell are the daily backups between October 28 and November 14?

    Oh wow - JET LAG strikes agin - my apologies; I have located the missing weeks of back-ups. After getting home from a 30-day trip to Europe, I had changed the location of my LR catalog back-ups to an external drive, and forgot that I did that. I have found them, and all is good. Never operate Heavy Machinery without enough rest. Cheers

Maybe you are looking for