Please explain the code given .....

FileInputStream fstream = new FileInputStream("Emp.txt");
DataInputStream dstream = new DataInputStream(fstream);
BufferedReader bf = new BufferedReader(new InputStreamReader(dstream));
String data = null;
String comma = ",";
while((data = bf.readLine()) != null)

http://java.sun.com/docs/books/tutorial/essential/io/streams.html

Similar Messages

  • Please explain the code below

    What will be the output of the following code? Can I get some detail explanation?
    class A{
        void show(){
            System.out.println("A");
    interface my{
        public void show();
    class B extends A{
       B(my m){
           m.show();
        public void show(){
            System.out.println("B");
    public class test implements my{
        public void show(){
            System.out.println("test");
        public static void main(String args[]){
          test t=new test();
          B b=new B(t);
          b.show();
    }Thanks

    What will be the output of the following code? Can I
    get some detail explanation?Well, I guess you were not able to figure out HOW you got that output. Should have been a li'l more clear in your question. Never mind now... here is my understanding of the code.
    1) The program starts at main()
    2) creates an object for test called t (does nothing more than this since it does not have a constructor defined by you!!)
    3)creates an object for B whose constructor takes an object argument of type my. you send t becuase test implements my.
    4)calls the show method of m in the constructor.
    5)now, where is the definition of show() for m? Its in test. So now, that show() is executed and hence "test" is printed first.
    6)all done, it comes back to the main() to go to the next statement.
    7)calls the show() of b.
    8)this version of show asks to print "B" and hence the output.
    Was this detailed explanation enough? I hope so... ;-)

  • Please explain the Functinality given ASAP

    General Description
    Teac Electronics (M) Sdn Bhd currently is requesting for a new customized report which list down by finished products, sales quantity, sales amount, material cost and scrap plus variable and fixed expense.
    The customized report should only include the finished product of category ZTFG and generated by center selection and the source of each cell is extracted as indicated and as per existing reports ZCOAVT01 (program), ZSL2/ZSL3 (transaction code), FBL3 (transaction code) and J1SIPAAX (program).
    ZCOAVT01 is a product costing report, which includes both sub-assemblies (ZTSA) and finished goods (ZTFG). 
    Description
    A new customized report, which list down by finished products, sales quantity, sales amount, material cost and scrap plus variable and fixed expense.
    The customized report should only include the material type (finished product of category) ZTFG and generated by center selection and the source of each cell is extracted as indicated and as per existing reports ZCOAVT01 (program ZCOAVT01), ZSL2 (program JZSL2AAX) / ZSL3 (program JZSL3AAX), FBL3 (program RFEPOS00) and J1SIPAAX (program J1SIPAAX).
    ZCOAVT01 is a product costing report, which includes both sub-assemblies (ZTSA) and finished goods (ZTFG). 
    Screen Layout
    Selection Parameter layout:
    Selection Parameter
    Below are the user selection parameters:
    No.     Description     Technical Name     Format     Opt/Mand?
    1     Company code     BUKRS     4 CHARS     Mandatory
    2     Controlling Area     KOKRS     4 CHARS     Mandatory
    3     Plant      WERKS     4 CHARS     Mandatory
    4     Division     SPART     2 CHARS     Optional
    5     Product Group     KSTRG     12 CHARS     Optional
    6     Material Number     MATNR     18 CHARS     Optional
    7     Plan Version     VERSN     3 CHARS     Optional
    8     Fiscal Year     GJAHR     4 CHARS     Mandatory
    9     First Half     N/A     OPTION BUTTON     
    10     Second Half     N/A     OPTION BUTTON     
    11     Cost Center group     KSGRU     4 CHARS     Optional
    12     Or Values     KOSTL     4 CHARS     Optional
    13     Cost Element Group     KAGRU     USER DEFINE     Optional
    14     Or Values     KSTAR     4 CHARS     Optional
    15     Controlling Area Currency     N/A     OPTION BUTTON     
    16     Company Code Currency     N/A     OPTION BUTTON     
    Remarks: Selection screen is a combination of Report ZCOAVT01 and ZSL2/ZSL3
    Expected Output and Mapping of User selection entry to SAP Tables
    1.    Expected Output
    2.    Below is the mapping logic of the selection criteria to SAP tables.
    (R)ow       Cost elements     
    Formula     Refer program
    1 till 7 retrieve from report  ZCOAVT01 and FBL3
    Your program should only pick up figures from those material which belong to type ZTFG only (Table name = RMMG1, Field name = MTART), refer to appendix A1 and A2
         ODD Media Budget Expenses          
    1     Actual Sales Quantity     refer to appendix A1     ZCOAVT01
    2
         Sales Amount
         refer to appendix A1 and A2     ZCOAVT01
    (Plan sales amount)
    FBL3
    (Actual sales amount)
    3     Material used     refer to appendix A1     ZCOAVT01
    4     Scrap     refer to appendix A1     ZCOAVT01
    5     Balanced      Sales amount (R5) – material used (R6) – scrap(R7)     
    6     Recovery Amount     Balance (R8) – Valuable Expenses (R17)     
    7     Recovery Ratio     Recovery Amount (R9) / Fixed Expenses (R24) * 100
    8 till R25 retrieve from report  ZSL2 and ZSL3, refer to Appendix B
    8
         DIRECT LABOUR
         Sum of cost element :
    5013101
    5013111
    5013131
    5013133
    5013136
    5013141
    5013152
    5013153
                   JZSL2AAX
    J1SIPAAX
    9
         WELFARE
         Sum of cost element :
    5013302
    5013311
    5013312
    5013313
    5013321
    5013341
    5013361
                   JZSL2AAX
    J1SIPAAX
    10
         SUNDRY TOOLS, L;INE SUPPLIES
         Sum of cost element :
    5015202
    5015211
    5015231
    5015241
                   JZSL2AAX
    J1SIPAAX
    11
         MAINTENANCE
         Sum of cost element :
    5015411
                   JZSL2AAX
    J1SIPAAX
    12
         OTHER EXPENSES
         Sum of cost element :
    5015601
    5015631
    5015691
                   JZSL2AAX
    J1SIPAAX
    13     VARIABLE EXPENSES     
    Sum(R12~ R16)               
    14
         INDIRECT LABOUR
         Sum of cost element :
    5013201
    5013211
    5013231
    5013233
    5013241
    5013252
    5013253
                   JZSL2AAX
    J1SIPAAX
    15
         WELFARE
         Sum of cost element :
    5013301
    5013332
    5013342
    5013351
    5013361
                   JZSL2AAX
    J1SIPAAX
    16
         DEPRECIATION
         Sum of cost element :
    5014300
    5014600
    5014700
    5014800
                   JZSL2AAX
    J1SIPAAX
    17
         UTILITIES
         Sum of cost element :
    5015301
    5015311
                   JZSL2AAX
    J1SIPAAX
    18
         ALLOCATION SUPPORT SEC
         Sum of cost element :
    9100001
    9100002
    9100003
                   JZSL2AAX
    J1SIPAAX
    19     FIXED EXPENSES     R19R20R21R22R23               
    20     TOTAL EXPENSES     R17+R24               
    21     P & L     R9 – R24               
    22     Scrap ratio     R7/(R6 + R7)               
    From the “Expected Output” file, to derive the amounts for column Q and R:-
    Cell     Formula
    Q5     Sum of actual sales amount. Sum(C5, E5, G5, I5, K5, M5)
    Q6     Sum of  actual material used
    Q7     Sum of actual scrap figure
    Q12     Average of Sum of actual direct labour cost
    Q13     Average of Sum of actual welfare
    Q14     Average of Sum of actual SUNDRY TOOLS, L;INE SUPPLIES
    Q15     Average of Sum of actual Maintenance
    Q16     Average of Sum of actual other expenses
    Q17     Average of Sum of actual variable expenses
    Q19     Average of Sum of actual Indirect labour
    Q20     Average of Sum of actual Welfare
    Q21     Average of Sum of actual Depreciation
    Q22     Average of Sum of actual Utilities
    Q23     Average of Sum of actual Allocation support sec
    Q24     Average of Sum of actual fixed expenses
    Q25     Sum of variable expenses (Q17) + fixed expenses (Q24)
    R12     (Q12/Q25) * 100
    R13     (Q13/Q25) * 100
    R14     (Q14/Q25) * 100
    R15     (Q15/Q25) * 100
    R16     (Q16/Q25) * 100
    R19     (Q19/Q25) * 100
    R20     (Q20/Q25) * 100
    R21     (Q21/Q25) * 100
    R22     (Q22/Q25) * 100
    R23     (Q23/Q25) * 100
    R25     “100%”
    Appendix A1
    Path: Accounting>Controlling>Cost oRject controlling>Product cost Ry period>Information System>Report selection
    Application tree report selection product cost Ry period>Product cost Ry period>COPC customized reports>customized reports>Product costing: Actual Vs Target Cost(ZCOAVT01)
    Sample variant: Z3140
    Appendix A2
    For Actual Sales amount, the values will be obtained from the following GL accounts:-
    4011100    SALES-THIRD PARTIES-FINISHED GOODS
    4011101    SALES-THIRD PARTIES-BENQ-FINISHED GOODS
    4012100    SALES-TEAC CORPORATION-FINISHED GOODS
    4015100    SALES-TEAC INDONESIA-FINISHED GOODS
    4016100    SALES-TEAC AMERICA INC-FINISHED GOODS
    4017100    SALES-TEAC RELATED GROUP-FINISHED GOODS
    4150120    INTRACOMPANY SALES (IPC-FG&SA)
    1) Go to tcode FBL3, select the above mentioned GL accounts to get the following listing. Thereafter, drill down further to get the material number:-
    Appendix B
    WORKING TO SPLIT THE VARIABLE AND FIXED EXPENSES FOR MATERIAL ZTFG
    1) Go to the following patch
    Path: Information system>general report selection
    Application tree report selection general>report selection>controlling>customized reports>cost center reports
    2) From the above ZSL2 / ZSL 3 report, in order to get the mapping of the allocation to material, go to Cost Center Report (program J1SIPAAX).
    EXAMPLE :-
    The following is the sample file extracted from Cost Center Actual Line Item Report for period 1 fiscal year 2007:-
    From the above sample file, material 4900154401 (ZTFG) received 16.80 (0.2%) out of total 8,526.56. Hence, the following sender cost elements will be split  as below:-
    5014700 => 296.87 x 0.2% = 0.59
    5014800 => 157.49 x 0.2% = 0.32
    5015202 => 314.29 x 0.2% = 0.63
    and so on
    According to the mapping logic in page 6, since 5014700 and 5014800 is categorised as Depreciation = Fixed Expenses, the sum received will be 0.91 (0.59 + 0.32). Whereas, for 5015202, it will be categorised as Sundry Tools = Variable Expenses in the new customised report.

    ok... I will come back if i had any query...
    There is nobody to help me out thats why...

  • Can you explain the code ?

    Hi friends i have got a code its working fine but i am not getting the concept in the code can any one tell which line is the ITAB declaration and which lines are workarea declarations of the structure.
    TYPES: BEGIN OF ST_ZWS,
                RADIO TYPE C,
                DESCRIPTION TYPE ZRIF_WS-DESCRIPTION,
          END OF ST_ZWS.
    DATA: IT_ST TYPE TABLE OF ST_ZWS,
           WA_ST TYPE ST_ZWS,
          IT_ZWS TYPE ZWS,
          WA_ZWS TYPE ZWS.
    Please explain the code here...

    hello
    the code is as follows:
    This part of the code defines structure st_zws.
    TYPES: BEGIN OF ST_ZWS,
    RADIO TYPE C,
    DESCRIPTION TYPE ZRIF_WS-DESCRIPTION,
    END OF ST_ZWS.
    Based on the above defined structure, this statement defines one internal table
    DATA: IT_ST TYPE TABLE OF ST_ZWS,
    This statement defines work area to the above defined Internal table
    WA_ST TYPE ST_ZWS,
    This statement defines another internal table with reference to ZWS
    IT_ZWS TYPE ZWS,
    This statement defines workare to the above defined internal table
    WA_ZWS TYPE ZWS.
    cheers!!!

  • Please check the code reg mail implementation and give guide lines to me

    Hi experts
    I written some code for implementing the mail in webdynpro using java mail API,i did not get the out put ,Is any configuration i have to do in webdynpro or WAS
    Can any body review my code and tell me where i mistaken in the implementation .Is there any thing i want to configure .Here with i am sending my code in the action of Send button
    public void onActionSendMail(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionSendMail(ServerEvent)
        // get the values entered by the user  in the form
        try{
        String toAddress=wdContext.currentContextElement().getTo();
        String ccAddress=wdContext.currentContextElement().getCC();
        String bccAddress=wdContext.currentContextElement().getBCC();
        String subject=wdContext.currentContextElement().getSubject();
        String messageBody=wdContext.currentContextElement().getMessage();
        //set the properties of host and port no
        Properties p = new Properties();
        p.put("mail.transport.protocol","smtp");
        p.put("mail.smtp.host","12.38.145.108");
         p.put("mail.smtp.port","25");
         //get the session object or connection to the mail server or host
         Session sess=Session.getDefaultInstance(p,null);
         //create a MimeMessage and add recipients
         MimeMessage message = new MimeMessage(sess);
         if(toAddress !=null && toAddress.length()>0){
              message.addRecipient(Message.RecipientType.TO, new InternetAddress(toAddress));
         }else
              wdComponentAPI.getMessageManager().reportSuccess("Please Enter the To Address");
         if(bccAddress !=null && bccAddress.length()>0)
         message.addRecipient(Message.RecipientType.BCC, new InternetAddress(bccAddress));
         if(ccAddress !=null && ccAddress.length()>0)
         message.addRecipient(Message.RecipientType.CC, new InternetAddress(ccAddress));
        if(subject!=null && subject.length()>0)
         message.setSubject(subject);
         message.setFrom(new InternetAddress("[email protected]"));
         if((messageBody!=null) && (messageBody.length()>0))
              message.setContent(messageBody,"text/plain");
         }else
              message.setContent("","text/plain"); 
         Transport.send(message);
        catch(Exception e)
             e.printStackTrace();
    Please mail to :  [email protected]
    Thanks and regards
    kalyan

    Hi Venkat,
       The code seems ok to me. you don't need to configure WAS to use JavaMail APIs. However, if this code doesnot work then check with the code given below as this is working fine.
    Properties prop = new Properties();
              prop.put("mail.smtp.host", host);
              prop.put("mail.smtp.auth", "false");
              Session session = Session.getInstance(prop, null);
              session.setDebug(true);
              try {
                   MimeMessage msg = new MimeMessage(session);
                   msg.setFrom(new InternetAddress(from));
                   InternetAddress[] address =
                        { new InternetAddress(to1)};
                   msg.setRecipients(Message.RecipientType.TO, address);
                   msg.setSubject(subject);
                   msg.setSentDate(new Date());
                   MimeBodyPart msg1Body = new MimeBodyPart();
                   msg1Body.setText(msg1);
                   MimeBodyPart msg2Body = new MimeBodyPart();
                   msg2Body.setText(msg2);
                   Multipart mp = new MimeMultipart();
                   mp.addBodyPart(msg1Body);
                   mp.addBodyPart(msg2Body);
                   msg.setContent(mp);
                   Transport.send(msg);
              } catch (AddressException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
                   System.out.print("AddressException : " + e.getMessage());
              } catch (MessagingException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
                   System.out.print("MessagingException : " + e.getMessage());
              } catch (Exception e) {
                   System.out.print("Exception : " + e.getMessage());
    where host is 12.38.145.108 in your case. May be you chk if your mail server  is using another port. 25 is the default port for the smtp. This may be the case that your code is not working.
    Regards:
    Abhinav Sharma
    PS : Do reward points if it helps

  • Can anyone please explain this code to me?

    I am a new (junior)programmer?Can anyone please explain this code to me in lame terms? I am working at a client location and found this code in a project.
    _file name is AtccJndiTemplate.java_
    Why do we use the Context class?
    Why do we use the properties class?
    package org.atcc.common.utils;
    import java.io.IOException;
    import java.io.InputStream;
    import java.util.Properties;
    import java.util.logging.Logger;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.naming.NamingException;
    import org.springframework.jndi.JndiTemplate;
    public class AtccJndiTemplate extends JndiTemplate
      private static Logger logger = Logger.getLogger(AtccJndiTemplate.class.getName());
      private String jndiProperties;
      protected Context createInitialContext()
        throws NamingException
        Context context = null;
        InputStream in = null;
        Properties env = new Properties();
        logger.info("Load JNDI properties from classpath file " + this.jndiProperties);
        try
          in = AtccJndiTemplate.class.getResourceAsStream(this.jndiProperties);
          env.load(in);
          in.close();
        catch (NullPointerException e) {
          logger.warning("Did not read JNDI properties file, using existing properties");
          env = System.getProperties();
        } catch (IOException e) {
          logger.warning("Caught IOException for file [" + this.jndiProperties + "]");
          throw new NamingException(e.getMessage());
        logger.config("ENV: java.naming.factory.initial = " + env.getProperty
    ("java.naming.factory.initial"));
        logger.config("ENV: java.naming.factory.url.pkgs = " + env.getProperty
    ("java.naming.factory.url.pkgs"));
        logger.info("ENV: java.naming.provider.url = " + env.getProperty
    ("java.naming.provider.url") + " timeout=" + env.getProperty("jnp.timeout"));
        context = new InitialContext(env);
        return context;
      public String getJndiProperties()
        return this.jndiProperties;
      public void setJndiProperties(String jndiProperties)
        this.jndiProperties = jndiProperties;
    }

    Hi,
    JNDI needs some property such as the
    java.naming.factory.initial
    java.naming.provider.url
    which are needed by the
    InitialContext(env);
    where env is a properties object
    Now if you can not find the physical property file on the class path
    by AtccJndiTemplate.class.getResourceAsStream(this.jndiProperties);
    where the String "jndiProperties" get injected by certain IOC ( inverse of control container ) such as Spring framework
    if not found then it will take the property from the system which will come from the evniromental variables which are set during the application start up i.e through the command line
    java -Djava.naming.factory.initial=com.sun.jndi.ldap.LdapCtxFactory -Danother=value etc..
    I hope this could help
    Regards,
    Alan Mehio
    London,UK

  • Please check the Code snippet and detail the difference

    Please go through the two code snippets given below...
    Can some one please let me know if using generics is a better way to denote the signature and if yes, why is it so?
    Thank you
    Two classes:
    class SimpleStr {
         String name = "SimpleStr";
         public SimpleStr(String name) {
              this.name = name;
         public String getName() {
              return this.name;
         public String toString() {
              return getName();
    class MySimpleStr extends SimpleStr {
         String name = "MySimpleStr";
         public MySimpleStr(String name) {
              super(name);
              this.name = name;
         public String getName() {
              return this.name;
         public String toString() {
              return getName();
    Code Snippet 1:
    class AnotherSimpleStr {
         public <S extends SimpleStr>S getInfo() {
              return (S)new MySimpleStr("val3");
    Code Snippet 2:
    class AnotherSimpleStr {
         public SimpleStr getInfo() {
              return new MySimpleStr("val3");
    }

    Also, please see the code below, the getInfo() method is not taking care of Type safety right??!!!!
    class AnotherSimpleStr {
         public <S extends SimpleStr>S getInfo() {
              return (S)new Object();
         public <S extends SimpleStr>S getInfoAgain(Class<S> cls) {
              return (S)new MySimpleStr("Val");
    }

  • Please explain,  the job of the  "ASSIGN COMPONENT ".

    Please read this popular example appended below. I am newbie to ABAP.
    At the end of the execution the code is printing 33. Don't get it.
    Please explain,  the job of the  "ASSIGN COMPONENT ". How or why it is printing value 33.  What is the meaning of the statement, "ASSIGN COMPONENT <F2> OF STRUCTURE <F1> TO <F3>." ?
    DATA: BEGIN OF LINE,
    COL1 TYPE I VALUE '11',
    COL2 TYPE I VALUE '22',
    COL3 TYPE I VALUE '33',
    END OF LINE.
    DATA COMP(5) VALUE 'COL3'.
    FIELD-SYMBOLS: <F1>, <F2>, <F3>.
    ASSIGN LINE TO <F1>.
    ASSIGN COMP TO <F2>.
    DO 3 TIMES.
    ASSIGN COMPONENT SY-INDEX OF STRUCTURE <F1> TO <F3>.
    WRITE <F3>.
    ENDDO.
    ASSIGN COMPONENT <F2> OF STRUCTURE <F1> TO <F3>.
    WRITE / <F3>.
    11 22 33
    33

    DATA: BEGIN OF LINE,
    COL1 TYPE I VALUE '11',
    COL2 TYPE I VALUE '22',
    COL3 TYPE I VALUE '33',
    END OF LINE.
    DATA COMP(5) VALUE 'COL3'.
    FIELD-SYMBOLS: <F1>, <F2>, <F3>.
    ASSIGN LINE TO <F1>.
    ASSIGN COMP TO <F2>.      "here you are assigning the column name which is COL3 to <f2>.
    DO 3 TIMES.
    ASSIGN COMPONENT SY-INDEX OF STRUCTURE <F1> TO <F3>.
    WRITE <F3>.
    ENDDO.
    ASSIGN COMPONENT <F2> OF STRUCTURE <F1> TO <F3>.
    ASSIGN 'COL3' of structure <f1> to <f3>. "it is equal to above statement.
    WRITE / <F3>.
    11 22 33
    33
    ASSIGN COMPONENT <F2> OF STRUCTURE <F1> TO <F3>. means
    assigining  COL3  value of the structure <f1> to <f3>, so value is 33 , it will be assigned to <f3> .it prints 33.

  • Please explain the magic! (Question)

    The ActionScript snippet below is from the BlaseDS chat sample app. Can someone please explain the magic that declares the chatMessage property of AsyncMessage.body (IMessage.body?) object? It's not in the docs anywhere so I'm guessing it is not built into AsyncMessage. And it's not defined in any of the sample app source files.
    Coming from a strongly-typed development world, seeing a property that apparently has no declaration and is not explicitly instantiated does not pass the sniff-test.
    Thanks.
    <mx:Script>
      <![CDATA[
       import mx.messaging.messages.AsyncMessage;
       import mx.messaging.messages.IMessage;
       private function send():void
        var message:IMessage = new AsyncMessage();
        message.body.chatMessage = msg.text;
        producer.send(message);
        msg.text = "";
       private function messageHandler(message:IMessage):void
        log.text += message.body.chatMessage + "\n";
      ]]>

    Hold your nose, because that is the dynamic "feature" of Actionscript.  Pretty much every class derives from Object (http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/Object.html) which is a dictionary of key-value property pairs.  The {"chatMessage", msg.text as Object} pair is created upon assignment.
    I am fairly new to Flex/AS, and while not having to declare types is convenient for quick and dirty coding, I try to avoid it in production code...I have been bitten by refactoring a class and not catching all the places where it was referenced dynamically.  I'm sure there are comprehensive pro and con arguments out there.

  • Please explain the following terms in SRM

    Hi Forum,
    I am new to SRM and trying to understand some general terms and concepts in SRM.
    Please explain the meaning of below jargons if possible with an example and what is their use in SRM bussiness scenarios...
    1. Company Code
    2. Account Assignment Category - CC, OR etc
    3. Cost Center
    4. Document Types
    5. Transaction Types
    6. Movement Types
    7. Storage Location
    8. Plants
    9. Central Person
    10. Business Partner
    I am trying to understand what is the relevance of above things in SRM/ECC ?
    Thanks,
    Vivek

    Vivek
    It would be great if you go through http://help.sap.com/saphelp_srm30/helpdata/en/8d/f6a93e08503614e10000000a114084/frameset.htm
    This will help you clear most of your queries.
    Regards,
    Nikhil

  • Could someone please explain the difference between Projects Intelligence and Projects Analytics?

    Could someone please explain the difference between Projects Intelligence and Projects Analytics?
    Thanks,
    Adrien

    Older iPads got 3G service and were called Wi-Fi + 3G. Newer iPads can connect to faster cellular networks and those are given different names by the major carrier so to simplify things Apple calls the newer models Wi-Fi + Cellular.
    iPads with 3G or Cellular are NOT used like a mobile phone. They do not make phone calls or send SMS or MMS text messages, They do connect to the data network and can connect to the web.

  • Please check the code

    I AM TRYING TO REPLICATE THE ADDRESS OF EQUIPMENT FROM ECC TO CRM.
    I AM ABLE TO REPLICATE THE IDENTIFICATION NUMBER.
    WHILE USING THE SAME FUNCTION MODULE FOR ADDRESS, THE ADDRESS IS NOT GETTING REPLICATED.
    PLEASE CHECK THE CODE AND TELL ME WHAT PRE-REQUISITES MUST BE TAKEN INTO CONSIDERATION AND IS THERE ANY MISTAKE FROM ME.
    FULL POINTS WILL BE REWARDED.
    ITS VERY VERY URGENT.
    METHOD IF_EX_CRM_EQUI_LOAD~ENLARGE_COMPONENT_DATA.
    **Data declarations
    DATA:
        ls_equi          type crmt_equi_mess,
        ls_comp          type ibap_dat1,
        ls_comp_det1     TYPE IBAP_COMP3,
        ls_address_data  type ADDR1_DATA,
        ls_object      type comt_product_maintain_api,
        ls_object1     type comt_product,
        lv_object_id   type IB_DEVICEID,
        lv_object_guid type IB_OBJNR_GUID16.
    **Map Sort field from ECC to CRM
    Read table it_equi_dmbdoc-equi into ls_equi index 1.
    lv_object_id  = ls_equi-equnr.
    move is_object to ls_object.
    move ls_object-com_product to ls_object1.
    lv_object_guid = ls_object1-product_guid.
    move is_component to ls_comp.
    ls_comp_det1-deviceid    = lv_object_id.
    ls_comp_det1-object_guid = lv_object_guid.
    ls_comp_det1-EXTOBJTYP   = 'CRM_OBJECT'.
    ls_comp_det1-ibase       = ls_comp-ibase.
    ls_address_data-roomnumber = '1000'.
    ls_address_data-floor = '10'.
    ls_address_data-country = 'US'.
    CALL FUNCTION 'CRM_IBASE_COMP_CHANGE'
      EXPORTING
       i_comp                       = ls_comp
       I_COMP_DET             = ls_comp_det1
       I_ADDRESS_DATA     = ls_address_data
      I_ADDRESS_ADMIN           =
      I_PARTNER                 =
      I_DATE                    =
      I_TIME                    =
    EXCEPTIONS
      DATA_NOT_CONSISTENT       = 1
      IBASE_LOCKED              = 2
      NOT_SUCCESFUL             = 3
      OTHERS                    = 4
    *IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    *ENDIF.
    ENDMETHOD.

    Hi S B,
    May I the procedure for the replication of serialnumber into device ID that is Identification field In Ibase.
    And one more thing need this to be codded in the standard badi or needed an copy of the implementation .
    plz help me as u already have done the requirement.
    u will be twice rewarded.
    Thanking u in advance for the reply.
    Sree.

  • Please explain the exact difference

    package pkg;
    public class Kit{
       public String glueIt(String a, String b){ return a+b}
    import pkg.*;
    class UseKit{
       public static void main(String[] args){
       String s=new Kit.glueIt(args[1],args[2]);
       System.out.println(s);
    }And the following sub-directory structure
    test
    |
    |------UseKit.class
    |
    |------com
    |
    |---------KitJar.jar
    The current directory is test and and the file pkg/Kit.class is in KitJar.jar, which command line will produce output bc
    I want to know why the option given below is incorrect
    java -classpath com/KitJar.jar UseKit a b c
    The correct answer is
    java -classpath com/KitJar.jar:. UseKit a b cThe explanation says that java needs a classpath that specifies two directories one for the class file and one for the jar file. The code given below
    com/KitJar.jar:. If i infer correctly
    is specifying 2 directories
    a) that the jar file is in com/KitJar.jar
    b) the class file is in present working directory directory that happends to be test
    Am i right in my deduction?

    pksingh79 wrote:
    com/KitJar.jar:. If i infer correctly
    is specifying 2 directories
    a) that the jar file is in com/KitJar.jar
    b) the class file is in present working directory directory that happends to be test
    Am i right in my deduction?Not quite.
    All it's specifying are that there are two places to look for classes: The jar file, and the current directory. It doesn't specify which classes are in which location. You need to specify both because one of your classes is in your jar file, and one is in the current directory.

  • Cffunction and how to ? can someone explain the code to me line by line

    Hello i went to get this online and i want to test it.
    the udf is supposed to
    * CSVFormat accepts the name of an existing query and
    converts it to csv format.
    * Updated version of UDF orig. written by Simon Horwith
    my question how to break it down.
    can someone explain the code to me line by line
    thanks

    silviasalsa wrote:
    > thanks
    >
    > but line by line
    >
    > what is
    > if(ArrayLen(Arguments) GTE 2) qualifier = Arguments[2];
    > if(ArrayLen(Arguments) GTE 3 AND Len(Arguments[3]))
    columns = Arguments[3];
    > returnValue[1] = ListQualify(columns, qualifier);
    > ArrayResize(returnValue, query.recordcount + 1);
    > columns = ListToArray(columns);
    > for(i = 1; i LTE query.recordcount; i = i + 1)
    > {
    > rowValue = ArrayNew(1);
    > ArrayResize(rowValue, ArrayLen(columns));
    > for(j = 1; j LTE ArrayLen(columns); j = j + 1)
    > rowValue[j] = qualifier & query[columns[j]]
    & qualifier;
    > returnValue[i + 1] = ArrayToList(rowValue);
    > }
    > returnValue = ArrayToList(returnValue, Chr(13));
    > return returnValue;
    > }
    >
    > thanks
    Apparently this UDF takes two optional parameters so that one
    can define
    (A) a text "qualifier" to use in the CSV file, this is
    usually the
    single quote|tick ['] mark - but sometimes one wants this to
    be a
    different character and (B) what columns to use in the
    output in case
    one does not want to use all the columns in the record set
    in the
    outputted CSV file.
    The if statements are checking for these optional parameters
    and if
    found setting the values in them to internal variables.
    These
    variables are then used in the rest of the logic to create
    the CSV output.
    HTH
    Ian

  • Please explain the use of all the below movt types

    Hi friends,
    Can you Please explain the use of all the below movt types and how it is triggered.
    901     GR Area for Production
    902     GR Area External Rcpts
    904     Returns
    910     GI Area General
    911     GI Area for Cost Center
    912     GI Area Customer Order
    913     GI Area - Fixed Assets
    914     GI Area Production Orders
    915     Fixed Bin Picking Area
    916     Shipping Area Deliveries
    917     Quality Assurance
    920     Stock Transfers (Plant)
    921     Stock Transfers (StLoc)
    922     Posting Change Area
    980     R/3 --> R/2 cumulative
    998     Init.entry of stock bal.
    999     Differences
    Regards,
    Balu R.V

    Hi,
    The below mentioned objects are interim storage types, not movement types.
    Interim storage types are used as a sort of bridge between IM and WM.
    MZ

Maybe you are looking for

  • Shipment Cost Error - Departure & Destination Zone not found

    Hi Gurus, Good morning! We hit one error in shipment cost generation. When shipment costs are calculated using Transactions VI01 or VI04, the system does not determine any freight conditions. During the determination analysis of the shipment cost (SC

  • Computer Crashed. iTunes Library Lost. How can I get it back from my iPhone

    I have 522 Purchased songs on my iPhone. My computer recently crashed and we got a new hard drive, so all settings were refreshed on my computer. I plugged in my iPhone to transfer my Purchases back to my iTunes library. Again, 522 Purchased songs, a

  • Change the status of a Query BDoc

    I have accidentally released a custom Query BDoc. The BDoc status now states 'Partially Released' and it wont let me change any segment fields. This is a custom BDoc and we are on CRM 3.0. Does anyone know how to unrelease BDoc so that we can make ch

  • Cisco LMS 4.0 INFORMATION Required

    Dear Friend, i want to add IPT 7800  in LMS 4.0 can it possible or not..... anyone guide me how to achive this task.... Kamran

  • Which speakers are best?

    I've got an Audigy 2 ZS Notebook for my Dell XPS M70. Assuming money is of no concern, is there a certain speaker system that would be most suited for my setup?