Convert hardcoded SP into Dynamic Merge ststement(SP)

Hi
I am working on to convert my static Store procedure to Dynamic.
I have created a Store procedure with the help of Mege statement which is inserting new record and updating existing record.
This SP I will use in SSIS Insted of Data Flow Task I will run in Execute SQL Task.
Now my biggest problem is I dont know how to convert static code toi dynamic
Below is my Store procedure code.
As you can see my Source Query
I have a filemaster table as shown below which consist of Input filename,Source table ,Destination table and BBX expression.
Input_Filename SourceTableName      DestinationTableName              BBxKeyDerExpr
CCTFB               ImportBBxCctfb      ArchiveBBxCctfb              SUBSTRING(Col001,1,6)
CEMXR               ImportBBxCemxr      ArchiveBBxCemxr              SUBSTRING(Col001,1,10)
In my source query I want to change the value of Source table ,Destination table and BBX expression dynamically on the basis of input file.
Purpose of making dynamic is that I have created separate sp for all the input, my clients want to have sungle dynamic sp which will execute on the basis of input file.this input file name I wil get fromm  variable which i have created in SSIS Package.
Lets consider @File_name is the variable in package which store the file name
if file name is CCTFB then my query should take the Source table ,Destination table and BBX expression value from file master table.
like that I have 100 of source query and evry query have diffrent number of columns.
how can I change the column number in uodate and insert statement dynamically on run time.
CAST(SUBSTRING(Col001,1,6) + SUBSTRING(Col002,1,10)  AS varchar(100)) :-It creates a key for comparing, this value i can take it from filemaster
HASHBYTES('MD5', CAST(CHECKSUM(Col001, Col002,Col003,Col004) AS varchar(max))) -here numberv of column need to be changed .
(SUBSTRING(SOURCE.Col001,1,6) + SUBSTRING(SOURCE.Col002,1,10)) this condition also i can take it from file master.
ALTER PROCEDURE [dbo].[SP_Archive_using_merge_FDOOP]
AS
--Version 0.2(latest)
BEGIN
  SET NOCOUNT ON
  DECLARE @Source_RowCount int
  DECLARE @New_RowCount int
  DECLARE @updated_Rowcount int
  DECLARE @Matched_record int
  DECLARE @TimeIn smalldatetime
  DECLARE @LatestVersion int
  SET NOCOUNT ON
  ----FDOOP--
  SELECT     @TimeIn = GETDATE()
  SELECT     @LatestVersion = 1
  SELECT     @Source_RowCount = COUNT(1)   FROM
ImportBBxFDOOP ---To get source record count
  MERGE Archive.dbo.ArchiveBBxFDOOP TARGET     --Target Table
  USING (
SELECT *,
    CAST(SUBSTRING(Col001,1,6) + SUBSTRING(Col002,1,10)  AS varchar(100)) BBxKey,
    HASHBYTES('MD5', CAST(CHECKSUM(Col001, Col002,Col003,Col004) AS varchar(max))) RowChecksum
  FROM dbo.ImportBBxFDOOP) AS SOURCE  ---Source Query
  ON  (SUBSTRING(SOURCE.Col001,1,6) + SUBSTRING(SOURCE.Col002,1,10)) = target.BBxKey
  AND (target.LatestVersion = 1 OR target.LatestVersion IS NULL)
  WHEN MATCHED AND (source.BBxKey = Target.BBxKey AND source.RowChecksum <> TARGET.RowChecksum) THEN
UPDATE SET
  TARGET.TimeIn = @TimeIn,
  TARGET.BBXKey = SOURCE.BBXKey,
  TARGET.RowChecksum = SOURCE.RowChecksum,
  TARGET.Col001 = SOURCE.Col001,
  TARGET.Col002 = SOURCE.Col002,
  TARGET.Col003 = SOURCE.Col003,
  TARGET.Col004 = SOURCE.Col004,
  TARGET.LatestVersion = 0
  WHEN NOT MATCHED THEN --For New record
  INSERT (TimeIn, BBXKey, RowChecksum, Col001, Col002,Col003,Col004, LatestVersion)
  VALUES (GETDATE(), SOURCE.BBXKey, SOURCE.RowChecksum, SOURCE.Col001, SOURCE.Col002,SOURCE.Col003,SOURCE.Col004, @LatestVersion);
  SELECT
    @New_RowCount = @@ROWCOUNT  --to get new inserted count
  SELECT
    @Source_RowCount Source_Row,
    @New_RowCount New_inserted,
    @Matched_record
