Example IFS parser and renderer

Hi
I was wondering if someone could provide me with some sample code of a very simple parser and renderer to get me going on my java for this.
In 9ifs there already is an example of a parser called SimplestParser which extracts information from between the <title>...</title> tags from a html document. The example then lets you apply this to html documents for which the extension .html is changed to .cus (for custom). The XML is given to create a custom class and associate the extension with that parser.
What is not there is a renderer that displays this information back to the user (of what is between the <title>...</title> tags). I assume a renderer would display this in the IFS web interface when you go to Edit -> Properties.
Would enyone be able to provide me with sample code for such a renderer, or alternatively a complete parser/renderer complementary set, extracting and displaying simple custom attibute(s) for a particular file type?
That would greatly help me out.
Thanks very much.
Hugo

I have another problem with custom parser. It doesn't work with versioned documents:
I have versioned file in iFS, if I parse and upload new version of that file I get Error: File already exists. I think that I should somehow set the family of doument which I want to parse & upload. But I don't know how.
null

Similar Messages

  • Parse and render XML... and get original replicated?

    Now that I've (temporarily) got iFS working (on another machine for now). I've got an XML question: I moved the airportdefinition.xml into the folder, and then subsequently moved the airport.xml into the folder, whereupon iFS parsed it and stored it. Yeah! However when examining (or copy out) the stored data, it is somewhat different than the original:
    original:
    <?xml version="1.0"?>
    <Airport>
    <Name>airport1.fly</Name>
    <AirportCode>SFO</AirportCode>
    <AirportName>San Francisco</AirportName>
    <FolderPath>.</FolderPath>
    </Airport>
    As recreated by the renderer:
    <?xml version = '1.0' standalone = 'yes'?>
    <AIRPORT>
    <Name>airport1.fly</Name>
    <Owner RefType="Name" ClassName="DIRECTORYUSER">system<!--ID # 96--></Owner>
    <ACL RefType="Name" ClassName="SYSTEMACCESSCONTROLLIST">Published<!--ID # 422--></ACL>
    <CreateDate format="MMM dd HH:mm">Nov 09 15:44</CreateDate>
    <Creator RefType="Name" ClassName="DIRECTORYUSER">system<!--ID # 96--></Creator>
    <LastModifyDate format="MMM dd HH:mm">Nov 09 15:44</LastModifyDate>
    <LastModifier RefType="Name" ClassName="DIRECTORYUSER">system<!--ID # 96--></LastModifier>
    <LockState>0</LockState>
    <AIRPORTCODE>SFO</AIRPORTCODE>
    <AIRPORTNAME>San Francisco</AIRPORTNAME>
    </AIRPORT>
    We'd like (to have cake and eat it) to be able to store parsed xml (to support queryability, indexing, reporting, etc.) but also want to be able to recreate the original xml UNCHANGED.
    If we don't parse it, we can have unchanged data, but then limit the queryability. Other than storing the xml document twice (both parsed and not) is there any way to do this?
    null

    I am glad that you solve this question and share the solution with us, I will mark your reply as the answer.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Parse and output XML document while preserving attribute order

    QUESTION: How can I take in an element with attributes from an XML and output the same element and attributes while preserving the order of those attributes?
    The following code will parse and XML document and generate (practically) unchanged output. However, all attributes are ordered a-z
    Example: The following element
    <work_item_type work_item_db_site="0000000000000000" work_item_db_id="0" work_item_type_code="3" user_tag_ident="Step" name="Work Step" gmt_last_updated="2008-12-31T18:00:00.000000000" last_upd_db_site="0000000000000000" last_upd_db_id="0" rstat_type_code="1">
    </work_item_type>is output as:
    <work_item_type gmt_last_updated="2008-12-31T18:00:00.000000000" last_upd_db_id="0" last_upd_db_site="0000000000000000" name="Work Step" rstat_type_code="1" user_tag_ident="Step" work_item_db_id="0" work_item_db_site="0000000000000000" work_item_type_code="3">
    </work_item_type>As you may notice, there is no difference in these besides order of the attributes!
    I am convened that the problem is not in the stylesheet.xslt but if you are not then it is posted bellow.
    Please, someone help me out with this! I have a feeling the solution is simple
    The following take the XML from source.xml and outputs it to DEST_filename with attributes in a-z order
    Code:
    private void OutputFile(String DEST_filename, String style_filename){
         //StreamSource stylesheet = new StreamSource(style_filename);
         try{
              File dest_file = new File(DEST_filename);
              if(!dest_file.exists())
                  dest_file.createNewFile();
              TransformerFactory tranFactory = TransformerFactory.newInstance();
              Transformer aTransformer = tranFactory.newTransformer();
              aTransformer.setOutputProperty(OutputKeys.ENCODING, "UTF-8");
              Source src = new DOMSource("source.xml");
              Result dest = new StreamResult(dest_file);
              aTransformer.transform(src, dest);
              System.out.println("Finished");
         catch(Exception e){
              System.err.print(e);
              System.exit(-1);
        }

    You can't. The reason is, the XML Recommendation explicitly says the order of attributes is not significant. Therefore conforming XML serializers won't treat it as if it were significant.
    If you have an environment where you think that the order of attributes is significant, your first step should be to reconsider. Possibly it isn't really significant and you are over-reaching in some way. Or possibly someone writing requirements is ignorant of this fact and the requirement can be discarded.
    Or possibly your output is being given to somebody else who has a defective parser which expects the attributes to be in a particular order. You could quote the XML Recommendation to those people but often XML bozos are resistant to change. If you're stuck writing for that parser then you'll have to apply some non-XML processing to your output to fix it up on their behalf.

  • Shake Workstation and Rendering Cluster Anyone?

    We are a new company currently developing new products for the scientific community. During development (We are talking months here...), we can allocate time slots for Shake distributed rendering on our development cluster (19 ea. Xserve G5 Dual 2 GHz w/4GB RAM, 1TB Xserve RAID, Gigabit Network). Our cluster is located at a secured state-of-the-art Data Center in Southern CA. If needed, we can also offer a Shake Workstation on a Power Mac G5 Dual 2.7 GHz with a 30-Inch Cinema HD Display to work on at our office.
    Is there anyone interested in such resources?
    We will highly appreciate any suggestion about utilizing our development cluster to help Shake or any Apple Pro product users for that matter... We are looking into making it a win-win situation for both Apple Pro products users and for us...
    Thanks...
    Zvi

    Thanks for the report Mathieu, it was very helpful. We are going to go ahead and deploy Xsan here, with just a third of artists directly attached via fibre, and the rest of the artists and render clusters attached via NFS re-share. In the future we may expand that as well.
    One question for you that is a little off the original topic:
    You said you are using RUSH and AFP together? We had no luck with that combination, as the user who first logged in would control the AFP share, and no other user could render. Do you not see this problem?
    For example, Users A and B have full read/write access to the AFP mount. User A mounts the AFP share, and everything is fine. From the terminal do a "login" using User B's credentials. Navigate to the AFP mount and try to read, make a directory, anything, and it is denied, although User B should have full access.
    Our RUSH renders would always fail, unless everyone worked as User A, which is of course not desireable.
    I'm interested in your experiences with this, as you guys appear to have great luck with AFP.

  • 01.01.0000 date parse and format

    Could somebody explain is wrong here?
    SimpleDateFormat frm = new SimpleDateFormat("yyyyMMddHHmmss");  // formatter
    frm.setTimeZone(TimeZone.getTimeZone("UTC"));   // UTC time zone
    // --- No problem for the next code ---
    String inDate = "19700101000000";  // 01.01.1970 input date
    long stamp;
    try {
        stamp = frm.parse(inDate).getTime();   // input date in long
    } catch (ParseException ex) {
        System.out.println("Interruption");
        stamp = 0;
    String outDate = frm.format(stamp);  // output date
    System.out.println("inDate=>" + inDate + "_longDate=>" + stamp + "_outDate=>" + outDate);
    // --- No idea why next code is working wrongly ---
    inDate = "00000101000000";  // 01.01.0000 input date
    try {
        stamp = frm.parse(inDate).getTime();   // input date in long
    } catch (ParseException ex) {
        System.out.println("Interruption");
        stamp = 0;
    outDate = frm.format(stamp);  // output date
    System.out.println("inDate=>" + inDate + "_longDate=>" + stamp + "_outDate=>" + outDate);I try to parse and format the time stamp 01.01.0000 00:00:00. On the finish I have 01.01.0001 instead of the correct 01.01.0000
    inDate=>19700101000000_longDate=>0_outDate=>19700101000000
    inDate=>00000101000000_longDate=>-62167392000000_outDate=>00010101000000

    You are calling format with a long parameter. The only format that matches that signature that I can see would be Format.format(Object) assuming autoboxing is changing the long to a Long.
    Format.format(Object) eventually calls DateFormat.format(Object, StringBuffer, FieldPosition). I have never used this method so I am not sure what it does.
    Was your intention to actually call this method?
    See the following example:
    System.out.println("Test 1: " + frm.format(new Long(0l), new StringBuffer(), new FieldPosition(0)));  
    System.out.println("Test 2: " + frm.format(new Long(-62167392000000l), new StringBuffer(), new FieldPosition(0)));  
    Test 1: 19700101000000
    Test 2: 00010101000000Edited by: jbish on Apr 26, 2013 12:43 PM
    Edited by: jbish on Apr 26, 2013 1:09 PM

  • Low Execute to Parse % and high soft parse %

    Hello Folks
    I am working on oracle 10g release2 on HP-UX
    After going through awr reports observed it have low Execute to Parse % but high soft parse % (Instance Efficiency Percentages)
    so cannot say issue with less use of bind variables,then what is cause of Execute to Parse %
    searched sites like ask.tom,burselon counsulting etc as usual they had given generic/diplomatic(escaping) replies on this
    like due to problem in application code,ineffecient sharing ,due to problem in database parameters etc
    without any clear indication for cause and solution like if some database parameters not set properly then should say which database parameters can be checked,cause due to more parsing and less execution
    please share if you had faced such issue and any suggestions to solve this
    examples why this could happen ,like possibilities in application code
    Thanks

      Load Profile
                                              Per Second       Per Transaction
                   Redo size:             11,685.79              3,660.98
                   Logical reads:             71,445.74             22,382.86
                   Block changes:                 70.89                 22.21
                   Physical reads:                 58.63                 18.37
                   Physical writes:                  2.80                  0.88
                   User calls:                652.93                204.55
                   Parses:                 48.39                 15.16
                   Hard parses:                  0.33                  0.10
                   Sorts:                  6.90                  2.16
                   Logons:                  0.23                  0.07
                   Executes:                 52.71                 16.51
                   Transactions:                  3.19
                % Blocks changed per Read:    0.10    Recursive Call %:    30.48
                Rollback per transaction %:    2.57       Rows per Sort:    29.66
        Instance Efficiency Percentages (Target 100%)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                 Buffer Nowait %:  100.00       Redo NoWait %:  100.00
                 Buffer  Hit   %:   99.92    In-memory Sort %:  100.00
                 Library Hit   %:   98.47        Soft Parse %:   99.32
                 Execute to Parse %:    8.19         Latch Hit %:   99.63
                 Parse CPU to Parse Elapsd %:   89.90     % Non-Parse CPU:   99.62There rdbms performs approximately 48 soft parse per second ,Soft Parse % and Library Hit very close to 99 it means there main part of sql are shared.Also here user calls similar high per second but executions less,however you should be try minimizing soft parsing.I do not know exactly for which interval you get this report but Execute to Parse % indicate that when executing query oracle can not find early cursor handles(open or closed) but it can find sql text and plan information from shared pool according hash values,in this case oracle perform soft parse again.In your case you also investigate shared pool size/fragmentation.To avoid little Execute to Parse % you can increase SESSION_CACHED_CURSORS or implement CURSOR_SPACE_FOR_TIME.So refer documentation and find how to use these parameters.

  • Expression parsing and execution

    Hi All,
    I need ideas/code/suggestions from you all. I am working on a Formula Builder UI. In this a user can create their own expressions choosing some variable values also.
    This will contain IF, AND , OR and NOT also from expression creation. For example it may look like this
    IF my_variable > 25 THEN my_variable *20 ELSE my_varibale/2 END
    So these kind of lines should be parsed first for completeness and then should be executed for thier values.
    Hope to get a supportive help from all of you.
    Regards,
    Sandeep

    Hi,
    I am trying to evaluate an expression like this =IF(A1<0.125,0.0005,(IF(A1<0.25,0.00066667,(IF(A1<0.5,0.00075,(IF(A1<0.75,0.000916667,0.0010833))))))) in java. In excel it is easy but i cannot use that. I cannot use any free downloads. Is there any code sample which I can use to start off? I need to parse and evaluate the above expression.

  • I dropped my iPhone 4 in water and now it won't turn on at all, will i lose all of my data, for example my photos and messages etc? and is there any way you can back the phone up without having it switched on?

    I dropped my iPhone 4 in water and now it won't turn on at all, will i lose all of my data, for example my photos and messages etc? and is there any way you can back the phone up without having it switched on?

    If you had previously been backing up to iCloud (or a computer with iTunes), you would possibly have a backup.  That said, if you can't turn the phone on, you cannot create a backup of the device now.  Sorry.

  • Html comment in JSP compiled and rendered in NW7.3?

    Hi,
    We are updateing from EP NW7.0 to NW7.3 and are facing a strange issue with html comment (<!-- -->) in JSP files. It seems as in 7.3 html comment is compiled and rendered but of course does not work.
    Is this correct or is it a bug?
    Thanks,
    Stefan

    Hi,
    We are updateing from EP NW7.0 to NW7.3 and are facing a strange issue with html comment (<!-- -->) in JSP files. It seems as in 7.3 html comment is compiled and rendered but of course does not work.
    Is this correct or is it a bug?
    Thanks,
    Stefan

  • XML Parser and Content-type/encoding problem

    I've write a little and simple XML parser and a simple "trasformer" that recive an XML file and an XSL one and return HTML, here is the code:
    public static String toHTML(Document doc, String xslSource){
            ByteArrayOutputStream testo = new ByteArrayOutputStream();
            try{
                DOMSource source = new DOMSource(doc);
                TransformerFactory tFactory = TransformerFactory.newInstance();
                System.out.println("----> " + xslSource);
                Transformer transformer = tFactory.newTransformer(new StreamSource(xslSource));
                transformer.setOutputProperty(OutputKeys.INDENT, "yes");
                transformer.setOutputProperty("{http://xml.apache.org/xslt}indent-amount", "2");
                transformer.setOutputProperty(OutputKeys.METHOD, "html");
             transformer.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, "yes");
             transformer.setOutputProperty(OutputKeys.ENCODING, "UTF-8");
                transformer.transform(source, new StreamResult(testo));
            }catch(Exception ioe){
                System.out.println("2 XMLTool.toHTML " + new java.util.Date());
                System.out.println(ioe);        
            return testo.toString();
        }the problem is that I would like to put the HTML code its return into a JEditorPane; now I'm trying with this code:
    JEditorPane jep1 = new JEditorPane();
    jep1.setContentType("text/html");
    jep1.setText(v);
    // 'v' is the string returned by the code posted up (the XML/XSL transformer)but I can't see anything in my JEditorPane.
    I think that the problem is this line of code that the transformer add automaticaly ad HTML code:
    <META http-equiv="Content-Type" content="text/html; charset=UTF-8">Infact if I try to delete this line from the code I can see what I want but is'n good delete a line of code without understend where is the problem.
    So, can anyone help me?

    good.
    when u set ur output properties to html , transformer
    searches for all entity references and converts accordingly.
    if u r using xalan these files will be used for conversion of
    Character entity references for markup-significant
    output_html.properties
    (this should be in templates package)
    and HTMLEntities.res(should be in serialize package)
    vasanth-ct

  • What sequence setting would you use to edit 1280 x1080 DVCProHD (P2) and 1920 x 1080 AVCHD (Sony) in FCP. Experiencing Quality and rendering issues.

    What sequence setting would you use to edit both 1280 x1080 DVCProHD (P2) and 1920 x 1080 AVCHD (Sony) in a single timeline in FCP. I'm experiencing quality and rendering issues.  I've tried numerous settings but can't seem to figure this one out.  Thanks for your assistance.

    Although you can combine the avchd 1920x1080 material with prores 1920x1080 in the same timeline, you might land up saving time just converting everything to 1920x1080 prores 422.   You'd probably reduce the amount of rendering while you're working and exporting when you're done by a great deal.  This workflow will require much more drive space.

  • Sql parse and shared pool

    hi friends i have a procedure
    and its have *(AD IS NULL OR NVAD LIKE AD||'%') AND (SOYAD IS NULL OR NVSOYAD LIKE SOYAD||'%')*
    if i use this query and pass different things for AD ; is it become a brand new query for oracle because of ||'%' or its parse and put in shared pool and for a sometime this query don't parse and take from shared pool
       PROCEDURE P_YENI_TALEP_LISTELE(RC_CURSOR OUT SYS_REFCURSOR,TOPLAM_TALEP OUT NUMBER,SAYFA_INDEX IN NUMBER,SAYFA_BUYUKLUK  IN NUMBER,TC_NO IN NVARCHAR2,AD IN NVARCHAR2,SOYAD IN NVARCHAR2,ONAY IN NUMBER,H_TIP_ID IN NUMBER)
        AS 
        BEGIN
          OPEN RC_CURSOR FOR  SELECT TA.NT_ID,TA.NTC_NO,HI.NVHIZMET_TUR AS NVARM_KONU,TA.NVOPRTR_CVP,TA.NVGRSM_SURE,TA.NVGRSM_DRM,
                       TA.NHIZMET,TA.BONAY,TA.DTLP_TRH,TH.NVAD,TH.NVSOYAD,TH.NVILCE ,TA.DALINAN_TRH,
                       TA.DBRKLAN_TRH,TA.NG_ID,GU.NVAD1||' - '||GU.NVAD2 AS GUZERGAH,HI.NH_TIP_ID,HT.NVHIZMET_TIP,
                FROM H_TALEP TA,TNM_HASTA_BILGI TH,TNM_HIZMET HI,SBT_HIZMET_TIP HT,TNM_GUZERGAH GU
          WHERE TA.NTC_NO=TH.NTC_NO AND TA.NH_ID=HI.NH_ID AND HI.NH_TIP_ID=HT.NH_TIP_ID AND(TC_NO IS NULL OR TA.NTC_NO=TO_NUMBER(TC_NO)) AND TA.NG_ID=GU.NG_ID AND
                          *(AD IS NULL OR NVAD LIKE AD||'%') AND (SOYAD IS NULL OR NVSOYAD LIKE SOYAD||'%')*...............

    The code you have posted has no DYNAMIC SQL in it.... Static SQL inside PL/SQL will bind all the variables for you.
    So what you are saying does not compute.
    What is making you think a 'brand new query' is being parsed for each execution?
    Edited by: Tubby on Nov 8, 2008 4:19 PM

  • Pe10: opening a previously saved and rendered project, the work area indicates non-rendered sections

    Pe10: when I open a previously saved and rendered project, the work area indicates a majority of non-rendered sections.
    When I open a previously saved and rendered project, the work area indicates non-rendered sections. My project is approximately 59 minutes and 27 seconds.
    What must be done to have a saved and rendered project, when open again, be rendered?

    TRUE_SEEKER wrote:
    The price tag of $245 for the Prodad's Mercalli  video software is too steep for me right now.
    Corel's Avid VideoStudio Pro X4 Ultimate (what a mouthful) includes Mercalli SE. It was on sale at half-price on Amazon Black Friday and I missed it - mostly because I was trying to find out what the 'SE' part of it meant.
    Annoyingly (very much so) it seems that Mercalli SE is pretty much the whole deal - a YouTube review of the Mercalli feature in VideoStudio by ProDAD (the Mercalli authors) included all the features I would expect to use.
    So it seems that the $80 VideoStudio product includes the $150 Mercalli plug-in. Thus a workflow starting with Mercalli stabilisation in VideoStudio and then switching to PRE is viable. I can't really afford the full price VideoStudio product so I'm hoping for a similar 50% reduction after Christmas.
    Cheers,
    Neale
    Insanity is hereditary, you get it from your children

  • Example Of Aynchronous and Transactional RFC

    hi all
    please give me an <b>example for Aynchronous and Transactional RFC</b>.
    <b>note: dont give me the definitions. </b>i have the same.please give me the example
    regards
    ravish

    Hi Ravish,
    I am using the FM RFC_READ_TABLE for the examples,
    In our Examples we are using the following systems.
    Description     Server Name     RFC Destination
    Calling System     PDC ENT Server     NONE
    Target System 1     PDC 210 Server     PDC210
    Target System 2     PDC ISU Server     BPD150
    <b>Common Code</b>
    REPORT  yarfc_with_resp_ran_test                .
    DATA : lit_options TYPE TABLE OF rfc_db_opt.
    DATA : wa_options LIKE LINE OF lit_options.
    DATA : lit_fields TYPE TABLE OF rfc_db_fld.
    DATA : wa_fields LIKE LINE OF lit_fields.
    DATA : lit_data TYPE TABLE OF tab512.
    DATA : wa_data LIKE LINE OF lit_data.
    DATA : lv_count TYPE i.
    DATA : flg_check TYPE flag.
    DATA : lv_time LIKE sy-uzeit.
    CONSTANTS : lc_dbtable TYPE tabname VALUE 'MARA'.
    *Refreshing the tables
    REFRESH : lit_options,lit_fields,lit_data.
    *Populating the Option Table
    *Populating the Field Table
    CLEAR wa_fields.
    wa_fields-fieldname = 'MATNR'.
    wa_fields-offset    = 000032.
    wa_fields-length    = 000018.
    wa_fields-type      = 'C'.
    wa_fields-fieldtext = 'Material number'.
    APPEND wa_fields TO lit_fields.
    <b>aRFC with Response</b>
    *          aRFC Example With Response
    *Refreshing the Data Table
    REFRESH : lit_data.
    *PDC-ENT to PDC210
    CALL FUNCTION 'RFC_READ_TABLE'
      STARTING NEW TASK 'taskPDC210'
      DESTINATION 'PDC210'
      PERFORMING resp_pdc210 ON END OF TASK
      EXPORTING
        query_table          = 'MARA'
      TABLES
        options              = lit_options
        fields               = lit_fields
        data                 = lit_data
      EXCEPTIONS
        table_not_available  = 1
        table_without_data   = 2
        option_not_valid     = 3
        field_not_valid      = 4
        not_authorized       = 5
        data_buffer_exceeded = 6
        OTHERS               = 7.
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CLEAR lv_count.
    lv_count = LINES( lit_data ).
    WRITE : 'aRFC Example With Response'.
    SKIP 1.
    *MARA DB Count Before Receiving the result of Function Call
    WRITE : 'MARA DB Count(PDC210)' , lv_count , sy-uzeit.
    *Waiting for 1 Second to identify the time difference
    WAIT UP TO 1 SECONDS.
    *Synchronisation Point
    WAIT UNTIL flg_check = 'X'.
    SKIP 1.
    WRITE : 'Time When We Set Flag Check i.e. we are in Receiving FM' , lv_time.
    CLEAR lv_count.
    lv_count = LINES( lit_data ).
    SKIP 1.
    *Waiting for 1 Second to identify the time difference
    WAIT UP TO 1 SECONDS.
    *MARA DB Count After Receiving the result of Function Call
    WRITE : 'MARA DB Count(PDC210)' , lv_count , sy-uzeit.
    *&      Form  resp_pdc210
    FORM resp_pdc210 USING taskname.
      RECEIVE RESULTS FROM FUNCTION 'RFC_READ_TABLE'
      TABLES
        options                    = lit_options
        fields                     = lit_fields
        data                       = lit_data
      EXCEPTIONS
       table_not_available        = 1
       table_without_data         = 2
       option_not_valid           = 3
       field_not_valid            = 4
       not_authorized             = 5
       data_buffer_exceeded       = 6
       OTHERS                     = 7
    *Flag set for the Synchronisation Check.
      flg_check = 'X'.
      CLEAR lv_time.
    *Time when flag get set.
      lv_time = sy-uzeit.
    ENDFORM.                    " resp_pdc210
    <b>tRFC</b>
    *          Transactional RFC Example
    *Refreshing the Data Table
    REFRESH : lit_data.
    *PDC-ENT to PDCISU
    CALL FUNCTION 'RFC_READ_TABLE'
      IN BACKGROUND TASK
      DESTINATION 'PDCISU'
      EXPORTING
        query_table          = lc_dbtable
      TABLES
        options              = lit_options
        fields               = lit_fields
        data                 = lit_data
      EXCEPTIONS
        table_not_available  = 1
        table_without_data   = 2
        option_not_valid     = 3
        field_not_valid      = 4
        not_authorized       = 5
        data_buffer_exceeded = 6
        OTHERS               = 7.
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    *Refreshing the Data Table
    REFRESH : lit_data,lit_fields.
    *Populating the Field Table
    CLEAR wa_fields.
    wa_fields-fieldname = 'INT_UI'.
    wa_fields-offset    = 000032.
    wa_fields-length    = 000022.
    wa_fields-type      = 'C'.
    wa_fields-fieldtext = 'Internal key for point of delivery'.
    APPEND wa_fields TO lit_fields.
    *PDC-ENT to PDCISU
    CALL FUNCTION 'RFC_READ_TABLE'
      IN BACKGROUND TASK
      DESTINATION 'PDCISU'
      EXPORTING
        query_table          = 'EUIHEAD1'
      TABLES
        options              = lit_options
        fields               = lit_fields
        data                 = lit_data
      EXCEPTIONS
        table_not_available  = 1
        table_without_data   = 2
        option_not_valid     = 3
        field_not_valid      = 4
        not_authorized       = 5
        data_buffer_exceeded = 6
        OTHERS               = 7.
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION 'RFC_PING'
      IN BACKGROUND TASK
      DESTINATION 'PDCISU'.
    *Commit Work
    COMMIT WORK.
    <b>Do reply for any further help.</b>
    Regards,
    Ranjit Thakur.
    <b>Please Mark The Helpful Answer.</b>

  • SQL08 Need example of creating AND using a Fact (degenerate) dimension

    Can someone post a link to some examples of setting up and using a Fact (degenerate) dimension.  Ive got the SSAS 2008R2 Adventureworks DW project setup and I see a few Fact dimensions in there, but id like some descriptions to go along with this or
    something similar.
    My scenario:
    Orders - attributes include :  Order#, OrderStartDate, SalesPerson, BusinessType, MarketType
    OrderTransactions - attributes include:  OrderKey , TransactionAmount, TransactionType, TransactionDate, AccountKey
    Description:
    Its more or less the typical Order > Order Detail type scenario, with the addition of Orders have some additional attributes.
    So I want to be able to measure on for example:
    Order counts - broken down by BusinessType and MarketType , and then within a date range
    Revenue - which will be totals of transaction amounts, again grouped by BusinessType and MarketType, but also be able to drill down to see the related Order#

    Hi Shiftbit,
    According to your description, you need some examples about create and use degenerate dimensions, right?
    Degenerate dimensions, also called fact dimensions, are standard dimensions that are constructed from attribute columns in fact tables instead of from attribute columns in dimension tables. Here is document that describes how to create and use degenerate
    dimensions step by step, please refer to the links below.
    https://msdn.microsoft.com/en-us/library/ms167409(v=sql.100).aspx
    http://www.jamesserra.com/archive/2011/11/degenerate-dimensions/
    Regards,
    Charlie Liao
    TechNet Community Support

Maybe you are looking for

  • Additional field in FB03 and FBV0

    I want one additional field in the layout i.e. document amount, which is not available at present.  How to do.

  • Indexing on BSEG-ZUONR

    Hi, I want to be indexing on the field BSEG-ZUONR for searching records on basis of Assignment No. Is it possible. -Sanjay

  • Looking for Good Article/Explanation on Timezones

    Hi, I'm looking for answers about timezones and if anyone could point me to a really good artilce I'd appreciate it. Here's the type of thing I'm looking for... I'm writing an application that creates records in a file. The records are timestamped as

  • Can't browse network with new router - HELP!

    My old WRT54G died a few days ago.  I replaced it with a WRT54GL which was the closest match.  Since installing the new router I can no longer browse my network.   I configured the new router with LELA as per the instructions suggested.  Could that h

  • ACE http header response

    Hi, I have for example a site http://abc.com which response back with the port on which it's being used on the server ex: http://abc.com:9081 How would I rewrite the response remove the port on the server that is being used. Thank you,