How to Create PR from exeternal SQL Server through IDOC

Dear all,
I am in trouble while creating PR from exeternal SQL Server through IDOC . although I have created PR from TCODE we19 giving input as well as from function writen below
My scnerio is from external system(Sql) want to send data to sap to create PR return PR No to SQl Server
Not having idea how to do
Basic Type for Idoc : PREQCR01
Message Type       : PREQCR
Function Module    : BAP_Idoc_Input1
Thanxs in Advance

if you have XI installed,
than it would be easy,
just use JDBC channel->XI->SAP IDOC.
otherwise,
you can export the table from the SQL to CSV file,
and import it with LSMW with IDOC PREQCR01.

Similar Messages

  • How to create a database in Sql server management studio

    how to create a database in Sql server management studio

    One method is to run the SQL statement below from a SSMS query window:
    CREATE DATABASE MyDatabase;
    You can also right-click on the Databases node in SSMS Object explorer and select New Database.
    Dan Guzman, SQL Server MVP, http://www.dbdelta.com

  • How to replicate data from MS SQL Server  to Oracle

    Hi,
    Can someone please help me on how to replicate data from MS SQL Server to Oracle 8i database.

    Dear,
    I'm a student.
    I do simple replication on Oracle 8.0.5 successfully. (one master site and one snapshot site). I only use the SQL*Plus and Schema Manager to do.
    But when I do advance replication (multimaster replication) I meet many problem. So I don't get the result.
    Do you show me the technology to do that ?
    Thanks !

  • How to create CATALOG with MS SQL Server?

    Connection class has getCatalog(strCatalog) method. In order to use it, we must create CATALOG in Database?
    How to create CATALOG with MS SQL Server?
    Help me, please!!!

    You do not create these for any database, this is part of the Connection metadata.
    The Catalog is the third level of table-like database object qualification as in "Catalog.Schema.Table". For SQLServer the qualification scheme is "Database.Owner.Table" and I would be surprised if they reported anything for the current connections getCatalog() method call.
    What many people do is avoid table qualification altogether by setting the connection's context in a database proprietary manner and then keeping the SQL as clean as possible. For many ODBC and JDBC drivers this can be set in the configuration. For MS SQLServer you can also execute a "USE dbname" statement on the connection to avoid table qualification.

  • How to create the folder in presentation server through pop-up(

    Hi Experts,
    Can u give me the solution , how to create the folder in presentation server through pop-up(means dynamically, after executing the program , pop-up has to come to create the folderand path)
    regards
    ram.

    Use the methods -> DIRECTORY_BROWSE & DIRECTORY_CREATE of the class CL_GUI_FRONTEND_SERVICES
    DATA: path TYPE string,
          rc TYPE i,
    dir_name TYPE string value 'HI'.
      CALL METHOD CL_GUI_FRONTEND_SERVICES=>DIRECTORY_BROWSE
        CHANGING
          SELECTED_FOLDER      = path
      IF SY-SUBRC <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    concatenate path '\' dir_name into path.
      CALL METHOD CL_GUI_FRONTEND_SERVICES=>DIRECTORY_CREATE
        EXPORTING
          DIRECTORY                = path
        CHANGING
          RC                       = rc
      IF SY-SUBRC <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    Edited by: Kartik Tarla on Sep 23, 2009 5:54 PM

  • Creating Universes from a SQL Server 2008 Database....Options?

    Needing to create a Universe from a SQL Server 2008 DB, I am of course finding it difficult at best to get the ball rolling. Support tells me the only option I have is to use Designer, and to not use the "Automated Detection" features because they are not for production environment use <citing business requirement differences as one issue, as was noted during a support call when I was having problems with our VM server literally locking up while the "Automatic Detection" features were trying to run>.
    So what that means is, from what I see, I am expected to manually add all of the SQL DB tables, and then have a Developer spend multiple hours adding appropriate Joins, Cardinalities, Keys, etc. And, whenever there are any DB changes, this has to be done all over again to the Universe to allow for syncronization with the DB.
    This really seems like a heavy load to bear just to be able to use SAP. Is anyone else having these same challenges? Are there other options I am just not seeing? Seems to me Builder needs a SQL bridge honestly.
    Appreciate any help I can get!!
    -Carl

    While it may seem disappointing, as long as you have the data schema and knowledge of the joins and cardinalities, then you've got a lot of the easy stuff sorted out.
    What you need to provide is a presentation layer that is more than just turning the tables and columns into classes and objects. There are often things that you need to create that don't exist in the database, such as objects for relative dates. These can be found in the thread that I created over on the BOB Board here:
    http://www.forumtopics.com/busobj/viewtopic.php?t=152613
    Make sure that all objects have a description
    Make sure that all dates and numbers have a format; there's nothing worse than creating a report and finding your year displayed as 2,011.00
    Use predefined filters - include prompts
    Other useful tips are available here:
    http://www.forumtopics.com/busobj/viewtopic.php?t=15227
    Do you have a set of reporting requirements?

  • How to create a database in SQL Server Express 2014 to be used with LV Database Toolkit

    I use LV Database Toolkit, which by default uses Jet database. Now I want to use SQL database with LV Database Toolkit. I have downloaded and installed "SQL Server 2014 Express with Tools" in my Labview Laptop. Now I want to create a database in SQL Server, because I think it is a requirement for creating a "udl connection file" (*.udl file). Please help me!
    Solved!
    Go to Solution.

    I made a database whose path is: C:\Program Files\Microsoft SQL Server\MSSQL12.SQLEXPRESS\MSSQL\DATA\depot1
    I tried to make .udl connection file, but when I click on "test connection" with the provider: "OLEDB Provider for Microsoft SQL Server" I get the Error "UDL Connection File Failure" (attached below)
    When I tried to make the .udl connection file with the provider "Microsoft SQL native Client 11.0" and when I click on "Test Connection" I get the Error" UDL Native Client_1"& " UDL Native Client_2".
    Please help!
    Thanks!
    Attachments:
    UDL Connection File Failure.png ‏78 KB
    UDL with Native Client_1.png ‏702 KB
    UDL with Native Client_2.png ‏714 KB

  • How BW get data from MS SQL server DB?

    I got infomation about this from help.com, http://help.sap.com/saphelp_nw04/helpdata/en/e3/e60138fede083de10000009b38f8cf/frameset.htm.
    this web told me, when BW application server must be Win NT.BW can get data from MS SQL server DB.
    but our BW application server was AIX.
    Did you know other solution to this?

    Hi,
    you need to use the DBConnect or in BI7.0 the UDConnect features.
    regards
    Siggi
    See also: http://help.sap.com/saphelp_nw70/helpdata/EN/a1/89786c3df35c4ea930a994e884bb4c/frameset.htm
    or
    http://help.sap.com/saphelp_nw70/helpdata/EN/44/bcdce1dcaf56a3e10000000a1553f6/frameset.htm
    Edited by: Siegfried Szameitat on Aug 13, 2008 9:16 AM

  • How to store 999999999.00000000 in sql server through ssis package?

    I have a field with 999999999.00000000 value of datatype double ?
    How to store it in ms sql server 2005 db through ssis package ?
    give me details if I have to use derived columns and what to write over there.
    please write in details as I am new to SSIS.
    Thanks in Advance.

    The value is coming from informix db .
    Can u please suggest hw to write it in my package : 
    I have taken a OLE DB Source and wrote the follwing command :
     " select CASE WHEN T1.t_maxs IS NULL THEN 0.00 ELSE T1.t_maxs END as max_inv
    from  ttiitm001010 T1 ".
    Please give details, as i am new ...

  • How to Access data from SAP Content Server through SAP Portal

    Hi Experts,
    I want to aceess the data from SAP Content server through portal. Currently I am working on LSO business package. The SAP content server should work like Webdav as we uses KM as webdav.
    I am trying to use this URL into the CMS address but it is not working
    http://XXX-XXX-XXXX:1090/ConTentServer/ContentServer.dll?adminContRep&operation=docIdList&contRep=ZADGAS_LSO
    Is there any other procedure for acceesing the DATA  from SAP content server. ?
    Thanks,
    Ahmad

    If your Content Server is being used by DMS, then you can use the DMS Connector for KM.  This connector allows all documents stored in DMS to be accessed in Portal as if they are stored in KM.  For more info see this:
    http://help.sap.com/saphelp_erp60_sp/helpdata/en/42/d289b446076bb2e10000000a1553f6/frameset.htm
    Andrew

  • How to migrate logins from 2008 SQL server to 2012 SQl server

    Hi,
    How to migrate all logins from  default SQL server2008(enterprise edition) to 2012 SQl server(enterprise edition)default

    Hi BomaSri,
    Have you tried v.vt’s suggestion? That article describes how to transfer the logins and the passwords between instances of Microsoft SQL Server 2005, of Microsoft SQL Server 2008, and of Microsoft SQL Server 2012 on different servers. The commands apply
    to SQL Server 2005, SQL Server 2008 and to SQL Server 2012.
    Allen Li
    TechNet Community Support

  • How can you connect to MS SQL Server through Oracle 9i?

    i.e. we want to connect through a stored procedure and NOT a form. Our live DB is still in 9i.

    CKPT wrote:
    user12240205 wrote:
    i.e. we want to connect through a stored procedure and NOT a form. Our live DB is still in 9i.we want to connect through a stored procedure -- connect through stored procedire? i never heard. can you please post your views this information is not enough.CREATE PROCEDURE proc1 (p_sqlsever_credentials varchar2, p_status OUT boolean) IS
    BEGIN
    -- Connect to SQL Server using p_sqlsever_credentials
    -- Execute Stored Procedure (SP) in the SQL Server DB passing paras to it.
    -- If SP in SQL Server is successful then SP will COMMIT in SQL Server
    -- If failure it will be rolled back there.
    -- SP will return status
    -- Pass the status to the calling program
    END;
    /

  • How to create interactive reports in SQL Server 2008 R2?

    Dear,
    I want to create a interactive dashboard in that there is 4 parts and on the selection of one values in one part, detailed value of other part of the report has been changed?
    I've tried through Bookmark but this loads complete data in other part of the report. but i just want to load the information of selected record.
    Please help to provide the solution for the same.
    Thanks in advance.

    Hi Anurag,
    I have an idea , for your scenario you can use subreport and pass parameter to that subrreport from first part to change the value based on the selection of value from first part.
    Suppose in first part you are showing aggregate values department wise and in second part you want to show details of that department which selected by user from the first part so you can create a separate part to show details of department with parameter
    department which will filter your report according to department and use this report in second part as sub report and for department parameter map it to the first part so if user will select on values of any department then that department name will be passed
    in the parameter of sub report and your sub report will show details of that department.
    so in first part go to textbox property and go to action tab and then pass parameter.
    some examples to set parameter from main report into sub report:
    https://www.katieandemil.com/ssrs-create-subreport-with-parameter-example-tutorial-ssrs-2008-r2?tab=article
    http://blog.aditi.com/enterprise_social/how-to-pass-multi-value-parameters-to-sub-reports-in-ssrs/
    Thanks!!
    Live life with joy and happiness! Avanish

  • SDO - how to create lines from PL/SQL

    Hello,
    I need to create a line objet in a table (TRAJECTORY) from selected points on another table (STATION).
    STATION description is
    station_id number,
    trajectory_id number,
    longitude float,
    latitude float,
    shape mdsys.sdo_geometry
    TRAJECTORY description is
    trajectory_id number,
    shape mdsys.sdo_geometry
    I would like to do something like
    update trajectory set shape =
    MDSYS.SDO_GEOMETRY
         2002,
         NULL,
         NULL,
         MDSYS.SDO_ELEM_INFO_ARRAY(1,2,1),
         MDSYS.SDO_ORDINATE_ARRAY
         (select longitude, latitude from station S where S.trajectory_id = trajectory_id)
    It does not work.
    I do not want to use an SQLLOAD because it is supposed to be updated with a trigger or a regular call to a store procedure.
    Thanks in advance for your help,
    Vincent ROBINE

    Thanks a lot for your advice,
    I have tried what you suggest, it seems to work fine for small line, but it does not work for big string.
    For the test I wish to make, I have the following result:
    update cycle_voyage set shape = MDSYS.SDO_GEOMETRY(2002,0,NULL,MDSYS.SDO_ELEM_INFO_ARRAY
    (1,2,1),MDSYS.SDO_ORDINATE_ARRAY(16.641400,42.758900,16.768600,42.597300,16.869500,42.471200,16.9806
    00,42.326300,17.097500,42.184100,17.211500,42.041200,17....
    ...00)) where platform_code = 'YTFL' and cv_number = 0
    longueur : 13690
    BEGIN fillSdoOrdinate('YTFL',0); END;
    ERREUR ` la ligne 1 :
    ORA-00939: too many arguments for function
    ORA-06512: at "CODBA.FILLSDOORDINATE", line 29
    ORA-06512: at line 1
    My procedure is done this way :
    create or replace procedure fillSdoOrdinate (p_platform_code varchar2, p_cv_number number) is
    l_listePoints varchar2(20000);
    l_nbPoints number;
    cursor listeCoords is
    select longitude, latitude from station
    where platform_code = p_platform_code
    and cv_number = p_cv_number;
    begin
    l_listePoints := 'update cycle_voyage set shape = MDSYS.SDO_GEOMETRY(2002,0,NULL,MDSYS.SDO_ELEM_INFO_ARRAY (1,2,1),MDSYS.SDO_ORDINATE_ARRAY(';
    l_nbPoints := 0;
    for curCoords in listeCoords loop
         if (l_nbPoints >0) then
         l_listePoints := l_listePoints||',';
         end if;
         l_nbPoints := l_nbPoints +1;
         l_listePoints := l_listePoints||trim(to_char(curCoords.longitude,'9999.999999'))||','||trim(to_char(curCoords.latitude,'9999.999999'));
    end loop;
    l_listePoints := l_listePoints||')) where platform_code = '''||p_platform_code||''' and cv_number = '||to_char(p_cv_number);
    dbms_output.put_line(substr(l_listePoints,1,245)||'...');
    dbms_output.put_line('...'||substr(l_listePoints,length(l_listePoints) - 50,51));
    dbms_output.put_line('longueur : '||to_char(length(l_listePoints)));
    execute immediate l_listePoints;
    end;
    show errors
    If the 'EXECUTE IMMEDIATE' is limited to 2000 characters, it wont work because this is not the longest line and it is already 13690 characters long.
    Any help would be welcome,
    Vincent ROBINE

  • How to create report from SDK without clicking through ther Query manager ?

    Hello,
      I need to create an on-screen report with selection criteria. (Something similar to Reports/Inventory/Items list)
    I could create a query and save it but
    - how to start the query by SDK then - without clicking through the Query manager ?
    - how to pass the selection criteria to the query ?
    Please suggest me ?
    Regards,

    As the helpcenter(2005 helpcenter) has missed this bit of documentation (on UserQueries) could someone please provide an example of using this object
    thanks
    Message was edited by: George Savery
    hmm I thought it had timed out .... Woops

Maybe you are looking for

  • HT1848 Trying to move files from iPad to new MacBook

    Hi. I'm trying to move my music etc from an iPad to my new Macbook. My previous computer (PC) died some time ago, so I have no backups of the info on my iPad. (Well, a backup from about a year ago!) I lost my iPad data once before, after doing an OS

  • Smart Form Language Print Problem

    Hi , i want to ask that in PO smart form if i am taking print preview. then vendor & Shipping Address are not coming in print preview...another fields are coming like tele & Fax No these are store in numeric value but these name1 and street store in

  • Can I update ID3 tags in another program?

    I need to batch edit ID3 tags for a bunch of songs. Can I do so in an external program and then have the data show up the next time I open iTunes, without having to click "get info" for every edited song? That is - is there a way to mass refresh the

  • OIM: what parameters for the task assignment adapter?

    Hi, following the tip here: Re: how to use adapter to assign task to a specific user I created a task assigment adapter and set the following by means of a simple java class: Adapter return value for key="myapprover2" Adapter return value for key typ

  • Big problem. Can anyone help

    I have an IMac Intel Core 24 inch from late 2008. I have an Epson Perfection V500, and I purchased it for the use of the Slide Scanner feature as I have a ton of slides to scan so I can digitize them. I cannot get the thing to work. I even had the th