Unsure why this is not working?

Can anyone give me a pointer as to why this is not working? I put the code from line 16 through 50 in the "...before displaying the page" additional pl/sql section of the wizard. The form wizard created the code from 5 through 15 and 51 through 55. The first error I understand because I think the wizard forgot to end the procedure correctly by saying "end beforeModuleDisplay;" instead of just putting "end;".
If I am right, how can I fix this since the wizard is the one putting in this info? I tried putting the correct end statement in where I put the rest of my code, but that created even more errors.
Error creating package SOCSBO_USER.ACCT_INFO
Error creating package SOCSBO_USER.ACCT_INFO
Line/ColumnError
56/5PLS-00103: Encountered the symbol "PROCEDURE" when expecting one of the following: begin declare end exception exit for goto if loop mod null pragma raise return select update while <an identifier> <a double-quoted delimited-identifier> <a bind variable> << close current delete fetch lock insert open rollback savepoint set sql execute commit forall <a single-quoted SQL string> The symbol "declare" was substituted for "PROCEDURE" to continue.
2128/5PLS-00103: Encountered the symbol "END" when expecting one of the following: begin function package pragma procedure form
-- PACKAGE BODY SOCSBO_USER.ACCT_INFO
-- created Monday 05-NOV-2001 16:52
create or replace
1 package body ACCT_INFO as
2 --
3 -- Created by ASAPP using WebDB at 15:16:46, Mar 04, 2002
4 --
5 procedure beforeModuleDisplay
6 (
7 p_block_name in varchar2,
8 p_object_name in varchar2,
9 p_instance in integer,
10 p_event_type in varchar2,
11 p_user_args in varchar2,
12 p_session in out PORTAL30.wwa_api_module_session
13 )
14 is
15 begin
16 declare
17 l_fs varchar2(200);
18 l_cv varchar2(200);
19 l_sv varchar2(200);
20 l_lang varchar2(100);
21 l_idx integer;
22 begin
23 l_lang := portal30.wwctx_api.get_nls_language;
24 l_fs := p_session.get_value_as_varchar2(
25 p_block_name => 'DEFAULT',
26 p_attribute_name => '_FORM_STATE');
27 l_cv := p_session.get_shadow_value(
28 p_block_name => 'DEFAULT',
29 p_attribute_name => 'A_ACCOUNT_COURSE',
30 p_language => l_lang);
31 l_sc := p_session.get_shadow_value(
32 p_block_name => 'DEFAULT',
33 p_attribute_name => 'A_ACCOUNT_SUBPROJECT',
34 p_language => l_lang);
35 if upper(l_fs) = 'UPDATE_AND_DELETE' then
36 l_idx := row_function.get_index('COURSE_BOTTOM');
37 if upper(l_cv) = 'Y' then
38 p_form.items(l_idx).visible := 'Y';
39 else
40 p_form.items(l_idx).visible := 'N';
41 end if;
42 end if;
43 if upper(l_fs) = 'UPDATE_AND_DELETE' then
44 l_idx := row_function.get_index('SUBPROJECT_BOTTOM');
45 if upper(l_sv) = 'Y' then
46 p_form.items(l_idx).visible := 'Y';
47 else
48 p_form.items(l_idx).visible := 'N';
49 end if;
50 end if;
51 exception
52 when others then
53 PORTAL30.wwerr_api_error.add(PORTAL30.wwerr_api_error.DOMAIN_WWV,'app','generic','SOCSBO_USER.ACCT_INFO.beforeModuleDisplay', p1 => sqlerrm);
54 raise;
55 end;
56 procedure row_function
REST OF CODE NOT RELEVANT

Hello Albert,
You open a new pl/sql block on line 16, but you have only one 'end' statement.
You can correct this by adding another 'end' statement after line 55 or you can remove the inner PL/SQL block and place it in the procedure itself. Variables can be declared after 'is' on line 14. In your example it's better to do it this way. See example.
Hope this helps...
Nancy.
Example solution 2:
-- PACKAGE BODY SOCSBO_USER.ACCT_INFO
-- created Monday 05-NOV-2001 16:52
create or replace
1 package body ACCT_INFO as
2 --
3 -- Created by ASAPP using WebDB at 15:16:46, Mar 04, 2002
4 --
5 procedure beforeModuleDisplay
6 (
7 p_block_name in varchar2,
8 p_object_name in varchar2,
9 p_instance in integer,
10 p_event_type in varchar2,
11 p_user_args in varchar2,
12 p_session in out PORTAL30.wwa_api_module_session
13 )
14 is
15 l_fs varchar2(200);
16 l_cv varchar2(200);
17 l_sv varchar2(200);
18 l_lang varchar2(100);
19 l_idx integer;
20
21 begin
22
23 l_lang := portal30.wwctx_api.get_nls_language;
24 l_fs := p_session.get_value_as_varchar2(
25 p_block_name => 'DEFAULT',
26 p_attribute_name => '_FORM_STATE');
27 l_cv := p_session.get_shadow_value(
28 p_block_name => 'DEFAULT',
29 p_attribute_name => 'A_ACCOUNT_COURSE',
30 p_language => l_lang);
31 l_sc := p_session.get_shadow_value(
32 p_block_name => 'DEFAULT',
33 p_attribute_name => 'A_ACCOUNT_SUBPROJECT',
34 p_language => l_lang);
35 if upper(l_fs) = 'UPDATE_AND_DELETE' then
36 l_idx := row_function.get_index('COURSE_BOTTOM');
37 if upper(l_cv) = 'Y' then
38 p_form.items(l_idx).visible := 'Y';
39 else
40 p_form.items(l_idx).visible := 'N';
41 end if;
42 end if;
43 if upper(l_fs) = 'UPDATE_AND_DELETE' then
44 l_idx := row_function.get_index('SUBPROJECT_BOTTOM');
45 if upper(l_sv) = 'Y' then
46 p_form.items(l_idx).visible := 'Y';
47 else
48 p_form.items(l_idx).visible := 'N';
49 end if;
50 end if;
51 exception
52 when others then
53 PORTAL30.wwerr_api_error.add(PORTAL30.wwerr_api_error.DOMAIN_WWV,'app','generic','SOCSBO_USER.ACCT_INFO.beforeModuleDisplay', p1 => sqlerrm);
54 raise;
55 end;
56 procedure row_function
REST OF CODE NOT RELEVANT

