CIN Example with Values..?

Hi all
Can anybody explain me about he CIN process from end to end for below materials
Say for example,
Raw material - 1000 (Excisable) Purchased for RS1000 , and Excise duty as follows,
ED-14% ( Rs 140)
Ecess -2% (Rs 28)
Secess-1%(Rs 14).
Total Excise amount is Rs 182.
Finished goods - 2000(Excisable)
Using 1000 as a RM , FG (2000) is going to produce.
for above process , please explain me with full procedure in SAP with T.codes and with all the registers going to use for this process.
From MM , PP & SD view , in any manufacturing industry what they wil do with above excise amount Rs 182.
Pls explain me with value with registers
Thanks
sap-mm

Hi,
1. I am procuring the raw material (1000), which is excisable .
Firstr of all maintain J1ID - Excise Master Data for material, vendor, excise tax rates, etc...
Declare Material 1000 as Raw Material and 2000 as RG1 in J1ID.
Transactions: -
1. ME21N - Create Purchase Order with appropriate Tax Code for raw Material 1000
2. MIGO - Goods Receipt > Purchase Order of RM 1000 (Here Part 1 OR Capture OR Capture & Post Excise Invoice, as per requirement)
Accounting Entry:-
(BSX) Stock A/c - Dr - 1000
(WRX) GR/IR Clearing A/c - Cr - 1000
3. J1IEX - Post Excise Invoice (if only captured during MIGO)
Accounting Entry:- From Excise A/c detmn of ETT "GRPO"
CENVAT Receivable A/c (BED) - Dr - 140
CENVAT Receivable A/c (ECS) - Dr - 28
CENVAT Receivable A/c (SECess) - Dr - 14
CENVAT Clearing A/c - Cr - 182
4. MIRO - LIV for PO
Accounting Entry:-
Vendor A/c - Cr - 1182
GR/IR Clearing A/c - Dr - 1000
CENVAT Clearing A/c - Dr - 182
Reports: -
For Excise Invoice;
1. J1I7 - Query Excise invoices (Heresee report for ETT - GRPO)
2. J2I9 - New Monthly Returns Report Rule 57AE
For Excise Registers;
1. J1I5 - Register creation for RG23 (Here Use classification key - ROP and update entry for Raw Material 1000)
2. J2I5 - Extract RG23A Part 1 and 2
3. J2I6 - Print Utility of Excise Registers RG23A Part 1 and 2
2. Using same material , i m going to do produce finsihed product (2000).
After Goods Receipt of FG from Production, follow the below Process;
For Excise Registers;
1. J1I5 - Register creation for RG23A Part 1 and RG1 (Here Use classification key - RMA and update entry for FG 2000 / Use classification key - IIM and update entry for RM
1000)
2. J2I5 - Extract RG1 Register and RG23A Part 1
3. J2I6 - Print Utility of RG1 Register and RG23A Part 1
3. Finally I am selling the material (Also excisable material).
Transactions: -
1. VA01 - Sales Order for FG 2000 of Value 1200
2. VL01N - Delivery and PGI of FG 2000
Accounting Entry:-
(BSX) Stock A/c - Cr - 1100 (Stock Value - MAP or Std. Price)
(VAX) COGS A/c - Dr - 1100
3. VF01 - Billing Document for FG 2000
Accounting Entry:- From Sales A/c detmn (VKOA)
Customer A/c - Dr - 1330
Sales Revenue A/c - Cr - 1200
Excise Receovered (BED) - Cr - 100
Excise Receovered (ECS) - Cr - 20
Excise Receovered (SECess) - Cr - 10
4. J1IIN - Outgoing Excise Invoice for FG 2000
Accounting Entry:- From Excise A/c detmn of ETT "DLFC"
Excise Duty Paid - Dr - 130
CENVAT Payabale (BED) - Cr - 100
CENVAT Payable (ECS) - Cr - 20
CENVAT Payable (SECess) - Cr - 10
Reports: -
For Excise Invoice;
1. J1I7 - Query Excise invoices (Here use ETT - DLFC to see outgoing excise invoice)
2. J2I9 - New Monthly Returns Report Rule 57AE
For Excise Registers;
1. J1I5 - Register creation for RG1 (Here Use classification key - IDH and update entry for Raw Material 1000)
2. J2I5 - Extract RG23A Part 2 and RG1
3. J2I6 - Print Utility of Excise registers RG23A Part 2 and RG1
And J2IUN - For Monthend Utilization for Sales Excise Invoices
CENVAT Payabale (BED) - Dr - 100
CENVAT Payable (ECS) - Dr - 20
CENVAT Payable (SECess) - Dr - 10
CENVAT Receivable A/c (BED) - Cr - 100
CENVAT Receivable A/c (ECS) - Cr - 20
CENVAT Receivable A/c (SECess) - Cr - 10

