Please help me in completing the remaining select statements

1.     Based on the selection made from the selection screen, get PO Number (EBELN), Company Code (BUKRS), Vendor (LIFNR), Vendor Name (ZNAME1), PO_Date (AEDAT), PO Creator (ERNAM) from EKKO table
2.     For the corresponding PO number (EBELN) from EKKO table, get  PO Item Text (TXZ01) from EKPO table
3.     For the corresponding PO number (EBELN) from EKKO table, get PO_Iten_No(EBELP), from EKPO table
4.     For the corresponding PO number (EBELN) from EKKO table get the GR_Posting Dt(BUDAT) from EKBE table when PO History cat (HCT-EKBE) is equal to “E” .
a)     For getting the first GR Posting date and first Invoice posting date, sort the column (BUDAT) of table, get the 1st GR_Posting_dt(BUDAT) when PO History cat (HCT-EKBE) is equal to “E”  AND get the 1st Inv_Posting_Dt(BUDAT) when PO when PO History cat (HCT-EKBE) is equal to “Q” For this corresponding invoice date (when when PO History cat (HCT-EKBE) is equal to “Q” ) get the invoice number (BELNR) .
b)     IF  1ST GR_POSTING_DATE < 1ST INVOICE_POSTING_DATE, DO NOT DISPLAY THE RESULT
5.     For the corresponding PO number (EBELN) from EKKO table and Invoice_No (BELNR) (from step4,a),get Inv_Creator (ERNAM), Inv_Amount(REEWR), Currency (WAERS) from EKBE table when PO History cat (Hct-EKBE) is equal to “Q”
6.     For the corresponding PO number (EBELN) from EKKO table and invoice No (BELNR) from EKBE, get the Reference Document Number (XBLNR) from RSEG table.
for this i have written
select ebeln bukrs lifnr zname1 aedat ernam
                                      from
                                      ekko into
                                      table itab_ekko
                                      where bukrs = p_bukrs
                                      AND   lifnr IN so_lifnr
                                      AND   aedat IN so_aedat
                                      AND   ekgrp IN so_ekgrp
                                      AND   ernam IN so_ernam.
  IF NOT itab_ekko[] IS INITIAL.
    SELECT ebeln  ebelp txz01 FROM ekpo into  TABLE
                    itab_ekpo
                    FOR ALL ENTRIES IN  itab_ekko
                    WHERE ebeln = itab_ekko-ebeln.
  ENDIF.
   IF NOT itab_ekko[] IS INITIAL.
    SELECT ebeln budat   FROM ekbe into  TABLE
                    itab_ekbe
                    FOR ALL ENTRIES IN  itab_ekko
                    WHERE ebeln = itab_ekko-ebeln
                          AND bewtp = 'E'
                          AND bewtp = 'Q'.
  ENDIF.
  SORT itab_ekbe by budat.
  read table itab_ekbe index 1."to get first invoice posting date.
please halp me in completing remaining code

Hi
select ebeln bukrs lifnr zname1 aedat ernam
from
ekko into
table itab_ekko
where bukrs = p_bukrs
AND lifnr IN so_lifnr
AND aedat IN so_aedat
AND ekgrp IN so_ekgrp
AND ernam IN so_ernam.
IF NOT itab_ekko[] IS INITIAL.
SELECT ebeln ebelp txz01 FROM ekpo into TABLE
itab_ekpo
FOR ALL ENTRIES IN itab_ekko
WHERE ebeln = itab_ekko-ebeln.
ENDIF.
IF NOT itab_ekko[] IS INITIAL.
SELECT ebeln budat FROM ekbe into TABLE
itab_ekbe
FOR ALL ENTRIES IN itab_ekko
WHERE ebeln = itab_ekko-ebeln
AND bewtp = 'E'
AND bewtp = 'Q'.
ENDIF.
SORT itab_ekbe by budat.
read table itab_ekbe with key HCT = 'E'."to get first GR posting date.
loop at itab_ekbe where HCT = 'Q'.
addped itab_ekbe to temp_itab_ekbe.
endloop.
read table temp_itab_ekbe index 1. " to get first invoice posting date
if itab_ekbe-budat < temp_itab_ekbe-budat.
exit.
endif.
*point 5
select ERNAM REEWR WAERS from EKBE
into corresponding fields of table i_temp1_ekbe
for all entries in itab_ekko
where ebeln = itab_ekko-ebeln.
loop at i_temp1_ekbe.
loop at temp_itab_ekbe where ebeln = i_temp1_ekbe-ebeln and
                    belnr = i_temp1_ekbe-belnr.
