Pls tell what is err in this procedure

pls tell what is err in this procedure
create or replace procedure before_insert
is
counter NUMBER;
sql_string VARCHAR2 (4000);
BEGIN
FOR Outercounter IN 1 .. 2 LOOP
FOR Innercounter IN 1 .. 10 LOOP
sql_string :=
'INSERT INTO emp_50' || OuterCounter
|| '(id, col_a ,col_b,col_c ,col_d ,col_e, col_f ,col_g ,col_h ,col_i ,col_j ,col_k,col_l,col_m,col_n,col_o,col_p,
col_q,col_r,col_s,col_t,col_u,col_v,col_w,col_x,col_y,col_z,col_aa,col_bb,col_cc,col_dd,col_ee,col_ff,col_gg,
col_hh,col_ii,col_jj,col_kk,col_ll,col_mm,col_nn,col_oo,col_pp,col_qq,col_rr,col_ss,col_tt,col_uu,col_vv,col_ww,
col_xx) VALUES (''id.nextval'',''col_a'',
sysdate,
''col_c '',''col_ddd'' ,''col_eee'',''col_ffff'' ,''col_g'' ,sysdate ,''col_iiii'' ,''col_j'' ,sysdate,''col_l'',''col_m'',''col_n'',''col_o'',
''col_p'',sysdate,''col_r'',''col_s'',''col_t'',''col_u'',''col_vvv'',''col_w'',sysdate,''col_y'',''col_z'',
''col_a'',''COL_BB'',''col_cc'',''col_dd'',sysdate,''col_ff'',''col_gg'',''col_h'',''col_ii'',''col_jj'',
''col_kkkkk'',sysdate,''col_mm'',''col_nnmmm'',''col_o'',''col_pp'',''col_qqqqq'',''col_rrqqq'',sysdate,''col_tt'',''
col_uuuuuu'',''col_v'',''col_ww'',''col_xx'')';
EXECUTE IMMEDIATE sql_string;
END LOOP;
END LOOP;
END;
ERROR at line 1:
ORA-01722: invalid number
ORA-06512: at "EMPLOYEE.BEFORE_INSERT", line 21
ORA-06512: at line 1

why you are using double quotes with a seq number, when inserting??
''id.nextval''

