Help me  coding

Hi all,
Please help me coding.
Hi,
Iam working one user exit COPA0005 function module EXIT_SAPLKEII_002.
Data would be looked up from the following tables and parameters:
CE100 : Operating Concern table for generated line items.
T_ITEM : Available table used for transfer parameter.
I_ERKRS : Import parameter in function module.
Conditions is :
1. Check if operating concern (I_ERKRS) is 0001 than go to step 2 else go to step
4.
2. Read CE100 table and verify value for Item Category (CE100-PSTYV).
3. If Item Category(CE100-PSTYV) is TAS Than change Warehouse cost value
field(CE100-VV504) value to 0.00 irrespective of its current value.
else don’t change value of warhouse cost value field(CE100-VV504) .
4. exit from function module.
This logic should be implemented for all line items in each billing document. E.g. if 5 line items are generated into COPA for one billing document step 1-4 need to be execute 5 times. Number of line items can be determined from T_ITEM table.
Any body helping the code?
Thanks & Regads
sudhakar

Hi Sudhakar,
Please check the modifed code below and let me know your further concerns.
data: lv_no_of_lines type i,
        count type i.
constant: c_0001(4) type c value '0001'. " Constant having value 1
clear: lv_no_of_lines,
         count.
Initializating the count to 1
count = 1.
Coping the no lines the code needs to be executed for each line item
assuming T_ITEM is an internal table
describe table t_item lines lv_no_of_lines.
while count le lv_no_of_lines.
count = count + 1.
  if I_erkrs eq 0001.
    if CE100-pstyv eq 'TAS'.
       CE100-VV504 = '0.00''.
    endif.
  else.
   exit.  " Exit from the code
  endif.
endwhile.
Thanks,
Samantak.
Rewards points for useful answers.