Similar Messages

  • Not Sure why this is not working

    hi all,
    Version details :
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    PL/SQL Release 11.2.0.2.0 - Production
    "CORE     11.2.0.2.0     Production"
    TNS for Solaris: Version 11.2.0.2.0 - Production
    NLSRTL Version 11.2.0.2.0 - Production
    Select * From Dual
    Where 'A' In (Decode( 'A','A','''A'''
      ||','
      ||'''B''','C','C'));
    Result :
       no rows
    Select * From Dual
    Where 'C' In (Decode( 'C','A','''A'''
      ||','
      ||'''B''','C','C'));
    Result :
    Dummy
       XPlease let me know why this is working like this ..
    Problem:
    When the input is 'A' then condition should be 'A' in ('A','B')
    When the input is 'C' then condition should be 'C' in ('C')
    Thanks,
    P Prakash
    Edited by: prakash on Feb 4, 2013 10:41 PM

    Your first query
    Select * From Dual Where 'A' In (Decode( 'A','A','''A'''||','||'''B''','C','C'));This would be evalueated like this
    select * from dual where 'A' = '''A'''||','||'''B'''And your second query
    Select * From Dual Where 'C' In (Decode( 'C','A','''A'''||','||'''B''','C','C'));Thiw would be evaluated like this
    select * from dual where 'C' = 'C'You cannot pass value for IN operater as comma seperated string. The entire string will be passed as a single value. Each value in an in operator is a seperate variable and need to be passed sperately.
    select * from dual where 'A' in ('A', 'B') is not the same as
    select * from dual where 'A' in ('''A'''||','||'''B''')

  • Why this does not works??? (I use jsp: include. to contain two jsp files)

    I have a main.jsp, and in this main.jsp, I have two part, leftButton.jsp and view.jsp, I want to include the leftButton.jsp and view.jsp to main.jsp.
    The code of main.jsp is like follows:
    <%@ page language="java" contentType="text/html" %>
    <html>
    <head>
    <title>JSP include element test</title>
    </head>
    <body>
    <table>
    <tr>
    <td><jsp: include page="leftButton.jsp" flush="true"></jsp: include></td>
                             <td>     <jsp: include page="view.jsp" flush="true"></jsp: include></td>
                        </tr>
         </table>
    </body>
    </html>
    Why the include does not works? by the way, I embeded a flash.swf file in view.jsp.

    Hi Mellon,
    You might be better off using a JSPF segment for leftButton.jsp & view.jsp and the <%@ include file="relativeURL" %>.
    Be careful that the included file does not contain <html>, </html>, <body>, or </body> tags. Because the entire content of the included file is added to the including JSP page, these tags would conflict with the same tags in the including JSP page, causing an error.
    Note: It is conventional to put JSP segements under the WEB-INF/jspf/ folder so the file cannot be accessed directly by a URL
    Note: JSPF files end with .jspf, so your files would be leftButton.jspf and view.jspf.

  • WHY THIS IS NOT WORKING

    CAN ANY ONE TELL ME THIS SIMPLE SELECT STATEMENT NOT WORKING PLEASE
    DATA IS NOT COMING
    TYPES: BEGIN OF TY_ITAB,
            F(3) TYPE C,
            F1(8) TYPE N,
            F2(8) TYPE N,
            F3(10) TYPE C,
            F4(2) TYPE C,
            F5(5) TYPE C,
            F6 TYPE zvbill-RATEMULTIPLE,
            F7 TYPE zvbill-RATEDIVISOR,
            F8(22) TYPE C,
            F9(30) TYPE C,
            F10 TYPE zvbill-BILLAMOUNT,
            F11(30) TYPE C,
            F12 TYPE D,
            F13(5) TYPE C,
            F14(15) TYPE C,
            F15(4) TYPE C,
            F16(4) TYPE C,
            F17 TYPE C,
            F18 TYPE D,
          END OF TY_ITAB.
    DATA: IT_ITAB1 TYPE TY_ITAB OCCURS 1 WITH HEADER LINE.
    START-OF-SELECTION.
    select SINGLE KUNNR from KNA1 into it_itab1 where KUNNR = '0000020001'.
    write:/ it_itab1-f3.
    in kna1 table 20001 data is there
    Edited by: SRI ABAPER on Jun 12, 2008 5:00 PM

    Hi,
    TYPES: BEGIN OF TY_ITAB,
      KUNNR LIKE KNA1-KUNNR,
      NAME1 LIKE KNA1-NAME1,
    END OF TY_ITAB.
    DATA:
      IT_ITAB1 TYPE TY_ITAB OCCURS 0 WITH HEADER LINE.
    START-OF-SELECTION.
      SELECT SINGLE *
        FROM KNA1
        INTO CORRESPONDING FIELDS OF IT_ITAB1
       WHERE KUNNR = '0000020001'.
      WRITE:/ IT_ITAB1.
    Regards
    Adil

  • IE6/CSS browser issue- any idea why this is not working?

    http://www.wilmerdds.com/test/index.htm
    If you look at the left column, you will see a black box.  It shouldn't be black. it should match the bg color of the column.  Any idea why this is happening?

    Hi
    The problem is that you are using a png, and IE6 does not support png transparency. You could try using the iepngfix from - http://www.twinhelix.com/css/iepngfix/.
    PZ

  • Why This Report Not Working in Production Server But in Development Server

    I just need your help in solving one issue. There is one report which is working fine in development server but it is not getting executed in production server.
    Although the code is same in both the server. Could you please guide me in locating the problem. I am attaching that report with this mail. Please do the needful help.
    TABLES : a363,
             mara,
             marc,
             makt,
             ekko,
             ekpo,
             mkpf,
             mseg,
             konp,
             konh.
    SELECTION-SCREEN
    SELECTION-SCREEN   :   BEGIN OF BLOCK cst WITH FRAME TITLE text-001.
    SELECT-OPTIONS :   s_matnr FOR mara-matnr,                            "Material Number
                       s_lifnr FOR ekko-lifnr,                            "Account Number of the Vendor
                       s_bedat FOR ekko-bedat,                            "Purchasing Document Date
                       s_kschl FOR konh-kschl OBLIGATORY NO INTERVALS,    "Condition type
                       s_bwart FOR mseg-bwart OBLIGATORY NO INTERVALS.    "Movement Type (Inventory Management)
    PARAMETERS     :   p_werks LIKE marc-werks OBLIGATORY.                "Plant
    SELECTION-SCREEN   :   END OF BLOCK cst.
    INCLUDES
    INCLUDE zalv_data.
    DATA - INTERNAL TABLES AND FIELD LISTS
    DATA :  BEGIN    OF     a363_itab  OCCURS 0,
            matnr    LIKE   a363-matnr,                    "Material Number
            lifnr    LIKE   a363-lifnr,                    "Account Number of the Vendor
            werks    LIKE   a363-werks,                    "Plant
            kschl    LIKE   a363-kschl,                    "Condition type
            knumh    LIKE   a363-knumh,                    "Condition record number
            kbetr    LIKE   konp-kbetr,                    "Rate (condition amount or percentage) where no scale exists
            END      OF     a363_itab.
    DATA :  BEGIN    OF     konp_itab  OCCURS 0,
            knumh    LIKE   a363-knumh,                    "Condition record number
            kbetr    LIKE   konp-kbetr,                    "Rate (condition amount or percentage) where no scale exists
            lifnr    LIKE   a363-lifnr,                    "Account Number of the Vendor
            END      OF     konp_itab.
    DATA :  BEGIN    OF     ekko_itab  OCCURS 0,
            ebeln    LIKE   ekko-ebeln,                    "Purchasing Document Number
            lifnr    LIKE   ekko-lifnr,                    "Account Number of the Vendor
            bedat    LIKE   ekko-bedat,                    "Purchasing Document Date
            END      OF     ekko_itab.
    DATA :  BEGIN    OF     ekpo_itab  OCCURS 0,
            ebeln    LIKE   ekpo-ebeln,                    "Purchasing Document Number
            ebelp    LIKE   ekpo-ebelp,                    "Item Number of Purchasing Document
            matnr    LIKE   ekpo-matnr,                    "Material Number
            werks    LIKE   ekpo-werks,                    "Plant
            menge    LIKE   ekpo-menge,                    "Purchase order quantity
            END      OF     ekpo_itab.
    DATA :  BEGIN    OF     v_po_det  OCCURS 0,            "VENDOR + PLANT + PO DEATILS
            lifnr    LIKE   ekko-lifnr,                    "Account Number of the Vendor
            ebeln    LIKE   ekko-ebeln,                    "Purchasing Document Number
            ebelp    LIKE   ekpo-ebelp,                    "Item Number of Purchasing Document
            bedat    LIKE   ekko-bedat,                    "Purchasing Document Date
            matnr    LIKE   ekpo-matnr,                    "Material Number
            werks    LIKE   ekpo-werks,                    "Plant
            menge    LIKE   ekpo-menge,                    "Purchase order quantity
            kbetr    LIKE   konp-kbetr,                    "Rate (condition amount or percentage) where no scale exists
            END      OF     v_po_det.
    DATA :  BEGIN    OF     mseg_itab  OCCURS 0,
            mblnr    LIKE   mseg-mblnr,                    "Number of Material Document
            ebeln    LIKE   mseg-ebeln,                    "Purchasing Document Number
            ebelp    LIKE   mseg-ebelp,                    "Item Number of Purchasing Document
            matnr    LIKE   mseg-matnr,                    "Material Number
            lifnr    LIKE   mseg-lifnr,                    "Account Number of the Vendor
            werks    LIKE   mseg-werks,                    "Plant
            menge    LIKE   mseg-menge,                    "Quantity
            dmbtr    LIKE   mseg-dmbtr,                    "Amount in local currency
            bwart    LIKE   mseg-bwart,                    "Movement Type (Inventory Management)
            END      OF     mseg_itab.
    DATA :  BEGIN    OF     mkpf_itab  OCCURS 0,
            mblnr    LIKE   mkpf-mblnr,                    "Number of Material Document
            bldat    LIKE   mkpf-bldat,                    "Document Date in Document
            END      OF     mkpf_itab.
    DATA :  BEGIN    OF     zeou_pcrdtl_itab  OCCURS 0,
            matnr    LIKE   zeou_pcrdtl-matnr,             "Material Number
            lifnr    LIKE   zeou_pcrdtl-lifnr,             "Account Number of the Vendor
            mblnr    LIKE   zeou_pcrdtl-mblnr,             "Number of Material Document
            whssn    LIKE   zeou_pcrdtl-whssn,             "Warehouse Records Entry Serial No.
            whsdt    LIKE   zeou_pcrdtl-whsdt,             "Warehouse Records Entry date
            END      OF     zeou_pcrdtl_itab.
    DATA :  BEGIN    OF     gr_wh_info  OCCURS 0,          "INFO OF GR & WH BASED ON MVMT TYPE & PO
            mblnr    LIKE   mseg-mblnr,                    "Number of Material Document
            bldat    LIKE   mkpf-bldat,                    "Document Date in Document
            ebeln    LIKE   mseg-ebeln,                    "Purchasing Document Number
            ebelp    LIKE   ekpo-ebelp,                    "Item Number of Purchasing Document
            matnr    LIKE   mseg-matnr,                    "Material Number
            lifnr    LIKE   mseg-lifnr,                    "Account Number of the Vendor
            werks    LIKE   mseg-werks,                    "Plant
            menge    LIKE   mseg-menge,                    "Quantity
            dmbtr    LIKE   mseg-dmbtr,                    "Amount in local currency
            bwart    LIKE   mseg-bwart,                    "Movement Type (Inventory Management)
            whssn    LIKE   zeou_pcrdtl-whssn,             "Warehouse Records Entry Serial No.
            whsdt    LIKE   zeou_pcrdtl-whsdt,             "Warehouse Records Entry date
            END      OF     gr_wh_info.
    DATA :  BEGIN    OF     bseg_itab  OCCURS 0,
            ebeln    LIKE   bseg-ebeln,                    "Purchasing Document Number
            ebelp    LIKE   bseg-ebelp,                    "Item Number of Purchasing Document
            matnr    LIKE   bseg-matnr,                    "Material Number
            lifnr    LIKE   bseg-lifnr,                    "Account Number of the Vendor
            werks    LIKE   bseg-werks,                    "Plant
            buzid    LIKE   bseg-buzid,                    "Identification of the Line Item
            bschl    LIKE   bseg-bschl,                    "Posting Key
            wrbtr    LIKE   bseg-wrbtr,                    "Amount in document currency
            bukrs    LIKE   bseg-bukrs,                    "Company Code
            belnr    LIKE   bseg-belnr,                    "Accounting Document Number
            gjahr    LIKE   bseg-gjahr,                    "Fiscal Year
            END      OF     bseg_itab.
    DATA :  BEGIN    OF     bkpf_itab  OCCURS 0,
            bukrs    LIKE   bkpf-bukrs,                    "Company Code
            belnr    LIKE   bkpf-belnr,                    "Accounting Document Number
            gjahr    LIKE   bkpf-gjahr,                    "Fiscal Year
            xblnr    LIKE   bkpf-xblnr,                    "Reference Document Number
            bldat    LIKE   bkpf-bldat,                    "Document Date in Document
            END      OF     bkpf_itab.
    DATA :  BEGIN    OF     vend_inv  OCCURS 0,            "VENDOR INVOICE DETAILS
            ebeln    LIKE   bseg-ebeln,                    "Purchasing Document Number
            ebelp    LIKE   bseg-ebelp,                    "Item Number of Purchasing Document
            matnr    LIKE   bseg-matnr,                    "Material Number
            lifnr    LIKE   bseg-lifnr,                    "Account Number of the Vendor
            werks    LIKE   bseg-werks,                    "Plant
            buzid    LIKE   bseg-buzid,                    "Identification of the Line Item
            bschl    LIKE   bseg-bschl,                    "Posting Key
            wrbtr    LIKE   bseg-wrbtr,                    "Amount in document currency
            bukrs    LIKE   bseg-bukrs,                    "Company Code
            belnr    LIKE   bseg-belnr,                    "Accounting Document Number
            gjahr    LIKE   bseg-gjahr,                    "Fiscal Year
            xblnr    LIKE   bkpf-xblnr,                    "Reference Document Number
            bldat    LIKE   bkpf-bldat,                    "Document Date in Document
            END      OF     vend_inv.
    DATA :  BEGIN    OF     chckinit  OCCURS 0,            "CHEQUE INIT INFO
            ebeln    LIKE   bseg-ebeln,                    "Purchasing Document Number
            ebelp    LIKE   bseg-ebelp,                    "Item Number of Purchasing Document
            matnr    LIKE   bseg-matnr,                    "Material Number
            lifnr    LIKE   bseg-lifnr,                    "Account Number of the Vendor
            werks    LIKE   bseg-werks,                    "Plant
            buzid    LIKE   bseg-buzid,                    "Identification of the Line Item
            bschl    LIKE   bseg-bschl,                    "Posting Key
            bukrs    LIKE   bkpf-bukrs,                    "Company Code
            belnr    LIKE   bkpf-belnr,                    "Accounting Document Number
            gjahr    LIKE   bkpf-gjahr,                    "Fiscal Year
            koart    LIKE   bseg-koart,                    "Account type
            augbl    LIKE   bseg-augbl,                    "Document Number of the Clearing Document
            END      OF     chckinit.
    DATA :  BEGIN    OF     chckpayer  OCCURS 0,           "CHEQUE BANK DETAILS
            vblnr    LIKE   payr-vblnr,                    "Document Number of the Payment Document
            zbukr    LIKE   payr-zbukr,                    "Paying company code
            gjahr    LIKE   payr-gjahr,                    "Fiscal Year
            chect    LIKE   payr-chect,                    "Check Number
            zaldt    LIKE   payr-zaldt,                    "Probable Payment Date (Cash Discount 1 Due)
            hbkid    LIKE   payr-hbkid,                    "Short key for a house bank
            END      OF     chckpayer.
    DATA :  chckpayer_u LIKE chckpayer OCCURS 0 WITH HEADER LINE.      "UNIQUE CHEQUE DETAILS
    DATA :  BEGIN    OF     chckfinal  OCCURS 0,           "CHEQUE FINAL INFO
            ebeln    LIKE   bseg-ebeln,                    "Purchasing Document Number
            ebelp    LIKE   bseg-ebelp,                    "Item Number of Purchasing Document
            matnr    LIKE   bseg-matnr,                    "Material Number
            lifnr    LIKE   bseg-lifnr,                    "Account Number of the Vendor
            werks    LIKE   bseg-werks,                    "Plant
            buzid    LIKE   bseg-buzid,                    "Identification of the Line Item
            bschl    LIKE   bseg-bschl,                    "Posting Key
            bukrs    LIKE   bkpf-bukrs,                    "Company Code
            belnr    LIKE   bkpf-belnr,                    "Accounting Document Number
            gjahr    LIKE   bkpf-gjahr,                    "Fiscal Year
            koart    LIKE   bseg-koart,                    "Account type
            augbl    LIKE   bseg-augbl,                    "Document Number of the Clearing Document
            vblnr    LIKE   payr-vblnr,                    "Document Number of the Payment Document
            zbukr    LIKE   payr-zbukr,                    "Paying company code
            chect    LIKE   payr-chect,                    "Check Number
            zaldt    LIKE   payr-zaldt,                    "Probable Payment Date (Cash Discount 1 Due)
            hbkid    LIKE   payr-hbkid,                    "Short key for a house bank
            END      OF     chckfinal.
    DATA :  BEGIN    OF     mat_desc OCCURS 0,
            matnr    LIKE   mara-matnr,
            maktx    LIKE   makt-maktx,
            END      OF     mat_desc.
    DATA :  BEGIN      OF     vend_det OCCURS 0,
            lifnr      LIKE   lfa1-lifnr,
            name1      LIKE   lfa1-name1,
            j_1icstno  LIKE   j_1imovend-j_1icstno,
            END        OF     vend_det.
    DATA :  BEGIN    OF     cst_rep  OCCURS 0,             "FINAL CST REPORT
            lifnr    LIKE   a363-lifnr,                    "Account Number of the Vendor
            name1    LIKE   lfa1-name1,                    "Vendor Name
            j_1icstno  LIKE   j_1imovend-j_1icstno,        " Vendor CST No.
            werks    LIKE   a363-werks,                    "Plant
           kschl    LIKE   a363-kschl,                    "Condition type
            ebeln    LIKE   ekko-ebeln,                    "Purchasing Document Number
            ebelp    LIKE   ekpo-ebelp,                    "Item Number of Purchasing Document
            bedat    LIKE   ekko-bedat,                    "Purchasing Document Date
            matnr    LIKE   ekpo-matnr,                    "Material Number
            maktx    LIKE   makt-maktx,                    "Material Description.
            kbetr    LIKE   konp-kbetr,                    "Rate (condition amount or percentage) where no scale exists
            mblnr    LIKE   mseg-mblnr,                    "Number of Material Document
            bldat    LIKE   mkpf-bldat,                    "Document Date in Document
            menge    LIKE   mseg-menge,                    "Quantity
            dmbtr    LIKE   mseg-dmbtr,                    "Amount in local currency
            cst_dmbtr LIKE  mseg-dmbtr,                    "CST Amount in local currency
            bwart    LIKE   mseg-bwart,                    "Movement Type (Inventory Management)
            whssn    LIKE   zeou_pcrdtl-whssn,             "Warehouse Records Entry Serial No.
            whsdt    LIKE   zeou_pcrdtl-whsdt,             "Warehouse Records Entry date
            buzid    LIKE   bseg-buzid,                    "Identification of the Line Item
            bschl    LIKE   bseg-bschl,                    "Posting Key
            wrbtr    LIKE   bseg-wrbtr,                    "Amount in document currency
            cst_wrbtr LIKE  bseg-wrbtr,                    "CST Amount in document currency
            belnr    LIKE   bseg-belnr,                    "Accounting Document Number
            gjahr    LIKE   bseg-gjahr,                    "Fiscal Year
            xblnr    LIKE   bkpf-xblnr,                    "Reference Document Number
            koart    LIKE   bseg-koart,                    "Account type
            augbl    LIKE   bseg-augbl,                    "Document Number of the Clearing Document
            vblnr    LIKE   payr-vblnr,                    "Document Number of the Payment Document
            zbukr    LIKE   payr-zbukr,                    "Paying company code
            chect    LIKE   payr-chect,                    "Check Number
            zaldt    LIKE   payr-zaldt,                    "Probable Payment Date (Cash Discount 1 Due)
            hbkid    LIKE   payr-hbkid,                    "Short key for a house bank
            END      OF     cst_rep.
    DATA :  BEGIN    OF     gt_output  OCCURS 0,              "ALV OUTPUT
            slno     LIKE   sy-tabix,                      "Serial Number
            lifnr    LIKE   a363-lifnr,                    "Account Number of the Vendor
            name1    LIKE   lfa1-name1,                    "Vendor Name
            j_1icstno  LIKE   j_1imovend-j_1icstno,        " Vendor CST No.
            werks    LIKE   a363-werks,                    "Plant
           kschl    LIKE   a363-kschl,                    "Condition type
            ebeln    LIKE   ekko-ebeln,                    "Purchasing Document Number
            ebelp    LIKE   ekpo-ebelp,                    "Item Number of Purchasing Document
            bedat    LIKE   ekko-bedat,                    "Purchasing Document Date
            matnr    LIKE   ekpo-matnr,                    "Material Number
            maktx    LIKE   makt-maktx,                    "Material Description
            mblnr    LIKE   mseg-mblnr,                    "Number of Material Document
            bldat    LIKE   mkpf-bldat,                    "Document Date in Document
            menge    LIKE   mseg-menge,                    "Quantity
            dmbtr    LIKE   mseg-dmbtr,                    "Amount in local currency
            cst_dmbtr LIKE  mseg-dmbtr,                    "CST Amount in local currency
            bwart    LIKE   mseg-bwart,                    "Movement Type (Inventory Management)
            whssn    LIKE   zeou_pcrdtl-whssn,             "Warehouse Records Entry Serial No.
            whsdt    LIKE   zeou_pcrdtl-whsdt,             "Warehouse Records Entry date
            buzid    LIKE   bseg-buzid,                    "Identification of the Line Item
            bschl    LIKE   bseg-bschl,                    "Posting Key
            wrbtr    LIKE   bseg-wrbtr,                    "Amount in document currency
            cst_wrbtr LIKE  bseg-wrbtr,                    "CST Amount in document currency
            belnr    LIKE   bseg-belnr,                    "Accounting Document Number
            gjahr    LIKE   bseg-gjahr,                    "Fiscal Year
            xblnr    LIKE   bkpf-xblnr,                    "Reference Document Number
            koart    LIKE   bseg-koart,                    "Account type
            augbl    LIKE   bseg-augbl,                    "Document Number of the Clearing Document
            vblnr    LIKE   payr-vblnr,                    "Document Number of the Payment Document
            zbukr    LIKE   payr-zbukr,                    "Paying company code
            chect    LIKE   payr-chect,                    "Check Number
            zaldt    LIKE   payr-zaldt,                    "Probable Payment Date (Cash Discount 1 Due)
            hbkid    LIKE   payr-hbkid,                    "Short key for a house bank
            usr_txt1(20) TYPE c,
            usr_txt2(20) TYPE c,
            END      OF     gt_output.
    *Working Variables
    DATA : cst_gr  LIKE  mseg-dmbtr,
           cst_inv LIKE  bseg-wrbtr,
           usr_txt1(20) TYPE c,
           usr_txt2(20) TYPE c.
    START-OF-SELECTION.
    *Retreiving Data from a363 table for the given input
      SELECT  matnr
              lifnr
              werks
              kschl
              knumh
              FROM a363
              INTO TABLE a363_itab
              WHERE matnr IN s_matnr AND lifnr IN s_lifnr AND werks EQ p_werks AND kschl IN s_kschl.
      SELECT  *
              FROM konp
              INTO CORRESPONDING FIELDS OF TABLE konp_itab
              FOR ALL ENTRIES IN a363_itab
              WHERE knumh EQ a363_itab-knumh.
      LOOP AT a363_itab.
        READ TABLE konp_itab WITH KEY knumh = a363_itab-knumh.
        IF sy-subrc EQ 0.
          MOVE : konp_itab-kbetr TO a363_itab-kbetr.
          MODIFY a363_itab.
        ENDIF.
        CLEAR : a363_itab, konp_itab.
      ENDLOOP.
      SELECT *
             FROM makt
             INTO CORRESPONDING FIELDS OF TABLE mat_desc
             FOR ALL ENTRIES IN a363_itab
             WHERE matnr EQ a363_itab-matnr.
      SELECT a~lifnr
             a~name1
             b~j_1icstno
             INTO TABLE vend_det
             FROM lfa1 AS a JOIN j_1imovend AS b
             ON alifnr EQ blifnr
             FOR ALL ENTRIES IN a363_itab
             WHERE a~lifnr EQ a363_itab-lifnr.
    Retreiving Data from EKKO & EKPO table for the given input
    And Populating the V_PO_DETAILS itab
      SELECT  *
              FROM ekko
              INTO CORRESPONDING FIELDS OF TABLE ekko_itab
              FOR ALL ENTRIES IN a363_itab
              WHERE lifnr EQ a363_itab-lifnr AND bedat IN s_bedat.
      SELECT  *
              FROM ekpo
              INTO CORRESPONDING FIELDS OF TABLE ekpo_itab
              FOR ALL ENTRIES IN a363_itab
              WHERE matnr EQ a363_itab-matnr AND werks EQ a363_itab-werks AND mwskz NE 'V0'.
      LOOP AT ekpo_itab.
        MOVE :   ekpo_itab-ebelp TO v_po_det-ebelp,
                 ekpo_itab-matnr TO v_po_det-matnr,
                 ekpo_itab-werks TO v_po_det-werks,
                 ekpo_itab-menge TO v_po_det-menge.
        READ TABLE ekko_itab WITH KEY ebeln = ekpo_itab-ebeln.
        IF sy-subrc EQ 0.
          MOVE  :  ekko_itab-lifnr TO v_po_det-lifnr,
                   ekko_itab-ebeln TO v_po_det-ebeln,
                   ekko_itab-bedat TO v_po_det-bedat.
          APPEND : v_po_det.
        ENDIF.
        CLEAR  : ekko_itab, ekpo_itab, v_po_det.
      ENDLOOP.
      LOOP AT v_po_det.
        READ TABLE a363_itab WITH KEY matnr = v_po_det-matnr lifnr = v_po_det-lifnr werks = v_po_det-werks.
        IF sy-subrc EQ 0.
          MOVE : a363_itab-kbetr TO v_po_det-kbetr.
          MODIFY v_po_det.
        ENDIF.
        CLEAR : a363_itab, v_po_det.
      ENDLOOP.
    Retreiving Data from MKPF & MSEG & ZEOU_PCRDTL table for the given input
    And Populating the GR_WH_info itab
      SELECT  *
              FROM mseg
              INTO CORRESPONDING FIELDS OF TABLE mseg_itab
              FOR ALL ENTRIES IN v_po_det
              WHERE ebeln EQ v_po_det-ebeln AND matnr EQ v_po_det-matnr AND bwart IN s_bwart.
      SELECT  *
              FROM mkpf
              INTO CORRESPONDING FIELDS OF TABLE mkpf_itab
              FOR ALL ENTRIES IN mseg_itab
              WHERE mblnr EQ mseg_itab-mblnr.
      SELECT  *
              FROM zeou_pcrdtl
              INTO CORRESPONDING FIELDS OF TABLE zeou_pcrdtl_itab
              FOR ALL ENTRIES IN mseg_itab
              WHERE mblnr EQ mseg_itab-mblnr AND matnr EQ mseg_itab-matnr.
      LOOP AT mseg_itab.
        MOVE  :  mseg_itab-mblnr TO gr_wh_info-mblnr,
                 mseg_itab-ebeln TO gr_wh_info-ebeln,
                 mseg_itab-ebelp TO gr_wh_info-ebelp,
                 mseg_itab-matnr TO gr_wh_info-matnr,
                 mseg_itab-lifnr TO gr_wh_info-lifnr,
                 mseg_itab-werks TO gr_wh_info-werks,
                 mseg_itab-menge TO gr_wh_info-menge,
                 mseg_itab-dmbtr TO gr_wh_info-dmbtr,
                 mseg_itab-bwart TO gr_wh_info-bwart.
        READ TABLE mkpf_itab WITH KEY mblnr = mseg_itab-mblnr.
        IF sy-subrc EQ 0.
          MOVE  :  mkpf_itab-bldat TO gr_wh_info-bldat.
        ENDIF.
        READ TABLE zeou_pcrdtl_itab WITH KEY mblnr = mseg_itab-mblnr.
        IF sy-subrc EQ 0.
          MOVE  :  zeou_pcrdtl_itab-whssn TO gr_wh_info-whssn,
                   zeou_pcrdtl_itab-whsdt TO gr_wh_info-whsdt.
        ENDIF.
        APPEND : gr_wh_info.
        CLEAR : mseg_itab, mkpf_itab, gr_wh_info.
      ENDLOOP.
    Retreiving Data from BSEG & BKPF table
    And Populating the Vendor Invoice Details
      SELECT  *
              FROM bseg
              INTO CORRESPONDING FIELDS OF TABLE bseg_itab
              FOR ALL ENTRIES IN v_po_det
              WHERE ebeln EQ v_po_det-ebeln AND matnr EQ v_po_det-matnr AND buzid EQ 'W' AND bschl EQ '96'.
      SELECT  *
              FROM bkpf
              INTO CORRESPONDING FIELDS OF TABLE bkpf_itab
              FOR ALL ENTRIES IN bseg_itab
              WHERE bukrs EQ bseg_itab-bukrs AND belnr EQ bseg_itab-belnr AND gjahr EQ bseg_itab-gjahr.
      LOOP AT bseg_itab.
        MOVE  :  bseg_itab-ebeln TO vend_inv-ebeln,
                 bseg_itab-ebelp TO vend_inv-ebelp,
                 bseg_itab-matnr TO vend_inv-matnr,
                 bseg_itab-lifnr TO vend_inv-lifnr,
                 bseg_itab-werks TO vend_inv-werks,
                 bseg_itab-buzid TO vend_inv-buzid,
                 bseg_itab-bschl TO vend_inv-bschl,
                 bseg_itab-wrbtr TO vend_inv-wrbtr,
                 bseg_itab-bukrs TO vend_inv-bukrs,
                 bseg_itab-belnr TO vend_inv-belnr,
                 bseg_itab-gjahr TO vend_inv-gjahr.
        READ TABLE bkpf_itab WITH KEY bukrs = bseg_itab-bukrs belnr = bseg_itab-belnr gjahr = bseg_itab-gjahr.
        IF sy-subrc EQ 0.
          MOVE  :  bkpf_itab-xblnr TO vend_inv-xblnr,
                   bkpf_itab-bldat TO vend_inv-bldat.
          APPEND  :  vend_inv.
        ENDIF.
        CLEAR : vend_inv, bseg_itab, bkpf_itab.
      ENDLOOP.
    Retreiving Data from BSEG & BKPF table
    And Populating the Cheque Info Details
      SELECT  *
              FROM bseg
              INTO CORRESPONDING FIELDS OF TABLE chckinit
              FOR ALL ENTRIES IN v_po_det
              WHERE ebeln EQ v_po_det-ebeln AND matnr EQ v_po_det-matnr AND buzid EQ 'W' AND bschl EQ '86' AND koart EQ 'K'.
      SELECT  *
              FROM payr
              INTO CORRESPONDING FIELDS OF TABLE chckpayer
              FOR ALL ENTRIES IN chckinit
              WHERE vblnr EQ chckinit-augbl.
      SORT chckpayer BY vblnr DESCENDING.
      LOOP AT chckpayer.
        ON CHANGE OF chckpayer-vblnr.
          MOVE   : chckpayer TO chckpayer_u.
          APPEND : chckpayer_u.
          CLEAR  : chckpayer_u, chckpayer.
        ENDON.
      ENDLOOP.
      LOOP AT chckinit.
        MOVE  :  chckinit-ebeln TO chckfinal-ebeln,
                 chckinit-ebelp TO chckfinal-ebelp,
                 chckinit-matnr TO chckfinal-matnr,
                 chckinit-lifnr TO chckfinal-lifnr,
                 chckinit-werks TO chckfinal-werks,
                 chckinit-buzid TO chckfinal-buzid,
                 chckinit-bschl TO chckfinal-bschl,
                 chckinit-bukrs TO chckfinal-bukrs,
                 chckinit-gjahr TO chckfinal-gjahr,
                 chckinit-koart TO chckfinal-koart,
                 chckinit-augbl TO chckfinal-augbl.
        READ TABLE chckpayer_u WITH KEY vblnr = chckinit-augbl gjahr = chckinit-gjahr.
        IF sy-subrc EQ 0.
          MOVE  :  chckpayer_u-vblnr TO chckfinal-vblnr,
                   chckpayer_u-zbukr TO chckfinal-zbukr,
                   chckpayer_u-chect TO chckfinal-chect,
                   chckpayer_u-zaldt TO chckfinal-zaldt,
                   chckpayer_u-hbkid TO chckfinal-hbkid.
          APPEND : chckfinal.
        ENDIF.
        CLEAR : chckfinal, chckpayer_u, chckinit.
      ENDLOOP.
    Populating the final CST TABLE
      LOOP AT v_po_det.
        MOVE  :   v_po_det-lifnr TO cst_rep-lifnr,
                  v_po_det-werks TO cst_rep-werks,
                  v_po_det-ebeln TO cst_rep-ebeln,
                  v_po_det-ebelp TO cst_rep-ebelp,
                  v_po_det-bedat TO cst_rep-bedat,
                  v_po_det-matnr TO cst_rep-matnr,
                  v_po_det-kbetr TO cst_rep-kbetr.
        READ TABLE gr_wh_info WITH KEY ebeln = v_po_det-ebeln ebelp = v_po_det-ebelp."matnr = v_po_det-matnr.
        IF sy-subrc EQ 0.
          MOVE :  gr_wh_info-mblnr TO cst_rep-mblnr,
                  gr_wh_info-bldat TO cst_rep-bldat,
                  gr_wh_info-menge TO cst_rep-menge,
                  gr_wh_info-dmbtr TO cst_rep-dmbtr,
                  gr_wh_info-bwart TO cst_rep-bwart,
                  gr_wh_info-whssn TO cst_rep-whssn,
                  gr_wh_info-whsdt TO cst_rep-whsdt.
        ENDIF.
        READ TABLE vend_inv WITH KEY ebeln = v_po_det-ebeln ebelp = v_po_det-ebelp."matnr = v_po_det-matnr.
        IF sy-subrc EQ 0.
          MOVE : vend_inv-buzid TO cst_rep-buzid,
                 vend_inv-bschl TO cst_rep-bschl,
                 vend_inv-wrbtr TO cst_rep-wrbtr,
                 vend_inv-belnr TO cst_rep-belnr,
                 vend_inv-gjahr TO cst_rep-gjahr,
                 vend_inv-xblnr TO cst_rep-xblnr.
        ENDIF.
        READ TABLE chckfinal WITH KEY ebeln = v_po_det-ebeln ebelp = v_po_det-ebelp."matnr = v_po_det-matnr.
        IF sy-subrc EQ 0.
          MOVE : chckfinal-augbl TO cst_rep-augbl,
                 chckfinal-vblnr TO cst_rep-vblnr,
                 chckfinal-zbukr TO cst_rep-zbukr,
                 chckfinal-chect TO cst_rep-chect,
                 chckfinal-zaldt TO cst_rep-zaldt,
                 chckfinal-hbkid TO cst_rep-hbkid.
        ENDIF.
        READ TABLE mat_desc WITH KEY matnr = v_po_det-matnr.
        IF sy-subrc EQ 0.
          MOVE : mat_desc-maktx TO cst_rep-maktx.
        ENDIF.
        READ TABLE vend_det WITH KEY lifnr = v_po_det-lifnr.
        IF sy-subrc EQ 0.
          MOVE : vend_det-name1 TO cst_rep-name1,
                 vend_det-j_1icstno TO cst_rep-j_1icstno.
        ENDIF.
        APPEND : cst_rep.
        CLEAR  : cst_rep, v_po_det, gr_wh_info, vend_inv, chckfinal.
      ENDLOOP.
    Populating GT_output
      LOOP AT cst_rep.
        cst_gr = cst_rep-dmbtr * ( cst_rep-kbetr / 1000 ).
        cst_inv = cst_rep-wrbtr * ( cst_rep-kbetr / 1000 ).
        MOVE : cst_gr  TO cst_rep-cst_dmbtr,
               cst_inv TO cst_rep-cst_wrbtr.
        MODIFY : cst_rep.
        CLEAR : cst_rep, cst_gr, cst_inv.
      ENDLOOP.
      LOOP AT cst_rep.
        MOVE :  sy-tabix TO gt_output-slno,
                cst_rep-lifnr TO gt_output-lifnr,
                cst_rep-name1 TO gt_output-name1,
                cst_rep-j_1icstno TO gt_output-j_1icstno,
                cst_rep-werks TO gt_output-werks,
                cst_rep-matnr TO gt_output-matnr,
                cst_rep-maktx TO gt_output-maktx,
                cst_rep-ebeln TO gt_output-ebeln,
                cst_rep-ebelp TO gt_output-ebelp,
                cst_rep-bedat TO gt_output-bedat,
                cst_rep-mblnr TO gt_output-mblnr,
                cst_rep-bldat TO gt_output-bldat,
                cst_rep-menge TO gt_output-menge,
                cst_rep-dmbtr TO gt_output-dmbtr,
                cst_rep-cst_dmbtr TO gt_output-cst_dmbtr,
                cst_rep-bwart TO gt_output-bwart,
                cst_rep-whssn TO gt_output-whssn,
                cst_rep-whsdt TO gt_output-whsdt,
                cst_rep-buzid TO gt_output-buzid,
                cst_rep-bschl TO gt_output-bschl,
                cst_rep-wrbtr TO gt_output-wrbtr,
                cst_rep-cst_wrbtr TO gt_output-cst_wrbtr,
                cst_rep-belnr TO gt_output-belnr,
                cst_rep-gjahr TO gt_output-gjahr,
                cst_rep-xblnr TO gt_output-xblnr,
                cst_rep-augbl TO gt_output-augbl,
                cst_rep-vblnr TO gt_output-vblnr,
                cst_rep-zbukr TO gt_output-zbukr,
                cst_rep-chect TO gt_output-chect,
                cst_rep-zaldt TO gt_output-zaldt,
                cst_rep-hbkid TO gt_output-hbkid.
        APPEND gt_output.
        CLEAR : cst_rep, gt_output, sy-tabix.
      ENDLOOP.
    END-OF-SELECTION.
    *-ALV Routine
      PERFORM alv_forms.
    *&      Form  alv_forms
    FORM alv_forms.
      PERFORM alv_routines.
      gx_variant = sy-repid.
      CALL FUNCTION 'REUSE_ALV_VARIANT_DEFAULT_GET'
        EXPORTING
          i_save     = g_save
        CHANGING
          cs_variant = gx_variant
        EXCEPTIONS
          not_found  = 2.
      IF sy-subrc = 0.
        vari = gx_variant-variant.
      ENDIF.
      PERFORM comment_build  USING gt_list_top_of_page[].
      PERFORM fieldcat_init  USING gt_fieldcat[].
      PERFORM layout_build USING gs_layout.
      PERFORM print_build  USING gs_print.
      PERFORM alv_output.
    ENDFORM.                    " alv_forms
    *&      Form  alv_routines
    FORM alv_routines.
      PERFORM eventtab_build USING gt_events[].
      PERFORM e06_t_sort_build  USING gt_sort[].
      PERFORM sp_group_build USING gt_sp_group[].
      g_save = 'A'.
      PERFORM variant_init.
    ENDFORM.                    " alv_routines
    *&      Form  eventtab_build
    FORM eventtab_build USING p_gt_events TYPE slis_t_event.
      DATA: ls_event TYPE slis_alv_event.
      CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
        EXPORTING
          i_list_type = 0
        IMPORTING
          et_events   = p_gt_events.
      READ TABLE p_gt_events WITH KEY name =  slis_ev_top_of_page
                             INTO ls_event.
      IF sy-subrc = 0.
        MOVE slis_ev_top_of_page TO ls_event-form.
        APPEND ls_event TO p_gt_events.
      ENDIF.
      READ TABLE p_gt_events WITH KEY name =  slis_ev_user_command
                             INTO ls_event.
      IF sy-subrc = 0.
        MOVE slis_ev_user_command TO ls_event-form.
        APPEND ls_event TO p_gt_events.
      ENDIF.
      READ TABLE p_gt_events WITH KEY name =  slis_ev_pf_status_set
                             INTO ls_event.
      IF sy-subrc = 0.
        MOVE slis_ev_pf_status_set TO ls_event-form.
        APPEND ls_event TO p_gt_events.
      ENDIF.
      SORT p_gt_events BY name.
      DELETE ADJACENT DUPLICATES FROM  p_gt_events.
      DELETE  p_gt_events WHERE form IS INITIAL.
    ENDFORM.                    " eventtab_build
    *&      Form  sort_build
    FORM e06_t_sort_build USING e06_lt_sort TYPE slis_t_sortinfo_alv.
      DATA: ls_sort TYPE slis_sortinfo_alv.
      CLEAR ls_sort.
      ls_sort-fieldname = 'SLNO'.
      ls_sort-spos      = 1.
      ls_sort-up        = 'X'.
      APPEND ls_sort TO e06_lt_sort.
    CLEAR ls_sort.
    ls_sort-fieldname = 'CNCNR'.
    ls_sort-spos      = 1.
    ls_sort-up        = 'X'.
    APPEND ls_sort TO e06_lt_sort.
    CLEAR ls_sort.
    ls_sort-fieldname = 'MATNR'.
    ls_sort-spos      = 1.
    ls_sort-up        = 'X'.
    APPEND ls_sort TO e06_lt_sort.
    ENDFORM.                    " sort_build
    *&      Form  sp_group_build
    FORM sp_group_build USING    p_gt_sp_group TYPE slis_t_sp_group_alv.
      DATA: ls_sp_group TYPE slis_sp_group_alv.
      CLEAR  ls_sp_group.
      ls_sp_group-sp_group = 'A'.
      ls_sp_group-text     = 'PRODUCT'.
      APPEND ls_sp_group TO p_gt_sp_group.
    ENDFORM.                    " sp_group_build
    *&      Form  variant_init
    FORM variant_init.
      CLEAR g_variant.
      g_repid = sy-repid.
      g_variant-report = g_repid.
    ENDFORM.                    " variant_init
    *&      Form  comment_build
    FORM comment_build USING   e04_lt_top_of_page TYPE slis_t_listheader.
      DATA: ls_line     TYPE slis_listheader.
      DATA: l_date(10)  TYPE c,
            l_time(8)   TYPE c,
            l_out(255)  TYPE c.
      WRITE sy-datum TO l_date.
      WRITE sy-uzeit TO l_time.
      CONCATENATE l_date '/' l_time INTO l_out.
      CLEAR ls_line.
      ls_line-typ  = 'H'.
      CLEAR ls_line.
      ls_line-typ  = 'S'.
      ls_line-key  = 'RUN BY :'.
      ls_line-info = sy-uname.
      APPEND ls_line TO e04_lt_top_of_page.
      CLEAR ls_line.
      ls_line-typ  = 'S'.
      ls_line-key  = 'RUN ON :'.
      ls_line-info = l_out.
      APPEND ls_line TO e04_lt_top_of_page.
    ENDFORM.                    " comment_build
    *&      Form  fieldcat_init
    FORM fieldcat_init    USING e01_lt_fieldcat TYPE slis_t_fieldcat_alv.
      DATA: ls_fieldcat TYPE slis_fieldcat_alv.
      DATA n1(3).
      DATA count(2)    TYPE c.
      DATA h1(10).
      DATA: l_week     LIKE scal-week,
            l_text(17) TYPE c.
      DATA cnt TYPE i.
      cnt = cnt + 1.
      CLEAR ls_fieldcat.
      ls_fieldcat-row_pos      = 1.
      ls_fieldcat-col_pos      = 1.
      ls_fieldcat-fieldname    = 'SLNO'.
      ls_fieldcat-seltext_m    = 'SL.NO'.
      ls_fieldcat-hotspot      = 'X'.
      ls_fieldcat-key          = 'X'.
      ls_fieldcat-key_sel      = 'X'.
      ls_fieldcat-just         = 'R'.
      ls_fieldcat-sp_group = 'A'.
      APPEND ls_fieldcat TO e01_lt_fieldcat.
      cnt = cnt + 1.
      CLEAR ls_fieldcat.
      ls_fieldcat-row_pos      = 1.
      ls_fieldcat-col_pos      = cnt.
      ls_fieldcat-fieldname    = 'LIFNR'.
      ls_fieldcat-seltext_m    = 'VENDOR NO.'.
      ls_fieldcat-hotspot      = 'X'.
      ls_fieldcat-key          = 'X'.
      ls_fieldcat-key_sel      = 'X'.
      ls_fieldcat-just         = 'R'.
      ls_fieldcat-sp_group = 'A'.
      APPEND ls_fieldcat TO e01_lt_fieldcat.
      cnt = cnt + 1.
      CLEAR ls_fieldcat.
      ls_fieldcat-row_pos      = 1.
      ls_fieldcat-col_pos      = cnt.
      ls_fieldcat-fieldname    = 'NAME1'.
      ls_fieldcat-seltext_m    = 'VENDOR NAME'.
      ls_fieldcat-hotspot      = 'X'.
      ls_fieldcat-key          = 'X'.
      ls_fieldcat-key_sel      = 'X'.
      ls_fieldcat-just         = 'L'.
      ls_fieldcat-sp_group = 'A'.
      APPEND ls_fieldcat TO e01_lt_fieldcat.
      cnt = cnt + 1.
      CLEAR ls_fieldcat.
      ls_fieldcat-row_pos      = 1.
      ls_fieldcat-col_pos      = cnt.
      ls_fieldcat-fieldname    = 'J_1ICSTNO'.
      ls_fieldcat-seltext_m    = 'VENDOR CST NO.'.
      ls_fieldcat-hotspot      = 'X'.
      ls_fieldcat-key          = 'X'.
      ls_fieldcat-key_sel      = 'X'.
      ls_fieldcat-just         = 'R'.
      ls_fieldcat-sp_group = 'A'.
      APPEND ls_fieldcat TO e01_lt_fieldcat.
    cnt = cnt + 1.
    CLEAR ls_fieldcat.
    ls_fieldcat-row_pos      = 1.
    ls_fieldcat-col_pos      = cnt.
    ls_fieldcat-fieldname    = 'WERKS'.
    ls_fieldcat-seltext_m    = 'PLANT'.
    ls_fieldcat-key          = 'X'.
    ls_fieldcat-key_sel      = 'X'.
    ls_fieldcat-just         = 'R'.
    ls_fieldcat-sp_group = 'A'.
    APPEND ls_fieldcat TO e01_lt_fieldcat.
      cnt = cnt + 1.
      CLEAR ls_fieldcat.
      ls_fieldcat-row_pos      = 1.
      ls_fieldcat-col_pos      = cnt.
      ls_fieldcat-fieldname    = 'EBELN'.
      ls_fieldcat-seltext_m    = 'PO NO.'.
      ls_fieldcat-key          = 'X'.
      ls_fieldcat-key_sel      = 'X'.
      ls_fieldcat-just         = 'R'.
      ls_fieldcat-sp_group = 'A'.
      APPEND ls_fieldcat TO e01_lt_fieldcat.
    cnt = cnt + 1.
    CLEAR ls_fieldcat.
    ls_fieldcat-row_pos      = 1.
    ls_fieldcat-col_pos      = cnt.
    ls_fieldcat-fieldname    = 'EBELP'.
    ls_fieldcat-seltext_m    = 'PO ITEM'.
    ls_fieldcat-key          = 'X'.
    ls_fieldcat-key_sel      = 'X'.
    ls_fieldcat-just         = 'R'.
    ls_fieldcat-sp_group = 'A'.
    APPEND ls_fieldcat TO e01_lt_fieldcat.
      cnt = cnt + 1.
      CLEAR ls_fieldcat.
      ls_fieldcat-row_pos      = 1.
      ls_fieldcat-col_pos      = cnt

    Hi ,  
      This is a sort of performance issue , because your program takes more than the max time set for the program to execute in foreground.
    There are many stuff in program which will hamper your performance.
    I will list down a few
    1. SELECT *
    FROM konp
    INTO CORRESPONDING FIELDS OF TABLE konp_itab
    FOR ALL ENTRIES IN a363_itab
    WHERE knumh EQ a363_itab-knumh
    in this statement you are using for all entries a363_itab , but before this statement you are not checking if the table has any entry or not , please do remember that for all entries has this characterstic , that if you internal table does not contain any record , then all the records are selected from the database table. So in this case if you table a363_itab is empty , so what you want is no data must be seelcted from table konp , but what will happen is all the records in KONP will be seelcted.
    2. While retreiving data you are using seelct * even though you do not require all the fields , an example is
    <b>SELECT *
    FROM mkpf
    INTO CORRESPONDING FIELDS OF TABLE mkpf_itab
    FOR ALL ENTRIES IN mseg_itab
    WHERE mblnr EQ mseg_itab-mblnr.</b>
    in this your internal table contains only 2 fields
    <b>mblnr LIKE mkpf-mblnr, "Number of Material Document
    bldat LIKE mkpf-bldat, "Document Date in Document</b> , but to get these 2 fields you are selecting all the fields of the table.
    3. In select you are using into corresponding fields of table , it is not a good practice., so please avoidd it.
    Please understand that you must try to reduce the access to your database tables and try to keep it minimal , because this same thing may happen becasue data in DEV is very less compared to the volume of data in production , so a program working in DEV will take much more time in PRD if not written properly and may result in timeouts , as in your case.
    Please try to make chanegs to the prorgam and see if it works.
    In case you have more queries , please do revert back.
    Regards
    Arun
    *Reward points if replay is helpful

  • Why this does not work?

    Hi all,
    I got a very basic question. Why does not the constructor not_a_public() get called in the code below?
    class not_public
         public static void main(String[] args)
              System.out.println("Hello World!");
              not_a_public nap = new not_a_public();
    class not_a_public
    void not_a_public() {
              System.out.println("Not a public!!!");
    Regards
    Aditya

    Because that's not a constructor. Constructors can't have a return type. Remove the void and it will work. You also need to make one of the classes public.
    package sandbox;
    public class not_public {
        public static void main(String[] args) {
            System.out.println("Hello World!");
            not_a_public nap = new not_a_public();
    class not_a_public {
        not_a_public() {
            System.out.println("Not a public!!!");
    }

  • Styling Rules, can anyone explain to me why this will not work?

    I am creating a Custom Theme, for some reason Mapviewer generates the first two rules of this and then ignore the last two rules. It does not matter if the 2nd rules is any of the last 3, it will generate the markers associates with the query, but after it does that it ignore the last two styles. In the code below, the state labels all work fine. M.Green is displayed but not M.Amber or M.Red, if I was to put M.Red or M.Amber in the place of M.Green it will only display that style. So I know the queries are correct. I their some sort of limit on the amount of Rules I can have? In the MapDef tool it all looks correct but I can't edit the queries as I reach the character limit of the tool so I have to do this in SQL.
    INSERT INTO user_sdo_themes VALUES(
    'FORSCOM',
    'FORSCOM Sites',
    'MAP_DATA',
    'MAP_LOC_DATA',
    '<?xml version="1.0" standalone="yes"?>
    <styling_rules asis="true">
    <rule>
    <features style="RESOURCES:C.SEQ6_02" ASIS="TRUE"> (US_ID IN(''AR'',''AZ'',''CA'',''LA'',''NM'',''NV'',''OK'',''TX'',''AL'',''FL'',''GA'',''KY'',''MS'',''NC'',''PR'',''SC'',''TN'',''MA'',''ME'',''NH'',''MD'',''RI'',''CT'',''NY'',''PA'',''DC'',''WV'',''DE'',''NJ'',''VA'',''VT'',''CO'',''IA'',''ID'',''IL'',''IN'',''KS'',''MI'',''MN'',''MO'',''MT'',''ND'',''NE'',''OH'',''OR'',''SD'',''UT'',''WA'',''WY'',''WI''))</features>
    <label column="US_ID" style="RESOURCES:T.STATE NAME">1</label>
    </rule>
    <rule>
    <features style="RESOURCES:M.GREEN" asis="true">
    SELECT location,
    map_loc_data
    FROM resources.map_data ml
    WHERE ml.location_id IN (SELECT d_loc_id
    FROM cii.devices
    WHERE d_loc_id IN (SELECT DISTINCT l.location_id
    FROM resources.locations l,
    resources.activity_locations al,
    resources.activities a,
    resources.sub_commands sc,
    resources.commands c
    WHERE l.location_id = al.location_id
    AND al.activity_id = a.activity_id
    AND a.ac_sc_id = sc.sc_id
    AND sc.sc_cmd_id = c.command_id
    AND c.acronym = ''FORSCOM''))
    </features>
    </rule>
    <rule>
    <features style="RESOURCES:M.RED">
    SELECT location,
    d_dev_name device,
    DECODE(d_ops_status,2,'Red') status,
    et_type type,
    ev_down_gmt down,
    ev_etr_gmt etr,
    ev_description description,
    map_loc_data
    FROM resources.map_data ml,
    cii.devices d,
    cii.events e,
    cii.event_types et
    WHERE ml.location_id = d.d_loc_id
    AND d.d_dev_id = e.ev_dev_id
    AND e.ev_type = et.et_id
    AND e.ev_os_id IN (2)
    AND d.d_loc_id IN (SELECT l.location_id
    FROM resources.locations l,
    resources.activity_locations al,
    resources.activities a,
    resources.sub_commands sc,
    resources.commands c
    WHERE l.location_id = al.location_id
    AND al.activity_id = a.activity_id
    AND a.ac_sc_id = sc.sc_id
    AND sc.sc_cmd_id = c.command_id
    AND c.acronym = 'FORSCOM')
    </features>
    </rule>
    <rule>
    <features style="RESOURCES:M.AMBER">
    SELECT location,
    d_dev_name device,
    DECODE(d_ops_status,1,''Amber'') status,
    et_type type,
    ev_down_gmt down,
    ev_etr_gmt etr,
    ev_description description,
    map_loc_data
    FROM resources.map_data ml,
    cii.devices d,
    cii.events e,
    cii.event_types et
    WHERE ml.location_id = d.d_loc_id
    AND d.d_dev_id = e.ev_dev_id
    AND e.ev_type = et.et_id
    AND e.ev_os_id IN (1)
    AND d.d_loc_id IN (SELECT l.location_id
    FROM resources.locations l,
    resources.activity_locations al,
    resources.activities a,
    resources.sub_commands sc,
    resources.commands c
    WHERE l.location_id = al.location_id
    AND al.activity_id = a.activity_id
    AND a.ac_sc_id = sc.sc_id
    AND sc.sc_cmd_id = c.command_id
    AND c.acronym = ''FORSCOM'')
    </features>
    </rule>
    </styling_rules>');

    Hi LJ,
    I should have all this figured out. I have created my advanced theme, and it seems to be working fine. The problem I am running into is when I try and get the data for my mouseover infotip window the Mapviewer is failing saying that the decription string I am trying to display in my infotip window is failing whenever it is trying to display any text string:
    05/05/05 11:14:27 Thu May 05 11:14:27 GMT-07:00 2005 ERROR [oracle.lbs.mapserver.core.RealWorker] java.lang.NumberFormatException: For input string: "DEVENS RESERVE FORCES TRAINING AREA"
    at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
    at java.lang.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1207)
    at java.lang.Double.valueOf(Double.java:202)
    My query is as follows:
    INSERT INTO user_sdo_themes VALUES(
    'FORSCOM',
    'All Forscom',
    'ALL_MAP_LOCATIONS',
    'MAP_LOC_DATA',
    <?xml version="1.0" standalone="yes"?>
    <styling_rules >
    <rule >
    <features style="RESOURCES:A.STATUS">
         SELECT md.map_loc_data, me.LOCATION, me.DEVICE, me.STATUS, me.TYPE, me.DOWN, me.ETR, me.TITLE, cl.location_id
         FROM resources.MAP_LOCATION_EVENTS_VIEW me, resources.MAP_DATA md, command_locations_view cl
    WHERE cl.location_id = md.location_id AND md.location = me.location(+) AND acronym = 'FORSCOM'
    </features>
    </rule>
    </styling_rules>');
    If I just have the following SQL this works fine and the infotip window will show me the status of the locations, but of course I need to have the descrition, and title, etc.. Any strings that are called seem to fail.
    SELECT cl.location,
    md.map_loc_data,
    cl.status
    FROM command_locations_view cl,
    map_data md,
    map_location_events_view mle
    WHERE cl.location_id = md.location_id
    AND md.location = mle.location(+)
    AND acronym = 'FORSCOM'
    My 2 views are as follows:
    SELECT cl.location,
    md.map_loc_data,
    cl.status
    FROM command_locations_view cl,
    map_data md,
    map_location_events_view mle
    WHERE cl.location_id = md.location_id
    AND md.location = mle.location(+)
    AND acronym = 'FORSCOM'
    SELECT location,
    d_dev_name device,
    DECODE(d_ops_status,1,'Amber',
    2,'Red') status,
    et_type type,
    ev_short_desc title,
    ev_down_gmt down,
    ev_etr_gmt etr,
    ev_description description,
    map_loc_data
    FROM resources.map_data ml,
    cii.devices d,
    cii.events e,
    cii.event_types et
    WHERE ml.location_id = d.d_loc_id
    AND d.d_dev_id = e.ev_dev_id
    AND e.ev_type = et.et_id
    AND e.ev_os_id IN (1,2)
    Any ideas??
    Thanks!!!

  • JPanel and image (alreday discussed) why this is not working ?

    import javax.swing.*;
      import java.awt.*;
      public class test{
            private static void  createAndShowGUI() {
                  JFrame frame = new JFrame("HelloWorldSwing");
                  frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                  //JLabel label = new JLabel("Hello World");
                  //frame.getContentPane().add(label);
                  Image img = Toolkit.getDefaultToolkit().getImage("fond.jpg");
                  DrawingPanel drawingPanel =  new DrawingPanel(img);
                  frame.getContentPane().add(drawingPanel);
                  frame.pack();
                  frame.setVisible(true);
            public static void main(String[] args) {
                  //Schedule a job for the event-dispatching thread:
                  //creating and showing this application's GUI.
                  javax.swing.SwingUtilities.invokeLater(new Runnable() {
                        public void run() {
                              createAndShowGUI();
      class DrawingPanel extends JPanel {
            private Image img = null;
            DrawingPanel(Image image)
            { img = image; }
            public void paintComponent(Graphics g) {
                  // First paint background unless you will
                  // paint whole area yourself.
                  super.paintComponent(g);
                  // Use the image width & height to find the starting point
                  int msgX = getSize().width/2 - img.getWidth(this);
                  int msgY = getSize().height/2 - img.getHeight(this);
                  //Draw image at centered in the middle of the panel
                  g.drawImage(img, msgX, msgY, this);
      }

    well yes if i do this, the label will appear but not
    the drawing on the jpannel.Ahh, now you write this. If I were you, I'd stop using Image and start using BufferedImage -- it's
    easier to work with. This post gives you the basics: http://forum.java.sun.com/thread.jsp?forum=20&thread=522483

  • Please see why this is not working

    hi everyone!
    Please spare ur time to see what's wrong in this code:
    I have written this code for a GUI which checks for 4 types of punctuation errors in .txt files.
    The code compiles correctly and the Gui also appears nicely but when I Give a pathname in the space provided(also using the escape sequence '\\' for the '\' character ) it does not generate the "errors.txt"
    file whhich it is supposed to do.
    The code is as follows:
    import java.io.*;
    import java.awt.*;
    import java.applet.*;
    public class textcopy extends Applet
    public void init()
    Choice ch=new Choice();
    ch.addItem("Click Next to continue.");
    ch.addItem("Framework Properties");
    Label l1=new Label(" ");
    Label nm=new Label("Please specify the errors that you want to be checked for in the file:");
    Label a1=new Label("Write the pathname here:");
    ta=new TextArea(1,20);
    B=new Button("OK");
    Checkbox b1=new Checkbox("Punctuation errors");
    Checkbox b2=new Checkbox("Finding whether a key string is misspelt");
    Label l2=new Label("Please select the key string from one of these:");
    add(a1);
    add(ta);
    add(B);
    add(l1);
    add(nm);
    add(b1);
    add(b2);
    add(l2);
    add(ch);
    TextArea ta;
    Button B;String str="";
    public boolean action(Event e,Object obj)
    if(e.target instanceof Button)
    repaint();
    return true;
    return false;
    public void paint(Graphics g)
    String s=ta.getText();
    try{
    FileReader fin=new FileReader(s);
    PrintWriter fout=new PrintWriter(new BufferedWriter(new FileWriter("errors.txt")));
    parse(fin,fout);
    fin.close();
    fout.close();
    catch(IOException e){}
    //This is the code for the parser ------it is perfectly correct--so you dont need to check this.
    public static void parse(FileReader fin,PrintWriter fout)throws IOException
    String str="Punctuation Errors:\n"; /*Heading*/
    fout.println(str);
    fout.println("========================================================");
    int i=0,j=0,k=0,l=0;
    j=fin.read();
    do{
    do{
    i=j;
    j=fin.read();
    }while((!((char)i=='('&&(char)j=='R'))&&(j!=-1));
    if(j==-1)break;
    j=fin.read();
    j=fin.read();
    j=fin.read();
    j=fin.read();
    j=fin.read();
    j=fin.read();
    j=fin.read();
    char refnum[]=new char[5];
    l=0;
    while((char)j!=')')
    j=fin.read();
    if((char)j!=')')
    refnum[l++]=(char)j;
    fout.write("REF. NUM: ");
    for(int a=0;a<l;a++)fout.write(refnum[a]);fout.write(": ");
    j=fin.read();
    l=0;
    do{
    i=j;
    j=fin.read();
    if((char)i=='\n')
    k++;
    //'k' gives the line no. and finally the no. of lines and neglects the lines before first occurence of "Ref Num
    if(((char)i==',')&&((char)j!=' '))
    l++;
    String st=l+". error at line number "+ (k+1) + ": There should be "+
    "a space after comma(,) \n";
    fout.println(st);
    if(((char)i=='.')&&((char)j!=' '))
    l++;
    String st=l+". error at line number "+ (k+1) + ": There should be "+
    "a space after period(.) \n";
    fout.println(st);
    if(((char)i=='.')&&((char)j=='.'))
    l++;
    String st=l+". error at line number "+ (k+1) + ": There should not be "+
    "two periods(.) together \n";
    fout.println(st);
    if(((char)i==' ')&&((char)j=='.'))
    l++;
    String st=l+". error at line number "+ (k+1) + ": There should not be "+
    "a space before a period(.) \n ";
    fout.println(st);
    }while((!((char)i=='-' && (char)j=='T')) && j!=-1);
    fout.println(" ");
    /*if(l==0)
    fout.println("No errors!!!!");*/
    if(j==-1)break;
    }while(j!=-1);
    The html file I made for this is as follows:
    <html>
    <body bgcolor="Red">
    <center>
    <h1><b>Welcome to qch </b></h1>
    <applet code=textcopy.class width=800 height=400 >
    </applet>
    </center>
    </body>
    </html>
    N.B.:I have not used main() in the above program becoz it would not have been a pure GUI program
    Please see what I did wrong in the above code.
    Thanks in advance
    Avichal

    c'mon guys help me!!!!!!!!!!!!!!!!See reply #1 and reply #5. Print any exceptions you
    catch. Print messages at key points in the programs
    execution. Then you will we what is wong.
    and change this line please "public class textcopy extends Applet" -otherwise you're flogging a dead horse, ie: applets run inside a 'sandbox' so there are a set of security measures that prevent them reading from or writing to user files (unless you run the applet inside a protective IDE shell such as JBuilder)
    public class textcopy extends JFrame{ ...would be a better starting point.
    people would probably be happy to assist you convert this to a Frame or JFrame if you haven't done this before.

  • Can someone tell me why this is not working?

    Im playing with a new design, and I have a top line that will
    be for a menu,
    then directly under it an orange line just for effect.
    I have the orange line on the bottom of the top line, but it
    shows on the
    top..
    Im sure it has something to do with the positioning, but I am
    missing it..
    Thanks
    Gary
    http://www.siddonslaw.com/newindexdesign.html

    Much smarter idea...thanks
    Gary
    "Joe Makowiec" <[email protected]> wrote in
    message
    news:[email protected]..
    > On 21 Sep 2008 in macromedia.dreamweaver, GPaul wrote:
    >
    >> Im playing with a new design, and I have a top line
    that will be for
    >> a menu, then directly under it an orange line just
    for effect.
    >>
    >> I have the orange line on the bottom of the top
    line, but it shows
    >> on the top..
    >>
    >> Im sure it has something to do with the positioning,
    but I am
    >> missing it..
    >
    > Don't do it with an empty div. Just make the
    border-bottom of the
    > container the line:
    >
    > #topline {
    > border-bottom : 2px solid #f60 ;
    > ...
    >
    > --
    > Joe Makowiec
    >
    http://makowiec.net/
    > Email:
    http://makowiec.net/contact.php

  • Why does this websites not work on our Mac products?

    http://www.gordonbennett2012.ch/
    We are working on the above website: We cannot get it to work on the following Mac devises. Would you please advise the reason for this and how we can fix it?
    From: FLY GAS
    Subject: Fwd: Website of Gordon Bennett 2012  
    Date: August 11, 2012 1:52:22 PM MDT
    To: René Louis  Cc: Mark Sullivan
    Hello René,   Thank you very much for your email. I am happy to work with you. I have been working on this all day. I still have not figured out why this is not working. I am Mark Sullivan and Cheri White's Crew Chief/Technical Support for the USA.
    The following products are being used:
    MacBook Pro,Mac OS X Version 10.7.4, Processor 2.8 GHz Intel Core 2 Duo
    Mac iPad, Version 5.1.1 (9B206)
    Non of these prodects will upload your site    http://www.gordonbennett2012.ch/
    I have tried the following browsers:
    Opera: Could not connect to remote server,
    Safari: no responce
    Firefox: The connection has timed out                                                                The server at gordonbennett2012.ch is taking too long to respond.
    Google Chrome: Oops! Google Chrome could not connect to www.gordonbennett2012.ch
    I have had all our crew do the same. They are in different parts of the USA.
    And the response has been the following:
    North Carolina on PC and Android: Site uploaded
    New Mexico on PC and iPhone: Site did not upload on either
    New Mexico on PC and iPhone: Site did upload
    I have also contacted Mac. Please let me know your thoughts so we can sort this out.  In the past I have been able to get your site. Just in the past month I have not been able to. I am getting a timed out error from ALL the above browsers.
    Kind regards,  Letitia
    Ms. Letitia Hill
    TEAM USA/FLY GAS
    PO Box 7186
    Albuquerque, New Mexico 87194 USA
    TEL: 505-270-6759
    FAX: 505-503-8430
    E-Mail: [email protected]
    Website: www.flygas.net
    Begin forwarded message:
    From: René Louis 
    Subject: Website of Gordon Bennett 2012 Date: August 11, 2012 1:25:13 PM MDT
    To: [email protected]
    Dear Letitia  Thank you very much for your message about our website.
    I am also working with a Mac and could not find any problems.  I would be very interested to know which products you are using and what is not working so I could have a detailed look at it.
    Thank you very much.
    Best Regards
    René
    Gordon Bennett 2012 Secretariat / Postfach 280 / CH-9650 Nesslau / Switzerland www.gordonbennett2012.ch  René Louis / Kirchweg 672 / CH-9650 Nesslau / Switzerland

    There seems to be a block with the Internet server in the United States as other Internet and cell servers i.e. Verizon and Century-Link DSL work with Mac, Andriod and PC. It just seems to be Mac on Comcast that is not...
    Without more data I'm inclined to say it's more likely to be Comcast itself, rather than 'Macs on Comcast'.
    For example, do other devices (PCs, Android, iOS) on that Comcast network also have problems connecting? or do they connect fine?
    I'd expect that any device at that network has a problem, which indicates a problem with Comcast. It might be their DNS not resolving properly, or them not routing data correctly, but that should be your focus.
    Perform a DNS lookup on the www.gordonbennett2012.ch hostname. What result do you get? Is it the expected address?
    If that returns the right address, what do you get with a traceroute?
    That will test the routing befween your system and the server, and may indicate other problems on the network.

  • CTRL+P requires manual tab focus when printing a PDF within FF4. This worked fine in FF3. Why does it not work any more? Thanks!

    Hi,
    CTRL+P requires manual tab focus when printing a PDF within FF4. This worked fine in FF3 - i.e, you could just select the tab. Why does it not work any more? Thanks!

    Hi
    https://discussions.apple.com/thread/4325038?tstart=0
    CCT

  • I am using iPad1. Running v4.3 and when connecting to wifi iPad keyboard does not work. Keyboard works for everything else including typing this question out. Why would it not work when typingin password for wifi connection?

    I am using iPad1. Running v4.3 and when connecting to wifi iPad keyboard does not work. Keyboard works for everything else including typing this question out. Why would it not work when typingin password for wifi connection?

    Kowhai wrote:
    Lots of WIFI needs a username and password to get access. I guess you're lucky and yours is set up unsecured.
    Normal secured WiFi requires only a password to get access. The password is used to encrypt traffic between your device and the WiFi access point. If whatever you are using requires a username as well then it is not simply normal secured WiFi. It might be a subscription WiFi service like GOGO, ATT, etc., or a service with authentication, i.e., college campus, etc. To help you out we need to know what you are using and what connection dialog you are being presented with. You don't have exactly the same problem as the original poster. He is having a problem entering a password into the password dialog that iOS presents when one tries to connect to a normal secured WiFi network. Could you clarify exactly which WiFi service you are using.

  • WHY DOES THIS SQL NOT WORK

    I have 4 statements.
    echo off
    plus80 / @z:\nesp1483_batch
    plus80 / @z:\nesp1484a_batch
    exit
    The first statement plus80 / @z:\nesp1484_batch inserts records into a table and creates a report and deletes the table.
    However the second statement plus80 / @z:\nesp1484a_batch is not working properly. I want it to insert records into a table, create a report and then delete the table but it is not working properly. It is hanging up on this statement.
    I need to say plus80 to get the program to execute properly.
    I have also tried sqlplus /@z:\nesp1484a_batch but this does not work either.
    What do I need to do to make the third statement to execute properly?

    I know that it is not working
    because the response time is slow and I have over 15 minutes
    and nothing is happening. How do you know it is not working as opposed to just working slow?
    Do you have any logging routines in your code? If you have, switch on them on and see what's happening. If not, now is a good time to think about including them...
    Cheers, APC

Maybe you are looking for

  • Rendering out of phase (pixelated). How can I fix it?

    Equipment: Canon Vixia HF20 (set to MXP) and Kodak Zi8 (set to 1080) Alienware M-18x  - i7-2860QM @250GHz – 16 GB ram – Windows 7 Professional Service pack 1 (with all recent updates installed.) NVIDIA GeForce GTX 560M (with latest drivers and update

  • Can I swap external usb drives to keep a backup offsite?

    I'm switching to a mac and I want to keep 2 usb drives for backup.  One drive for hooked up doing the current backup and a second to put in it's place (probably weekly) to maintain a backup offsite. Aside from the obvious changes week to week, can Ti

  • H:selectRadioOne formatting question

    am new to JSF and I'm interested in porting an existing JSP/Servlet application to it. I'm learning how to use the h:selectRadioOne element. What I'm trying to figure out is how to specify the HTML that is output. By default, the list of radio button

  • Alphabetizing vectors

    Does java have a class that alphabetizes strings? Say I had a list of 20 words, can I run those through a built in method? If not, can someone loan a "black box" alphabetizing algorithm? A algorithm that did numbers would get extra dukes! Thanks!

  • Cascade Tab Name

    We have two aliases on Entity:  No Alias is a 6 character code Default Alias is the 6 char code _ English name When Cascade makes tabs, it names the tabs: "Entity - Default Alias"  if the length of Default alias is under 22 characters "Default Alias"