Similar Messages

  • Dear all, I am unable to use face time. It says "waiting for activation". Pls tell what should I do.

    Dear all, I am unable to use face time. It says "waiting for activation". Pls tell what should I do.

    I found a solution that solve the problem, and worked immediately.
    FaceTime worked for me since I purchased my iPhone 4 more than a year ago.
    It stopped working for me since I upgrade it to ios5.
    The reason is that I had Restrictions On: accounts set to "Don't allow changes"
    When you set this like that, you naturally blocking iCloud and FaceTime accounts.
    To solve the problem go to Settings -> General -> Restrictions, and make sure you "allow changes" to accounts and also enable the FaceTime app to work.
    Return to Settings -> FaceTime, and set it to 0 and back to 1.
    That should do the trick. ☺
    I recommend after to "Don't allow changes" to Accounts and Location, to block thieves disable the "Find my iPhone" functionality.  
    Good luck!
    Christophe

  • Can u pls tell what r the currency and quantity fields in detail.

    hi to all can u pls teell
    can u pls tell what r the currency and quantity fields in detail.
    what is reference table .and reference fields .why we r giving theese reference table names while creating the currency fields .

    Hi,
    Currency amount fields and quantity fields are numeric fields which each have a currency or unit field assigned to them. The correct interpretation of the values in these fields depends on its currency or unit of measure. Therefore, you can decide whether you want their corresponding currency/unit of measure to be displayed before or after the field, or not at all. Proceed as follows:
    1. Select the field.
    2. Choose one of the options from the window on the lower left (before, No currency field/unit, or after).
    3. Choose Apply.
    For more information check the following link:
    http://help.sap.com/saphelp_nw04/helpdata/en/0b/5da4e42cf511d5b692006094192fe3/frameset.htm
    Following are system variables of currency:
    SY-CCURS
    R/2 - exchange rate and result field for CURRENCY CONVERSION. Not filled in R/3.
    SY-CCURT
    R/2 - table exchange rate for CURRENCY CONVERSION. Not filled in R/3.
    SY-CDATE
    R/2 - exchange rate date for CURRENCY CONVERSION. Not filled in R/3.
    SY-CTABL
    R/2 - exchange rate table for CURRENCY CONVERSION. Not filled in R/3.
    SY-CTYPE
    R/2 - exchange rate type for CURRENCY CONVERSION. Not filled in R/3.
    SY-DCSYS
    Dialog system of the R/2 System. Not filled in R/3.
    SY-WAERS
    Formerly the company code currency after reading a posting segment. Not filled in R/3.
    Regards,
    Bhaskar

  • What is wrong with this procedure?

    Hello:
    I am trying to create the following procedure but it does not compile. Can somebody tell me what I am doing wrong?
    CREATE OR REPLACE PROCEDURE InnoBox_SA.spCheckUser
              ciUserID IN VARCHAR(20),
              coUserID OUT VARCHAR(20),
              cLastName OUT VARCHAR(20),
              cFirstName OUT VARCHAR(20),
              cAdminInd OUT CHAR(1)
    AS
         BEGIN
              SELECT
                   user_ID_C INTO coUserID,
                   Last_Name_C INTO cLastName,
                   First_Name_C INTO cFirstName,
                   Admin_Ind_C INTO cAdminInd
              FROM
                   InnoBox_SA.S_USER
              WHERE
                   User_ID_C = ciUserID;
              IF coUserID IS NULL THEN
                   BEGIN
                        INSERT INTO InnoBox_SA.S_USER
                             (User_ID_C,
                             Created_By_C,
                             Updated_By_C)
                        VALUES
                             (ciUserID,
                             'FirstTime',
                             'FirstTime');
                   END;
         END;
    Thanks.
    Venki

    Kamal:
    I made it even simpler:
    CREATE OR REPLACE PROCEDURE InnoBox_SA.spCheckUser
              ciUserID VARCHAR(20)
    AS
         cUserID VARCHAR(20);
         BEGIN
              SELECT
                   user_ID_C INTO cUserID
              FROM
                   InnoBox_SA.S_USER
              WHERE
                   User_ID_C = ciUserID;
              IF cUserID IS NULL THEN
                   INSERT INTO InnoBox_SA.S_USER
                        (User_ID_C,
                        Created_By_C,
                        Updated_By_C)
                   VALUES
                        (ciUserID,
                        'FirstTime',
                        'FirstTime');
              END IF;
         END;
    All it takes is a User ID. If it does not exist, then it creates one.
    I used SQL-plus to create the procedure. Pl-SQL just informs me that the procedure was created with compiled errors.
    If I used EM to recompile, it says
    "Line # = 3 Column # = 19 Error Text = PLS-00103: Encountered the symbol "(" when expecting one of the following:
    := . ) , @ % default character
    The symbol ":=" was substituted for "(" to continue."
    Line 3 is refering to
    that's on Line 2 in my procedure.
    Thanks for your help.
    Venki

  • When I download an app I had to put in payment settings cause it was expiring,after that it was downloading but then said 'cannot download because your ipad does not enough space' but I actually have 3.3 gb while the game is 1.4 .pls tell what to do

    When I download an app I had to put in payment settings cause it was expiring,after that i paid and it was downloading but then said 'cannot download because your ipad does not enough space' but I actually have 3.3 gb while the game is 1.4 . I tried rebooting and powering off but still it didnt work even when I clicked the app( which still hasn't downloaded yet). What do I do now?

    The GB size of the download file is the compressed size (like .zip or .dmg). When the file is installed/uncompressed it can be 2-3 times larger.
    How much space is used by your Other? You may be able to reduce.
    How Do I Get Rid Of The “Other” Data Stored On My iPad Or iPhone?
    http://tinyurl.com/85w6xwn
    With an iOS device, the “Other” space in iTunes is used to store things like documents, settings, caches, and a few other important items. If you sync lots of documents to apps like GoodReader, DropCopy, or anything else that reads external files, your storage use can skyrocket. With iOS 5/6, you can see exactly which applications are taking up the most space. Just head to Settings > General > Usage, and tap the button labeled Show All Apps. The storage section will show you the app and how much storage space it is taking up. Tap on the app name to get a description of the additional storage space being used by the app’s documents and data. You can remove the storage-hogging application and all of its data directly from this screen, or manually remove the data by opening the app. Some applications, especially those designed by Apple, will allow you to remove stored data by swiping from left to right on the item to reveal a Delete button.
     Cheers, Tom

  • Pls tell me how to avoid this error

    Hi All,
    I am getting the follwing excepition while running the application.
    which jar i need to add in the class path. I am using weblogic 10.0 sever.
    pls help as soon as possible.
    Exception in thread "main" java.lang.NoClassDefFoundError: weblogic/transaction/internal/TransactionHelperImpl
    at weblogic.jndi.spi.EnvironmentManager$DefaultFactoryMaker.<clinit>(EnvironmentManager.java:26)
    at weblogic.jndi.spi.EnvironmentManager.getInstance(EnvironmentManager.java:48)
    at weblogic.jndi.Environment.getContext(Environment.java:307)
    at weblogic.jndi.Environment.getContext(Environment.java:277)
    at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:117)
    at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
    at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
    at javax.naming.InitialContext.init(InitialContext.java:223)
    at javax.naming.InitialContext.<init>(InitialContext.java:197)
    at com.deceval.security.businessobjects.ServiceLocator.getContext(ServiceLocator.java:66)
    at com.deceval.security.businessobjects.ServiceLocator.getSecurityServerMgrSO(ServiceLocator.java:138)
    at com.deceval.security.securityinterface.SecuritySubSystemWin.<init>(SecuritySubSystemWin.java:121)
    at com.deceval.security.securitywindow.StartClass.<init>(StartClass.java:29)
    at com.deceval.security.securitywindow.StartClass.main(StartClass.java:47)
    Press any key to continue . . .
    thanks in advance
    krishna

    Hi,
    Check the below link:
    http://www.tek-tips.com/viewthread.cfm?qid=938138&page=6
    Best regards,
    Rafi.
    http://rafioracledba.blogspot.com/

  • Hi I have internet wi Fi only at home.can somebody pls tell what options do I have so I can have Internet on.my iPod everywhere

    Pls help

    You need to purchase a device and data plan for a a device like a MiFi (Googl efor it).  It a credit-card size device that that acts as a wifi hot spot to which the iPod can connect.  It also has cellular circuits to connect to a cellular network like a phone.

  • My itunes is not working its jus closing when i open it pls tell me how to fix this issue

    if i install the os will the data in the mac will be earesed

    I had something similar while trying to open one of my podcasts, though sending the report to apple twice it seems to open up fine after

  • Import selected photos button not working, Please tell me how to enable this function.

    in Iphoto on macbook pro, the 'import selected' button blacked out, only 'import all photos' works, pls tell me how to get this to work. i'd like to transfer only selected photos to ipad. Have tried to import by copy/paste method into itunes but still cannot be done, every way i've tried is restricted. I don't want to send all my photos through email. neither do i want to use icloud. all i simply want is to have only selected photos sent through my USB cable connected from my macbook pro to send photos to Ipad. It seems Apple have made these strange restrictions for whatever purpose i don't know.

    If you went through the 5 Rs step by step and you're still having problems, it might be time to find an iPod repair service. Apple will charge you as it's out of warranty. You can probably find third party repair outfits that will do it more cheaply.

  • Can anyone pls explain what this procedure does?

    i could only figure out that it will be performing a transpose.
    create or replace
    PROCEDURE TEST_TRANSPOSE(o_test OUT SYS_REFCURSOR) AS
    report_exists number(3);
    report_name varchar(30) := 'REPORT_TBL' ;
    query_main varchar(16000) := 'create table ' || report_name || ' as select MAGAZINE ' ;
    query_part varchar(1024) ;
    my_var varchar2(5);
    cursor cur_region is select distinct REGION from MAIN_TBL order by region;
    begin
    select count(*) into report_exists
    from tab
    where tname = report_name;
    if ( report_exists = 1 ) then
    execute immediate 'drop table ' || report_name ;
    end if;
    open cur_region ;
    loop
    fetch cur_region into my_var ;
    exit when cur_region%NOTFOUND;
    query_part := 'select nvl(sum(quantity),0) from MAIN_TBL x where x.magazine = main.magazine and x.region='''||my_var||'''' ;
    query_main := query_main || chr(10) || ',(' || query_part || ')"' || my_var || '"';
    end loop;
    close cur_region ;
    query_main := query_main || ' from (select distinct MAGAZINE from MAIN_TBL ) main' ;
    DBMS_OUTPUT.PUT_LINE(query_main);
    --execute immediate query_main ;
    open o_test for query_main;
    end;
    {code}
    i need to transpose  a table which has dynamic number of rows.This was what i tried.Could you pls bhelp me out to correct this i get "P_TRAN_YEAR" invalid identifier
    [code]
    create or replace
    PROCEDURE         PRM_R_MAT_RPT (p_EmpID     IN  Integer,
    P_TRAN_YEAR IN NUMBER,
    P_TRAN_MONTH IN NUMBER,O_rc OUT sys_refcursor) IS
    v_cnt NUMBER;
    v_sql VARCHAR2(32767);
    v_basic Number(16, 4);
    BEGIN
    select PPH_ORG_AMOUNT into v_basic from prm_p_hop
    where pph_emp_id=p_empid
    and pph_tran_year=p_tran_year
    and pph_tran_month=P_TRAN_MONTH
    and pph_hop_code=5
    and PPH_SALARY_THRU='R';
    -- SELECT  distinct count(*)
    --  INTO v_cnt
    --  FROM PRM_T_VAR_HOP
    --  where PTVH_EMP_ID=p_EMPID
    --  and PTVH_TRAN_YEAR=p_TRAN_YEAR
    --  and PTVH_TRAN_MONTH=P_TRAN_MONTH;
    v_sql := 'select  distinct PCH_SHORT_DESCRIPTION,v_basic,PTVH_AMOUNT Amount ';
    --  FOR i IN 1..v_cnt
    --  LOOP
    v_sql := v_sql || ',max(decode(rn, PCH_SHORT_DESCRIPTION)) as description ';
    --v_sql := v_sql || ',max(decode(rn, '||to_char(i)||', PDSL_INTEREST)) as interest'||to_char(i);
    -- v_sql := v_sql || ',max(decode(rn, '||to_char(i)||', PDSL_PRINCIPAL_SALARY)) as principle'||to_char(i);
    -- v_sql := v_sql || ',max(decode(rn, '||to_char(i)||', PDSL_SOCIETY_CODE)) as SOC_CODE'||to_char(i);
    --  END LOOP;
    v_sql := v_sql || ' from (select  PRM_T_VAR_HOP.*, PRM_C_HOP.*, row_number() over (partition by PTVH_EMP_ID order by PTVH_EMP_ID) as rn
    from  
    PRM_T_VAR_HOP,
    PRM_C_HOP
    WHERE PTVH_EMP_ID         =P_empid
    And   PTVH_TRAN_YEAR      =P_TRAN_YEAR
    And   PTVH_TRAN_MONTH     =P_TRAN_MONTH
    And   PTVH_HOP_CODE       =PCH_HOP_CODE
    AND   PCH_CALCULATION_BASIS=''V''
    AND   PCH_TAG              =''C''
    AND   PTVH_SALARY_THRU     =''R'')';
    OPEN O_rc FOR v_sql;
    END;
    [/code]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Your first piece of code does not work, because a create table statement cannot be issued using a ref cursor like that. When executed with the "execute immediate" command, it works. Then, the refcursor is only a "select * from report_tbl".
    What it does, is dynamically dropping and creating a table report_tbl and filling it with the results of a horribly inefficient pivot query. If the report_tbl has no other purpose after running this procedure, then I'd suggest to not drop and create tables dynamically like that. In the second variant of test_transpose, you can see how you can do that.
    SQL> create table main_tbl (magazine,region,quantity)
      2  as
      3  select 'MAGAZINE1','REGION1',1 from dual union all
      4  select 'MAGAZINE1','REGION2',2 from dual union all
      5  select 'MAGAZINE1','REGION3',3 from dual union all
      6  select 'MAGAZINE2','REGION1',4 from dual union all
      7  select 'MAGAZINE2','REGION2',5 from dual union all
      8  select 'MAGAZINE2','REGION3',6 from dual
      9  /
    Tabel is aangemaakt.
    SQL> create or replace PROCEDURE TEST_TRANSPOSE(o_test OUT SYS_REFCURSOR)
      2  AS
      3    report_exists number(3);
      4    report_name varchar(30) := 'REPORT_TBL' ;
      5    query_main varchar(16000) := 'create table ' || report_name || ' as select MAGAZINE ' ;
      6    query_part varchar(1024) ;
      7    my_var varchar2(7);
      8
      9    cursor cur_region is select distinct REGION from MAIN_TBL order by region;
    10  begin
    11    select count(*) into report_exists
    12    from tab
    13    where tname = report_name;
    14    if ( report_exists = 1 ) then
    15    execute immediate 'drop table ' || report_name ;
    16    end if;
    17
    18    open cur_region ;
    19    loop
    20      fetch cur_region into my_var ;
    21      exit when cur_region%NOTFOUND;
    22      query_part := 'select nvl(sum(quantity),0) from MAIN_TBL x where x.magazine = main.magazine and x.region='''||my_var||'''' ;
    23      query_main := query_main || chr(10) || ',(' || query_part || ')"' || my_var || '"';
    24    end loop;
    25    close cur_region ;
    26
    27    query_main := query_main || ' from (select distinct MAGAZINE from MAIN_TBL ) main' ;
    28    execute immediate query_main;
    29    open o_test for 'select * from ' || report_name;
    30  end;
    31  /
    Procedure is aangemaakt.
    SQL> var rc refcursor
    SQL> exec test_transpose(:rc)
    PL/SQL-procedure is geslaagd.
    SQL> print rc
    MAGAZINE     REGION1    REGION2    REGION3
    MAGAZINE1          1          2          3
    MAGAZINE2          4          5          6
    2 rijen zijn geselecteerd.
    SQL> create or replace procedure test_transpose (o_test out sys_refcursor)
      2  as
      3    l_query varchar2(1000) := 'select magazine';
      4  begin
      5    for r in (select distinct region from main_tbl)
      6    loop
      7      l_query := l_query || ', sum(decode(region,''' || r.region || ''',quantity)) ' || r.region;
      8    end loop;
      9    l_query := l_query || ' from main_tbl group by magazine';
    10    open o_test for l_query;
    11  end;
    12  /
    Procedure is aangemaakt.
    SQL> exec test_transpose(:rc)
    PL/SQL-procedure is geslaagd.
    SQL> print rc
    MAGAZINE     REGION1    REGION2    REGION3
    MAGAZINE1          1          2          3
    MAGAZINE2          4          5          6
    2 rijen zijn geselecteerd.Regards,
    Rob.

  • I have tried downloading about 6 times and this is the message I keep getting.  Pls. tell me what to do!!Exit Code: 7 Please see specific errors below for troubleshooting. For example,  ERROR:--- Summary -----  - 0 fatal error(s), 2 error(s)     ERROR: Th

    I have tried downloading about 6 times and this is the message I keep getting.  Pls. tell me what I am doing wrong
    Exit Code: 7
    Please see specific errors below for troubleshooting. For example, ERROR:
    -------------------------------------- Summary --------------------------------------
    - 0 fatal error(s), 2 error(s)
    ERROR: This installer does not support installation on a 64-Bit Windows operating system. Please download the 64-Bit version of Photoshop Elements.
    ERROR: System check returned with error : 6I have tried downloading about 6 times and this is the message I keep getting

    Exit Code: 6, Exit Code: 7 Installation Errors - http://helpx.adobe.com/creative-suite/kb/errors-exit-code-6-exit.html
    Troubleshoot with install logs | CS5, CS5.5, CS6 - http://helpx.adobe.com/creative-suite/kb/troubleshoot-install-logs-cs5-cs5.html for information on how to review your installation logs

  • Pls.help my iphone stuck in recovery mode and itunes wont recognize it..i tried the other options that posted here,,,pls tell me what to do..

    pls. help my iPhone stuck in recovery mode and iTunes wont recognize it..i tried the other options that posted here,,,pls tell me what to do..before it was just stuck in an apple logo but when i tried recovery mode to itunes then it stuck..

    Hi awison,
    If your iPhone is not recognized by iTunes on your Windows computer you may want to use the steps in this article to troubleshoot -
    iOS: Device not recognized in iTunes for Windows
    http://support.apple.com/kb/TS1538
    This may also resolve your recovery mode issue. If it does not, use the steps in this article to resolve it -
    Use iTunes to restore your iOS device to factory settings
    http://support.apple.com/kb/HT1414
    Thanks for using Apple Support Communities.
    Best,
    Brett L

  • Can any one pls tell me the procedure of crm datasourse data extraction r/3

    hi
    pls can any one pls tell me the procedure of crm datasourse data extraction from r/3
    regards
    subbu

    Subbu,
    First off please don't post the same question twice.  I have locked your other question due to it being a duplicate.
    Second off:  don't expect an answer to your question immediately.
    Third off:  You need to read the rules of engagement before posting any more questions here:
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/home/rulesofEngagement
    Fourth:  You question is way too vague and honestly if you would have done a search or read some introductory material on CRM, you would have learnt that the CRM middleware handles the data transfer.
    Last:  I'm locking this thread because your question is way too vague, please take a look at the CRM wiki and help.sap.com and read all the associated documentation about CRM on those sites.
    CRM wiki
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/crm/home
    Then you can come back here if you have a detailed question after reading those materials.
    Take care,
    Stephen
    CRM Forum Moderator

  • Pls tell  me abut this function REUSE_ALV_COMMENTARY_WRITE

    hi all,
                   pls tell  me abut this function REUSE_ALV_COMMENTARY_WRITE.
          what is exactly does it.
    regards
    vikas saini.

    hi,
    it is used to display header and footer in ALV...
    TYPE-POOLS : slis.
    TABLES : mara,
             makt,
             marc.
    DATA : BEGIN OF itab OCCURS 0,
            matnr LIKE mara-matnr,
            maktx LIKE makt-maktx,
            werks LIKE marc-werks,
           END OF itab.
    DATA : t_fcat TYPE slis_t_fieldcat_alv,
           t_eve TYPE slis_t_event,
           st_line TYPE slis_listheader,
           t_list_top_page TYPE slis_t_listheader,
           t_list_end_page TYPE slis_t_listheader.
    DATA : t_mat LIKE mara-matnr.
    SELECTION-SCREEN : BEGIN OF BLOCK blk1 WITH FRAME TITLE text-001.
    SELECT-OPTIONS : mat FOR mara-matnr.
    SELECTION-SCREEN : END OF BLOCK blk1.
    INITIALIZATION.
      PERFORM build_cat USING t_fcat.
      PERFORM build_eve.
    START-OF-SELECTION.
      PERFORM get_data.
      PERFORM build_header USING t_list_top_page[].
      PERFORM build_footer USING t_list_end_page[].
      PERFORM dis_data.
    *&      Form  buils_cat
    *       text
    *      -->TEMP_FCAT  text
    FORM build_cat USING temp_fcat TYPE slis_t_fieldcat_alv.
      DATA : wa_fcat TYPE slis_fieldcat_alv.
      wa_fcat-tabname = 'ITAB'.
      wa_fcat-fieldname = 'MATNR'.
      wa_fcat-seltext_m = 'Material'.
      APPEND wa_fcat TO temp_fcat.
      CLEAR wa_fcat.
      wa_fcat-tabname = 'ITAB'.
      wa_fcat-fieldname = 'MAKTX'.
      wa_fcat-seltext_m = 'Material Description'.
      APPEND wa_fcat TO temp_fcat.
      CLEAR wa_fcat.
      wa_fcat-tabname = 'ITAB'.
      wa_fcat-fieldname = 'WERKS'.
      wa_fcat-seltext_m = 'Plant'.
    *  wa_fcat-row_pos = 2.
      APPEND wa_fcat TO temp_fcat.
      CLEAR wa_fcat.
    ENDFORM.                    "build_cat
    *&      Form  build_eve
    *       text
    FORM build_eve.
      DATA : wa_eve TYPE slis_alv_event.
      CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
       EXPORTING
         i_list_type           = 0
       IMPORTING
         et_events             = t_eve
    * EXCEPTIONS
    *   LIST_TYPE_WRONG       = 1
    *   OTHERS                = 2
      IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      READ TABLE t_eve INTO wa_eve WITH KEY name = 'END_OF_LIST'.
      IF sy-subrc = 0.
        wa_eve-form = 'END_OF_PAGE'.
        MODIFY t_eve FROM wa_eve INDEX sy-tabix.
      ENDIF.
    ENDFORM.                    "build_eve
    *&      Form  get_data
    *       text
    FORM get_data.
      SELECT mara~matnr makt~maktx marc~werks INTO CORRESPONDING FIELDS OF TABLE itab
      FROM mara INNER JOIN makt ON
      mara~matnr = makt~matnr
      INNER JOIN marc ON
      mara~matnr = marc~matnr
      WHERE mara~matnr IN mat.
    ENDFORM.                    "get_data
    *&      Form  dis_data
    *       text
    FORM dis_data.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
       EXPORTING
         i_callback_program                = 'ZALV_PRDS'
         i_callback_top_of_page            = 'TOP_OF_PAGE'
         it_fieldcat                       = t_fcat
         i_save                            = 'A'
         it_events                         = t_eve
       TABLES
          t_outtab                          = itab
    * EXCEPTIONS
    *   PROGRAM_ERROR                     = 1
    *   OTHERS                            = 2
      IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.                    "dis_data
    *&      Form  build_header
    *       text
    *      -->TEMP_LIST          text
    *      -->TTYPE              text
    *      -->SLIS_T_LISTHEADER  text
    FORM build_header USING temp_list TYPE slis_t_listheader.
      CLEAR st_line.
      st_line-typ = 'H'.
      st_line-info = 'Material Info'.
      APPEND st_line TO temp_list.
    CLEAR st_line.
      st_line-typ = 'S'.
      st_line-info = 'Material Info'.
      APPEND st_line TO temp_list.
    CLEAR st_line.
      st_line-typ = 'A'.
      st_line-info = 'Material Info'.
      APPEND st_line TO temp_list.
    ENDFORM.                    "build_header
    *&      Form  build_footer
    *       text
    *      -->TEMP_LIST  text
    FORM build_footer USING temp_list TYPE slis_t_listheader.
      CLEAR st_line.
      st_line-typ = 'H'.
      st_line-info = 'Dhwani Shah'.
      APPEND st_line TO temp_list.
    ENDFORM.                    "build_header
    *&      Form  top_Of_page
    *       text
    FORM top_of_page.
      CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
        EXPORTING
          it_list_commentary = t_list_top_page.
    ENDFORM.                    "top_Of_page
    *&      Form  end_of_page
    *       text
    FORM end_of_page.
      CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
        EXPORTING
          it_list_commentary = t_list_end_page.
    ENDFORM.                    "end_of_page
    <REMOVED BY MODERATOR>
    Edited by: Alvaro Tejada Galindo on Feb 25, 2008 5:44 PM

  • I have had two movie rentals, stop in the middle of downloading tonight, both giving me the error message "(err = 50)" -- It looks like its a network connectivity message, but I'm connected.  Any idea on what could be causing this?  No info anywhere!

    I have had two movie rentals, stop in the middle of downloading tonight, both giving me the error message "(err = 50)" -- It looks like its a network connectivity message, but I'm connected.  Any idea on what could be causing this?  I cannot find info anywhere!
    Thanks for any help

    If you have anti virus software installed, disable that.
    Try turning off the Firewall in System Preferences > Security
    iTunes: Advanced iTunes Store troubleshooting
    It would help when you post to tell us which Mac OS X you have installed. Thank you !!

Maybe you are looking for

  • ITunes 10.5 64bit Windows 7 doesn't install - anyone else have the same problem

    I have downloaded the update.  It says that it does not update and to do it manually.  I am installing each installer at a time.  It does not seem to like AppleMobileDeviceSupport64 and just gives me that an error has occurred.  It does this after a

  • How do I check/limit the size of a file

    I am logging data to a file periodically. Since the PC is at a remote site, and I download the data file via modem, I want to limit the size of the file by automatically starting a new file once the current file reaches a certain size (in kB) limit.

  • Iteration non sequencial with While Loop

    I've a SubVi in while Loop. Iteration n+1 will execute when Iteration n finish. Can I execute this SubVi in paralel (no sequencial)? In Spanish: Tengo una SubVi dentro de un bucle while. Pero este bucle actúa de forma secuencial. No se cargará la ite

  • Grainy Photos on iPad

    I hope this has an easy solution to it: I successfully synced my photos from my MacBook Pro to my iPad by using iTunes. However, the photos in my Photo folder in my iPad have all come out grainy, as you can see: Could anyone tell me what I'm doing wr

  • New installation with cable under carpet

    Just had FIOS installed last week.   Very happy with internet speed and quality of television.  BUT my wife was home for the installation and the tech installed the cable from the box to the router under the carpet.   This is in my den on the first f