Objects value transfer through class

Hi,
Subject sounds strange? well, I dont know how to put it. Here is my problem. I have a class ReadURL which reads a url and creates a buffer. He is the code.
public class ReadURL {
     public BufferedReader UrlReader(String url2) throws Exception {
        String url1 = "http://www.google.com";
         // Storing second part of the url in a String "url3"
         String url3 = "xxxx";
      //BufferedReader on the input stream and reads from the BufferedReader
         URL web = new URL(url1+url2+url3);
         URLConnection webConnection = web.openConnection();
         BufferedReader in = new BufferedReader(
         new InputStreamReader(
         webConnection.getInputStream()));
        in.close();
          return in;
     }          Now I have another class Readbuffer which should read from this buffer and iterate for further process.... Here is the code
public class ReadGB extends UrlReader{
         public static void main(String[] args) {
         BufferedReader in = null;
         try {
             //prepare a BufferedReader for file io
             BufferedReader br = new BufferedReader(new FileReader(args[0]));
             int fileType = Integer.parseInt(args[4]);
             SequenceIterator iter =
                 (SequenceIterator)SeqIOTools.fileToBiojava(fileType, br);
         catch (FileNotFoundException ex) {
           //can't find the file specified by args[0]
           ex.printStackTrace();
           System.exit(-1);
     Can you please show me, How do I feed the buffer information from the first class to the second class for iteration? I am novice, so please dont go to technical about it.
Thank you very much

merit wrote:
Hi,
Subject sounds strange? well, I dont know how to put it. Here is my problem. I have a class ReadURL which reads a url and creates a buffer. He is the code.
Can you please show me, How do I feed the buffer information from the first class to the second class for iteration? I am novice, so please dont go to technical about it.
Thank you very muchGive the second class a reference to the buffer that the first class is filling. Just make sure you don't try to read data before it's written.

Similar Messages

  • Value Transfer through Characteristics in COPA Assessment

    Dear All,
    Here I am getting one issue regarding Revenue doubled in COPA Reports, not matching between FI & COPA reports because of SD condition types problems some of billing documents posted double revenue in COPA reports.
    Now I want re-post extra revenues from Product/Customer Characteristics to Dummy Characteristics, how to solve this issue.
    I tried in COPA Assessment, but not possible because senders only Cost Elements or Cost Centers.
    My requirement is at month end we have to run TDD (Top Down Distributions) with reference of Actual Revenue. If I run TDD entire COPA report will show wrongly.
    How to solve above issue please help me.
    KBR

    Hi Reddy Anna
    How can double amount get posted in COPA alone and not in FI? Please check that
    May be you are seeing double because you are displaying both currency types in COPA report (Op Conc and Comp Code)
    However, if its truly genuine double amount, reverse the document and repost after making corrections in SD Pricing procedure.. Use KE4S
    br, Ajay M

  • Transfer through the iterator object....

    Hi,
    I am writing a code in JSP where i need to transfer through the iterator object and print all the objects i.e. object name and the value in the page. Please give me an example how to write the code in jsp with the iterator object.
    thanks.

    [http://www.google.com/search?hl=en&q=JSP+iterator+examples&meta=]

  • MakePersistent exception and second class object value

    1. When makePersistent is called on an object with application id that
    already exists in the database, a JDOFatalDataStoreException is thrown.
    The JDO specification calls for a JDOUserException (17.1.4).
    2. If there are stray data for a second class field (e.g. Hashtable)
    before the object is created, the stray data will become part of the value
    of the second class object.
    Suggestion: Delete statements should be issued to delete stray values for
    second class fields.
    ---------- Program output -------------
    After makePersistent: Persistent-Dirty-New
    After add inside transaction: Persistent-Dirty-New
    [ C:9; S:58; T:5; D:11/29/02 9:47 PM ] INSERT INTO PORTFOLIOX(JDOLOCKX,
    JDOCLASSX, NAMEX) VALUES (0, 'quocp.ent.Portfolio', 'TESTPF')
    [ C:9; T:5; D:11/29/02 9:47 PM ] roll back data store transaction
    javax.jdo.JDOFatalDataStoreException:
    com.solarmetric.kodo.impl.jdbc.sql.SQLExceptionWrapper: [SQL=INSERT INTO
    PORTFOLIOX(JDOLOCKX, JDOCLASSX, NAMEX) VALUES (0, 'quocp.ent.Portfolio',
    'TESTPF')] Invalid argument value: Duplicate entry 'TESTPF' for key 1
    [code=1062;state=S1009]
    NestedThrowables:
    com.solarmetric.kodo.impl.jdbc.sql.SQLExceptionWrapper: [SQL=INSERT INTO
    PORTFOLIOX(JDOLOCKX, JDOCLASSX, NAMEX) VALUES (0, 'quocp.ent.Portfolio',
    'TESTPF')] Invalid argument value: Duplicate entry 'TESTPF' for key 1
    end trans[11/29 21:47:28:913]

    Well, you can always do this type of cleanup manually if you so desire.
    Having Kodo automatically guess about what constitutes valid data seems
    pretty dangerous though.
    I'd suggest that you put the appropriate deferred referential integrity
    checks on your schema instead. This will let the database guarantee the
    consistency of the data.
    -Patrick
    Quoc Pham wrote:
    If the data for the second class member somehow are there in the table
    (maybe someone deleted the owning instance without cleaning up the owned
    data), then it woul be picked up. It would be safer to have an option to
    issue an SQL statement to clean up the data.
    "Patrick Linskey" wrote in message
    news:asegfu$9r0$[email protected]..
    Quoc Pham wrote:
    2. If there are stray data for a second class field (e.g. Hashtable)
    before the object is created, the stray data will become part of the
    value
    of the second class object.What do you mean by 'stray data?'
    -Patrick
    Patrick Linskey [email protected]
    SolarMetric Inc. http://www.solarmetric.com
    Patrick Linskey [email protected]
    SolarMetric Inc. http://www.solarmetric.com

  • Use OBJCLASS object of Emigall for  Class & characteristics creation in FL

    Hi Fritz,
    Good day,
    I want to use OBJCLASS object of Emigall for
    Class and characteristics cration of Functional Location, The object is
    desiged for Equipment only,
    I read the document of this object which says
    that it can be modify to use for functional location as well by changing
    some rule, I tried by changing the field "Name of database table for
    object" from the standard which is made for DEVICE/EQUIPMENT
    I need your help to modify the rule to use this object for class and
    characterstic creation for Functional Location, the migration object field is set to Device
    which I want to change to FUNCLOC  but that field is not modifiable.
    Can you help me Fritz
    Regards,
    Robert

    Robert,
    Yes you are right. The following changes have to be made:
    HEADER-OBJECT_TYPE need to be set to IFLOT (Fixed Value or Transfer field rule)
    DATA-FIELD need to be set to TPLNR  (Fixed Value or Transfer field rule)
    DATA-VALUE need to be set to either CONNOBJ or DEVLOC (Via KSM field rule)
    Kind regards,
    Fritz

  • Passing values to different classes.

    Class A (main panel) calls Class B (calendar panel) and Class C (textbox and buttons panel). When the users changes dates on the calendar class B, class C needs to be notified of the new values.
    I have two constructors in class C...an empty parameter constructor that is used when the main panel(A) calls it, and a constructor that accepts an Object as a parameter (which is the list of dates selected on the calendar), used when class B calls it.
    My problem is that when the values are changed on the calendar, class C is not holding on to the list of dates. In my constructor, I am enumerating through the list...so I know the values are being passed, but when I try to use the list later on in the code (when a button is clicked) the list is empty.
    Does anyone have any suggestions on how to resolve this problem?
    Thanks!!!!

    you can do something like that:
    public someClass {
    someOtherClass obj;
    public someclass (someOtherClass object) {
    this.obj = object;
    public void someMethod () {
    if (condition) { obj.someOtherMethod();  }
    public someOtherClass {
    //constructor here
    public void someOtherMethod () { //do Stuff }
    like this you could pass values between your classes A, B and C

  • How to set a object value bound to a session to JavaScript variable

    In a JSP, I store an object value in a HttpSession and I also write a Javascript function to display something on the screen. I need to use the Javascript function to display the object value which is stored in the session. How to set the object value to variable of the JavaScript function. Thanks.

    I write a class JavaScriptHelper to convert the object value to variable of the JavaScript;
    1.get the data to a javabean from database;
    2.convert the data to variable of the JavaScript as a String ;
    3.store the object in a HttpSession or Httprequest ;
    4.use in Jsp get the String (variable of the JavaScript )
    YourBean bean = (YourBean) request.getAttribute("model");
         if (bean != null) out.println(bean .getJsCode())
    convert function,(this is only for the matrix):
    public static String formatJsCode(Vector vector) {
    String sJsCode = "";
    //get js head
    sJsCode = getJsHeader();
    //define js array;
    sJsCode += "var data=new Array();\n";
    Vector v = null;
    String sTemp = "", sLine = "";
    for (int i = 0; i < vector.size(); i++) {
    v = (Vector) vector.get(i);
    sLine = "";
    for (int j = 0; j < v.size(); j++) {
    sTemp = (String) v.get(j);
    //replace " to \"
    sTemp = sTemp.replaceAll("\"", "\\\\\\\"");
    //escape Html Tag
    //sTemp = StringUtil.escapeHTMLTags(sTemp);
    //replace \r\n to <br>
    sTemp = sTemp.replaceAll("\r\n", "<br>");
    if (j != 0)
    sLine += ",";
    sLine += "\"" + sTemp + "\"";
    sJsCode += "data[" + i + "]=new Array(" + sLine + ");\n";
    //get js foot
    sJsCode += getJsFooter();
    return sJsCode;
    public static String getJsHeader(){
    return "<script language=\"JavaScript\">";
    public static String getJsFooter(){
    return "</script>";
    }

  • How to set a Object value by JDI

    How to set a Object value using JDI?
    For example:
    class User{
      private String name;
      private String id;
    set and get method;
    public static void main(String[] args) throws Exception {
            VirtualMachineManager vmm = Bootstrap.virtualMachineManager();
            List<AttachingConnector> connectors = vmm.attachingConnectors();
            SocketAttachingConnector sac = null;
            for (AttachingConnector ac : connectors) {
                if (ac instanceof SocketAttachingConnector) {
                    sac = (SocketAttachingConnector) ac;
                    break;
            if (sac == null) {
                System.out.println("JDI error");
                return;
            Map<String, Connector.Argument> arguments = sac.defaultArguments();
            Connector.Argument hostArg = arguments.get("hostname");
            Connector.Argument portArg = arguments.get("port");
            hostArg.setValue(HOST);
            portArg.setValue(String.valueOf(PORT));
            vmMachine = sac.attach(arguments);
            List<ReferenceType> classesByName = vmMachine.classesByName(CLSNAME);
            if (classesByName == null || classesByName.size() == 0) {
                System.out.println("No class found");
                return;
            ReferenceType rt = classesByName.get(0);
            List<Method> methodsByName = rt.methodsByName(METHODNAME);
            if (methodsByName == null || methodsByName.size() == 0) {
                System.out.println("No method found");
                return;
            Method method = methodsByName.get(0);
    I will connect to server and monitor the remote server JVM , There is a object of User, I want to change its value by the Java Debugger Interface by client.
    so how to set its value by the client, and I can not got the User bean at client.
    I know the basic type filed value changed as follows:
    Value newValue = vmMachine.mirrorOf("change var value");// this field is a string.
    stackFrame.thisObject().setValue(field, newValue);
    But a Object , how can I change its value.
    Thanks Advanced.

    ObjectReference.setValue() is the method for chaining the value of an Object's field. First you need to find the specific Object you want to change, though.
    /Staffan

  • How to  get the profile object in simple java class  (Property accessor)

    Hi All,
    Please guide me how to get the profile object in simple java class (Property accessor) which is extending the RepositoryPropertyDescriptor.
    I have one requirement where i need the profile object i.e i have store id which is tied to profile .so i need the profile object in the property accessor of the SKU item descriptor property, which is extending RepositoryPropertyDescriptor.
    a.I dont have request object also to do request.resolvename.
    b.It is not a component to create setter and getter.It is simple java class which is extending the RepositoryPropertyDescriptor.
    Advance Thanks.

    Iam afraid you might run into synchronization issues with it. You are trying to get/set value of property of a sku repository item that is shared across various profiles.
    Say one profile A called setPropertyValue("propertyName", value).Now another profile B accesses
    getPropertyValue() {
    super.getPropertyValue() // Chance of getting value set by Profile A.
    // Perform logic
    There is a chance that profile B getting the value set by Profile A and hence inconsistency.
    How about doing this way??
    Create PropertyDescriptor in Profile (i.e user item descriptor), pass the attribute CustomCatalogTools in userProfile.xml to that property.
    <attribute name="catalogTools" value="atg.commerce.catalog.CustomCatalogTools"/>
    getPropertyValue()
    //You have Profile item descriptor and also storeId property value.
    // Use CustomCatalogTools.findSku();
    // Use storeId, profile repository item, sku repository item to perform the logic
    Here user itemdescriptor getPropertyValue/setPropertyValue is always called by same profile and there is consistency.
    -karthik

  • Passing array values to methods & Classes

    Hi,
    I have written the following two classes, I want to pass the value from one class - insersortest to the other class what kind of return statement do I do ? I am not sure what does this Comparable object do in this program ? I am trying the program (algorithm specfieid) from one of the Data Structure book.
    import java.io.*;
    import java.lang.*;
    public class Insersortest
    public static void main(String args[]) throws IOException
    Insersort ghl = new Insersort();
              Comparable a[] = {1, 3, 5, 9, 1};          
                   System.out.println("Detecting duplicates"+ ghl.insertA(a));               
    -=-=-=-
    class Insersort
    public static int insertA( Comparable [ ] a )
    for( int p = 1; p < a.length; p++ )
    Comparable tmp = a[ p ];
    int j = p;
    for( ; j > 0 && tmp.compareTo( a[ j - 1 ] ) < 0; j-- )
    a[ j ] = a[ j - 1 ];
    a[ j ] = tmp;
    Could somebody provide their view please.
    PK

    You return arrays just like any object:
    public Object[] getArray()Comparable is an interface. Any object that implements Comparable (and can therefore be stored in a Comparable's reference) is guarenteed to have a compareTo method.
    Does that help?

  • How to change the value of Valuation class.

    dear friends:
    i want to change the value of Valuation class in the material master .but system  warning info occurs .
    The valuation class cannot be changed
    Message no. M3 368
    Diagnosis
    You wanted to change the valuation class. However, this is not possible because one or more of the following already exist for the material:
    Valuated stocks in the current period or in the previous period
    Open purchase orders or delivery schedule lines
    Production orders for which a goods movement has already taken place
    System Response
    Your change is reset by the system.
    Procedure
    If valuated stocks already exist, you can change the valuation class only as follows:
    a) Post the stocks of the material to an interim account.
    b) Change the valuation class in the material master record.
    c) Post the stocks of the material back to their original account.
    If open purchase orders already exist, you can only change the valuation class if you first flag the corresponding purchase order items for deletion.
    If production orders exist for which a goods movement has already taken place, you can only change the valuation class if you first set the status of the production orders to Deleted.
    Procedure for System Administration
    In Customizing for the Material Master, you can switch the check for open purchase orders and/or for production orders to a warning. You do this in Define Attributes of System Messages by assigning the message type Warning to message MM 326 and/or MM 327 respectively. However, first ensure organizationally that further processing of the open purchase orders or production orders cannot result in inconsistencies.

    To resolve SAP error message M3 368 I would suggest that you refer to SAP note number 1967543. This note outlines the issue and a resolution to it:
    Please have a look at the description of the error M3 368. This error may occur if one or more of the following already exist for the material:
    1. Valuated stocks in the current period or in the previous period
    2. Open purchase orders or delivery schedule lines
    3. Production orders for which a goods movement has already taken place
    Resolution:
    If you have valuated stocks in the current period or in the previous period, you will get message "Stocks already exist.". You have to clear all the stocks both in current period and previous period. Please have a look at SAP Note 30656, it shows an example on how to clear the stocks in
    previous period. You can use transaction MIGO to execute this step.
    If you have open purchase orders or delivery schedule lines, you will get message "Purchase orders already exist.". You can find related purchase orders after you click 'Display Error' button. Please delete them in transaction ME22N.
    If you have production orders for which a goods movement has already taken place, you will get message "Production orders already exist.". Please archive these production orders. You need to set deletion flag for these orders firstly and go to SARA, use archiving object PP_ORDER to archive
    these orders.
    Kind regards,
    James

  • Exception Handling for many bean objects of a container class in a JSP page

    Hello,
    I have on container bean class. In this container class, there are several others class objects and the getter methods to get these objects out to the JSP pages.
    I have one JSP page which will use different objects in the container class object through the getter methods of the container class.
    My question is how to implement the exception handler for all the objects in the container so that the JSP page can handle all exceptions if occurrs in any object in the container?
    Please give me some suggestions. Thanks
    Tu

    Thanks for your reply.
    Since the container is the accessor class, I have no other super class for this container class, I think I will try the try catch block in the getter methods.

  • GlobalContainer object values acessed among UDF's  in message mapping ?

    hi
    i have scenario where i am using globalContainer variable functionality in my message mapping.
    in edit java section
    String usr;
    Container container ;
    GlobalContainer globalContainer ;
    intialize usr = "";
    in First UDF
    String inlogin_sess =  " ashutosh test value" ;
    globalContainer.setParameter(usr,inlogin_sess);
    return any value :
    now if i create another 2nd UDF and use :
    String  out =globalContainer.getParameter(usr);
    return out ;
    now 2nd UDF is giving null pointer exception...
    for testing the code functionality..
    IF i  use the  SET and GET in 1st UDF :
    globalContainer.getParameter(usr);   in 1st UDF than it is working sucessfully...
    globalContainer.setParameter(usr,inlogin_sess);
    String  out = globalContainer.getParameter(usr);
    return out ;
    in help.sap it is mentioned that Globalcontainer objects  values can be fetched   among UDF's in one message mapping....
    [http://help.sap.com/saphelp_nw04/helpdata/en/0f/80243b4a66ae0ce10000000a11402f/frameset.htm]
    i have gone a lot of thread in sdn where Global container are used like sequence no creation etc, but every where  the
    GET and SET are used in SAME UDF...
    any clue where is leak..
    Regards,
    ashutosh R

    Hi Abhishek
    Your point is legimate, but for my their is no such issue..
    even i try to use it as :see image..
    [http://www.screenshots.cc/show.php/14137_GlobalVariable.JPG.html]
    UDF1 :
    globalContainer.setParameter(usr,inlogin_sess);
    return any value :
    and in UDF2 
    String  out = globalContainer.getParameter(usr);
    return out ;
    mainting the sequence
    My concern is object globalContainer is local in UDF1, so it will through nullpointer ,if we try to access in UDF2.
    if we declare globalContainer   in edit jave -GlobalVariables also, still it is having the error..
    Regards
    AshutoshR

  • Pass a value to a class that extends AbstractTableModel

    Hi
    I have a problem with a table model that I cannot find a way of overcoming.
    I have created a class called MyTableModel that extends AbstractTableModel.
    MyTableModel creates and uses another class that I have defined in order to retrieve records from a database, MyTableModel fills the table with these records.
    However, I wish to alter my class in order to provide an int parameter that will act as a �where� value in the classes sql query.
    The problem is this, I cannot work out how to pass a value into MyTableModel. I have tried creating a simple constructor in order to pass the value but it doesn�t work.
    My code is shown below:
    import BusinessObjects.JobItemClass;
    import DBCommunication.*;
    import java.util.ArrayList;
    import javax.swing.table.AbstractTableModel;
    public class MyJobItemTableModel extends AbstractTableModel
      public MyJobItemTableModel(int j)
          jobNo = j;
      int jobNo;
      JobAllItems jobItems = new JobAllItems(jobNo);
      ArrayList items = jobItems.getItems();
      String columnName[] = { "Item Number", "Item Description", "Cost per item", "Quantity" };
      int c = items.size();
      Class columnType[] = { Integer.class, String.class, Double.class, Integer.class };
      Object table[][] =  new Object[c][4];
      public void fillTable()
          if(c > 0)
            for (int i = 0; i < c; i = i + 1)
              this.setValueAt(((JobItemClass) items.get(i)).getItemNumber(), i, 0);
              this.setValueAt(((JobItemClass) items.get(i)).getDescription(), i, 1);
              this.setValueAt(((JobItemClass) items.get(i)).getCostPerItem(), i, 2);
              this.setValueAt(((JobItemClass) items.get(i)).getQuantity(), i, 3);
      public void setJobNo(int s)
          jobNo = s;
      public int getColumnCount()
          if(c > 0)
            return table[0].length;
          else
              return 0;
      public int getRowCount()
        return table.length;
      public Object getValueAt(int r, int c)
        return table[r][c];
      public String getColumnName(int column)
        return columnName[column];
      public Class getColumnClass(int c)
        return columnType[c];
      public boolean isCellEditable(int r, int c)
        return false;
      public void setValueAt(Object aValue, int r, int c)
          table[r][c] = aValue;
    }Any advice will be appreciated.
    Many Thanks
    GB

    your JobAllItems is created before constructor code is run (since it is initialized in class member declaration)
    use something like
    public MyJobItemTableModel(int j)
          jobNo = j;
          items = (new JobAllItems(jobNo)).getItems();
          c = items.size();
          table =   new Object[c][4];
      int jobNo;
      ArrayList items;
      String columnName[] = { "Item Number", "Item Description", "Cost per item", "Quantity" };
      int c;
      Class columnType[] = { Integer.class, String.class, Double.class, Integer.class };
      Object table[][] ;instead of
    public MyJobItemTableModel(int j)
          jobNo = j;
      int jobNo;
      JobAllItems jobItems = new JobAllItems(jobNo);
      ArrayList items = jobItems.getItems();
      String columnName[] = { "Item Number", "Item Description", "Cost per item", "Quantity" };
      int c = items.size();
      Class columnType[] = { Integer.class, String.class, Double.class, Integer.class };
      Object table[][] =  new Object[c][4];

  • Re : Inter company stock transfer through EDI

    Hi
          How to do the intercompany stock transfer through EDI. In this if Purchase order is created from one comapny a sales order should created automaticall in another Company. Fot this what is the SPRO settings.
    How to do this.
    Thanks
    Anto

    Hi,
    continues from here,
    Inbound file:     edi_in
    Function module:     See text below.
    Status file parameters
    Directory:     /home/edi/<portname>/
    Outbound file:     status.idoc
    Function module:     Leave blank if using above
    u2022     Both the portname and the exchange directory should be created according to the same naming convention. However, the portname should be in upper case whereas the corresponding directory name should be in lower case (see examples below).
         Portname (upper case):
                             <portname>
         Exchange directory name (lower case):           
                             /home/edi/<portname>
         where <portname> consists of:
         EDI<system name><client number><id char>
         <system name> is the name of  system on which port exists eg.      F01, PG1 etc.;
         <client number> is name of client on system which will use this      port; and
         <id char> is a single alphabetical character such as u2018au2019,u2019bu2019 etc.      typically,      u2018au2019 will denote dynamic outbound file naming (used      for testing) whereas      u2018bu2019 will denote static outbound file naming.      All ports will use static       inbound filenames.
    For example, the name of a port using dynamic file naming on system F01, client 610 would be named EDIF01610A.  The exchange directory would be named edif01610a. Similarly, the name of port using static file naming on system PG1, client 600 would be EDIPG1600B. The exchange directory name would be edipg1600b.
    Note that the function u201CEDI_PATH_CREATE_USERNAME_DT_TMu201D  can be used in the u201CFunction moduleu201D field  of the Outbound file parameters if IDocs are to be written to multiple files. In this case, the corresponding outbound filename field should be left blank. The standard IDoc exchange interface between the SAP EDI component and the EDI subsystem uses a single file for each transfer direction. However, should the exchange interface change, or for testing purposes, the function modules for dynamic naming can be used.
    2.4.2.     Control of EDI processes in R/3
    2.4.2.1.      Maintain: Outbound Process Code (WE41)
    IMGCross-Application ComponentsALE Extensions  Outbound
    Check that the outbound EDI processes in the R/3 system are defined.  Indicates which ABAP/4 function module to execute in order to create an outbound IDoc.
    The following assignments are available for R/3:
    2.4.2.2.      Maintain: Inbound Process Code (WE42)
    IMGCross-Application Components  ALE  Extensions  Inbound
    Check that the inbound EDI processes in the R/3 system are defined.  Indicates what kind of inbound processing to execute.
         A long list of options is available under Processing by function module, relevant ones are:
    INVF     INVOIC FI     Invoice receipt (Financial Accounting)
    INVM     INVOIC MM     Invoice verification (Mat Management)
    ORDC     ORDCHG     Change customer order
    ORDE     ORDERS     Create customer order
    ORDR     ORDRSP     Purchase order confirmation
    2.4.2.3.      Control: System Process Codes (WE40)
         Choose Processing by task.  Check that the codes indicating the type of EDI processing error are defined.  The only valid entries are the entries shown on the screen, as they are directly called via the EDI basis module.
    2.4.2.4.      Control: Status maintenance (WE47)
         Check that the codes indicating status of IDoc processing are defined.  The status values for outbound IDocs are between 01 and 39, while the status values for inbound IDocs begin with 50.  These values are delivered by SAP and cannot be customised.
    2.4.2.5.      Control: Partner Types (WE44)
         Check that the codes that identify the commercial relationships between the receiver and sender are defined.  Values are delivered by SAP.  Names of the programs and routines that validates the entry of the EDI trading partner ID:
    Partner type     Report name     Form routine
    B - Bank     RFETESTP     READ_T012
    KU - customer     RSETESTP     READ_KNA1
    LI - vendors     RSETESTP     READ_LFA1
    LS - logical system ( ALE)     RSETESTP     LOGSYS
    2.4.2.6.      Control: Forward Inbound (WE45)
    Allows for the forwarding of IDocs to a specific application.  Contains the exactly defined destination of an inbound IDoc within the SAP system.  Usually no changes are required.
    2.4.2.7.      Control: Status Process code (WE56)
    Choose Processing by task: The following set-up has been provided as default:
    Process code:     EDIS
    Identification:     TS30000078
    Description:     EDI-IDoc  status record processing
    The process code is for inbound status, The ID type is an identification code for inbound processing method (workflow or standard task) of the status record.
    3.     MM IMG CONFIGURATION
    3.1.     Global settings (IMG):
    3.1.1.     Units of measure (IMG  Global settings):
    The ISO code is important for EDI.  It is used to convert the internal SAP units of measure into standard units.
    The MM configurer must link the Unit Of Measure, EACH, with the ISO code PCE (Piece).
    3.2.     Link Schema to Purchase order
    Check the following:
    IMG  MM  Purchasing  Message determination  Message determination  Message Schemas
    Execute transaction u201CDefine Message Schemas for Purchase Orderu201D
    Select  transaction: Assign Schema to purchase order
    Add:      Usage =B for output
         Application = EF for purchase order
         Procedure = RMBEF1 for purchase order
    3.3.     Link application to EDI interface via message control:
    IMG  MM  Purchasing  Messages  Output Control
    Check following under Output Control:
         Condition table
         Access sequence
         Message types
         Message schema
         Output control
    3.4.     Enabling Multiple Output for Purchase Orders (Optional)
    For example: EDI & Printing
    IMG  MM  Purchasing  Message determination  Message determination Access sequence
    u2022     Create new access sequence (e.g. ZPUR), copy the access sequence 0001 but leaving the ''E'' flag blank (Exclusive is off). (Transaction M/50)
    u2022     Goto Define message types  maintain message types:
         Create a new message type (e.g. NEU1), setting the output type to 1 for printed output and using ZPUR as access sequence. (Transaction M/34)
    u2022     Goto Message Schema  define message schema  maintain output determination procedure:
         Update procedure RMBEF1 by adding a step for the new condition type (e.g. NEU1) prior to the standard delivered step for NEU. (Transaction M/36)
    u2022     Goto Processing program  Define Processing program  Output program: Purchase Order.
         - Add a NEU1 record to table TNAPR.  The program FORM Routine and layout must be specified.  (Copy an existing NEU record). (Transaction OMTB)
    u2022     Goto Processing program  Define Processing program  Output by partner type.
         - Add NEU1 record for VN (vendor). (Transaction OMTG)
    3.5.     Link Output type (fax=2, E-mail=7) to NEU (Purchasing)
    IMG  MM  Purchasing  Message determination  Message determination Access sequence
    u2022     Goto Processing program  Define Processing program  Output program: Purchase Order.
         - Add another NEU record to table TNAPR with the appropriate output medium. Copy an existing NEU record. (Transaction OMTB)
    u2022     Goto Processing program  Define Processing program  Output by partner type.
         - Add NEU record for VN (vendor). (Transaction OMTG)
    4.     SD APPLICATION REQUIREMENTS
    Assumption: SD is only used for testing purposes and configuration is based on a need basis - only configure the minimum.
    Reference SAP Course manual Chapter 11.
    4.1.     EDI Configurations
    4.1.1.     Conversion of SAP item categories to IDOC item categories (VOE1)
    IMG  S&D  EDI  EDI Messages  Conversion of SAP item categories to IDOC item categories
    Add the following entry:
    For Standard Item description :     0     OR     LDN
    Typically error message: ''Transaction LDN is not defined".
    4.1.2.     Partner functions
    IMG  S&D  EDI  EDI Messages  Configure EDI Partners Partner  Application  Partner function
    Check that the following partner functions exist: (at least)
    SP     Sold-to party
    VN     Vendor
    BP     Bill-to party
    SH     Ship-to party
    Note - the German abbreviation is passed to the IDoc.
    4.2.     S&D Sales Configurations
    4.2.1.     Maintain Item categories
    IMG  S&D  Sales  Sales document  Sales doc item  Define item categories
    Add LDN for standard item:
              Item type = B
              Relev for billing = B
              Tick following:     Bus data item
                                  Sched line allowed
                                  Credit active
                                  Pricing
              Screen seq. grp = N
    4.2.2.     Assign Item categories
    IMG  S&D  Sales  Sales document  Sales doc item  Assign item categories
    Add/Update the following entries:
         1     2     3
    Sales doc type     OR     OR     OR
    Item category group     NORM     DIEN     LEIS
    Item category     LDN     TAD
    LDN     LDN
    4.2.3.     Assign Schedule line categories
    IMG  S&D  Sales  Sales document  Schedule lines  Assign Schedule line categories
    Add Item category LDN to table (with no other parameters).
    4.3.     S&D Pricing Configurations
    4.3.1.     EDI pricing condition types
    IMG  S&D  Basic functions  Pricing  Pricing control  Define condition types  Maintain condition types
    Maintain the following condition types:
         EDI 1 - Calculate type =C for Quantity
         EDI 2 - Calculate type = B for Fixed amount
    4.3.2.     SD Pricing procedures (V/08)
    IMG  S&D  Basic functions  Pricing  Pricing control  Define & Assign pricing procedures
    Maintain pricing procedure for ZVAA01 (Standard). 
    Select control and add EDI1 and EDI2  as steps 1 and 5 respectively with no other parameters.
    5.     INVOICE IMG CONFIGURATION
    No additional IMG configuration (not partner specific) was needed for Inbound Invoice processing.
    Thanks,
    Swamy H P

Maybe you are looking for

  • Mapping Z account group in ERP to Z BP role in CRM

    Hi all, We have a scenario where we need to download customers created in custom account groups into CRM and map them to Business Partners in Custom BP Role. With PIDE settings, you can only map a Account Group to a CRM classification. This classific

  • Tax coses/conditions for sales tax report in J1i2

    Hi, I would like to know whether the following information can  be pulled from SAP standard reports  : Supplier no, supplier RS/TIN, invoice no., Assessable value, Tax rate, tax  both for local and CST purchases . or ABAP report to be developed to ge

  • Loading picture problem

    I'm having problem with loading picture in applet window. Here is the example CODE: * <applet code="SimpleImageLoad" width=248 height=146> * <param name="img" value="seattle.jpg"> * </applet> import java.awt.*; import java.applet.*; public class Simp

  • Functions in OAF

    Hi All, I like to know what are all the parameters does below function takes and does in OAF, forwardImmediatelyToCurrentPage() It would be helpfull if you provide and document to get all the details for similar kind of functions which are all used i

  • Error installing AIR.InstallPackage

    my computer automatically restart when installing AIR.InstallPackage but after that i cant found that installed package, and as additional info i run XP with AMD 64 Athlon X2 3600+ thanks