Conversion form Generic datatype

Hi,
i am new to ABAP objects.   I have created one method.. the input parameters i have passed generic type 'DATA' for all parameters like i_PERNR,i_BEGDA,i_ENDDA,i_BUKRS etc.  passed this parameters to directly select statement there is a error it is showing can any body help me how to convert this generic to data

Hi,
  Can anybody help me how to implement Interactive ALV in web dynpro, for primary and secondary views default Excel download and Print options should be there. On the first view total count no. will be there after clicking of that count the second view should display with deatil. can anybody help me how to do this implementation or pls provide if any document is there.
Regards,
Raj

Similar Messages

  • IS-Retail -Problem in Conversion of Generic Articles

    Despite mapping correctly all the segments in I-Doc creation and also in using the appropriate BAPI for conversion of generic article creation using t-code MM41, we get the message "The Generic Article could not be created as a class". After refinement with accurate data in all the relevant segments, we still get the message "No value assignment transferred for the variant creating characteristic". Could someone please throw light on where we may be going wrong or give us a new direction to resolve this issue? We have to convert about 10,000 generic articles in the first run for the current Project.

    Hi
    Has anyone found a solution to this problem?  I am experiencing the same error on ERP6:
    ''No value assignment transferred for the variant-creating characteristic''  for idoc basic type ARTMAS03.
    Thanks
    Kind Regards
    Nazira

  • Oracle generic datatype that can be cast as other datatype ?

    I have a function that currently returns a DATE datatype but want to provide functionality so that depending on the value of a parameter it will return either a DATE or a VARCHAR2. For example
    FUNCTION AddDate(p_dt_DateIn IN DATE, p_vch_DType IN VARCHAR2)
    RETURN ????? IS
    IF UPPER(p_vch_DType) = 'C' THEN
    RETURN TO_CHAR(p_dt_DateIn + 2, 'DD Mon YYYY')
    ELSE
    RETURN p_dt_DateIn + 2
    END IF;
    The calling procedure would then cast the returned type.
    Does a generic datatype like this exist in Oracle ? I've been looking at overloading using packages but it basically boils down to using two seperate functions for each returned datatype which i really don't want to do.

    Normally, we would implement this as overloaded functions in a package:
    CREATE PACKAGE my_package AS
      FUNCTION addDate (p_dt_DateIn IN DATE) RETURN DATE;
      FUNCTION addDate (p_vc_DateIn IN VARCHAR2) RETURN VARCHAR2;
    END;the point being that in the package body the varchar version can call the date version, so you actually only code the process once.
    The advantage of this approach is that the calling program doesn't have to cast the result, because Oracle uses the right function for the parameter data type.
    Cheers, APC

  • Conversion of BLOB datatype to CLOB datatype

    Hi,
    I would need to convert the column datatype from BLOB to CLOB. currently in the table, the BLOB column has the data. the requirement is to convert this column from BLOB to CLOB datatype.
    please help me how to convert from BLOB datatype to CLOB datatype
    Thanks
    Hari.

    I have just been dealing with the same issue -- mass conversion of data in BLOB form to CLOB. I think I've finally got it working well. I have a table that has an key column then both a BLOB and a CLOB column. I load the BLOBS into the table then run the following PLSQL block (uses the given proc) to transfer the data from the BLOB column to the CLOB column.
    -- Proc to convert BLOB to CLOB
    create or replace function stg.blob_to_clob( p_blb in blob )  return clob  is
       v_clb   clob    ;
       v_dst   integer := 1 ;
       v_src   integer := 1 ;
       v_wrn   integer ;
       v_lng   integer := dbms_lob.default_lang_ctx ;
    begin
       dbms_lob.createtemporary ( v_clb, false ) ;
       dbms_lob.converttoclob
         ( dest_lob      =>  v_clb
         , src_blob      =>  p_blb
         , amount        =>  dbms_lob.lobmaxsize
         , dest_offset   =>  v_dst
         , src_offset    =>  v_src
         , blob_csid     =>  dbms_lob.default_csid
         , lang_context  =>  v_lng
         , warning       =>  v_wrn
       if  ( dbms_lob.NO_WARNING != v_wrn )  then
          v_clb := '~~~{ Error: Invalid Character in source BLOB }~~~' ;
       end if ;
       return v_clb ;     
    exception
       when others then
          v_clb := '~~~{ Error: BLOB Conversion Function Failed }~~~' ;
          return v_clb ;
    end ;
    -- Use the proc above to convert each BLOB to a CLOB in the given table.
    declare
       cursor c1 is
          /* Select the BLOBS to be converted. */
          select  id,  m_blob,  m_clob
            from  stg.temp_cnvrt
                  /* Trying to convert NULL BLOBS will result in an error */
           where  dbms_lob.getlength(m_blob) > 0
          for update ;
       v_tmp_clob   clob ;
    begin
       FOR  nxt in c1  LOOP
          v_tmp_clob := stg.blob_to_clob( nxt.m_blob ) ;
          update  stg.temp_cnvrt
             set  m_clob = v_tmp_clob
           where  current of c1 ;  
       END LOOP ;
       commit ;
    end ;

  • Generic cursor type // generic datatype

    Hi,
    I would like to dynamically declare a cursor in my procedure and retrieve rows from it for firing insert / update statements on another table. The procedure should take a table_name in VARCHAR2 and use it to declare a cursor like:
    procedure thisProcedure (table_name in VARCHAR2) is
    cursor thisCursor is select * from <table_name>;
    thisRow thisCursor%ROWTYPE;
    begin
    loop
    fetch thisCursor into thisRow
    -- exit when empty
    -- do sth. with this record (insert or update on another table depending on data in thisRow)
    end loop;
    end thisProcedure;
    I have been around in several forums and have got as far as declaring a weak cursor variable (one declared without return clause) and then opening this cursor with dynamic SQL. However, the moment I want to fetch a row of that cursor into a record, I would fail as weak cursor variables do not know their ROWTYPE. So in that case, I would have the cursor correct, but I would not have the corresponding - generically and dynamically declared - datatype:
    procedure thisProcedure (table_name in VARCHAR2) is
    type thisCursorType is ref cursor;
    thisCursor thisCursorType;
    thisRow <table_name>%ROWTYPE;????
    begin
    open thisCursor for 'my dynamic SQL';
    loop
    fetch thisCursor into WHAT???????
    -- exit when empty
    -- do sth. with this record (insert or update on another table depending on data in thisRow)
    end loop;
    end thisProcedure;
    Anybody know a solution or a workaround? Anything?
    Cheers
    Sebastian

    Maybe you can use object types and ANYDATA/ANYTYPE types. For example:
    CREATE TYPE dept_obj_type AS OBJECT (
       deptno NUMBER (2),
       dname  VARCHAR2 (20)
    CREATE TABLE dept_obj_table OF dept_obj_type
    CREATE TYPE emp_obj_type AS OBJECT (
       empno  NUMBER (4),
       ename  VARCHAR2 (20),
       deptno NUMBER (2)
    CREATE TABLE emp_obj_table OF emp_obj_type
    -- procedure inserts a "generic object type" variable
    CREATE OR REPLACE PROCEDURE gen_insert1 (
       p_table   VARCHAR2,
       p_anydata ANYDATA)
    IS
       l_statement VARCHAR2 (32000);
    BEGIN
       l_statement :=
       '  DECLARE' ||
       '     l_anydata ANYDATA := :p_anydata;' ||
       '     l_object ' || p_anydata.GetTypeName || ';' ||
       '     l_result_code PLS_INTEGER;' ||
       '  BEGIN ' ||
       '     l_result_code := l_anydata.GetObject (l_object);' ||
       '     INSERT INTO ' || p_table || ' VALUES (l_object);' ||
       '  END;';
       EXECUTE IMMEDIATE l_statement USING IN p_anydata;
    END;
    -- unnamed PL/SQL block for testing
    DECLARE
       l_dept dept_obj_type;
       l_emp  emp_obj_type;
    BEGIN
       -- creates objects
       l_dept := dept_obj_type (10, 'dept 10');
       l_emp  := emp_obj_type (2000, 'emp 2000', 10);
       -- inserts objects
       gen_insert1 (
          p_table   => 'dept_obj_table',
          p_anydata => ANYDATA.ConvertObject (l_dept));
       gen_insert1 (
          p_table   => 'emp_obj_table',
          p_anydata => ANYDATA.ConvertObject (l_emp));
    END;
    /For (very complicated) relational version see
    Inserting a "Generic Record Type" Using ANYDATA/ANYTYPE Types
    http://www.quest-pipelines.com/pipelines/plsql/tips04.htm#MARCH
    Regards,
    Zlatko Sirotic

  • How to get field in form having Datatype "BLOB"

    hello,
    I have an "Picture" field in my table which is of datatype "BLOB"
    can someone please help me how can i get that field in my 'FORM'.
    Thanks
    Sanjay

    You need the following procedure - execute grant to public:
    CREATE OR REPLACE PROCEDURE image_display (p_image_id IN NUMBER)
    AS
       l_mime        VARCHAR2 (255);
       l_length      NUMBER;
       l_file_name   VARCHAR2 (2000);
       lob_loc       BLOB;
    BEGIN
       SELECT mime_type, blob_content, NAME, DBMS_LOB.getlength (blob_content)
         INTO l_mime, lob_loc, l_file_name, l_length
         FROM image_table
        WHERE ID = p_image_id;
       -- Set up HTTP header
       -- Use an NVL around the mime type and  if it is a null, set it to
       -- application/octect - which may launch a download window from windows
       OWA_UTIL.mime_header (NVL (l_mime, 'application/octet'), FALSE);
       -- Set the size so the browser knows how much to download htp.p('Content-length: ' || l_length);
       -- The filename will be used by the browser if the users does a "Save as" htp.p('Content-Disposition: filename="' || l_file_name || '"');
       -- Close the headers
       OWA_UTIL.http_header_close;
       -- Download the BLOB
       wpg_docload.download_file (lob_loc);
    END image_display;Then you need to create a display item
    Source Used: Allways replacing any existing value...
    Source Type: SQL Query
    and in the SQL Query enter the following:
    SELECT    '&lt;img src="#OWNER#.image_display?p_image_id='
           || NVL (ID, 0)
           || '" />'
      FROM image_table
    WHERE ID = your_idDenes Kubicek

  • HCM Process and Forms Generic Service Error

    I tried creating a generic service for HCM Process and Forms using enhancement spot HRASR00GENERIC_SERVICES. After I created a custom implementation I then added the filter value = ZH_FORM_HEADER (my generic service name/definition). When I try to go into the configuration and add the generic service and do the binding of the fields I get an error stating "Generic Service ZH_FORM_HEADER has more than one implementation." I have double checked and only one implementation is using that filter value and there are no implementations with a blank filter value that belong to this enhancement spot. Any suggestions on what could be wrong? I can create generic services and the implementations of the BADIs just fine in our sandbox just not in the development instance. Also, I have tried searching on OSS and SDN and couldn't find any messages associated with this problem.

    Hi :
    We are having a similar problem. Our generic service works OK in development system. But after we transport the service to Test system, the service haveing the error " Generic service XXXXXX has more than one implementation".
    Have you solved your problem? Can you tell us the solution?
    Best regards!
    Wayne

  • MacIntosh to NT Conversion - Forms and Reports

    I have to convert an existing 4.5 system from MacIntosh to NT.
    I am looking for hints on what to do and what not to do.
    If you have done this type of conversion please let me know.
    I am currently researching the use of uifont.ali (from tools\common60) and FORMS60_DEFAULTFONT, plus Oracle Terminal.
    Are there any other tools about which I should be researching?
    Thanks

    If you only need Forms and Reports you can use Forms & Reports Services Standalone version, dowloadable from http://www.oracle.com/technology/software/products/ias/htdocs/101202.html

  • Conversion form Date to Varchar2

    I want to do a work as i want user enter the amount in digits and i will display its result in text form i use the following command
    "Select initcap(To_Char(To_Date(&SumRCTAMTPerReport,'J'),'JSP')||' Only') From Dual;"
    it works right but it cannot give the result after 7 Digits now can any body help me
    how can i display the text when my amount increased from 7 digits.

    Please, take a look to the OraMag Tom Kyte's article on Spelling Out a Number
    Nicolas.

  • Conversion of Decimal datatype

    Post Author: tanuja.patankar
    CA Forum: Data Integration
    Hi Friends,
    I am pretty new to DI 11.7 but I am experiencing a funny issue.I have a calculation in my query transform which has A/B where A is a decimal(10,2) and B is int .The output calculation column does not retain the decimal numbers .I tried the following :-
    1.Made the calculated collumn as a decimal(10,2), it didnt work.
    2.Made the collumn B to a decimal(10,2) it didnt work.
    3.Used To_char to convert the calculation in char to retain the decimal numbers, it didnt work.
    4.Used concatenation operator making the calculated column as a varchar:-'To_char(A/B)||'.'||To_Char(Mod(A,B)),it didnt work.
    5.Tried To_Decimal and to_Decimal_ext, it didnt work
    6.Tried using Cast() function , it didnt work too.
    Hence if the output of the calculation is 122.34 i would always end up getting 122.00 or 122.
    Please help and let me know if there is anyother way to go about it.
    Best Regards,
    Tanuja

    Post Author: bbatenburg
    CA Forum: Data Integration
    It seems you tried quite a lot. For problem solving you can use the validation is_valid_decimal/ is_valid_int. This should help you pinpointing the location of the problem. I always them when i encounter problems with datatypes.

  • Conversion form .mdf to .DBF , Plz see this...

    Hi all,
    Thanks for reading this:
    My Java application needs to read a .mdf database format (SQLServer) and export data (after some processing) in a .DBF format (for use with ArcView GIS).I can read from my SQLServer, but don't know how to generate a .DBF format. Are there any mechanisms in Java to do this?
    Any comments, i greatly welcome.

    I assume that you are using Windows (as you are talking about SQL Server)
    What you could do, is to create an ODBC datasource with the DBF driver.
    Then create the target tables while connected to your ODBC connection (through the JDBC/ODBC bridge). This will create the .dbf files (one for each table). This can be done by sending the CREATE TABLE commands through JDBC. You will probably need to test which datatypes DBF supports (apart from CHAR(n))
    Then you can connect to SQL Server and read the data from there and INSERT the data into your DBF tables.
    If you it's a one to one table copy, you could save your data as SQL INSERT with an appropriate tool and then execute those inserts while connected to you DBF datasource.
    Thomas

  • Forming generic sql query   for joining multiple sap tables in ABAp

    Hi,
    I am new to this abap field ,facing an issue onsap-jco project . I have used RFC_READ_TABLE  FM ,Customized this FM but facing an issue how to write generic  open SQl select statement  for joining multiple tables  using RFC_READ_TABLE .Kindly help on this issue.
    Thanks.

    something like this? If your tuples are not single columns, then you'll have to use dynamic sql to achieve the same result.with
    table_1 as
    (select '|Xyz|Abc|Def|' tuple from dual
    table_2 as
    (select '|Data1|Data21|Data31|Data41|Data51|' tuple from dual union all
    select '|Data2|Data22|Data32|Data42|Data52|' tuple from dual union all
    select '|Data3|Data23|Data33|Data43|Data53|' tuple from dual union all
    select '|Data4|Data24|Data34|Data44|Data54|' tuple from dual union all
    select '|Data5|Data25|Data35|Data45|Data55|' tuple from dual
    select case the_row when 1
                        then tuple
                        else '|---|---|' || substr(tuple,instr(tuple,'|',1,3) + 1)
           end tuple
      from (select substr(a.tuple,instr(a.tuple,'|',:one_one),instr(a.tuple,'|',:one_one + 1)) ||
                   substr(a.tuple,instr(a.tuple,'|',1,:one_two) + 1,instr(a.tuple,'|',1,:one_two + 1) - instr(a.tuple,'|',1,:one_two)) ||
                   substr(b.tuple,instr(b.tuple,'|',1,:two_one) + 1,instr(b.tuple,'|',1,:two_one + 1) - instr(b.tuple,'|',1,:two_one)) ||
                   substr(b.tuple,instr(b.tuple,'|',1,:two_two) + 1,instr(b.tuple,'|',1,:two_two + 1) - instr(b.tuple,'|',1,:two_two)) tuple,
                   rownum the_row
              from table_1 a,table_2 b
    order by the_rowRegards
    Etbin
    Message was edited by:Etbin
    user596003

  • Time conversion form calday to quarter.

    Hi,
    I have calday in ODS with format (MM/DD/YYYY). Now in Cube I want 0fical week and 0fiscal quarter.
    pls give me the logic. fiscal year starts from 1st-oct.
    Regards,
    Sai

    Hi,
    here there is no need of code, it is direct asignment ,
    add the  ficsal variant , fiscal year(0FISCYEAR) , fiscal quarter(0FISCQUAR) and 0calweek in cube level
    in transformations directly map theat 0calday to allthe above objects , fisc varient should be to fiscla varatnt
    and 0calday -
    to calweek, fiscyear and fisc quartere
    by default sysytm converts , you need not write any code for that.
    thansk & regarsd,
    sathish

  • Datetime Datatype problem in Forms

    Hi,
    I have just faced a problem some moment ago in Oracle Forms . Firstly , informed you that i am using Forms [32 Bit] Version 10.1.2.0.2 (Production)
    Ok, i have a field named ENTRY_TIMESTAMP. I kept 'Datetime' datatype there in forms level. Now if i change anywhere on that particular form, ENTRY_TIMESTAMP datatype changed from 'Datetime' to 'Date'. You can also check it by making a form of this scenario.
    I don't know , is it a bug or any others code/process is responsible for this kind of changing ?
    Any idea ?????????????

    shuvro wrote:
    Hi,
    I have just faced a problem some moment ago in Oracle Forms . Firstly , informed you that i am using Forms [32 Bit] Version 10.1.2.0.2 (Production)
    Ok, i have a field named ENTRY_TIMESTAMP. I kept 'Datetime' datatype there in forms level. Now if i change anywhere on that particular form, ENTRY_TIMESTAMP datatype changed from 'Datetime' to 'Date'. You can also check it by making a form of this scenario.
    I don't know , is it a bug or any others code/process is responsible for this kind of changing ?
    Exactly i don't know, is it bug ? but thinking so as same case happened for form version 6i
    But it not happened for form version *10.1.2.3* To upgrade you need patchset from support.oracle.com / metalink.
    If your have valid support contact then you can able to download.
    Hope this helps
    Hamid
    If someone's response is helpful or correct, please mark it accordingly.*

  • Migration of Oracle forms conversion?

    Hi All,
    I would like to know steps or procedures for migrating oracle forms using Jdeveloper and Apex.
    By using which toll i mean Jdeveloper or apex we can achieve the best results?
    Thanks,
    Anoo..

    Hi,
    But when i have tried a poc for oracle conversion forms, it is converting into separete pages? in that scenerio how can we combine or i mean how to integrate it?
    and the same time can we get steps for Jdeveloper also.
    Apart from these i would what others tools can we use for migarting.
    Thanks,
    Anoo..

Maybe you are looking for

  • Can I use my iMac i5 as a WiFi base station?

    I have an iMac i5, which is supposed to have a built-in Air Port Extreme card. My problem is that my regular WiFi (a Verizon-supplied FiOs combination WiFi/Router) is for some reason not working well the past couple of days. We can't figure out why,

  • REPLY

    What is Polymorphism? What is dynamic binding of objects Can a reference variables declared with static reference to a super class can dynamically point to an object of a subclass of this super class and access the components known to the super class

  • My iPhone doesn't push anymore

    Nothing pushes anymore, mail, Facebook, calendar, nothing!!  Anyone else got this on 4s?

  • URGENT !! URGENT !! Data importing....

    Can any one guide me as to how i can import oracle 8 dmp file into oracle 7 database Thanx null

  • Photos do not display in IE

    hi have uploaded my site to Mobileme (iWeb 09 using SL). When viewing in Safari everything is fine. When viewing with IE the page opens and the photos appear on the page but then disappear. On a photos page the same happens but if I click on the area