Similar Messages

  • Urgent help in coding of creating New Business partner?

    Hi Friends,
    I need urgent help on this.Please give me the solution.
    This is the coding which i written for creating new BP.
    FUNCTION ZCTS_NEW_CONTACT.
    ""Local interface:
    *"  IMPORTING
    *"     VALUE(BUSINESSPARTNER) LIKE  BAPIBUS1006_HEAD-BPARTNER
    *"     VALUE(CNEWINFO) TYPE  ZCTS_CONTACTS
    *"     VALUE(CDATA) LIKE  BAPIBUS1006_CENTRAL STRUCTURE
    *"        BAPIBUS1006_CENTRAL
    *"     VALUE(BUSPART1) LIKE  BAPIBUS1006_RELHEAD-BUSINESSPARTNER1
    *"     VALUE(BUSPART2) LIKE  BAPIBUS1006_RELHEAD-BUSINESSPARTNER2
    *"     VALUE(RELCAT) LIKE  BAPIBUS1006_RELHEAD-RELATIONSHIPCATEGORY
    *"  EXPORTING
    *"     VALUE(MESG) TYPE  CHAR100
    DATA: lt_return like bapiret2 occurs 0 with Header line.
    DATA: CTPERS  LIKE BAPIBUS1006_CENTRAL_PERSON OCCURS 0 WITH HEADER LINE.
    DATA : PARTN_GRP TYPE BAPIBUS1006_HEAD-PARTN_GRP.
    DATA : PARTN_CAT TYPE BAPIBUS1006_HEAD-PARTN_CAT.
    DATA: BEGIN OF ADADD.
       INCLUDE STRUCTURE BAPIBUS1006_ADDRESS.
      DATA: END OF ADADD.
    DATA: BEGIN OF ADTEL OCCURS 0.
       INCLUDE STRUCTURE BAPIADTEL.
      DATA: END OF ADTEL.
    DATA: BEGIN OF ADSMP OCCURS 0.
       INCLUDE STRUCTURE BAPIADSMTP.
      DATA: END OF ADSMP.
    CTPERS-FIRSTNAME  = CNEWINFO-FNAME.
    CTPERS-LASTNAME   = CNEWINFO-LNAME.
    PARTN_CAT = 1.
    PARTN_GRP = 002.
    ADADD-CITY = CNEWINFO-CITY .
    telephone info **
      ADTEL-TELEPHONE = CNEWINFO-PHONE.
      ADTEL-CONSNUMBER = '001'.
      APPEND ADTEL.
      ADTEL-TELEPHONE = CNEWINFO-MOBILE.
      ADTEL-CONSNUMBER = '002'.
      APPEND ADTEL.
    email information **
      ADSMP-E_MAIL = CNEWINFO-EMAIL .
      APPEND ADSMP.
    CALL FUNCTION 'BAPI_BUPA_CREATE_FROM_DATA'
      EXPORTING
        PARTNERCATEGORY                    = PARTN_CAT
        CENTRALDATA                        = CDATA
        PARTNERGROUP                       = PARTN_GRP
        CENTRALDATAPERSON                  = CTPERS
        ADDRESSDATA                        = ADADD
    IMPORTING
       BUSINESSPARTNER                    = BUsinessPartner
    TABLES
        TELEFONDATA                        = ADTEL
        E_MAILDATA                         = ADSMP
        RETURN                             = lt_return.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
        EXPORTING
         WAIT = 'X'.
    *PARTN_CAT = 1.
    *PARTN_GRP = 002.
    *ADADD-CITY = CNEWINFO-CITY .
    telephone info **
    ADTEL-TELEPHONE = CNEWINFO-PHONE.
    ADTEL-CONSNUMBER = '001'.
    APPEND ADTEL.
    ADTEL-TELEPHONE = CNEWINFO-MOBILE.
    ADTEL-CONSNUMBER = '002'.
    APPEND ADTEL.
    email information **
    ADSMP-E_MAIL = CNEWINFO-EMAIL .
    APPEND ADSMP.
    CALL FUNCTION 'BAPI_BUPR_PFCT_CREATEFROMDATA'
          EXPORTING
            BUSINESSPARTNER1           = BUSPART1
            BUSINESSPARTNER2           = BUSPART2
            RELATIONSHIPCATEGORY       = RELCAT
         TABLES
           RETURN                     = lt_return.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
        EXPORTING
         WAIT = 'X'.
    LOOP AT lt_return WHERE TYPE = 'E'.
        MESG = ' NOT CREATED NEW CONTACT'(020).
        EXIT.
      ENDLOOP.
    ENDFUNCTION.
    Early reply is highly appriciable.
    Regards,
    BONA

    Hi,
    Thanks for early reply.
    When i tested created new BP.
    Wheni check wether it is created or not its not created.
    What is the problem.is there modifications i have to do int he coding.
    Thanks,
    BONA.

  • Need help in coding

    hi,
    i have a problem in this coding.it is only the part of coding.
    declare
    TYPE invhdr1 IS RECORD (
    customer_trx_id NUMBER,
    trx_number VARCHAR2(20),
    trx_date DATE,
    bill_to_customer_id NUMBER,
    remit_to_address_id NUMBER,
    term_id NUMBER,
    bill_to_site_use_id NUMBER,
    primary_salesrep_id NUMBER,
    interface_header_context VARCHAR2(40),
    cust_trx_type_id NUMBER);
    invhdr invhdr1;
    TYPE inv_rec1 is REF CURSOR RETURN invhdr1;
    inv_rec inv_rec1;
    begin
    if ((p_date is null) and ((p_trx_type is null) or (p_trx_type is not null))) then
    OPEN inv_rec
    FOR select
    r.customer_trx_id customer_trx_id,
    r.trx_number trx_number,
    r.trx_date trx_date,
    r.bill_to_customer_id bill_to_customer_id,
    r.remit_to_address_id remit_to_address_id,
    r.term_id term_id,
    r.bill_to_site_use_id bill_to_site_use_id,
    r.primary_salesrep_id primary_salesrep_id,
    r.interface_header_context interface_header_context,
    r.cust_trx_type_id cust_trx_type_id
    from ra_customer_trx_all r
    where (
    (nvl(r.interface_header_context,'X')=nvl(p_context_new,nvl(r.interface_header_context,'X')))OR
    (nvl(r.interface_header_context,'X')=nvl(p_context_new_oe,nvl(r.interface_header_context,'X')))
    and r.trx_number >= p_trx_from
    and r.trx_number <=p_trx_to
    order by r.trx_number;
    end if;
    loop
    FETCH inv_rec INTO invhdr;
    --EXIT   WHEN inv_rec%NOTFOUND ;
    if inv_rec%notfound then
    dbms_output.put_line('No Selection made for the parameters passed') ;
    dbms_output.put_line('Cursor Name '||v_cursor) ;
         gresult := fnd_concurrent.set_completion_status ('WARNING','*** No Selection made for the parameters passed');
    return ;
    EXIT;
    end if;
    end loop;
    end ;
    here
    if inv_rec%notfound then
    end if;
    even if record exists for the cursor it is passing in side the if condition.iam using cursor variable here.
    i don't want to use exit when%notfound condition ,because i want to use
    fnd_concurrent.set_completion_status ('WARNING','*** No Selection made for the parameters passed');
    return ;
    for this exit condition.If someone can help me out.It is an urgent .
    thanks,
    vr.

    I don't think you can do it exactly as you want. An alternative is to select a separate count of the same query you will use in your ref cursor and check for 0. Please see the modification of your code below.
    declare
      TYPE invhdr1 IS RECORD (
      customer_trx_id NUMBER,
      trx_number VARCHAR2(20),
      trx_date DATE,
      bill_to_customer_id NUMBER,
      remit_to_address_id NUMBER,
      term_id NUMBER,
      bill_to_site_use_id NUMBER,
      primary_salesrep_id NUMBER,
      interface_header_context VARCHAR2(40),
      cust_trx_type_id NUMBER);
      invhdr invhdr1;
      TYPE inv_rec1 is REF CURSOR RETURN invhdr1;
      inv_rec inv_rec1;
      v_count NUMBER := 0;
    begin
      if ((p_date is null) and ((p_trx_type is null) or (p_trx_type is not null))) then
        SELECT COUNT(*) INTO v_count FROM
        (select
         r.customer_trx_id customer_trx_id,
         r.trx_number trx_number,
         r.trx_date trx_date,
         r.bill_to_customer_id bill_to_customer_id,
         r.remit_to_address_id remit_to_address_id,
         r.term_id term_id,
         r.bill_to_site_use_id bill_to_site_use_id,
         r.primary_salesrep_id primary_salesrep_id,
         r.interface_header_context interface_header_context,
         r.cust_trx_type_id cust_trx_type_id
         from ra_customer_trx_all r
         where (
         (nvl(r.interface_header_context,'X')=nvl(p_context_new,nvl(r.interface_header_context,'X')))OR
         (nvl(r.interface_header_context,'X')=nvl(p_context_new_oe,nvl(r.interface_header_context,'X')))
         and r.trx_number >= p_trx_from
         and r.trx_number <=p_trx_to);
        IF v_count = 0 THEN
          dbms_output.put_line('No Selection made for the parameters passed') ;
          dbms_output.put_line('Cursor Name '||v_cursor) ;
          gresult := fnd_concurrent.set_completion_status ('WARNING','*** No Selection made for the parameters passed');
          EXIT;
        end if;
        OPEN inv_rec
        FOR select
        r.customer_trx_id customer_trx_id,
        r.trx_number trx_number,
        r.trx_date trx_date,
        r.bill_to_customer_id bill_to_customer_id,
        r.remit_to_address_id remit_to_address_id,
        r.term_id term_id,
        r.bill_to_site_use_id bill_to_site_use_id,
        r.primary_salesrep_id primary_salesrep_id,
        r.interface_header_context interface_header_context,
        r.cust_trx_type_id cust_trx_type_id
        from ra_customer_trx_all r
        where (
        (nvl(r.interface_header_context,'X')=nvl(p_context_new,nvl(r.interface_header_context,'X')))OR
        (nvl(r.interface_header_context,'X')=nvl(p_context_new_oe,nvl(r.interface_header_context,'X')))
        and r.trx_number >= p_trx_from
        and r.trx_number <=p_trx_to
        order by r.trx_number;
      end if;
      loop
        FETCH inv_rec INTO invhdr;
        EXIT WHEN inv_rec%NOTFOUND ;
      end loop;
    end;

  • Need help with coding for HTML5 Video with Flash fallback

    Hello, need help with my coding in Dreamweaver CS5.5 for HTML5 video with Flash fallback. Not sure if the coding is correct. Do I need anything else Javascipt etc?

    The reason you see a blank page is because it's trying to load the file that is pretty humungous and there is no preloader. So, you see a white screen till it complets loading.
    Also, the reason why its loading a SWF file and not any of HTML5 type video is because your doctype declaration is XHTML1.0 and not HTML5.
    Change the 1st line in your .html file from:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    to:
    <!DOCTYPE html>
    Then see if your HTML5 video types load with <video> tag.

  • Can ANYONE please help with coding query?

    Hi
    Im currently setting a website up in Adobe Muse/BC - Im not a developer at all!..but a designer and really like this software. However ive come across whats probably quite a simple problem - i just need to put some the module output from my web app over an image on template page but i dont know how to do it.
    The page is here:
    latest
    The text and image im moving (this is web app outputt) is inserted into the page coding as:
    {tag_pagecontent}
    This is a module that Adobe BC is placing on the page from my web app.
    Ive done images to explain this far more clearly:
    http://www.paulsuttontestsite.co.uk/test.SHOT1.png
    http://www.paulsuttontestsite.co.uk/test.SHOT2.png
    Many thanks in advance to anyone who is kind enough to offer their time in helping me.
    Paul

    Have a look at this and check your version number see if its listed
    http://forum.xda-developers.com/showthread.php?t=1186045
    As for generic roms you have probable read about custom roms
    See this thread it is a stock SE rom not a custom rom and will give you just that a stock SE rom if you want
    http://talk.sonyericsson.com/thread/19762

  • Please help in coding

    Hi in my scenario i have to code with the following logic.Please tell me the coding.Its urgent.Am new to abap.
    Have to fill the fields E_RBKPV-MWSKZ_BNK
    E_RBKPV-TXJCD_BNK in the user exit EXIT_SAPLMRMH_014 using E1EDP04 or E1EDK04.For filling one field the logic is this or if you have any idea please tell me.
    1. If the field TXJCD is blank in the idoc and if the tax code for the unplanned delivery cost is same in invoice item and in the refered PO item, then you can fill E_RBKPV-TXJCD_BNK from the PO item in the FM 'EXIT_SAPLMRMH_014'.
    2. If the tax code for the unplanned delivery cost is not same as the tax code in invoice item or in the refered PO item, you can find the TXJCD from the tax condition's data for the tax code and copy it to E_RBKPV-TXJCD_BNK within the user exit.
    3. If the field TXJCD is filled in the idoc, you can fill the E_RBKPV-TXJCD_BNK in the user exit from here.

    So in other words you want us to do your job !!!
    I don't think you will ever learn ABAP if you try it this way ..
    Why dont you try yourself !!
    And then when you are stuck at some point then we can help you out ...

  • Formulas : Help for coding

    Hi experts,
    I face a problem I do not find any solution with my lack of coding development background.
    Here is my case :
    I have inserted a cross tab in my report. It looks like this :
    - Column : 3 following objects :
    Table.Period1
    Table.Period2
    Table.Period3
    - Line : Table.SIG containing th e following :
    1 Revenus
    2 Expenses
    3 Margin
    4 Other external expenses
    5 Added value
    => Lines 3 & 5 have been inserted to receive specifics formulas, subject of my thread.
    For example, I'd like to put a simple operation like:
    3 = 1- 2 (numbers, referred to above lines of my cross tab)
    But, in Crystal Report, it seems to be not possible to easily cross objects.
    Someone can help ? Have any idea ?
    Thanks for you time,
    Olivia

    Debi Herbert wrote:
    > You may need to do a manual crosstab which is to say group on your "lines" and using formulas create the columns in the group footer for each "line" and suppress the header and the detail lines.
    Hi Debi, thanks for your reply,
    I've created a report using "manual cross tab"; and also using automatic/manualformulas.
    The thing is a resultat like that :
    Detail   :                     xx
    Detail   :                     xx
    Group Footer 1 : 1 Revenus                                     >> Automatic formula which sumaryze the detail above
    Detail   :                     xx
    Detail   :                     xx
    Group Footer 1 : 2 Expenses                                   >> Automatic formula which sumaryze the detail above
    Group Footer 2 : 3 Margin                                         >> FORMULA that need to sum. the both group footer 1 above. but fail.
    Detail   :                     xx
    Detail   :                     xx
    +Group Footer 1 : 4 Other external expenses            >> Automatic formula which sumaryze the detail above
    Group Footer 2 : 5 Added value                               >> FORMULA that need to sum. Margin + Other external expenses. but fail.
    I do not succed to create a formula that can sumarize objects from different group footer.
    If someone have any idea, i'll much appreciate your help
    Thanks,
    Olivia

  • Need help on coding

    Hi everyone!
    currently i am doing a match making project (networking). my project is almost done, the only problem left is on the clientView side which when either button clicked, it will hang the program if char is input on the age text field. i am only managed to show a "not funny" msg when the input is in negative. hope any kind soul can help mi on the coding which will give an error msg and will not hang the program if a char or float is input on the text field. thks in advance:)
    ServerModel.java
    import java.net.*;
    import java.io.*;
    import java.util.*;
    public class ServerModel
         public static void main(String[] args)
              new ServerModel();
         ServerView sv = new ServerView();
         public ServerModel()
              try
                   ServerSocket ss = new ServerSocket(8000);
                   sv.jtaLog.append("Server Started .. waiting for Client\n");
                   System.out.println("Server started .. waiting for Client");
                   int clientNo = 1;
                   while(true)
                        Socket connectToClient = ss.accept();
                        // Print the connected client number on the console
                        System.out.println("Start thread for client " + clientNo);
                        //Create a new thread for connection
                        HandleClient thread = new HandleClient(connectToClient);
                        sv.jtaLog.append("Client "+clientNo+" connected!!!\n");
                        //Start thread
                        thread.start();     
                        // Increment clientNo
              clientNo++;               
              catch(IOException e){
                   sv.jtaLog.append("Server started already! \n"+e);
         class HandleClient extends Thread
              private Socket connectToClient;
              public HandleClient(Socket socket)
                   connectToClient = socket;
              //Run the thread
              public void run()
                   try
                        BufferedReader brFromClient = new BufferedReader(new InputStreamReader(connectToClient.getInputStream()));                    
                        PrintWriter pwToClient = new PrintWriter(connectToClient.getOutputStream(),true);
                        while(true)
                             String btn = brFromClient.readLine();     // read which button clicked
                             if(btn.equals("Register"))
                                  // recieve 4 name, age , gender, country from client                              
                                  String name = brFromClient.readLine();     
         int age = Integer.parseInt(brFromClient.readLine());//READ LINE FROM CLIENT N ASSIGN TO NAME               
         String gender = brFromClient.readLine();     
         String country = brFromClient.readLine();
         if (age<=0)
         pwToClient.println("Not funny");      
         else {
         sv.jtaLog.append("New customer registered!!\n"+name+"\n"+age+"\n"+gender+"\n"+country+"\n");
         PrintWriter bw = new PrintWriter(new FileWriter("Candidate.txt", true)); //write into text file
         //String success = name+"#"+age+"#"+gender+"#"+country+;
         bw.println(name+"#"+age+"#"+gender+"#"+country);//write on candidate.txt
                             //BufferedReader brFile = new BufferedReader(new FileReader("Candidate.txt"));
                             //String msg0;
                             //while((msg0= brFile.readLine())!=null)
                             //bw.println(success);
                             bw.close();
                             pwToClient.println("Registered successfully!!");
                             }     // end if
                             else {
                                  int countFound=0;
                                  BufferedReader brFile = new BufferedReader(new FileReader("Candidate.txt"));//READ FROM .TXT
                             int age = Integer.parseInt(brFromClient.readLine());//READ LINE FROM CLIENT N ASSIGN TO NAME
                                  String gender = brFromClient.readLine();
                                  String country = brFromClient.readLine();
                                  String msg1;//ASSIGN TO MSG
                             while((msg1= brFile.readLine())!=null)
                             pwToClient.println("Continue Search");      
                                  StringTokenizer st = new StringTokenizer(msg1,"#");
                                  String nameT= st.nextToken();//BREAK N ASSIGN
                   int ageT= Integer.parseInt(st.nextToken());
                   String genderT= st.nextToken();
                        String countryT= st.nextToken();     
                                  if((age == ageT) && gender.equals(genderT) && country.equals(countryT))
                             pwToClient.println("Found");     
                             pwToClient.println(nameT);
                             pwToClient.println(ageT);
                             pwToClient.println(genderT);
                             pwToClient.println(countryT);
                             countFound++;
                             sv.jtaLog.append("Customer searching for...\n"+age+"\n"+gender+"\n"+country+"\n");
                             else
                                  pwToClient.println("Not Found Yet");
              }// end while
                   pwToClient.println("End Search");
                   if (countFound==0)
                   pwToClient.println("Record Not Found");
                   else
                   pwToClient.println("Total Records Found: "+countFound);
                             }     // end else
                             }     // end while
                   }catch (NumberFormatException e) {}
                   catch (IOException ex) {}
    clientView.java
    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.*;
    public class ClientView extends JApplet
    private JLabel jlblName = new JLabel("Name: (For Register only)");
    private JLabel jlblAge = new JLabel("Age: ");
    private JLabel jlblGender = new JLabel("Gender: ");
    private JLabel jlblCountry = new JLabel("Country: ");
    private JLabel jlbl = new JLabel("Online Match Make", JLabel.CENTER);
    private JComboBox jcboGender = new JComboBox();
    private JComboBox jcboCountry = new JComboBox();
    private JTextField tfName = new JTextField(6);
    private JTextField tfAge = new JTextField(2);
    private JTextArea jta = new JTextArea(10,5);
    private JButton btnSubmit = new JButton ("Submit");
    private JButton btnRegister = new JButton ("Register");
    private JButton btnClear = new JButton ("Clear");
    private ClientModel cm=new ClientModel();
    private String s1 ="F";
    private String s2 ="Singapore";
    public void init()
         setLayout(new GridLayout(4,1,5,5));
         JPanel jp = new JPanel();
         jp.setLayout(new GridLayout(1,1));
    jp.add(jlbl);
    JPanel jp1 = new JPanel();
    //add(new JLabel("Online Match Make", JLabel.CENTER),BorderLayout.NORTH);
    //jp1.add(new JLabel("Online Match Make", JLabel.CENTER),BorderLayout.NORTH);
    jp1.setLayout(new GridLayout(4,2,5,5));
    jp1.add(jlblName);
    jp1.add(tfName);
    tfName.setEditable(false);
    tfName.setText("");
    jp1.add(jlblAge);
    jp1.add(tfAge);
    jp1.add(jlblGender);
    jp1.add(jcboGender);
    jcboGender.addItem("F");
         jcboGender.addItem("M");
         jp1.add(jlblCountry);
    jp1.add(jcboCountry);
    jcboCountry.addItem("Singapore");
         jcboCountry.addItem("Malaysia");
         jcboCountry.addItem("Hong Kong");
         JPanel jp2 = new JPanel();
    jp2.setLayout(new GridLayout(1,3,20,20));
    jp2.add(btnSubmit);
    jp2.add(btnRegister);
    jp2.add(btnClear);
    JPanel jp3 = new JPanel();
    jp3.setLayout(new GridLayout(1,1,10,10));
    jp3.add(new JScrollPane(jta));
    //jp1.add(jta);
                   jlblName.setForeground(Color.RED);
                        jlblAge.setForeground(Color.BLUE);
                        jlblGender.setForeground(Color.BLUE);
                        jlblCountry.setForeground(Color.BLUE);
    add(jp);
    add(jp1);
    add(jp2);
    add(jp3);
    btnSubmit.addActionListener(new Submit());
    btnRegister.addActionListener(new Register());
    btnClear.addActionListener(new Clear());
         class Submit implements ActionListener
              public void actionPerformed(ActionEvent e)
              {     // tells the server Submit button is clicked
              String result="";String endOfSearch="";
                   cm.sendToServer("Submit");
                             // sends age, gender, country to server
                   cm.sendToServer(tfAge.getText());
         cm.sendToServer(s1);
                   cm.sendToServer(s2);
                   s1= (String)jcboGender.getSelectedItem();
         s2= (String)jcboCountry.getSelectedItem();
                   // gets result from server
                        while (true){
                        endOfSearch= cm.getFromServer(); //pwToClient.println("Continue Search");
                        if (endOfSearch.equals("End Search")) break;
                        result= cm.getFromServer();
                   if (result.equals("Found"))
                        String name = cm.getFromServer();
                        String age= cm.getFromServer();
                        String gender= cm.getFromServer();
                        String country= cm.getFromServer();
                   jta.append("Found"+"\n");
                        jta.append("Name: "+name+"\n");
                        jta.append("Age: "+age+"\n");
                        jta.append("Gender: "+gender+"\n");
                        jta.append("Country: "+country+"\n");
                   }//end while
                        jta.append(cm.getFromServer()+"\n");
         }//end of submit
         public class Clear implements ActionListener
                   public void actionPerformed(ActionEvent e)
                        /*Clearing TextFields*/
                        tfName.setText("");
                        tfAge.setText("");
                        jta.setText("");
         public class Register implements ActionListener
                   public void actionPerformed(ActionEvent e)
                   {     // tells the server Register button is clicked
                        jlblName.setForeground(Color.RED);
                        jlblAge.setForeground(Color.RED);
    jlblGender.setForeground(Color.RED);
    jlblCountry.setForeground(Color.RED);
                        if(tfName.getText().equals(""))
                        tfName.setEditable(true);
                        tfAge.setText("");
                        jta.setText("");
                        jta.append("Pls enter both Name & Age\n");
                        else
                        if (tfAge.getText().equals(""))
                             jta.append("Pls enter age\n");
                        else{
                        cm.sendToServer("Register");
                        // sends name, age, gender, country to server
                        cm.sendToServer(tfName.getText());
                        cm.sendToServer(tfAge.getText());
                        s1= (String)jcboGender.getSelectedItem();
                   s2= (String)jcboCountry.getSelectedItem();
              cm.sendToServer(s1);
                        cm.sendToServer(s2);
                        String msg = cm.getFromServer();
                        if (msg.equals("Not funny"))
                             jta.append("Not funny");
                        else{
                        jta.setText("");
                        jta.append("Registered successfully!!");
                        tfName.setText("");
                        tfName.setEditable(false);
                        jlblName.setForeground(Color.RED);
                        jlblAge.setForeground(Color.BLUE);
                        jlblGender.setForeground(Color.BLUE);
                        jlblCountry.setForeground(Color.BLUE);     
    Message was edited by:
    aces1799

    jus shut up if u dont wanna help. i only asked for
    the part which i do not know, not the whole
    program,OK?!! hope at least some guide from anyone
    here, i am in the process of learning not listening
    to your nonsense!Yes sir. Problem for you is, that everyone else is probably shutting up too.
    Um, good luck with that sir.
    P.S. Will it be another 12 hours or so before you come back with another snappy retort?

  • I am trying to use GoDaddy's gdform.php for a form mailer in Flash CS4. Can anybody help with coding

    Hello Everyone,
    I am starting to learn Flash and created a form mailer for a website I am working on.  The following code is what I have in AS3.0 and it all loads fine in the web browser, but I do not receive the email with the info.
    var address:String = "gdform.php";
    var url:URLRequest;
    var variables:URLVariables = new URLVariables ();
    variables.subject = "New Fighter Profile";
    submit_btn.addEventListener(MouseEvent.CLICK,sendForm);
    function sendForm(event:MouseEvent):void{
        variables.FirstName = firstname_txt.text;
        variables.LastName = lastname_txt.text;
        variables.Birthdate = birthdate_txt.text;
        variables.Nickname = nickname_txt.text;
        variables.HeightFt = hft_txt.text;
        variables.HeightIn = hin_txt.text;
        variables.Weightclass = weightclass_txt.text;
        variables.RecWins = wins_txt.text;
        variables.RecWins = losses_txt.text;
        variables.Debut = debut_txt.text;
        variables.Hometown = hometown_txt.text;
        variables.FightClub = fightclub_txt.text;
        variables.Styles = styles_txt.text;
        variables.Email = email_txt.text;
        variables.Bio = bio_txt.text;
        url = new URLRequest (address);
        url.method = URLRequestMethod.POST;
        url.data = variables;
        navigateToURL (url);
        var reqThanks:URLRequest=new URLRequest("thanks.html");
        navigateToURL(reqThanks,"_blank");
        var reqHome:URLRequest=new URLRequest("index.html");
        navigateToURL(reqHome,"_parent");
    Please Help!
    Thanks,
    John

    Maybe someone here can help.
    In spite of the site name, it is a Mac video card site.

  • Need help with coding

    Hi
    I created a Flash photo gallery in Photoshop CS2, but when I go to load the page the following page comes up first:
    It asks me to upgrade my Flash Player. Followed by a line saying: Already have Flash Player. Click here if you already have Flash Player 6 installed.
    Hit the link and there is my gallery.
    I'm hoping there is a simple bit of code that needs deleting.  I have enclosed the code from the flashobject.js file, does anyone know what needs tweaking to resolve this issue?
    Thanks
    * FlashObject embed
    * by Geoff Stearns ([email protected], http://www.choppingblock.com/)
    * v1.0.7 - 11-17-2004
    * Create and write a flash movie to the page, includes detection
    * Usage:
    *    myFlash = new FlashObject("path/to/swf.swf", "swfid", "width", "height", flashversion, "backgroundcolor");
    *    myFlash.addParam("wmode", "transparent");                     // optional
    *    myFlash.addVariable("varname1", "varvalue");                  // optional
    *    myFlash.addVariable("varname2", getQueryParamValue("myvar")); // optional
    *    myFlash.write();
    FlashObject = function(swf, id, w, h, ver, c) {
        this.swf = swf;
        this.id = id;
        this.width = w;
        this.height = h;
        this.version = ver || 6; // default to 6
        this.align = "middle"; // default to middle
        this.redirect = "";
        this.sq = document.location.search.split("?")[1] || "";
        this.altTxt = "Please <a href='http://www.macromedia.com/go/getflashplayer'>upgrade your Flash Player</a>.";
        this.bypassTxt = "<p>Already have Flash Player? <a href='?detectflash=false&"+ this.sq +"'>Click here if you have Flash Player "+ this.version +" installed</a>.</p>";
        this.params = new Object();
        this.variables = new Object();
        if (c) this.color = this.addParam('bgcolor', c);
        this.addParam('quality', 'high'); // default to high
        this.doDetect = getQueryParamValue('detectflash');
    FlashObject.prototype.addParam = function(name, value) {
        this.params[name] = value;
    FlashObject.prototype.getParams = function() {
        return this.params;
    FlashObject.prototype.getParam = function(name) {
        return this.params[name];
    FlashObject.prototype.addVariable = function(name, value) {
        this.variables[name] = value;
    FlashObject.prototype.getVariable = function(name) {
        return this.variables[name];
    FlashObject.prototype.getVariables = function() {
        return this.variables;
    FlashObject.prototype.getParamTags = function() {
        var paramTags = "";
        for (var param in this.getParams()) {
            paramTags += '<param name="' + param + '" value="' + this.getParam(param) + '" />';
        if (paramTags == "") {
            paramTags = null;
        return paramTags;
    FlashObject.prototype.getHTML = function() {
        var flashHTML = "";
        if (window.ActiveXObject && navigator.userAgent.indexOf('Mac') == -1) { // PC IE
            flashHTML += '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="' + this.width + '" height="' + this.height + '" id="' + this.id + '" align="' + this.align + '">';
            flashHTML += '<param name="movie" value="' + this.swf + '" />';
            if (this.getParamTags() != null) {
                flashHTML += this.getParamTags();
            if (this.getVariablePairs() != null) {
                flashHTML += '<param name="flashVars" value="' + this.getVariablePairs() + '" />';
            flashHTML += '</object>';
        else { // Everyone else
            flashHTML += '<embed type="application/x-shockwave-flash" src="' + this.swf + '" width="' + this.width + '" height="' + this.height + '" id="' + this.id + '" align="' + this.align + '"';
            for (var param in this.getParams()) {
                flashHTML += ' ' + param + '="' + this.getParam(param) + '"';
            if (this.getVariablePairs() != null) {
                flashHTML += ' flashVars="' + this.getVariablePairs() + '"';
            flashHTML += '></embed>';
        return flashHTML;   
    FlashObject.prototype.getVariablePairs = function() {
        var variablePairs = new Array();
        for (var name in this.getVariables()) {
            variablePairs.push(name + "=" + escape(this.getVariable(name)));
        if (variablePairs.length > 0) {
            return variablePairs.join("&");
        else {
            return null;
    FlashObject.prototype.write = function(elementId) {
        if(detectFlash(this.version) || this.doDetect=='false') {
            if (elementId) {
                document.getElementById(elementId).innerHTML = this.getHTML();
            } else {
                document.write(this.getHTML());
        } else {
            if (this.redirect != "") {
                document.location.replace(this.redirect);
            } else {
                if (elementId) {
                    document.getElementById(elementId).innerHTML = this.altTxt +""+ this.bypassTxt;
                } else {
                    document.write(this.altTxt +""+ this.bypassTxt);
    function getFlashVersion() {
        var flashversion = 0;
        if (navigator.plugins && navigator.plugins.length) {
            var x = navigator.plugins["Shockwave Flash"];
            if(x){
                if (x.description) {
                    var y = x.description;
                       flashversion = y.charAt(y.indexOf('.')-1);
        } else {
            result = false;
            for(var i = 15; i >= 3 && result != true; i--){
                   execScript('on error resume next: result = IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.'+i+'"))','VBScript');
                   flashversion = i;
        return flashversion;
    function detectFlash(ver) {   
        if (getFlashVersion() >= ver) {
            return true;
        } else {
            return false;
    // get value of querystring param
    function getQueryParamValue(param) {
        var q = document.location.search;
        var detectIndex = q.indexOf(param);
        var endIndex = (q.indexOf("&", detectIndex) != -1) ? q.indexOf("&", detectIndex) : q.length;
        if(q.length > 1 && detectIndex != -1) {
            return q.substring(q.indexOf("=", detectIndex)+1, endIndex);
        } else {
            return "";
    /* add Array.push if needed */
    if(Array.prototype.push == null){
        Array.prototype.push = function(item){
            this[this.length] = item;
            return this.length;

    i'm getting the same error.  please help!  thanks.

  • Help with coding - MouseEnter/Leave and Click commands for animated tabbed panel

    Hello!
    I've asked a question similar to this but unfortunately couldn't figure it out!  I'm hoping someone may be able to help now as I'm much clearer about what I need...!
    Here's my Edge Animate project - http://we.tl/JEOuvnK4SX  It's going to be embedded on a Muse website.
    At the moment, it works well, with the animations happening as the mouse is rolled over each icon at the top.  What I'd love to achieve is something very similar but with click actions - When the icon at the top is rolled over it plays and reverseplays but the panel below is only played when the icon is actually clicked - and it holds until another is clicked (so the mouse can wonder around the screen without the information dissappearing), it should then playreverse before the new one appears.
    I'd also like it to begin with 'Concept' pre-selected so users can see the first panel.  At the moment there's a big empty space which makes it look like there's actually something missing.
    So I'd like something like this (hopefully this makes sense!):
    TO BEGIN - ICON (Concept) and PANEL (Concept_1) already activated (CLICK) (see image).  It would also be quite nice if this began as the user scrolled down the page as I already have a few scroll effects on the Muse project.
    MOUSE ENTER:
    sym.getSymbol("ICON").play('Over');
    MOUSE LEAVE:
    sym.getSymbol("ICON").playReverse();
    CLICK:
    < find currently activated "ICON" .playReverse(); >
    < find currently activated "PANEL" .playReverse(); >
    sym.getSymbol("PANEL").play('Over');
    I've been racking my brain over this but I think I just don't know enough code!  Any help would be MASSIVELY appreciated!!  Thanks

    Ok, i will look at mouse events.
    Code to display default panel and icon requires a new line.
    compositionReady:
    // Default Panel: first panel
    sym.getSymbol("Concept").play('Over'); // <== new line
    sym.getSymbol("Concept_1").getSymbolElement().show();
    sym.getSymbol("Concept_1").play("Over");
    sym.setVariable("displayedPanel","Concept_1");

  • Urgent - Need help on Coding in Forms

    I created a Master/Detail form. I now wish to create a field to display the sum total of a Detail field.
    I wrote a loop in a Program Unit which has the count upto last_record (Restricted Built-in) but cannot use this call from a Post Query due to Forms' limitation of not using a Restricted Built-in/Procedure in a Pre/Post trigger.
    I also cannot use the call to the Program Unit in a Key-ExeQry trigger as Oracle Apps. has the Ctrl+F11 key for Execute Query. Since the form is built for query purpose for now, I wish to display the totals upon Execute Query.
    Where can I make the call for this Program Unit or what code do I need to write and where in order to display the total upon Execute Query.
    Any help would be greatly appreciated.

    hi,
    sorry to hurt you. Sometimes you can solve a problem in forms without writing any code
    create a field with number datatype
    in the property pallette
    calculation mode = summary
    summary function = sum
    summarized field = <name of the field of which you want a sum>
    Set the block level property
    Query all records = yes
    now ctrl + r
    F8
    HTH
    vinayak
    (if you want the test form that i created for you you can mail me)
    null

  • Help regarding coding stored procedure

    Dear All,
    i am new in oracle. i have to develop an application for a store, where some material In and Out on daily basis.
    and i want to see current status any time.
    any one give me any idea how to do that means coding of stored procedure, on whose basis i can create material IN and OUT form.
    If Any one have such application please Please share
    thanks,
    Sachin

    I've never done this before, but on this google search
    http://www.google.com/search?sourceid=navclient&ie=UTF-8&oe=UTF-8&q=%22java+stored+procedure%22+hello
    This was the first hit
    http://otn.oracle.com/oramag/oracle/03-jan/o13java.html
    and after 30 seconds of looking at it, I noticed this line
    loadjava -user scott/tiger Hello.class
    was specifing .class instead of your .java
    Could that be the problem?????

  • Need help for coding and designing

    Hi All,
    Problem Statement
    A financial institution is in the verge of automating their existing “customer data management” system. Currently they are maintaining their
    customer data in a comma separated file (CSV) format. You, as a software consultant have been requested to create a system that is flexible,
    extensible and maintainable. Your proposed system should also take care of moving the data from the old system to the new one.
    Customer has following specific requirements
    1.This is an internal offline application and need not be a web based solution
    2.The new application should be cost effective
    3.The application should have good response time as compared to the ones suggested by other vendors
    4.Phase 1 work should concentrate mainly on building a simple system which moves the data from CSV to the new one and display the
    moved data on the screen.
    Sample CSV file containing customer data
    <first name>, <age>, <pan number>, <date of registration>
    Ramesh, 28, JWSLP1987, 30/01/2006
    Rajesh, 32, POCVT2087, 23/10/2005
    Shankar, 39, TRYUP3945, 24/7/2003
    Shyam, 45 BLIWP5612, 15/3/2004
    Requirements for coding DOJO
    •Ensure that your solution is built around open source frameworks and tools to avoid licensing issues. (Ex: Eclipse, MySQL, etc)
    •Please give me any idea to write code for this issue.
    Thank you.
    Edited by: user636482 on Oct 28, 2008 2:03 AM

    The first requirement is to NOT use software like "Oracle".
    The specifications are to use a CSV file as the "data source". The case asks you to "move" the data from CSV to "the new one" and display the moved data.
    So this sounds more like a data load routine -- but not to load into Oracle.
    You are in the wrong forum.

  • Urgent please help me coding

    Hi SDN Team,
    I urgently required to develop a function module in CRM Billing order for rejecting the item line and creating a new line while copying the contents of the old line item into new one.
    We need to do this because, we need to handle the situation where, there was wrong date entered for the leasing contract period and at a later stage we will come to know the first entered date was wrong so we need to change the dates for the lease contract period for that particular item.
    With this creation of new line item, it generates a new billing plan for that particular line item.
    I need to perform this task by developing a function module. I'm given <b>crm_order_maintain & crm_order_read function modules</b> but i'm unable to create a new line item with those 2 function modules.
    Any one, kindly send me the coding and steps aswell please.
    If you need further clarification please email to [email protected]
    Thanks in Advance.
    Sincerely.
    KK

    Hi Tomasz,
    Thanks for the reply.  I'm new to this ABAP programming.  Could you please send me the coding and guide me the steps.
    Your earliest reply will be appreciated.
    Best Regards!
    KK

Maybe you are looking for