--select * from filemaster
---To get the inserted,updated and matched record
DECLARE @rowcounts TABLE
    mergeAction nvarchar(10)
select    @New_RowCount=[INSERT]
,        @updated_Rowcount=[UPDATE]
,        @Matched_record=[DELETE]
from    (
        select    mergeAction,1 rows
        from    @rowcounts
        )p
pivot
    count(rows)
FOR    mergeAction IN
(    [INSERT], [UPDATE], [DELETE])
) as pvt
print    '@New_RowCount = ' + cast(@New_RowCount as int)
print    '@updated_Rowcount = ' + cast(@updated_Rowcount as int)
print    '@Matched_record = ' + cast(@Matched_record as int)
END
I am able to get inserted and updated rowcount, but not able to get the matching records count.
Please do thee needful help.
please do let me know incase of required any input
Regards,
Vipin jha
Thankx &amp; regards, Vipin jha MCP

I would strongly recommend that you write one static stored procedure for each table. If you want a single DB interface from your SSIS task, you could have a main procedure that forks off to the table-specific procedure. If you use a standard naming convention,
all the procedures have the same interface, this can actually be done very simple as EXEC permits you to say:
EXEC @spname @par1, @par2, ...
This will fire off the stored procedure of which the name is in @spname.
But trying to write a single stored procedure for all tables, it is hardly recommendable. Particular, dynamic SQL is an advanced feature, and given the level you have shown in the previous posts, I'll be blunt and say it is not for you.
Overall - in a relational database a table is supposed to model a unique entity with a unique set of attributes. For this reason, something like a dynamic table name does not make sense as long as we are talking about a properly designed database.
Erland Sommarskog, SQL Server MVP, [email protected]