if sy-subrc <> 0.
delete i_temp1_ekbe.
endif.
endloop.
endloop.
*Point 6
select XBLNR form rseg
into corresponding fields of table itab_rseg
for all entries in i_temp1_ekbe
where ebeln = i_temp1_ekbe-ebeln and
      belnr = i_temp1_ekbe-belnr.
regards
Aditya

Similar Messages

  • Please help me to complete the transaction to purchase OS X mountain Lion version 10.8

    Dear Sir/Madam,
    Please kindly help me to complete this transaction to buy your OS X Mountain Lion .
    Thanks a lot and Best Regards.
    Dao Ngoc Tao

    Not an itunes question.
    Try posting in the Mac App Store forum

  • My iPhone 3g was stolen yesterday, i am from Philippines please help me disable completely the phone i am going to wait for your response i feel so bad, so bad

    please help me lock or disable my iphone 3g, it was stolen yesterday and i had a long time thrifting just to buy one.. please help me i feel so so bad

    Thank you so much for your concern. I'll try your advise tomorrow morning. God bless.

  • Please help me to solve the issue in my query.

    Hi All,
    Please help me to understand the mistake what i did in below query and help to resolve that.
    Actually i am trying to create a query to filter the records from db based on my input parameter.
       If my input parameter is 1(@showallrecords) then i need to show all the records which has the IsLatest as 1
       If my input parameter is 0(@showallrecords) then i need to show all the records which has the IsLatest as 0
    select * from tabel1 INNER JOIN tabel2    
    ON tabel1.KeyId = tabel2.KeyId 
    and (@showallrecords = 1 and tabel1.IsLatest = 1 )
    and (@showallrecords = 0 and tabel1.IsLatest = 0 )
    when i am executing the above query with the parameter @showallrecords = 1 ,db is returning 0 rows.If i am executing the above query after removed the last line and (@showallrecords = 0 and tabel1.IsLatest = 0 ) then records are coming.
    i understand that 1=0(last line) and the condition is not true.So its affecting the result.
    Please help me to solve this.

    select * from tabel1 INNER JOIN tabel2
    ON tabel1.KeyId = tabel2.KeyId
    WHERE (tabel1.IsLatest = @showallrecords Or @showallrecords=0)

  • NWDS pop up "Please wait... completing the install

    Hello,
    I've upgraded NWDS and now whenever I open it I get the eclipse screen saying "Please wait... completing the install" as if the installation hasn't completed although it has.
    I tried reinstalling NWDS but it didn't help, I don't want to completely remove it from my PC and do new clean install. Any ideas...?
    Roy

    Thanks Bala, it worked.
    Just don't forget to mention to export your NWDS configuration, luckily I did that...
    Roy

  • Please help me to visible the create event menu in workflow administrator.

    Hi All,
    please help me to visible the create event menu in workflow administrator.
    (select workflow administrators responsibility navigate to administrator workflow -->
    Business events-->events-->here i am seeing only search options,but i required create event,subscriptions.... )
    Regards
    Gopinath

    Hi,
    please help me to visible the create event menu in workflow administrator.
    (select workflow administrators responsibility navigate to administrator workflow -->
    Business events-->events-->here i am seeing only search options,but i required create event,subscriptions.... )You should find "Create Event" and "Create Events Groups" buttons in the same page under "Results : No Search Conducted".
    Regards,
    Hussein

  • Please help me to close the IF blocks.

    HI EXperts,
    Please help me on closing the IF blocks properly in the below procedure.
    CREATE OR REPLACE PROCEDURE sums_proc
                    Id INTEGER,
      mtrname VARCHAR2
                    mtrtype INTEGER,  
    AS
    state  VARCHAR2(10);
    accesslevel INTEGER;
    asts NUMBER;
    mtrtypesql LONG;
    sumsql LONG;
    BEGIN 
    SELECT st_name INTO state FROM states_info WHERE st_name  = 'KARNATAKA';
    SELECT acc_level INTO accesslevel FROM level_table WHERE level_id  = 4;
    IF (accesslevel = 4) THEN 
    BEGIN 
    asts :=4;
    END; 
    ELSIF (accesslevel = 3)  THEN
    BEGIN 
    IF (OBJECT_ID('CANN_TABLE') IS NOT NULL)  THEN
    BEGIN 
    EXECUTE IMMEDIATE 'DROP TABLE CANN_TABLE'; 
    END;
    EXECUTE IMMEDIATE 'CREATE TABLE CANN_TABLE'; 
    END;
    ELSE
    BEGIN  
    IF OBJECT_ID('MANN_TABLE') IS NOT NULL  THEN
    BEGIN 
    EXECUTE IMMEDIATE 'DROP TABLE MANN_TABLE'; 
    END;
    EXECUTE IMMEDIATE 'CREATE TABLE MANN_TABLE';
    END; 
    IF (mtrname IS NULL OR mtrname = '')  THEN
    mtrname := ''; 
    ELSE 
    mtrname := 'DEFAULT';
    IF (mtrtype > 2) THEN
    mtrtypesql := ' AND (mtr = 1) ' ; 
    ELSE  
    mtrtypesql := ' AND (mtr = 2) '; 
    END IF;
    IF (mtrtype = 1) THEN 
    BEGIN 
    mtrtypesql := 'SELECT SUM(amount) as amount FROM sales_table WHERE sales_type=''SALES''||mtrtypesql'; 
    END; 
    ELSIF (mtrtype = 2)
    mtrtypesql := 'SELECT SUM(amount) as amount FROM margin_table WHERE margin_type=''MARGIN''||mtrtypesql';  
    END; 
    IF (mtrtype = 4  OR mtrtype = 3) THEN
    BEGIN  
    mtrtypesql := 'SELECT SUM(amount) as amount FROM margin_table WHERE margin_type=''MARGIN''||mtrtypesql';
    END; 
    ELSIF (mtrtype = 10 OR mtrtype = 15) THEN
    BEGIN    
    mtrtypesql := 'SELECT SUM(amount) as amount FROM revenue_table WHERE revenue_type=''REVENUE''||mtrtypesql';
    END;        
    ELSE 
    BEGIN 
    mtrtypesql := 'SELECT SUM(amount) as amount FROM revenue_table WHERE all_type=''ALL''||mtrtypesql';
    END;
    sumsql := ' SELECT SUM(amount) FROM salesum_table';
    EXECUTE IMMEDIATE mtrtypesql || ' UNION all ' ||sumsql ;
    IF OBJECT_ID('CANN_TABLE') IS NOT NULL THEN
    BEGIN 
    EXECUTE IMMEDIATE 'DROP TABLE CANN_TABLE'; 
    END;
    END IF; 
    IF OBJECT_ID('MANN_TABLE') IS NOT NULL  THEN
    BEGIN 
    EXECUTE IMMEDIATE  'DROP TABLE MANN_TABLE'; 
    END;
    END;
    Please help me.
    Thanks.

    Hi,
    Thanks for your help.
    Please help on the error.
    ORA-24338: statement handle not executed
    CREATE OR REPLACE PROCEDURE sums_proc(
        p_Id      INTEGER,
        mtrname VARCHAR2 mtrtype INTEGER,
        P_out OUT SYS_REFCURSOR
    AS
      state       VARCHAR2(10);
      accesslevel INTEGER;
      asts        NUMBER;
      countval   NUMBER :=0;
      mtrtypesql LONG;
      sumsql LONG;
      v_query LONG;
      BEGIN
      SELECT st_name INTO state FROM states_info WHERE st_name = 'KARNATAKA';
      SELECT COUNT(*) INTO countval FROM  level_table WHERE level_id = p_id;
    IF countval = 0 THEN
    RETURN;
        ELSE
            SELECT access_id INTO accesslevel  level_table WHERE level_id = p_id;
        IF (NVL(accesslevel, 0) = 0)  THEN
        RETURN;
        END IF;
    END IF;
      IF (accesslevel = 4) THEN
      asts :=4;
      ELSIF (accesslevel = 3) THEN
        IF (OBJECT_ID('CANN_TABLE') IS NOT NULL) THEN   EXECUTE IMMEDIATE 'DROP TABLE CANN_TABLE';
         ELSE EXECUTE IMMEDIATE 'CREATE TABLE CANN_TABLE(SM NUMBER)';
        END IF;
      ELSE
       IF OBJECT_ID('MANN_TABLE') IS NOT NULL THEN   EXECUTE IMMEDIATE 'DROP TABLE MANN_TABLE';
        ELSE  EXECUTE IMMEDIATE 'CREATE TABLE MANN_TABLE(SM NUMBER)';
       END IF;
       IF (mtrname IS NULL OR mtrname = '') THEN  mtrname := '';
       ELSE
          mtrname      := 'DEFAULT';
         IF (mtrtype   > 2) THEN
            mtrtypesql := ' AND (mtr = 1) ' ;
          ELSE
            mtrtypesql := ' AND (mtr = 2) ';
         END IF;
         IF (mtrtype = 1) THEN
            mtrtypesql := 'SELECT SUM(amount) as amount FROM sales_table WHERE sales_type=''SALES'''||mtrtypesql;
          ELSIF (mtrtype = 2)
            mtrtypesql := 'SELECT SUM(amount) as amount FROM margin_table WHERE margin_type=''MARGIN'''||mtrtypesql;
          ELSIF (mtrtype = 4 OR mtrtype = 3) THEN
              mtrtypesql := 'SELECT SUM(amount) as amount FROM margin_table WHERE margin_type=''MARGIN'''||mtrtypesql;
          ELSIF (mtrtype = 10 OR mtrtype = 15) THEN
              mtrtypesql := 'SELECT SUM(amount) as amount FROM revenue_table WHERE revenue_type=''REVENUE'''||mtrtypesql;
          ELSE
              mtrtypesql := 'SELECT SUM(amount) as amount FROM revenue_table WHERE all_type=''ALL'''||mtrtypesql;
          END IF;
          sumsql := ' SELECT SUM(amount) FROM salesum_table';
          v_query :=||mtrtypesql || ' UNION all ' ||sumsql ||';
          OPEN P_out FOR v_query;
          COMMIT;
        END;
    My requirement is
    IF accesslevel = 0 or IF accesslevel is not existed the program should come out.
    SO that I have included the below code
    SELECT COUNT(*) INTO countval FROM  level_table WHERE level_id = p_id;
    IF countval = 0 THEN
    RETURN;
        ELSE
            SELECT access_id INTO accesslevel  level_table WHERE level_id = p_id;
        IF (NVL(accesslevel, 0) = 0)  THEN
        RETURN;
        END IF;
    END IF;
    I want to send the result set to front so that I have replaced the below statement with
    EXECUTE IMMEDIATE 'BEGIN INSERT INTO CANN_TABLE '||mtrtypesql || ' UNION all ' ||sumsql ||';
    OPEN P_out FOR v_query;
    If I get accesslevel as 0 I am getting error when executing thic procedure.
    ORA-24338: statement handle not executed
    Please help me.
    Thanks.

  • Please help me in Merging the Persons Together by assining the same id

    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    Please Help Me
    We_addr_id defines the Address.
    We_pid     Defines the Person.
    i am planning to merge the same person together by assigining the same we_pid.
    WITH merge_names AS (SELECT   1000 We_pid,
                                  999898989 We_addr_id,
                                  'DONALD' first_name,
                                  'BOATRIGHT' last_name,
                                  'L' middle_name,
                                  NULL Suffix FROM DUAL
                                  UNION ALL
                                  SELECT   1001 We_pid,
                                  999898989 We_addr_id,
                                  'DONALD' first_name,
                                  'BOATRIGHT' last_name,
                                  'LARRY' middle_name,
                                  NULL Suffix
                           FROM   DUAL
                         UNION ALL
                         SELECT   1002 We_pid,
                                  999898989 We_addr_id,
                                  'DONALD' first_name,
                                  'BOATRIGHT' last_name,
                                  NULL middle_name,
                                  NULL Suffix
                           FROM   DUAL
                         UNION ALL
                         SELECT   33065 WE_PID,
                                  99000000 We_addr_id,
                                  'LUNA' First_name,
                                  'JOSE' last_name,
                                  NULL middle_name,
                                  NULL suffix
                           FROM   DUAL
                         UNION ALL
                         SELECT   8450527 WE_PID_LINK,
                                  99000000 We_addr_id,
                                  'LUNA' First_name,
                                  'JOSE' last_name,
                                  'A' middle_name,
                                  NULL suffix
                           FROM   DUAL
                         UNION ALL
                         SELECT   373453429 WE_PID_LINK,
                                  99000000 We_addr_id,
                                  'LUNA' First_name,
                                  'JOSE' last_name,
                                  NULL middle_name,
                                  NULL suffix
                           FROM   DUAL
                         UNION ALL
                         SELECT   442303062 WE_PID,
                                  99000000 We_addr_id,
                                  'LUNA' First_name,
                                  'JOSE' last_name,
                                  'S' middle_name,
                                  NULL suffix
                           FROM   DUAL
                         UNION ALL
                         SELECT   30088775765 WE_PID,
                                  990000878 We_addr_id,
                                  'BILL' last_name,
                                  'RAY' first_name,
                                  'M' middle_name,
                                  NULL SUFFIX
                           FROM   DUAL
                         UNION ALL
                         SELECT   30088775766 WE_PID,
                                  990000878 We_addr_id,
                                  'RAY' first_name,
                                  'BILL' last_name,
                                  NULL middle_name,
                                  NULL SUFFIX
                           FROM   DUAL
                         UNION ALL
                         SELECT   30088775767 WE_PID,
                                  990000878 We_addr_id,
                                  'RAY' first_name,
                                  'BILL' last_name,
                                  'MAX' middle_name,
                                  NULL SUFFIX
                           FROM   DUAL
                         UNION ALL
                         SELECT   30088775768 WE_PID,
                                  990000878 We_addr_id,
                                  'RAY' first_name,
                                  'BILL' last_name,
                                  'MICHEL' middle_name,
                                  NULL SUffix
                           FROM   DUAL
                         UNION ALL
                         SELECT   399998776 WE_PID,
                                  9901111 We_addr_id,
                                  'ELLISON' first_name,
                                  'LAWRANCE' last_name,
                                  NULL middle_name,
                                  NULL SUFFIX
                           FROM   DUAL
                         UNION ALL
                         SELECT   399998777 WE_PID,
                                  9901111 We_addr_id,
                                  'ELLISON' first_name,
                                  'LAWRANCE' last_name,
                                  'J' middle_name,
                                   'JR' SUFFIX
                           FROM   DUAL
                         UNION ALL
                         SELECT   399998778 WE_PID,
                                  9901111 We_addr_id,
                                  'ELLISON' first_name,
                                  'LAWRANCE' last_name,
                                  'JAMES' middle_name,
                                   'SR' SUFFIX
                           FROM   DUAL
                         UNION ALL
                         SELECT   399998779 WE_PID,
                                  9901111 We_addr_id,
                                  'ELLISON' first_name,
                                  'LAWRANCE' last_name,
                                  'JACK' middle_name,
                                  'JR' SUFFIX
                           FROM   DUAL)
    SELECT   *
      FROM   merge_names
      o/p Required
    WE_PID    WE_ADDR_ID        FIRST_NAME    LAST_NAME    MIDDLE_NAME    SUFFIX      MERGE_WEPID
    1000            999898989       DONALD    BOATRIGHT    L                          1000
    1001            999898989       DONALD    BOATRIGHT    LARRY                      1000
    1002            999898989       DONALD    BOATRIGHT                               1000
    33065           99000000        LUNA        JOSE                                  33065
    8450527         99000000        LUNA        JOSE       A                          8450527
    373453429       99000000        LUNA        JOSE                                  33065
    442303062       99000000        LUNA        JOSE       S                          442303062
    30088775765     990000878       BILL        RAY        M                          30088775765
    30088775766     990000878       RAY         BILL                                  30088775766
    30088775767     990000878       RAY         BILL       MAX                        30088775767
    30088775768     990000878       RAY         BILL       MICHEL                     30088775768
    399998776       9901111         ELLISON     LAWRANCE                              399998776
    399998777       9901111         ELLISON     LAWRANCE    J        JR               399998777 
    399998778       9901111         ELLISON     LAWRANCE    JAMES    SR               399998778
    399998779       9901111         ELLISON     LAWRANCE    JACK     JR               399998777Thanks

    Missing information on how you identify same person.
    I'm going with an assumption that same person is identified by first_name,last_name,middle_name and suffix.
    WITH merge_names AS (SELECT   1000 We_pid,
                                  999898989 We_addr_id,
                                  'DONALD' first_name,
                                  'BOATRIGHT' last_name,
                                  'L' middle_name,
                                  NULL Suffix FROM DUAL
                                  UNION ALL
                                  SELECT   1001 We_pid,
                                  999898989 We_addr_id,
                                  'DONALD' first_name,
                                  'BOATRIGHT' last_name,
                                  'LARRY' middle_name,
                                  NULL Suffix
                           FROM   DUAL
                         UNION ALL
                         SELECT   1002 We_pid,
                                  999898989 We_addr_id,
                                  'DONALD' first_name,
                                  'BOATRIGHT' last_name,
                                  NULL middle_name,
                                  NULL Suffix
                           FROM   DUAL
                         UNION ALL
                         SELECT   33065 WE_PID,
                                  99000000 We_addr_id,
                                  'LUNA' First_name,
                                  'JOSE' last_name,
                                  NULL middle_name,
                                  NULL suffix
                           FROM   DUAL
                         UNION ALL
                         SELECT   8450527 WE_PID_LINK,
                                  99000000 We_addr_id,
                                  'LUNA' First_name,
                                  'JOSE' last_name,
                                  'A' middle_name,
                                  NULL suffix
                           FROM   DUAL
                         UNION ALL
                         SELECT   373453429 WE_PID_LINK,
                                  99000000 We_addr_id,
                                  'LUNA' First_name,
                                  'JOSE' last_name,
                                  NULL middle_name,
                                  NULL suffix
                           FROM   DUAL
                         UNION ALL
                         SELECT   442303062 WE_PID,
                                  99000000 We_addr_id,
                                  'LUNA' First_name,
                                  'JOSE' last_name,
                                  'S' middle_name,
                                  NULL suffix
                           FROM   DUAL
                         UNION ALL
                         SELECT   30088775765 WE_PID,
                                  990000878 We_addr_id,
                                  'BILL' last_name,
                                  'RAY' first_name,
                                  'M' middle_name,
                                  NULL SUFFIX
                           FROM   DUAL
                         UNION ALL
                         SELECT   30088775766 WE_PID,
                                  990000878 We_addr_id,
                                  'RAY' first_name,
                                  'BILL' last_name,
                                  NULL middle_name,
                                  NULL SUFFIX
                           FROM   DUAL
                         UNION ALL
                         SELECT   30088775767 WE_PID,
                                  990000878 We_addr_id,
                                  'RAY' first_name,
                                  'BILL' last_name,
                                  'MAX' middle_name,
                                  NULL SUFFIX
                           FROM   DUAL
                         UNION ALL
                         SELECT   30088775768 WE_PID,
                                  990000878 We_addr_id,
                                  'RAY' first_name,
                                  'BILL' last_name,
                                  'MICHEL' middle_name,
                                  NULL SUffix
                           FROM   DUAL
                         UNION ALL
                         SELECT   399998776 WE_PID,
                                  9901111 We_addr_id,
                                  'ELLISON' first_name,
                                  'LAWRANCE' last_name,
                                  NULL middle_name,
                                  NULL SUFFIX
                           FROM   DUAL
                         UNION ALL
                         SELECT   399998777 WE_PID,
                                  9901111 We_addr_id,
                                  'ELLISON' first_name,
                                  'LAWRANCE' last_name,
                                  'J' middle_name,
                                   'JR' SUFFIX
                           FROM   DUAL
                         UNION ALL
                         SELECT   399998778 WE_PID,
                                  9901111 We_addr_id,
                                  'ELLISON' first_name,
                                  'LAWRANCE' last_name,
                                  'JAMES' middle_name,
                                   'SR' SUFFIX
                           FROM   DUAL
                         UNION ALL
                         SELECT   399998779 WE_PID,
                                  9901111 We_addr_id,
                                  'ELLISON' first_name,
                                  'LAWRANCE' last_name,
                                  'JACK' middle_name,
                                  'JR' SUFFIX
                           FROM   DUAL)
    SELECT  we_pid,we_addr_id ,first_name,last_name,middle_name,suffix,min(we_pid) over (partition by first_name,last_name,middle_name,suffix) merge_wepid
      FROM   merge_names m

  • Please help me to complete this code

    import java.security.MessageDigest;
    import java.util.Map;
    import java.util.Scanner;
    public class PasswordService
       //The hash is to be formed using the SHA algorithm
       //to create a MessageDigest
       private final String algorithmName = "SHA";
       //Use a message digest to create hashed passwords
       private MessageDigest md = null;
       //We simulate a database of users using who have a login and password
       //as a key and value pair in a Map
       private Map<String, byte[]> userData;
       //complete the constructor
       public PasswordService()
         //TODO - intialize the class instance data
          //some dummy data - do not alter these lines
          addUser("daddy", "cool");
          addUser("nightflight", "topChat");
          addUser("boney", "2E5sxuSRg6A");
       public void showProvider()
          //TODO
       //Get the hash value for the provided string password.
         public byte[] getHash(String password)
          //TODO
          return null;
       public void addUser(String login, String password)
          //TODO
       public byte[] getPassword(String login)
          //TODO
          return null;
       public boolean checkLogin(String login, String password)
         // TODO
          return false;
       //This method is provided to perform a login from the command line
       public boolean doLogin()
          Scanner sc = new Scanner(System.in);
          System.out.println("Enter login please");
          String login = sc.next();
          System.out.println("Your password please");
          String password = sc.next();
          return checkLogin(login, password);
       public static void main(String[] args)
          int attempts = 0;
          showProvider();
          while(attempts < 4)
             boolean match = doLogin(); //request login and password
             System.out.println("match? " + match);
             attempts++;
    }

    please help me to complete this code
    void completeCode(Code code,Properties options) throws CodeCompletingException
    CodeCompleterFactory cf = CodeCompleterFactory.newInstance();
    CodeCompleter cc = cf.newCodeCompleter();
    cc.complete(code,options);
    }

  • Please help me to correct the script

    I try to write a script by my slef, but not work
    app.findGrepPreferencest = firstLineIndent:8, leftIndent:8;
    app.changeGrepPreferences = firstLineIndent:8, leftIndent:16;
    app.changeGrep();
    app.findGrepPreferences = app.changeGrepPreferences = null;
    Can someone please help me to correct the script, please.

    both two script are working
    but waht if I change the script into this format?
    function(){
    app.findGrepPreferences.firstLineIndent  = "8 mm";
    app.findGrepPreferences.leftIndent  = "8 mm";
    app.changeGrepPreferences.firstLineIndent  = "8 mm";
    app.changeGrepPreferences.leftIndent  = "16 mm";
    app.selection[0].changeGrep();
    app.findGrepPreferences.firstLineIndent  = "8 mm";
    app.findGrepPreferences.leftIndent  = "16 mm";
    app.changeGrepPreferences.firstLineIndent  = "8 mm";
    app.changeGrepPreferences.leftIndent  = "24 mm";
    app.selection[0].changeGrep();
    and then so on,
    Can it works?

  • Would you please help me to open the account?

    I got a account of : “ItunesAccount ***”I have been used this account for almost For many years, it all worked pretty good, but yesterday when I try to update some apps on app Store. It said that my account has been disabled. and I could not update my app. Just wondering what happened? Would you please help me to open the account? I will be appreciated.
    <Edited By Host>

    This is a user-to-user forum and no-one here can take any direct action. You need to contact iTunes Support - your account may have been disabled for security reasons. Go to https://expresslane.apple.com ; select 'iTunes' in the first column and then 'iTunes Store' in the second column and proceed from there.

  • I installed windows 7 on my macbook pro. all is working but lan adaptor and sound od laptop is not working. please help me or send the link where i can download the these drivers.

    I installed windows 7 on my macbook pro. all is working but lan adaptor and sound od laptop is not working. please help me or send the link where i can download the these drivers.I have lost my resource cd .

    If you are running Lion or Mountain Lion, the drivers are downloaded from within Bootcamp Assistant. If you are running Snow Leopard the drivers are on your Snow Leopard install disk.
    Read the Bootcamp Install Guide for your version of OSx. http://www.apple.com/support/bootcamp/
    Bootcamp questions should be asked in the Bootcamp forum where the Bootcamp gurus hang out https://discussions.apple.com/community/windows_software/boot_camp

  • PLEASE HELP ME TO FIND THE SOLUTION REGARDING "LOGICAL SYSTEM CHANGED"

    HAI EVERYBODY,
    PLEASE HELP ME TO FIND THE SOLUTION REGARDING "LOGICAL SYSTEM CHANGED" during the material master replication by using middleware parameters.
    step1 : i have taken SRM client 810 and named it as CHINNISRM
    step2 : i  have taken r3 client 810 and named it as CHINNIR3
    step3: During material master replication i maintained tables like crmconsum,crmrfcpar,crmparoltp in   r3   and smofparsfa in srm client and filtered the objects and loaded the objects through r3ac3,r3ac1,r3as.
    step4 : And later i have checked in r3 queues to activate the objects,but i have seen a message like  "LOGICAL SYSTEM CHANGED:SEE 588701".according to the oss instructions i have checked in CRMPRLS table in se16 in R3 .there i found out there is one logical client  named with T90CLNT810.
    oss :588701
    Solution
    There are different cases in which different forms of processing are
    required or where several options exist:
    - The logical system name of an R/3 Backend client was changed in
    current operation. In this case, the data hangs in the outbound
    queues of the R/3 Backend system as specified under point 1 of
    the symptom. In this case, the logical system name must be
    changed back to the original value. Then the outbound queues
    can be reactivated. If no data was transferred to the EBP/CRM
    server before the change, also a correctioin of the check table
    is possible.
    - The same logical system name was used again in a new client of
    an R/3 Backend system that was linked to the EBP/CRM server. In
    this case, the data is in the inbound queue of the EBP/CRM
    server with the exception GUID_FOR_LOGSYS_CHANGED. In this
    case, the queue entries which have status SYSFAIL must be rejected, however, not the entire queues. If the new client of  the R/3 Backend system you have linked has exactly the same
    data as the old client and if it is meant to replace the old
    client (that is, this was deactivated), also a correction of
    the check tables is possible. In this case, the inbound queues
    can be reactivated after the correction.
    oss:765018
    1. If the situation in your system corresponds to the situation described
    under "Reason and Prerequisites" and if symptom 1 occurs, you can
    delete the table entry from table CRMPRLS table (there is just one
    entry). Since there is no maintenance dialog for this table and you
    cannot maintain it using transaction SE16, you must use a report to
    delete it. This report is attached to this note as correction
    instructions.
    Create the report ZZ_DELETE_CRMPRLS in your system and copy the source
    code from the correction instructions. You cannot implement this
    source code using transaction SNOTE.
    You can use the report in every plug-in or plug-in basis system, even
    if it is not specified in the validity section.
    After you have run the report, you can trigger existing queues again
    in transaction SMQ1.
    2. If the situation in your system corresponds to the situation described
    under "Reason and prerequisite" and if symptom 2 occurs, you can
    delete the entry from table CRMMLSGUID (there is just one entry).
    Since there is no maintenance entry for this table and you cannot
    maintain it using transaction SE16, you must use a report to delete
    it. This report is attached to this note as correction instructions.
    If they do not yet exist, add the following messages to message class SMOF in your logon language:
    Message Message short text
    303 User &1 is not allowed to change table &2.
    304 User &1 IS not allowed to display table &2.
    305 Logical system &1 was not found in table &2.
    306 System error! The current client was not
    found in table T000.
    Create the report ZZ_DELETE_CRMMLSGUID in your system and copy the
    source code from the correction instructions. You cannot implement
    this source code using transaction SNOTE.
    You can use the report for every release of the CRM system, even if it
    is not specified in the validity section. The only exceptions are CRM
    releases with Support Package versions that are too low such as CRM
    Release 3.0 with Support Package 12.
    After you have run the report, you can trigger existing queues again
    in transaction SMQ1 of the R/3 back-end system or transaction SMQ2 of
    the CRM system.
    so what should i do to do the replication.please suggest me .untill and unless i solve my problem i cant move to the further activity.i hope you people can solve my problem.thanks in advance.
    thanks and best regards,
    n.chakradhar

    Hi chakradhar,
    Did you find a solution to your issue? We are facing a similar issue and looking to figure out how this can be resolved.
    BR// 420

  • Good day please help me, my iphone 5 wont turn on.  i have tried the hard reset . but that didnt even work. i plugged it in charger but still no response i connect it in itunes still.dont open. please help. i dont have the warranty anymore, i

    good day please help me, my iphone 5 wont turn on.  i have tried the hard reset . but that didnt even work. i plugged it in charger but still no response i connect it in itunes still.dont open. please help. i dont have the warranty anymore, so please help.me.

    Please make a Genius Appointment and take it in for service. By now it probably cannot be fixed, but you never know.

  • HT1918 I would like to change my Visa card from the account but its not changing and the billing information is not changing and I can't purchase any thing from my account its now not usable please help me to solve the problem

    I would like to change my Visa card from the account but its not changing and the billing information is not changing and I can't purchase any thing from my account its now not usable please help me to solve the problem

    You made a purchase and exhausted the credit on your card before it processed. All purchases are final. Contact iTunes Store support. You need to settle up before you can purchase or download anything else.

Maybe you are looking for

  • Lenovo B570 Stuck at bios screen

    I have a B570 that I recieved with a cracked LCD.  Upon replacing it everything powers on just fine however I cannot get into the bios.  When I press F2 it just says please wait in the bottom corner but never enters the BIOS.  Furthermore it will not

  • Problems restoring iphone 3gs on windows xp

    Hello, I went on to get the new update for my girlfriends iphone, as a nice suprise... So yeah now all the phone does is have a picture of a usb cable with an arrow pointing at an itunes icon. In itunes, the phone says it has to be restored, ok, so I

  • Host Unreachable intermittently within a Windows Network Load Balancing Cluster

    Hi, We have 2 Windows 2008 R2 servers running multiple IIS web sites and load balanced across Windows Network Load Balancer in unicast mode. Although there are two interfaces in each server, only 1 interface in each server participates in load balanc

  • IMac very slow after several hours of use, esp. when using Photoshop

    Hi all, I have a fairly new iMac (mid-2008 20" model) with a 2.4ghz Intel processor. I am a web designer and use this machine every day for my work. Several months after installing Adobe Creative Suite 3, I noticed that Photoshop was causing the curs

  • BPC consolidation for each month

    Dear SAP Gurus, I am having a query on how BPC system run the consolidation process for the specific months. In our current support project, we are running consolidation for the client on a monthly basis. So in the transformation file we keep changin