Similar Messages

  • Example program for returninng and importing with value addition

    HI ,
    I want few example programs on how to use the abap oops with returning addition and importing with value addition as Im getting syntax error for the Program when Im declaring them with these additions
    Thnaks .

    Hello,
    This statement declares a general instance method meth. Use additions ABSTRACT and FINAL to make the method abstract or final.
    The additions IMPORTING, EXPORTING and CHANGING define the parameter interface of the method. After every addition, the corresponding formal parameters are defined by a specification of the list parameters.
    The other additions determine which exceptions the method can propagate or trigger and determine whether the method is abstract or final.
    Note
    Within a method, you can use the logical expression IS SUPPLIED to check whether an actual parameter was assigned to an optional formal parameter at the call.
    Addition 1
    ... IMPORTING parameters PREFERRED PARAMETER p
    Effect
    IMPORTING defines input parameters. When calling the method, you need not specify an appropriate actual parameter for every non-optional input parameter. During the call, the content of the actual parameter is passed to the input parameter. The content of the input parameter - for which the reference transfer is defined - cannot be changed in the method.
    Use PREFERRED PARAMETER to identify an input parameter p1 p2 ... of list parameters after IMPORTING as a preferred parameter. This specification makes sense only if all input parameters are optional. When calling the method with the syntax
    CALL METHOD meth( a ).
    the actual parameter a is assigned to the preferred parameter if you have appropriate use of a functional method at an operand position.
    Addition 2
    ... EXPORTING parameters
    Effect
    EXPORTING defines output parameters. When calling the method, you can specify an appropriate actual parameter for every output parameter. The content of the output parameter - which is defined for value transfer - is passed to the actual parameter at the call after the method has been completed successfully.
    Note
    An output parameter that is defined for the reference transfer is not initialized when the method is called. Therefore, no read access to it should take place before the first write access.
    Addition 3
    ... CHANGING parameters
    Effect
    CHANGING defines input/output parameters. When calling the method, you must specify an appropriate actual parameter for every non-optional input/output parameter. The content of the actual parameter is passed to the input/output parameter at the call, and after the method has been completed, the content of the input/output parameter is passed to the actual parameter.
    Example
    The method read_spfli_into_table of this example has an input and an output parameter, which are typed fully by reference to the ABAP Dictionary.
    CLASS flights DEFINITION.
      PUBLIC SECTION.
        METHODS read_spfli_into_table
           IMPORTING VALUE(id)  TYPE spfli-carrid
           EXPORTING flight_tab TYPE spfli_tab.
    ENDCLASS.
    Addition 4
    ... RAISING exc1 exc2 ...
    Effect
    Use addition RAISING to declare the class-based exceptions exc1 exc2 ... that can be propagated from the method to the caller.
    For exc1 exc2 ..., you can specify all exception classes that are visible at this position and are subclasses of CX_STATIC_CHECK or CX_DYNAMIC_CHECK. You must specify the exception classes in ascending order corresponding to their inheritance hierarchy.
    Exceptions of the categories CX_STATIC_CHECK and CX_DYNAMIC_CHECK must be declared explicitly, otherwise a propagation results in a violation of the interface. An interface violation results in a treatable exception CX_SY_NO_HANDLER. Exceptions of category CX_NO_CHECK are always implicitly declared.
    Notes
    The declaration of exceptions of category CX_STATIC_CHECK is checked statically at the syntax check. For exceptions of category CX_DYNAMIC_CHECK, the check is executed at runtime.
    In a method in which class-based exceptions are declared with the addition RAISING, you cannot use the statement CATCH SYSTEM-EXCEPTIONS. Instead, handle the relevant treatable exceptions in a TRY control structure.
    Example
    In class math, you can propagate all exceptions represented by class CX_SY_ARITHMETIC_ERROR and its subclasses from within method divide_1_by. If, for example, the input parameter operand is filled at the call with the value 0, then the exception CX_SY_ZERODIVIDE is triggered, propagated, and can, as shown in the example, be handled by the caller in a TRY control structure.
    CLASS math DEFINITION.
      PUBLIC SECTION.
        METHODS divide_1_by
           IMPORTING operand TYPE I
           EXPORTING result  TYPE f
           RAISING   cx_sy_arithmetic_error.
    ENDCLASS.
    CLASS math IMPLEMENTATION.
      METHOD divide_1_by.
        result = 1 / operand.
      ENDMETHOD.
    ENDCLASS.
    START-OF-SELECTION.
    DATA oref TYPE REF TO math.
    DATA exc  TYPE REF TO cx_sy_arithmetic_error.
    DATA res  TYPE f.
    DATA text TYPE string.
    CREATE OBJECT oref.
    TRY.
        oref->divide_1_by( EXPORTING operand = 4
                           IMPORTING result = res ).
        text = res.
      CATCH cx_sy_arithmetic_error INTO exc.
        text = exc->get_text( ).
    ENDTRY.
    MESSAGE text TYPE 'I'.
    Addition 5
    ... EXCEPTIONS exc1 exc2 ...
    Effect
    Use addition EXCEPTIONS to define a list of non-class-based exceptions exc1 exc2..., which can be triggered with the statements RAISE or MESSAGE RAISING in the method. You specify identifiers exc1 exc2 ... for the exceptions to be defined at will and directly. Exceptions defined in this way are bound to the method - similar to formal parameters - and cannot be propagated.
    If such an exception is triggered in a method and no return value has been assigned to it in the addition EXCEPTIONS of the CALL METHOD statement in the method call, then a runtime error occurs.
    Note
    The additions RAISING and EXCEPTIONS cannot be used simultaneously. For new developments starting at release 6.10, we recommend to use class-based exceptions, which are independent of the respective method.
    Example
    In the class math, for method divide_1_by an exception arith_error is defined, which is triggered in the method with the RAISE statement if an arithmetic error occurs. If, for example, the input parameter operand is filled with value 0 at the call, the exception arith_error is triggered in the method-internal handling of exception CX_SY_ZERODIVIDE and handled after the call of the method by evaluating sy-subrc.
    CLASS math DEFINITION.
      PUBLIC SECTION.
        METHODS divide_1_by
           IMPORTING  operand TYPE I
           EXPORTING  result  TYPE f
           EXCEPTIONS arith_error.
    ENDCLASS.
    CLASS math IMPLEMENTATION.
      METHOD divide_1_by.
        TRY.
            result = 1 / operand.
          CATCH cx_sy_arithmetic_error.
            RAISE arith_error.
        ENDTRY.
      ENDMETHOD.
    ENDCLASS.
    START-OF-SELECTION.
    DATA res  TYPE f.
    DATA oref TYPE REF TO math.
    CREATE OBJECT oref.
    oref->divide_1_by( EXPORTING  operand = 4
                       IMPORTING  result  = res
                       EXCEPTIONS arith_error = 4 ).
    IF sy-subrc = 0.
      WRITE res.
    ELSE.
      WRITE 'Arithmetic error!'.
    ENDIF.
    Regards.

  • CIN help with a struct argument

    Hi, I am new in LabVIEW and complete newcomer in CIN. Now there is one task in which I have to call a DLL. The function info is as following:
    BOOL WINAPI LKIF_GetCalcData(OUT LKIF_FLOATVALUE *CalcData1,OUT LKIF_FLOATVALUE *CalcData2);
    Here is more about defination:
    typedef enum {
        LKIF_FLOATRESULT_VALID, // valid data
        LKIF_FLOATRESULT_RANGEOVER_N, // over range at negative (-) side
        LKIF_FLOATRESULT_WAITING, // comparator result
    } LKIF_FLOATRESULT;
    typedef struct {
    LKIF_FLOATRESULT FloatResult; // valid or invalid data.
        float Value; // measurement value during LKIF_FLOATRESULT_VALID.
        Any other times will return an invalid value.
    } LKIF_FLOATVALUE;
    I looked through "Labview for everyone" and get me familiar with CIN, but it has a simple example with sinple argument. Can anyone tell me how to setup the input for this DLL? Should I make a cluster? Any help will be appreciated.
    sipher

    Problem solved. I wired a cluster with one I32 and one U16.
    Thanks.
    sipher

  • I would like to know how i can create a bell graph with out using sub VIs, the data that i created consists in 500 readings with values of 0 to 100, i calculated the mean value and standard diviation. I hope some one can help me

    I would like to know how i can create a bell graph with out using sub VIs, the data that i created consists in 500 readings with values of 0 to 100, i calculated the mean value and standard diviation. I hope some one can help me

    Here's a quick example I threw together that generates a sort-of-bell-curve shaped data distribution, then performs the binning and plotting.
    -Kevin P.
    Message Edited by Kevin Price on 12-01-2006 02:42 PM
    Attachments:
    Binning example.vi ‏51 KB
    Binning example.png ‏12 KB

  • A function instead of UNBOUNDED PRECEDING (like "Last field with value=0")

    Hello,
    I have a table with many rows. The attributes of the table are code, month and value.
    For each code there are 12 months and 12 values.
    No I want to add the gaps between the months...
    Is it possible to count the following gaps between the different rows...?
    For example:
    Original table1:_
    code, month, value
    1,1,20
    1,2,0
    1,3,30
    1,4,0
    1,5,40
    1,6,0
    1,7,0
    1,8,20
    1,9,0
    1,10,10
    1,11,0
    1,12,0
    5,1,0
    5,2,20
    5,3,10
    description:*
    january value = 20
    february value = 0 (=>count this gap => new value 1 )
    march value = 30
    april value = 0 (=>count this gap => new value 1 )
    may value = 40
    june value = 0
    july value = 0 (=>count this two following gaps => new value 2 )
    agust value = 20
    september value = 0 (=>count this gap => new value 1 )
    october value = 10
    november value = 0
    december value = 0 (=>count this two following gaps => new value 2 )
    New target table:_
    code, month, value
    1,1,20
    1,2,*1*
    1,3,30
    1,4,*1*
    1,5,40
    1,6,0
    1,7,*2*
    1,8,20
    1,9,*1*
    1,10,10
    1,11,0
    1,12,*2*
    5,1,*1*
    5,2,20
    5,3,10
    I tried this code:
    select code, month
    sum(value) over (
    order by month
    rows between unbounded preceding and current row
    *) as final_value*
    from table1 order by month;
    This adds all following fields cumulative from beginning to current_row. But I need this adding only for the following gaps... then start with countin by 0.
    I need only the following like in the example on top. Maybe is there an other function like decode to count only the following gaps...!?
    A function instead of unbounded preceding....like "*Last field with value=0*" or something... ?
    Best regards,
    Tim

    TimB83 wrote:
    I have a table with many rows. The attributes of the table are code, month and value.
    For each code there are 12 months and 12 values.
    No I want to add the gaps between the months...
    Is it possible to count the following gaps between the different rows...?
    For example:
    Original table1:_
    code, month, value
    1,1,20
    1,2,0
    1,3,30
    1,4,0
    1,5,40
    1,6,0
    1,7,0
    1,8,20
    1,9,0
    1,10,10
    1,11,0
    1,12,0
    5,1,0
    5,2,20
    5,3,10
    description:*
    january value = 20
    february value = 0 (=>count this gap => new value 1 )
    march value = 30
    april value = 0 (=>count this gap => new value 1 )
    may value = 40
    june value = 0
    july value = 0 (=>count this two following gaps => new value 2 )
    agust value = 20
    september value = 0 (=>count this gap => new value 1 )
    october value = 10
    november value = 0
    december value = 0 (=>count this two following gaps => new value 2 )
    New target table:_
    code, month, value
    1,1,20
    1,2,*1*
    1,3,30
    1,4,*1*
    1,5,40
    1,6,0
    1,7,*2*
    1,8,20
    1,9,*1*
    1,10,10
    1,11,0
    1,12,*2*
    5,1,*1*
    5,2,20
    5,3,10
    ...Tim,
    you should post this question on the "SQL and PL/SQL" forum since it's a typical SQL question.
    There are probably much better ways to accomplish this and the guys over there will tell you, but here are two examples that might get you started:
    1. Pre-10g without MODEL clause
    with t as (
    select 1 as code, 1 as month, 20 as value from dual union all
    select 1 as code, 2 as month, 0 as value from dual union all
    select 1 as code, 3 as month, 30 as value from dual union all
    select 1 as code, 4 as month, 0 as value from dual union all
    select 1 as code, 5 as month, 40 as value from dual union all
    select 1 as code, 6 as month, 0 as value from dual union all
    select 1 as code, 7 as month, 0 as value from dual union all
    select 1 as code, 8 as month, 20 as value from dual union all
    select 1 as code, 9 as month, 0 as value from dual union all
    select 1 as code, 10 as month, 10 as value from dual union all
    select 1 as code, 11 as month, 0 as value from dual union all
    select 1 as code, 12 as month, 0 as value from dual union all
    select 5 as code, 1 as month, 0 as value from dual union all
    select 5 as code, 2 as month, 20 as value from dual union all
    select 5 as code, 3 as month, 10 as value from dual
    r1 as (
    select
            case
            when value = 0
            then 1
            else 0
            end as is_gap
          , case
            when value != 0
            then rownum
            else null
            end as grp_info
          , code
          , month
          , value
    from
            t
    r2 as (
    select
            last_value(grp_info ignore nulls) over (partition by code order by month) as grp
          , is_gap
          , code
          , month
          , value
    from
            r1
    select
            code
          , month
          , case
            when value = 0
            and (lead(value) over (partition by code order by month) != 0 or
                 lead(value) over (partition by code order by month) is null)
            then sum(is_gap) over (partition by code, grp)
            else value
            end as value
    from r2;2. 10g and later with MODEL clause
    with t as (
    select 1 as code, 1 as month, 20 as value from dual union all
    select 1 as code, 2 as month, 0 as value from dual union all
    select 1 as code, 3 as month, 30 as value from dual union all
    select 1 as code, 4 as month, 0 as value from dual union all
    select 1 as code, 5 as month, 40 as value from dual union all
    select 1 as code, 6 as month, 0 as value from dual union all
    select 1 as code, 7 as month, 0 as value from dual union all
    select 1 as code, 8 as month, 20 as value from dual union all
    select 1 as code, 9 as month, 0 as value from dual union all
    select 1 as code, 10 as month, 10 as value from dual union all
    select 1 as code, 11 as month, 0 as value from dual union all
    select 1 as code, 12 as month, 0 as value from dual union all
    select 5 as code, 1 as month, 0 as value from dual union all
    select 5 as code, 2 as month, 20 as value from dual union all
    select 5 as code, 3 as month, 10 as value from dual
    select
             code
           , month
           , value
    from
             t
    model
    partition by (code)
    dimension by (month)
    measures (value, 0 as gap_cnt)
    rules (
      gap_cnt[any] order by month =
      case
      when value[cv() - 1] = 0
      then gap_cnt[cv() - 1] + 1
      else 0
      end,
      value[any] order by month =
      case
      when value[cv()] = 0 and presentv(value[cv() + 1], value[cv() + 1], 1) != 0
      then presentv(gap_cnt[cv() + 1], gap_cnt[cv() + 1], gap_cnt[cv()] + 1)
      else value[cv()]
      end
    );Regards,
    Randolf
    Oracle related stuff blog:
    http://oracle-randolf.blogspot.com/
    SQLTools++ for Oracle (Open source Oracle GUI for Windows):
    http://www.sqltools-plusplus.org:7676/
    http://sourceforge.net/projects/sqlt-pp/

  • Create xml file with values from context

    Hi experts!
    I am trying to implement a WD application that will have some input fields, the value of those input fields will be used to create an xml file with a certain format and then sent to a certain application.
    Apart from this i want to read an xml file back from the application and then fill some other context nodes with values from the xml file.
    Is there any standard used code to do this??
    If not how can i do this???
    Thanx in advance!!!
    P.S. Points will be rewarded to all usefull answers.
    Edited by: Armin Reichert on Jun 30, 2008 6:12 PM
    Please stop this P.S. nonsense!

    Hi,
    you need to create three util class for that:-
    XMLHandler
    XMLParser
    XMLBuilder
    for example in my XML two tag item will be there e.g. Title and Organizer,and from ur WebDynpro view you need to pass value for the XML tag.
    And u need to call buildXML()function of builder class to generate XML, in that i have passed bean object to get the values of tags. you need to set the value in bean from the view ui context.
    Code for XMLBuilder:-
    Created on Apr 4, 2006
    Author-Anish
    This class is to created for having function for to build XML
    and to get EncodedXML
      and to get formated date
    package com.idb.events.util;
    import java.text.SimpleDateFormat;
    import java.util.Date;
    import com.idb.events.Event;
    public class XMLBuilder {
    This attribute represents the XML version
         private static final double VERSION_NUMBER = 1.0;
    This attribute represents the encoding
         private static final String ENCODING_TYPE = "UTF-16";
         /*Begin of Function to buildXML
    return: String
    input: Event
         public String buildXML(Event event) {
              StringBuffer xmlBuilder = new StringBuffer("<?xml version=\"");
              xmlBuilder.append(VERSION_NUMBER);
              xmlBuilder.append("\" encoding=\"");
              xmlBuilder.append(ENCODING_TYPE);
              xmlBuilder.append("\" ?>");
              xmlBuilder.append("<event>");
              xmlBuilder.append(getEncodedXML(event.getTitle(), "title"));
              xmlBuilder.append(getEncodedXML(event.getOrganizer(), "organizer"));
              xmlBuilder.append("</event>");
              return xmlBuilder.toString();
         /End of Function to buildXML/
         /*Begin of Function to get EncodedXML
    return: String
    input: String,String
         public String getEncodedXML(String xmlString, String tag) {
              StringBuffer begin = new StringBuffer("");
              if ((tag != null) || (!tag.equalsIgnoreCase("null"))) {
                   begin.append("<").append(tag).append(">");
                   begin.append("<![CDATA[");
                   begin.append(xmlString).append("]]>").append("</").append(
                        tag).append(
                        ">");
              return begin.toString();
         /End of Function to get EncodedXML/
         /*Begin of Function to get formated date
    return: String
    input: Date
         private final String formatDate(Date inputDateStr) {
              String date;
              try {
                   SimpleDateFormat simpleDateFormat =
                        new SimpleDateFormat("yyyy-MM-dd");
                   date = simpleDateFormat.format(inputDateStr);
              } catch (Exception e) {
                   return "";
              return date;
         /End of Function to get formated date/
    Code for XMLParser:-
    Created on Apr 12, 2006
    Author-Anish
    This is a parser class
    package com.idb.events.util;
    import java.io.ByteArrayInputStream;
    import java.io.IOException;
    import javax.xml.parsers.ParserConfigurationException;
    import javax.xml.parsers.SAXParser;
    import javax.xml.parsers.SAXParserFactory;
    import org.xml.sax.InputSource;
    import org.xml.sax.SAXException;
    import org.xml.sax.XMLReader;
    import com.idb.events.Event;
    import com.sap.tc.webdynpro.progmodel.api.IWDMessageManager;
    public class XMLParser {
    Enables namespace functionality in parser
         private final boolean isNameSpaceAware = true;
    Enables validation in parser
         private final boolean isValidating = true;
    The SAX parser used to parse the xml
         private SAXParser parser;
    The XML reader used by the SAX parser
         private XMLReader reader;
    This method creates the parser to parse the user details xml.
         private void createParser()
              throws SAXException, ParserConfigurationException {
              // Create a JAXP SAXParserFactory and configure it
              SAXParserFactory saxFactory = SAXParserFactory.newInstance();
              saxFactory.setNamespaceAware(isNameSpaceAware);
              saxFactory.setValidating(isValidating);
              // Create a JAXP SAXParser
              parser = saxFactory.newSAXParser();
              // Get the encapsulated SAX XMLReader
              reader = parser.getXMLReader();
              // Set the ErrorHandler
    This method is used to collect the user details.
         public Event getEvent(
              String newsXML,
              XMLHandler xmlHandler,
              IWDMessageManager mgr)
              throws SAXException, ParserConfigurationException, IOException {
              //create the parser, if not already done
              if (parser == null) {
                   this.createParser();
              //set the parser handler to extract the
              reader.setErrorHandler(xmlHandler);
              reader.setContentHandler(xmlHandler);
              InputSource source =
                   new InputSource(new ByteArrayInputStream(newsXML.getBytes()));
              reader.parse(source);
              //return the results of the parse           
              return xmlHandler.getEvent(mgr);
    Code for XMLHandler:-
    Created on Apr 12, 2006
    Author-Anish
    This is a parser class
    package com.idb.events.util;
    import java.io.ByteArrayInputStream;
    import java.io.IOException;
    import javax.xml.parsers.ParserConfigurationException;
    import javax.xml.parsers.SAXParser;
    import javax.xml.parsers.SAXParserFactory;
    import org.xml.sax.InputSource;
    import org.xml.sax.SAXException;
    import org.xml.sax.XMLReader;
    import com.idb.events.Event;
    Created on Apr 12, 2006
    Author-Anish
    *This handler class is created to have constant value for variables and function for get events,
        character values for bean variable,
        parsing thr date ......etc
    package com.idb.events.util;
    import java.sql.Timestamp;
    import java.text.SimpleDateFormat;
    import java.util.Date;
    import java.util.Locale;
    import org.xml.sax.Attributes;
    import org.xml.sax.SAXException;
    import org.xml.sax.SAXParseException;
    import org.xml.sax.helpers.DefaultHandler;
    import java.util.*;
    import com.idb.events.Event;
    import com.sap.tc.webdynpro.progmodel.api.IWDMessageManager;
    public class XMLHandler extends DefaultHandler {
         private static final String TITLE = "title";
         private static final String ORGANIZER = "organizer";
         IWDMessageManager manager;
         private Event events;
         private String tagName;
         public void setManager(IWDMessageManager mgr) {
              manager = mgr;
    This function is created to get events
         public Event getEvent(IWDMessageManager mgr) {
              manager = mgr;
              return this.events;
    This function is created to get character for setting values through event's bean setter method
         public void characters(char[] charArray, int startVal, int length)
              throws SAXException {
              String tagValue = new String(charArray, startVal, length);
              if (TITLE.equals(this.tagName)) {
                   this.events.setTitle(tagValue);
              if (ORGANIZER.equals(this.tagName)) {
                   String orgName = tagValue;
                   try {
                        orgName = getOrgName(orgName);
                   } catch (Exception ex) {
                   this.events.setOrganizer(orgName);
    This function is created to parse boolean.
         private final boolean parseBoolean(String inputBooleanStr) {
              boolean b;
              if (inputBooleanStr.equals("true")) {
                   b = true;
              } else {
                   b = false;
              return b;
    This function is used to call the super constructor.
         public void endElement(String uri, String localName, String qName)
              throws SAXException {
              super.endElement(uri, localName, qName);
         /* (non-Javadoc)
    @see org.xml.sax.ErrorHandler#fatalError(org.xml.sax.SAXParseException)
    This function is used to call the super constructor.
         public void fatalError(SAXParseException e) throws SAXException {
              super.fatalError(e);
    This function is created to set the elements base on the tag name.
         public void startElement(
              String uri,
              String localName,
              String qName,
              Attributes attributes)
              throws SAXException {
              this.tagName = localName;
              if (ROOT.equals(tagName)) {
                   this.events = new Event();
         public static void main(String a[]) {
              String cntry = "Nigeria";
              XMLHandler xml = new XMLHandler();
              ArrayList engList = new ArrayList();
              engList = xml.getCountries();
              ArrayList arList = xml.getArabicCountries();
              int engIndex = engList.indexOf(cntry);
              System.out.println("engIndex  :: " + engIndex);
              String arCntryName = (String) arList.get(engIndex);
              System.out.println(
                   ">>>>>>>>>>>>>>>>>>>>" + xml.getArabicCountryName(cntry));
    Hope that may help you.
    If need any help , you are most welcome.
    Regards,
    Deepak

  • Information in Template Header with value from 3 for-each groups

    Hi,
    i have an datamodel with 3 nested groups and in my rtf-template i'm using 3 for each-loops to give the data out.
    It works fine, i can show the data on every level.
    But now our customers wants in the Header of each page information with values from each group.
    Like  Land-District-City.
    My first Test was with the @section-condition to get the right data in the Header.
    But it only works fine for the first group and not further....
    Anybody an idea? May be more then one @section?
    Regards Christian

    Hi Mike,
    I found some two mistakes that should solve your problems:
    1. typo: use "raw_value" with underscore, then the "category" works.
    2. The array support of the Generic Panel is limited to semicolon-separated term lists in a text field,
    where each term represent an array item.
    For example the "supplemental categories" property should look like:
    <xmp_property
         name="SupplementalCategories" category="external"
         label="$$$/stewart/Class=Classification:" type="bag" element_type="text"
         xmp_path="SupplementalCategories" ui:multiLine="true" ui:mru="true" description="..."
    />
    Hope this helps,
    -- Stefan

  • Procedure to remove dublicate composite ID's with values

    i have tables in datawarehouse with four columns (XPK_ROW ,FK_ROW,ID,VALUE)
    Tables have multible records i need help to make procedure to remove dubicate records
    Data Example
    XPK_ROW FK_ROW ID VALUE
    23 324 FT09005001002525 FIELD NOT MAPPED FOR TAG -23B
    43 4234 FT09005001002525 FIELD NOT MAPPED FOR TAG -23B
    This dubliacte records, should be ID compoiste with value should be unique
    please i need to make procedure to remove dublicate reocrds depend on compoiste between ID and VALUE

    Hi:
    DELETE FROM table_name a
          WHERE ROWID > (SELECT MIN (ROWID)
                           FROM table_name b
                          WHERE a.ID = b.ID AND a.VALUE = b.VALUE);Saad,
    http://saadnayef.blogspot.com

  • Parallel ledger with values for past period

    hi
    we are creating addl ledgers with different fiscal year variant
    is it possible for me to fill up this ledger with values for a past period?
    my fiscal year variant is V3 April - March, however I need the parallel ledger for calender year Fiscal Yr Variant K4.
    Going live with this in april is it possible to populate this ledger with values for jan-march period
    regards
    sameer

    HI,
    I am not sure if it is helpful but what you can do is to define an asset movement type limited to a valuation area, which allows you to post for example acquisitions only in on valuation area, but not in the other one.
    Thus you can post ABSO with one asset movement type for one valuation area (APC-value X) for another valuation area use another movement type and post APC value Y.
    Anyway the difference of the APC value (thats not ativated) needs to be posted to an P&L account.
    Maybe there are other/better suggestions from other people.
    Best regards, Christian

  • Navigate between View with Value Node.

    Dear Expert,
        I would like to know the best way to carrying data in Webdynpro between View.
       For example, I have a Quiz applcation with 10 pages (View) of question.  I would like to submit the answer at the end of the page (10th View).   So, at the end of the page, I need the to retreive the answer from page 1 to 10 and submit it.
    1.   I am using copyToLocal.  What that does it when the application fire Next event plug.  it will
    Quiz.<b>set</b>QuizAns1(Quiz.<b>get</b>QuizAns1)
    and do the same thing for next 9 pages in order to bring the answer from page 1 to the end.
    To simplfied, I am considering.
    2.  Model Beans
    /people/valery.silaev/blog/2005/06/29/apojo--almostplain-old-java-objects-as-model
    3.  Session Beans.
         Is any concern that I shouldn't use session bean in webdynpro??
    Or any other way to make the Code more organize?
    Thanks all.

    Hi,
    The best way to carry data in WebDynpro views is through context attributes.
    Create a context as below in component controller
    Context
    +Questions (node:cardinality 0..n,selection 0..n)
    ---Question
    +Answers
    ---Ans (node:cardinality 0..n,selection 0..n)
    Map the above context to all the views.
    In the wdDoInit() of component controller create Ans elements under Answers node equal to question node.
    for(int i=0;i<wdContext.nodeQuestions.size();i++)
    wdContext.nodeAnswers().addElement(wdContext.nodeAnswers().createAnswersElement());
    // This way we need not create the elements in each view before going to the next view.
    Populate the Question attribute with Questions.
    Through indexing show the question corresponding to views as
    In first view (index 0)
    wdContext.nodeQuestions.getQuestionsElementAt(<b>0</b>).getQuestion();
    In second view (index 1)
    wdContext.nodeQuestions.getQuestionsElementAt(<b>1</b>).getQuestion();
    and so on..
    // Note: The Answer node will not be populated intially with values as your answer might be multiple choice.
    After the user gives answer store the answer in the corresponding index of Ans attribute under node Answers as
    For the answer in first view
    wdContext.nodeAnswers.getAnswersElementAt(<b>0</b>).setAns(<get the answer from the view>);
    For the answer in second view
    wdContext.nodeAnswers.getAnswersElementAt(<b>1</b>).getAns(<get the answer from the view>);
    In your last view you can get the Questions and Answers by looping through the Questions and Answers node.
    This way you will need only one attribute for Question and Answer respectively.

  • How to replace &val& with value

    Hi All,
       I want to replace the &VALUE&  with value.
       For example
       If I have test like ' This process &procees_id' is  need to be approved by &USER& ' ,
       It should be populated as  'This process leave approval  is need to be approved by NARENDRA'.The
       values for Process_id and user willbe given by program dyanmically.
       Can one please help us solving this problem.
       Thanks and Regards,
        Narendra.Somarouthu

    Hi,
    Considering your requirement to replace &value& is in forms.
    take  &value&  under a named text-element(say 'text').
    In your main program take a variable(say w_value) type compatible to &value& ( here it can be  type string)
    assign value to be passed to w_value.
    call function module(FM) open_form.
    Assign formname.
    Call FM write_form.
    assign the named text element and window (MAIN/VAR) to the export parameters of function module.
    Call FM close_form.
    ex:
    data:
      w_value type string.
    CALL FUNCTION 'OPEN_FORM'
    EXPORTING FORM = 'formname'
    w_value = 'Process_id text which u want to pass'.
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING ELEMENT = 'TEXT'
    WINDOW = 'MAIN'
    FUNCTION = 'SET'
    TYPE = 'BODY'
    CALL FUNCTION 'CLOSE_FORM'
    Regards,
    Mdi.Deeba Najam.

  • Building J2EE examples with Ant 1.3 on WinXP

    I just installed J2EE 1.3.1 and set all environment variables according to J2EE/Ant documentation. I am trying to build the examples with Ant 1.3 and just before it tries to compile the first example, I get a "NTVDM.EXE Error while setting up environment" error window. This occurs every time I try this examples build. After I close this error window, the compiles fail mostly because the javax.ejb package classes cannot be found.
    Have I overlooked something here? Can anyone shed some insight on this problem?
    -Ryan

    Didn't think I'd be replying to so many of my own messages :-) ..., but anyway the problem with the NTVDM.EXE error message does not go away. I found that it's happens when Ant reads the system environment in the "property" task in build.xml under examples directory:
    <property environment="myenv" />
    <!--
    references to ${myenv.J2EE_HOME} and so on
    -->
    So I replaced occurences of ${myenv.<J2EE_HOME>} with the literal value, in my case, "C:\j2sdkee1.3.1" and now it works. Hope this helps.
    Cheers,
    Lakshmi.

  • Where I can find examples with OLAP DML to update the cube cells?

    Hi,
    Where I can find examples with OLAP DML to update/calculate the cube measure/cells?
    I would like to insert data into the cube by OLAP DML.
    Regards,
    TomB

    Not sure about examples but this is how you should proceed
    1. Limit all your dimension to the leaf level values.
    lmt financialperiod to '200901'
    lmt geography to 'XYZ'
    lmt product to 'LAPTOP'
    2. Limit your measure variable to one measure(this is applicable if you have more than one stored measure in the cube).
    for 10g
    lmt <cube name>prtmeasdim to '<MEASURE NAME>'
    for 11g
    lmt <cube name>measuredim to '<MEASURE NAME>'
    3. Write into the variable.
    for 10g
    <cube name>prttopvar = 100 -- this variable is created for a compressed & partitioned cube. for uncompressed cube the variable name is <cube name>_stored.
    Thanks
    Brijesh

  • How to fill bean area with values from database

    i have a bean area in form which act as acombobox autocomplete , i want to fill it with dynamic values from database , any help will be appreciated.
    http://forms.pjc.bean.over-blog.com/article-16369664.html "this is the example i'm working on"
    Best Regards.

    An example with the EMP table:
    DECLARE
      cursor cur is select empno,ename from emp;
    BEGIN
      -- initialise the ComboBox twin values --
      for c in cur loop
       if c.empno is not null then
        Set_Custom_Property('BL.BEAN',1,'ADD_TWIN',c.empno||','||c.ename);
       else
        Set_Custom_Property('BL.BEAN',1,'ADD_TWIN_NULL',c.empno||','||c.ename);
       end if ;
      end loop;
      Set_Custom_Property('BL.BEAN',1,'ADD_TWIN','[END_DATA]');
      Set_Custom_Property('BL.BEAN',1,'SET_ALIGNMENT','right');
    END;Francois

  • Is there TopLinkGrid examples with XML descriptor deployment?

    Hi,
    Oracle docs include examples of using Oracle Coherence (as shared cache) with TopLinkGrid, but with annotations.
    Is there somewhere examples/docs about using TopLinkGrid, but with XML descriptor deployment ?
    Thanks.
    Regards,
    Dominique

    With TopLink Grid usage configured per Entity using EclipseLink customizers, you can either use annotations or specify in in the eclipselink-orm.xml file.
    For example, the following ecilpselink-orm.xml could be used in the OTN GridCache example with all the Java annotations removed. Note the specification of:
    <customizer class="oracle.eclipselink.coherence.integrated.config.GridCacheCustomizer"/>--Shaun
    <?xml version="1.0" encoding="UTF-8"?>
    <entity-mappings version="1.1" xmlns="http://www.eclipse.org/eclipselink/xsds/persistence/orm" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.eclipse.org/eclipselink/xsds/persistence/orm http://www.eclipse.org/eclipselink/xsds/eclipselink_orm_1_1.xsd">
         <persistence-unit-metadata>
              <persistence-unit-defaults>
                   <access>FIELD</access>
              </persistence-unit-defaults>
         </persistence-unit-metadata>
         <entity class="gridcache.model.Address">
              <customizer class="oracle.eclipselink.coherence.integrated.config.GridCacheCustomizer"/>
              <table name="GRIDCACHE_ADDRESS">
              </table>
              <attributes>
                   <id name="id">
                        <generated-value />
                   </id>
                   <version name="version">
                   </version>
              </attributes>
         </entity>
         <entity class="gridcache.model.Employee">
              <customizer class="oracle.eclipselink.coherence.integrated.config.GridCacheCustomizer"/>
              <table name="GRIDCACHE_EMPLOYEE">
              </table>
              <named-query name="Employee.findByLastNameLike">
                   <query>SELECT e FROM Employee e WHERE e.lastName LIKE :lastName</query>
              </named-query>
              <attributes>
                   <id name="id">
                        <generated-value />
                   </id>
                   <version name="version">
                   </version>
                   <one-to-many name="phoneNumbers" mapped-by="owner">
                        <cascade>
                             <cascade-all />
                        </cascade>
                   </one-to-many>
                   <one-to-one name="address" fetch="LAZY">
                        <cascade>
                             <cascade-all />
                        </cascade>
                   </one-to-one>
              </attributes>
         </entity>
         <entity class="gridcache.model.PhoneNumber">
              <customizer class="oracle.eclipselink.coherence.integrated.config.GridCacheCustomizer"/>
              <table name="GRIDCACHE_PHONE">
              </table>
              <attributes>
                   <id name="id">
                        <generated-value />
                   </id>
                   <basic name="number">
                        <column name="NUM"/>
                   </basic>
                   <version name="version">
                   </version>
                   <many-to-one name="owner" fetch="LAZY">
                   </many-to-one>
              </attributes>
         </entity>
    </entity-mappings>

Maybe you are looking for

  • How to restore OS X AND Win 7 backups to new internal hard drive

    Hello, When my iMac will come back from the repair it will have a new hard drive. Will I be able to restore all files to the OS X partition AND to the Windows 7 partition so that my iMac will be in exactly the same state as before? I have a Time Mach

  • How to set duration on multiple still images?

    Is there a way to select a range of stills within a project and set the duration of them all to the same value. One can copy the image adjustments from a still and then paste that to multiple stills, but there isn't a Paste Adjustments menu item for

  • Issue with the latest version of ITunes - Won't recognize Iphone 4

    Even since I updated to the latest version of ITunes, whenever I plug my Iphone into the USB cable, my iphone goes a little nuts by constantly going into Charging Mode  and then out...over and over again.  When I launch ITunes, it doesn't even show m

  • Icon turned red after update to 12.0.1.26

    My iTunes icon on my desktop turned red after I updated to 12.0.1.26. Does that mean something is wrong with my iTunes? It has never been red before.

  • Sharing Distribution channel among 2 Sale org

    Hi Gurus, I wish to verify if the following is correct: 1. Within a Company code, the sales organization 1 can use distribution channel DC 2 of sales organization 2. Likewise for Div. Thanks. regards M Russo