Similar Messages

  • How to programatically convert XDP form into Dynamic PDF form

    Hi,
    Is there a way to programatically convert XDP form into Dynamic PDF form using LiveCycle Service APIs?
    Thanks,
    lcfun

    Take a look at http://help.adobe.com/en_US/livecycle/9.0/programLC/help/index.html and the API Quick Starts > Output Service API Quick Starts.
    Quick Start (EJB mode): Creating a PDF document based on an application XDP file using the Java API
    http://help.adobe.com/en_US/livecycle/9.0/programLC/help/000243.html#1645763
    I think this will get it done. Give it a go.
    Steve

  • How to divide a 577 GB C local disk so that the HDD doesn't convert into dynamic?

    The problem is, I know that Windows 7 won't allow more than 4 local disks on the same HDD, and in diskmgmt.msc there are already four partitions: SYSTEM (no letter), C local disk (windows installed), Recovery (D: ), and a FAT32 system HP_TOOLS (E: ), which is barely 4 gigs. Now, the C local disk is 577 GBs, which is annoying, so I'd like to have a partition where I can store my stuff, in case I need to reinstall/recover the windows (It's not mac, so over time windows gets buggy, crashy and sh**ty, you know). How do I create an additional local disk for me so that it doesn't convert Basic disk into Dynamic, and the recovery partitions are untouched?
    Thanks in advance

    Thank you for your reply. You helped me a lot! I'm creating a recovery media right now. I'm assuming that if I run it, say, after a year, it will reset the laptop to its factory settings?

  • Need a FM to convert into dynamic where clause

    Hi all
    I had a requirement in BI Extractor i need a  FM to convert RSELECT into dynamic where clause query
    Please help me
    Regards
    Hitesh

    Hi Dolly
    code like this
    day = date + 0(2)
    month = date + 3(2)
    year date + 6(4).
    case month.
    when '01'.
    mon = 'january'.
    when '02'.
    mon= 'february'.
    etc....
    endcase.
    concatenate day 'th' ' ' mon ' ' year into output.
    write:/ output.
    reward points to all helpful answers
    kiran.M

  • After partitioning hd of my hp pavilion dv6-6017tx my basic drives converted into dynamic

    recently i ordered recovery discs from hp support for my hp pavilion dv6-6017tx notebook. After getting them i recovered my laptop to factory setting. there were four partitions namely  C, RECOVERY, HP TOOLS and SYSTEM.I wanted to partition hd so  I partitioned c drive after shrinking it in disk management. all my basic drives got converted into dynamic. [i wasnt aware of the terms basic and dynamic drives]. Now my query is whether it poses  risk to my laptop. is there any procedure of converting back to basic.

    Hi stat10,
    I see you have some concerns regarding the Basic as opposed to the Dynamic drives. I am sending you this document for Basic and Dynamic Disks that explains what the difference is between Basic and Dynamic. To answer your concerns about this posing a risk to your computer, the answer is no, it will not hurt anything.
    In short, Basic keeps your files altogether in one section of blocks to create a partition and Dynamic allows you to spread files over multiple blocks to create a partition.
    The only suggestion I have, is before creating partitions you should always defrag your computer first so that your files would be compressed in one section of blocks and not spread out over multiple blocks.
    I hope this information is useful, please let me know if you have any further questions or concerns.
    Take care and have a great day!
    I worked on behalf of HP.

  • Reading XML file into Dynamic Node and Display its output as Table.

    Hi All,
    Following is the output of XML file:
       <Company>
         <Employee>
              <Name>John</Name>
              <Age>23</Age>
              <***>Male</***>
              <Location>Frankfurt</Location>
         </Employee>
         <Employee>
              <Name>Tina</Name>
              <Age>21</Age>
              <***>Female</***>
              <Location>Boston</Location>
         </Employee>
         <Department>
              <Name>Sales</Name>
              <HQ>Chicago</HQ>
              <Emplyoees>2300</Employees>
         </Department>     
    I'm able to read the output through DOM parser. But How do I convert this into dynamic node and display this in Web dynpro as Table?
    Any pointers in this regard will be great help?
    Thanks
    Srikant

    Hi Maksim,
    I've used your example and its now helping as there is kind of agreement on that I'll be knowing the structure of Xml and I can fill the nodes.
    But suppose if you have Xml has following structure :
    <?xml version="1.0" encoding="utf-8"?><DATA>
    <item><MAILERID TYPE="C" SIZE="000030">21</MAILERID><ORG_CODE TYPE="C" SIZE="000004">1232</ORG_CODE><EVENTID TYPE="C" SIZE="000015">CONTRACT</EVENTID><SUBSCR_VALUE TYPE="C" SIZE="000001">0</SUBSCR_VALUE></item>
    <item><MAILERID TYPE="C" SIZE="000030">21</MAILERID><ORG_CODE TYPE="C" SIZE="000004">1232</ORG_CODE><EVENTID TYPE="C" SIZE="000015">CREDIT</EVENTID><SUBSCR_VALUE TYPE="C" SIZE="000001">0</SUBSCR_VALUE></item>
    <item><MAILERID TYPE="C" SIZE="000030">21</MAILERID><ORG_CODE TYPE="C" SIZE="000004">1232</ORG_CODE><EVENTID TYPE="C" SIZE="000015">EMPRESS</EVENTID><SUBSCR_VALUE TYPE="C" SIZE="000001">0</SUBSCR_VALUE></item>
    <item><MAILERID TYPE="C" SIZE="000030">21</MAILERID><ORG_CODE TYPE="C" SIZE="000004">1232</ORG_CODE><EVENTID TYPE="C" SIZE="000015">PAYMENT</EVENTID><SUBSCR_VALUE TYPE="C" SIZE="000001">0</SUBSCR_VALUE></item>
    <item><MAILERID TYPE="C" SIZE="000030">21</MAILERID><ORG_CODE TYPE="C" SIZE="000004">1232</ORG_CODE><EVENTID TYPE="C" SIZE="000015">PRICE</EVENTID><SUBSCR_VALUE TYPE="C" SIZE="000001">0</SUBSCR_VALUE></item>
    </DATA>
    How we will do in this case?
    Can we have something similar using DOM? Also what is the best method for displaying data being sent in form of XML. And generalize it for cases like this.
    Thanks
    Srikant

  • Convert scanned signature into line drawing

    I have a need to convert scanned signatures into line-drawings. I could buy MIcrosoft Illustrator (or something) to do it, but I was wondering if anyone knew of a free-ware Java tool that could do this.
    It would work somehting like the following:
    1. Sign your name on a white piece of paper.
    2. Scan the image and store it as an jpeg file.
    3. A program (hopefully free in Java) would read in the image and output one of the following:
    a) output to another jpeg file where the signature had been converted to line-drawings (so the lines are thiner and more crisp than the scanned image)
    b) output the vector coordinates that could be read into another custom program that could dynamically create the jpeg (I know how to write this jpeg-creatio program from coordinates...).
    thanks,
    Jeff

    For starters, using JPEGs in this situation is a poor choice because it is a lossy format.
    Second, it seems like what you're after is something like OCR. I think I asked a question once about OCR for java... I think I remember someone telling me that it's out there. But anyway search the web for that.
    Even if all you're interested in is code that will smartly 'correct' an image I don't think that there is freely available code (might not be any Java code at all) to do this.

  • Runtime Error For Converting Static pdf to Dynamic Xml Form pdf

    Hi All,
    I am converting my static pdf to dynamic xml form pdf using Adoble Livecycle Designer ES 8.2 it is giving runtime error dialog.
    My static pdf size is 12MB and it contains 46 pages(mostly all pages will have images). Do we have any limitations for converting static pdf to dynamic xml form pdf ?
    Error message image file is attatched to this thread.
    Can any body please help me on this.
    Advance Thanks
    Prasad Sagala

    Hi Paul,
    With out dividing into smaller chunks, Do we have any other alternative?
    Because in my other pdf reports having more than 50 pages (in between 100-600). If i want do divide smaller chunks it will be the long process.
    Thanks
    Prasad Sagala

  • How to convert single column into single row

    I need to convert single column into single row having n no.of.values in a column. without using case or decode. I need a query to display as below.
    emp_id
    100
    101
    102
    102
    103
    200
    I need output like 100,101,102,103,104.........200.

    I assume you want to convert 200 rows with one column into one row with 200 columns. If so, this is called pivot. If you know number of rows (max possible number of rows) and you are on 11G you can use PIVOT operator (on lower versions GROUP BY + CASE). Otherwise, if row number isn't known, you can use dynamic SQL or assemble select on clent side. Below is example emp_id = 1,2,..5 (to give you idea) and you are on 11G:
    with emp as (
                 select  level emp_id
                   from  dual
                   connect by level <= 5
    select  *
      from  emp
      pivot(
            max(emp_id) for emp_id in (1 emp_id1,2 emp_id2,3 emp_id3,4 emp_id4,5 emp_id5)
       EMP_ID1    EMP_ID2    EMP_ID3    EMP_ID4    EMP_ID5
             1          2          3          4          5
    SQL>
    SY.

  • Convert column values into a row with a delimiter

    Hi Gurus,
    This may be a trivial question to you. I have an internal table itab with a column called plant, internal table has 'n' records, by the end of loop, I need to convert the column into a row delimited by comma into one row (one field). This needs to be dynamic without hard-coding.
    Plant
    1000
    2000
    3000
    4000
    5000 ....
    n....
    Expected result of the field:
    field1 value: 1000,2000,3000,4000,5000,...n
    Let's set a limit to the field say it can hold upto 500 chars.
    Thanks,
    GP.

    Hi,
    I've already tried this:
      ELSEIF <fs_dms_cv>-zca_cv_attr_ind = c_multiple.
      w_plant = <fs_plant_ele>-werks.
      concatenate w_string w_plant
                    into w_string separated by c_delimiter.
          IF w_end_fl = c_on.
          w_tabname = <fs_dms_cv>-dbtabname.
           ASSIGN (w_tabname) TO <fs_tabname>.
            IF sy-subrc = 0.
             ASSIGN COMPONENT <fs_dms_cv>-name_komp OF 
                STRUCTURE <fs_tabname> TO <fs_destination>.
                        IF sy-subrc = 0.
                          <fs_destination> = w_string.
                        ENDIF.
            ENDIF.
    There are 2 issues here: One is that after first plant there will be two commas inserted, after that it's consistent. Secondly the key word concatenate is against our code standards.
    Please let me know if there is any other way of doing this.
    Thanks.

  • Converting multiple columns into one.

    All,
    I have a requirement to convert multiple columns into one. Following is the pseudo code of current implementation. It unions the various columns ( col1, col2........) into a new column new_col. But perforamnce is extrmely slow owing to multiple unions. It may be noted that tables and where conditions of all these queries are same.
    Can you help me create a more efficient query?
    select col1 , col2, col3, col4 from my_tables where some_cols = my_condition;Below is the query used to convert these columns into one.
    select col1 new_col from my_tables where some_cols = my_condition
    union all
    select col2 from my_tables where some_cols = my_condition
    union all
    select col3 from my_tables where some_cols = my_condition
    union all
    select col4 from my_tables where some_cols = my_condition

    Without looking at those things you could be barking up the wrong tree by assuming the issue relates to the unioning of queries or other such things.Well, might be.........
    Execution time of this query (just the execution time not the retrival) is around 34 seconds with connect-by clause for returning 22,000 records.
    Here's the plan
    Execution Plan
    | Id  | Operation                          | Name                        | Rows
    | Bytes | Cost (%CPU)|
    |   0 | SELECT STATEMENT                   |                             |   326
    | 33904 |   135   (2)|
    |   1 |  SORT ORDER BY                     |                             |   326
    | 33904 |   135   (2)|
    |   2 |   MAT_VIEW ACCESS BY INDEX ROWID   | MV_COMQ_RM_DEAL             |     1
    |    62 |     1   (0)|
    |   3 |    NESTED LOOPS                    |                             |   326
    | 33904 |   134   (1)|
    |   4 |     MERGE JOIN CARTESIAN           |                             |   326
    | 13692 |     3   (0)|
    |   5 |      VIEW                          |                             |     1
    |    13 |     2   (0)|
    |   6 |       COUNT                        |                             |
    |       |            |
    |   7 |        CONNECT BY WITHOUT FILTERING|                             |
    |       |            |
    |   8 |         FAST DUAL                  |                             |     1
    |       |     2   (0)|
    |   9 |      BUFFER SORT                   |                             |   326
    |  9454 |     3   (0)|
    |  10 |       TABLE ACCESS BY INDEX ROWID  | SF_SEARCH_IDS_TMP_COMQ      |   326
    |  9454 |     1   (0)|
    |  11 |        INDEX RANGE SCAN            | IDX1_SF_SEARCH_IDS_TMP_COMQ |   349
    |       |     1   (0)|
    |  12 |     INDEX RANGE SCAN               | IDX_MV_COMQ_RM_DEAL         |     9
    |       |     1   (0)|
    -----------------------     Hope, It's readable.......
    I would have posted sample data and query but........I cant do that...:(

  • How to convert table content into html format?

    Hi,
    Experts,
    How to convert internal data into HTML format is there any function module or piece of code to download content into HTML.
    Thank u,
    Shabeer Ahmed.

    Then use this code....
    REPORT  ytest_table_html1.
    *        D A T A   D E C L A R A T I O N
    *-HTML Table
    DATA:
      t_html TYPE STANDARD TABLE OF w3html WITH HEADER LINE,
                                           " Html Table
    *- Declare Internal table and Fieldcatalog
      it_flight TYPE STANDARD TABLE OF sflight WITH HEADER LINE,
                                           " Flights Details
      it_fcat TYPE lvc_t_fcat WITH HEADER LINE.
                                           " Fieldcatalog
    *-Variables
    DATA:
      v_lines TYPE i,
      v_field(40).
    *-Fieldsymbols
    FIELD-SYMBOLS: <fs> TYPE ANY.
    *        S T A R T - O F - S E L E C T I O N
    START-OF-SELECTION.
      SELECT *
        FROM sflight
        INTO TABLE it_flight
        UP TO 20 ROWS.
    *        E N D - O F - S E L E C T I O N
    END-OF-SELECTION.
    *-Fill the Column headings and Properties
    * Field catalog is used to populate the Headings and Values of
    * The table cells dynamically
      CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
        EXPORTING
          i_structure_name       = 'SFLIGHT'
        CHANGING
          ct_fieldcat            = it_fcat[]
        EXCEPTIONS
          inconsistent_interface = 1
          program_error          = 2.
      DELETE it_fcat WHERE fieldname = 'MANDT'.
      t_html-line = '<html>'.
      APPEND t_html.
      CLEAR t_html.
      t_html-line = '<thead>'.
      APPEND t_html.
      CLEAR t_html.
      t_html-line = '<tr>'.
      APPEND t_html.
      CLEAR t_html.
      t_html-line = '<td><h1>Flights Details</h1></td>'.
      APPEND t_html.
      CLEAR t_html.
      t_html-line = '</tr>'.
      APPEND t_html.
      CLEAR t_html.
      t_html-line = '</thead>'.
      APPEND t_html.
      CLEAR t_html.
      t_html-line = '<table border = "1">'.
      APPEND t_html.
      CLEAR t_html.
      t_html-line = '<tr>'.
      APPEND t_html.
      CLEAR t_html.
    *-Populate HTML columns from Filedcatalog
      LOOP AT it_fcat.
        CONCATENATE '<th bgcolor = "green" fgcolor = "black">'
            it_fcat-scrtext_l
            '</th>' INTO t_html-line.
        APPEND t_html.
        CLEAR t_html.
      ENDLOOP.
      t_html-line = '</tr>'.
      APPEND t_html.
      CLEAR t_html.
      DESCRIBE TABLE it_fcat LINES v_lines.
    *-Populate HTML table from Internal table data
      LOOP AT it_flight.
        t_html-line = '<tr>'.
        APPEND t_html.
        CLEAR t_html.
    *-Populate entire row of HTML table Dynamically
    *-With the Help of Fieldcatalog.
        DO v_lines TIMES.
          READ TABLE it_fcat INDEX sy-index.
          CONCATENATE 'IT_FLIGHT-' it_fcat-fieldname INTO v_field.
          ASSIGN (v_field) TO <fs>.
          t_html-line = '<td>'.
          APPEND t_html.
          CLEAR t_html.
          t_html-line = <fs>.
          APPEND t_html.
          CLEAR t_html.
          t_html-line = '</td>'.
          APPEND t_html.
          CLEAR t_html.
          CLEAR v_field.
          UNASSIGN <fs>.
        ENDDO.
        t_html-line = '</tr>'.
        APPEND t_html.
        CLEAR t_html.
      ENDLOOP.
      t_html-line = '</table>'.
      APPEND t_html.
      CLEAR t_html.
    *-Download  the HTML into frontend
      CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
          filename                = 'C:\Flights.htm'
        TABLES
          data_tab                = t_html
        EXCEPTIONS
          file_write_error        = 1
          no_batch                = 2
          gui_refuse_filetransfer = 3
          invalid_type            = 4
          no_authority            = 5
          unknown_error           = 6
          header_not_allowed      = 7
          separator_not_allowed   = 8
          filesize_not_allowed    = 9
          header_too_long         = 10
          dp_error_create         = 11
          dp_error_send           = 12
          dp_error_write          = 13
          unknown_dp_error        = 14
          access_denied           = 15
          dp_out_of_memory        = 16
          disk_full               = 17
          dp_timeout              = 18
          file_not_found          = 19
          dataprovider_exception  = 20
          control_flush_error     = 21
          OTHERS                  = 22.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
        WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    *-Display the HTML file
      CALL METHOD cl_gui_frontend_services=>execute
        EXPORTING
          document               = 'C:\Flights.htm'
          operation              = 'OPEN'
        EXCEPTIONS
          cntl_error             = 1
          error_no_gui           = 2
          bad_parameter          = 3
          file_not_found         = 4
          path_not_found         = 5
          file_extension_unknown = 6
          error_execute_failed   = 7
          synchronous_failed     = 8
          not_supported_by_gui   = 9
          OTHERS                 = 10.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
        WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    none of the above function modules r obsolete...

  • Converting Jar files into Exe

    Can anyone suggest me a free tools for converting jar files into executable??
    Thanks

    thanks
    i have few questions about launch4j
    my application depends upon other jar files also like log4j.jar etc. Can i merge all the dependencies into the executable itself for better management of file? Is it possible in launch4j??
    and is it possible to extract my source code from executable file using reverse engineering techniques??

  • Need to convert a long into a string, please

    hi there
    i need to convert a long into a string. can i just cast it like this:
    (String)longNumber = some function that returns a long;

    Why not just use Long.toString()? If you start with a long value, you can create a Long object and get it's value as a String.

  • Report for converting the documents into the PDF format.

    Hello Experts,
    I need to know if any report/ T-code is available in SAP to convert the files into  PDF format.
    We are processsong these PDF's then into IXOS system.
    Regards,
    Anna.

    Hello ,
    You may check with the below programs:
    Program name                   Report title
    RSTXCPDF                       Routines for Converting OTF Format to PDF Format
    RSTXPDF2                       Administration/Upload of type 1 and TrueType font files
    RSTXPDF3                       Customizing for OTF-PDF Conversion
    RSTXPDF4                       Help Report from CONVERT_OTFSPOOLJOB_2_PDF
    RSTXPDF5                       Help Report from CONVERT_ABAPSPOOLJOB_2_PDF
    RSTXPDFT                       Test report for PDF conversion - converting standard texts to PDF
    RSTXPDFT2
    RSTXPDFT3                      Test
    RSTXPDFT4                      Convert SAPscript (OTF) or ABAP Lists Spool Job by PDF
    RSTXPDFT5                      Test: GUI Download of Spool Request
    Regards
    Ramesh Ch

Maybe you are looking for