Regarding Conversions in PI 7.0

HI Experts,
IT is IDoc to file Scenario by using fixvalues I am converting values LIke if CS is there CV has to generate like dat .
IDOC->Fixvalues->Unitmeasure.
But Output is not generating as a CV its coming value blank please help me on this .
Some times multiple values comes that time how to achieve this.
Thanks n Regards
Tahir

Hi,
FixValues should work for your requirement..
if the multiple values occur you need to map in such a way to call fix values for each value..(handle contexts..)
you can use queue concept to check the output values of target fields when output is not generating for any of target fields.
HTH
Rajesh

Similar Messages

  • Regarding Conversion of the Charecter field Into Lowercase in an ALV REPORT

    HI ALL,
    I have created an editable alv Report. In which i have a coloumn with charecter field where i can enter 64 charecters. when ever i have enter and moved to another Tab its converting into Capital Letters. I need to stop it conversion. Can any one suggest me Regarding It. I am Using the Docking Container and method set_table_for_first_display for displaying the Grid.
    Please give some suggestion in order to control conversion of charecters.
    Thanks in Advance.
    Naresh

    What Kind of Dataelement/Domain you are using? CHAR60? Then try TEXT60 f.e.
    Maybe you check this out
    http://help.sap.com/saphelp_erp2005/helpdata/DE/bf/3bd1369f2d280ee10000009b38f889/frameset.htm
    and there the FC option lowercase..
    Edited by: Mathias Maerker on Apr 23, 2009 2:14 PM

  • Regarding Conversion Of ABAP program from non unicode to uni code

    Hi Can you please let me know the procedure for converssion of non unicode to unicode?
    Thanks in advance,
    zubera

    Hi
    The Link will be helpful to you.
    Re: Upgrade 4.6 to ECC - What are the responsibilites
    regarding Unicode influence in Standard programs
    Very good document:
    http://www.doag.org/pub/docs/sig/sap/2004-03/Buhlinger_Maxi_Version.pdf
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d37d1ad9-0b01-0010-ed9f-bc3222312dd8
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/589d18d9-0b01-0010-ac8a-8a22852061a2
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f8e316d9-0b01-0010-8e95-829a58c1511a
    You need to use the transaction UCCHECK.
    The report documentation is here
    ABAP Unicode Scan Tool UCCHECK
    You can use transaction UCCHECK to examine a Unicode program set for syntax errors without having to set the program attribute "Unicode checks active" for every individual program. From the list of Unicode syntax errors, you can go directly to the affected programs and remove the errors. It is also possible to automatically create transport requests and set the Unicode program attribute for a program set.
    Some application-specific checks, which draw your attention to program points that are not Unicode-compatible, are also integrated.
    Selection of Objects:
    The program objects can be selected according to object name, object type, author (TADIR), package, and original system. For the Unicode syntax check, only object types for which an independent syntax check can be carried out are appropriate. The following object types are possibilities:
    PROG Report
    CLAS Class
    FUGR Function groups
    FUGX Function group (with customer include, customer area)
    FUGS Function group (with customer include, SAP area)
    LDBA Logical Database
    CNTX Context
    TYPE Type pool
    INTF Interface
    Only Examine Programs with Non-Activated Unicode Flag
    By default, the system only displays program objects that have not yet set the Unicode attribute. If you want to use UCCHECK to process program objects that have already set the attribute, you can deactivate this option.
    Only Objects with TADIR Entry
    By default, the system only displays program objects with a TADIR entry. If you want to examine programs that don't have a TADIR entry, for example locally generated programs without a package, you can deactivate this option.
    Exclude Packages $*
    By default, the system does not display program objects that are in a local, non-transportable package. If you want to examine programs that are in such a package, you can deactivate this option.
    Display Modified SAP Programs Also
    By default, SAP programs are not checked in customer systems. If you also want to check SAP programs that were modified in a customer system (see transaction SE95), you can activate this option.
    Maximum Number of Programs:
    To avoid timeouts or unexpectedly long waiting times, the maximum number of program objects is preset to 50. If you want to examine more objects, you must increase the maximum number or run a SAMT scan (general program set processing). The latter also has the advantage that the data is stored persistently. Proceed as follows:
    - Call transaction SAMT
    - Create task with program RSUNISCAN_FINAL, subroutine SAMT_SEARCH
    For further information refer to documentation for transaction SAMT.
    Displaying Points that Cannot Be Analyzed Statically
    If you choose this option, you get an overview of the program points, where a static check for Unicode syntax errors is not possible. This can be the case if, for example, parameters or field symbols are not typed or you are accessing a field or structure with variable length/offset. At these points the system only tests at runtime whether the code is sufficient for the stricter Unicode tests. If possible, you should assign types to the variables used, otherwise you must check runtime behavior after the Unicode attribute has been set.
    To be able to differentiate between your own and foreign code (for example when using standard includes or generated includes), there is a selection option for the includes to be displayed. By default, the system excludes the standard includes of the view maintenance LSVIM* from the display, because they cause a large number of messages that are not relevant for the Unicode conversion. It is recommended that you also exclude the generated function group-specific includes of the view maintenance (usually L<function group name>F00 and L<function group name>I00) from the display.
    Similarly to the process in the extended syntax check, you can hide the warning using the pseudo comment ("#EC *).
    Applikation-Specific Checks
    These checks indicate program points that represent a public interface but are not Unicode-compatible. Under Unicode, the corresponding interfaces change according to the referenced documentation and must be adapted appropriately.
    View Maintenance
    Parts of the view maintenance generated in older releases are not Unicode-compatible. The relevant parts can be regenerated with a service report.
    UPLOAD/DOWNLOAD
    The function modules UPLOAD, DOWNLOAD or WS_UPLOAD and WS_DOWNLOAD are obsolete and cannot run under Unicode. Refer to the documentation for these modules to find out which routines serve as replacements.
    Regards
    Anji

  • Regarding conversion of idoc into xml/edifact

    hi everyone, i am using 5.0 version and i want to know that without using subsystem can be change my idoc into xml/edifact, if yes then plz let me know procedure
    regards,
    vimarsh

    Hello Vimarsh
    Basically you have to following steps in the EDI conversion process:
    (1) Send business object (e.g. invoice) as IDoc-XML to external system
    (2) EDI converter converts IDoc-XML to EDIFACT (flat file) (e.g. Seeburger, mendelson, etc.)
    (3) Send EDI file to EDI provider (e.g. GXS, IBM-IE, Tradanet, etc.)
    In our case the EDI conversion takes place on SAP-XI (Note: the EDI converter is not part of SAP-XI but a third-party product). The EDI file is placed on a FTP server and then send via ODEX / OFTP to an EDI provider.
    Regards,
      Uwe

  • Regarding conversion of String to Date

    Hi
    Ravi here and I am getting the following exception when i am working with String to date conversion.As i am working in LAN this code is working for all others .This problem is with my system only.This is not supporting with yyyy-MM-dd format.One more thing in my system only we installed VisualStudio.Is that a problem for this exception.I am using Myeclipse
    Plzzzzzzzzzzz help me I got strucked .
    Thanks in advance
    Code:
    public void testSaveDates() throws HibernateException, ParseException{
    try{
    Date date=new Date();
    String str1 ="2006-05-06";
    Date dateFormatter = new SimpleDateFormat("yyyy'-'MM'-'dd").parse(str1);;
    System.out.println(dateFormatter);
    catch(Exception e){
    e.printStackTrace();
    Exception:
    java.text.ParseException: Unparseable date: "2006-05-06"
         at java.text.DateFormat.parse(DateFormat.java:335)
         at chaitanya.MyTest.testSaveDates(MyTest.java:282)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at junit.framework.TestCase.runTest(TestCase.java:154)
         at junit.framework.TestCase.runBare(TestCase.java:127)
         at junit.framework.TestResult$1.protect(TestResult.java:106)
         at junit.framework.TestResult.runProtected(TestResult.java:124)
         at junit.framework.TestResult.run(TestResult.java:109)
         at junit.framework.TestCase.run(TestCase.java:118)
         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:421)
         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:305)
         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:186)

    Date date=new Date();You don't need this line.
    Date dateFormatter = new
    er = new
    SimpleDateFormat("yyyy'-'MM'-'dd").parse(str1);;As already told, you don't need the single quotes. And you don't need two semi-colons - that's unnecessary.
    I just wrote a sample code to test that out. Check it and see for yourself.
    import java.text.SimpleDateFormat;
    public class Test {
         public static void main(String[] args) throws Exception {
              System.out.println(new SimpleDateFormat("yyyy-MM-dd").parse("2005-04-18"));
              System.out.println(new SimpleDateFormat("'yyyy'-'MM'-'dd'").parse("2005-04-18"));
    }Output:
    Mon Apr 18 00:00:00 EDT 2005
    Exception in thread "main" java.text.ParseException: Unparseable date: "2005-04-18"
            at java.text.DateFormat.parse(DateFormat.java:335)
            at Test.main(Test.java:6)I wonder why it is not feasible to write a quick sample code.

  • Regarding conversion of Image file to video file

    Hi All,
    I need a small help. My requirement is to convert a text file in to an image file by attaching a background and that image is converted into video file by attaching audio file. please guide me how i can achieve this using sun java API. Is this facility was available in sun java API,s or any other API's should i use.
    Please Guide me.
    I aplogize for my poor English.
    Regards,
    Rama Devi.

    Hi there,
    Did you did manage to get a solution to converting a XML file to Excel file? Please help me if you did get the solution.
    Thanx
    Jacob Tlhatlha

  • Regarding conversion of image to video

    Hi All,
    I need a small help. My requirement is to convert a text file in to an image file by attaching a background and that image is converted into video file by attaching audio file. please guide me how i can achieve this using sun java API. Is this facility is available in sun java API,s or any other API's should i use.
    Please Guide me.
    I aplogize for my poor English.
    Regards,
    Rama Devi.

    Date date=new Date();You don't need this line.
    Date dateFormatter = new
    er = new
    SimpleDateFormat("yyyy'-'MM'-'dd").parse(str1);;As already told, you don't need the single quotes. And you don't need two semi-colons - that's unnecessary.
    I just wrote a sample code to test that out. Check it and see for yourself.
    import java.text.SimpleDateFormat;
    public class Test {
         public static void main(String[] args) throws Exception {
              System.out.println(new SimpleDateFormat("yyyy-MM-dd").parse("2005-04-18"));
              System.out.println(new SimpleDateFormat("'yyyy'-'MM'-'dd'").parse("2005-04-18"));
    }Output:
    Mon Apr 18 00:00:00 EDT 2005
    Exception in thread "main" java.text.ParseException: Unparseable date: "2005-04-18"
            at java.text.DateFormat.parse(DateFormat.java:335)
            at Test.main(Test.java:6)I wonder why it is not feasible to write a quick sample code.

  • Regarding conversion of date in wd abap

    Hi All,
          I have created an ui element i.e a table and in that one row is for getting the date of birth.i have binded this table with a table which is in dictionary structure. while running my application I am not getting the date of birth in correct format.
    say for example i require the correct output i.e DOB as 01.01.1970 but i am getting the wrong output in this field as 19700101.so if there is any function module or any way to do the date conversion then give it.
    Thanking you All in advance.

    hi,
    Use this FM CONVERSION_EXIT_PDATE_OUTPUT.This will always converts from system(YYYYMMDD) to user format.
    Thanks,
    suman

  • Regarding conversion of date in abap

    Hi All,
    while running my application I am not getting the date of birth in correct format.
    say for example i require the correct output i.e DOB as 01.01.1970 but i am getting the wrong output in this field as 19700101.so if there is any function module or any way to do the date conversion then give it i.e. how can I convert the date from string to date format.If any one knows the solution then revert me back.
    Thanking you All in advance.

    say your user setting format is mm.dd.yyyy
    now, data: v_date like sy-datum.
    move the data to V_date.
    write:/ v_date.
    as your user setting format is mm.dd.yyyy it displays as 01.01.1997 although internally it stores as 19970101

  • Regarding conversion of PDF Reports into .XLS or .XLSX format report in SAP MII

    Hi,
    Is there any way out within the scope of SAP MII to convert PDF Reports into .XLS or .XLSX formatted output.
    It is possible to convert PDF Reports into .CSV format through SAP MII, but I am not sure about .XLS format.
    Can anyone help me doing this?

    Hi Sue,
    I would like to assist! I just reached out to you directly. It will come from: [email protected]
    Let's see what we can figure out!
    Kind regards, Stacy

  • Query regarding conversion of Quick Time movie files to .swf format

    Hello Everyone,
    Is it possible to convert QT movie files to .swf format using
    any tool ?
    Will it significantly reduce the file size ?
    Suppose we have a QT movie file of size 3MB , when it is
    converted to .swf
    format what will be its size ?
    Then can we play this .swf file using QT player or we require
    flash player
    to do so .
    Kindly answer these queries.
    Thanking you,
    With Best regards,
    Anil.

    Sudeshchan Shetty wrote:
    > Is it possible to convert QT movie files to .swf format
    using any tool ?
    Hi Anil.
    Yes, you can. You can import QT movies into Flash and embed
    the movie and then
    export an swf version of it. You can also convert teh video
    to a FLV (Flash
    video) and have a swf that provides the controls and player
    for it.
    > Will it significantly reduce the file size ?
    File size probably will go down but that depnds on what
    compression the orginal
    QT has and what compression you use when importing to Flash.
    I'd say start with
    a high quality QT, then try various compression levels when
    importing to get
    the best size to quality balance.
    > Suppose we have a QT movie file of size 3MB , when it is
    converted to .swf
    > format what will be its size ?
    Is hard to say - as mentione dabove, depends on what the QT's
    compression is.
    > Then can we play this .swf file using QT player or we
    require flash player
    > to do so .
    You'll have to play the swf through Flash. Why would you wnat
    to play it
    through QT?
    What's the output for - CD/web? I'd suggest FLVs ratehr than
    an embedded vidoe
    into a swf as you can get better quality control and
    playback.
    regards
    Dean
    Director Lecturer / Consultant / Director Enthusiast
    http://www.fbe.unsw.edu.au/learning/director
    http://www.multimediacreative.com.au
    email: [email protected]

  • Regarding conversion of invoice in XML format

    Hi everyone,
    I am working on smartforms and i require smartforms and its output in XML format, if its possible then please let me know the procedure to transmit smartforms output in XML format. Please reply, its urgent.
    Thanks & Regards
    V.B.

    In transaction SE80 browse menu Workbench -> Edit Object. In the popup window enter XSLT Program name (e.g. ZXSLT) and click on create button.
    Enter the following code into the editor
    <xsl:transform version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >
    <!xsl:output encoding="utf-8" indent="yes"/>
    <xsl:template match="D2CXML">
    <PurchaseOrders>
    <xsl:apply-templates/>
    </PurchaseOrders>
    </xsl:template>
    <xsl:template match="item">
    <PONO>
    <xsl:attribute name="no">
    <xsl:value-of select="EBELN"/>
    </xsl:attribute> 1
    <PORDNO>
    <xsl:apply-templates select="EBELN"/>
    </PORDNO>
    <Vendor>
    <xsl:apply-templates select="LIFNR"/>
    </Vendor>
    <PurchaseOrg>
    <xsl:apply-templates select="EKORG"/>
    </PurchaseOrg>
    <PurchaseGrp>
    <xsl:apply-templates select="EKGRP"/>
    </PurchaseGrp>
    <xsl:apply-templates select="X-MLSTRUCT"/>
    </PONO>
    </xsl:template>
    <xsl:template match="X-MLSTRUCT">
    <xsl:apply-templates/>
    </xsl:template>
    <xsl:template match="X-MLSTRUCT/item">
    <Product>
    <ItemNo>
    <xsl:apply-templates select="EBELP"/>
    </ItemNo>
    <Material>
    <xsl:apply-templates select="MATNR"/>
    </Material>
    <Qty>
    <xsl:apply-templates select="MENGE"/>
    </Qty>
    <Price>
    <xsl:apply-templates select="NETPR"/>
    </Price>
    </Product>
    </xsl:template>
    </xsl:transform>
    Create Extraction Program
    Create a report program using ABAP Workbench and the code of the extracting program will be as follows.
    REPORT ZXML_EXTRACTION .
    - - - - - - - - - - DATA DECLARATION - - - - - - - - --*
    TYPE-POOLS: ABAP.
    TYPES: BEGIN OF TY_XML,
    EBELP TYPE STRING,
    MATNR TYPE STRING,
    MENGE TYPE STRING,
    NETPR TYPE STRING,
    END OF TY_XML.
    TYPES: BEGIN OF TY_FINAL_XML,
    EBELN TYPE STRING,
    EKORG TYPE EKKO-EKORG,
    EKGRP TYPE EKKO-EKGRP,
    LIFNR TYPE EKKO-LIFNR,
    XMLSTRUCT TYPE TY_XML,
    END OF TY_FINAL_XML.
    TYPES: BEGIN OF TY_EKPO,
    EBELN TYPE EKPO-EBELN,
    LIFNR TYPE EKKO-LIFNR,
    EKORG TYPE EKKO-EKORG,
    EKGRP TYPE EKKO-EKGRP,
    EBELP TYPE EKPO-EBELP,
    MATNR TYPE EKPO-MATNR,
    MENGE TYPE EKPO-MENGE,
    NETPR TYPE EKPO-NETPR,
    END OF TY_EKPO.
    TYPES: TY_TSRCLIN(1024) TYPE X,
    TY_TSRCTAB TYPE STANDARD TABLE OF TY_TSRCLIN.
    Global Data for XML Creation
    DATA: G_XML_STRING TYPE STRING,
    G_XML_STRING1 TYPE STRING,
    G_FILENAME TYPE STRING,
    G_PATH TYPE STRING,
    G_FULLPATH TYPE STRING,
    G_TITLE TYPE STRING,
    G_LEN TYPE I.
    DATA: G_XSLTP TYPE REF TO CL_XSLT_PROCESSOR,
    G_IXML TYPE REF TO IF_IXML,
    G_STREAM_FACTORY TYPE REF TO IF_IXML_STREAM_FACTORY,
    G_ENCODING TYPE REF TO IF_IXML_ENCODING,
    RESSTR TYPE REF TO IF_IXML_OSTREAM,
    HTTP_CLIENT TYPE REF TO IF_HTTP_CLIENT,
    G_SRCSTR TYPE REF TO IF_IXML_ISTREAM,
    G_GEN_EX TYPE REF TO CX_XSLT_EXCEPTION,
    G_MESSAGE TYPE STRING,
    G_PROGNAME TYPE CXSLTDESC VALUE 'ID'.
    Work Area
    DATA: WA_XML TYPE TY_XML,
    WA_EKPO TYPE TY_EKPO,
    WA_EKPO1 TYPE TY_EKPO,
    WA_SOURCE TYPE ABAP_TRANS_SRCBIND.
    DATA: BEGIN OF WA_FINAL_XML,
    EBELN TYPE STRING,
    LIFNR TYPE STRING,
    EKGRP TYPE STRING,
    EKORG TYPE STRING,
    XMLSTRUCT TYPE TABLE OF TY_XML,
    END OF WA_FINAL_XML.
    INTERNAL TABLES
    DATA: T_XML TYPE TABLE OF TY_XML,
    T_FINAL_XML LIKE TABLE OF WA_FINAL_XML,
    T_EKPO TYPE TABLE OF TY_EKPO,
    T_SOURCE TYPE ABAP_TRANS_SRCBIND_TAB,
    T_SRCTAB TYPE TY_TSRCTAB.
    - - - - - - - - - - SELECTION-SCREEN - - - - - - - - - - - - - - *
    ---Select options/Parameters--
    SELECTION-SCREEN BEGIN OF BLOCK DOWNLOAD
    WITH FRAME TITLE TEXT-002.
    PARAMETERS: P_COMP TYPE CHAR1 AS CHECKBOX.
    PARAMETERS: P_FILE TYPE RLGRAP-FILENAME.
    SELECTION-SCREEN END OF BLOCK DOWNLOAD.
    AT SELECTION-SCREEN.
    IF NOT P_COMP IS INITIAL AND
    P_FILE IS INITIAL.
    MESSAGE E000(38) WITH 'Please enter the file name'(E01).
    ENDIF.
    IF NOT P_COMP IS INITIAL AND
    NOT P_FILE IS INITIAL.
    TRANSLATE P_FILE TO UPPER CASE.
    G_LEN = STRLEN( P_FILE ) - 4.
    IF P_FILE+G_LEN(4) NE '.XML'.
    MESSAGE E000(38) WITH 'Please use the extension as .XML'(E02).
    ENDIF.
    ENDIF.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE.
    G_TITLE = 'Result Document'(I01).
    CALL METHOD CL_GUI_FRONTEND_SERVICES=>FILE_SAVE_DIALOG
    EXPORTING
    WINDOW_TITLE = G_TITLE
    FILE_FILTER = '*.XML'
    CHANGING
    FILENAME = G_FILENAME
    PATH = G_PATH
    FULLPATH = G_FULLPATH.
    IF SY-SUBRC = 0.
    P_FILE = G_FULLPATH.
    ENDIF.
    - - - - - - - - - - LOGIC SECTION - - - - - - - - - - - - *
    START-OF-SELECTION.
    PERFORM CLEAR_VARIABLES.
    PERFORM START_SELECTION.
    END-OF-SELECTION.
    WA_FINAL_XML-XMLSTRUCT[] = T_XML[].
    APPEND WA_FINAL_XML TO T_FINAL_XML.
    PERFORM CREATE_XML.
    IF NOT P_COMP IS INITIAL.
    PERFORM DOWNLOAD_FILE.
    ENDIF.
    *& Form START_SELECTION
    Select all the Guids
    FORM START_SELECTION .
    SELECT HEBELN HLIFNR HEKORG HEKGRP
    IEBELP IMENGE INETPR IMATNR
    INTO CORRESPONDING FIELDS OF TABLE T_EKPO
    FROM EKKO AS H INNER JOIN EKPO AS I
    ON HEBELN = IEBELN.
    LOOP AT T_EKPO INTO WA_EKPO.
    WA_EKPO1 = WA_EKPO.
    AT NEW EBELN.
    REFRESH T_XML.
    CLEAR WA_XML.
    WA_FINAL_XML-EBELN = WA_EKPO-EBELN.
    WA_FINAL_XML-LIFNR = WA_EKPO1-LIFNR.
    WA_FINAL_XML-EKORG = WA_EKPO1-EKORG.
    WA_FINAL_XML-EKGRP = WA_EKPO1-EKGRP.
    ENDAT.
    MOVE-CORRESPONDING WA_EKPO TO WA_XML.
    APPEND WA_XML TO T_XML.
    AT END OF EBELN.
    WA_FINAL_XML-XMLSTRUCT[] = T_XML[].
    APPEND WA_FINAL_XML TO T_FINAL_XML.
    ENDAT.
    ENDLOOP.
    ENDFORM. " START_SELECTION
    *& Form CREATE_XML
    Create XML
    FORM CREATE_XML .
    Prepare for Transformation
    WA_SOURCE-NAME = 'D2CXML'.
    GET REFERENCE OF T_FINAL_XML INTO WA_SOURCE-VALUE.
    APPEND WA_SOURCE TO T_SOURCE.
    CLEAR G_XML_STRING.
    CALL TRANSFORMATION ZXSLT
    SOURCE (T_SOURCE)
    RESULT XML G_XML_STRING.
    IF SY-SUBRC <> 0.
    ELSE.
    G_XML_STRING1 = G_XML_STRING.
    REPLACE 'utf-16' WITH 'utf-8' INTO G_XML_STRING.
    ENDIF.
    ENDFORM. " CREATE_XML
    *& Form DOWNLOAD_FILE
    Download the XML into a file
    FORM DOWNLOAD_FILE .
    Local Data
    DATA: L_FILENAME TYPE STRING.
    TRY.
    CREATE OBJECT G_XSLTP.
    CATCH CX_XSLT_EXCEPTION.
    ENDTRY.
    G_IXML = CL_IXML=>CREATE( ).
    G_STREAM_FACTORY = G_IXML->CREATE_STREAM_FACTORY( ).
    G_SRCSTR = G_STREAM_FACTORY->CREATE_ISTREAM_CSTRING(
    STRING = G_XML_STRING1 ).
    XML source is specified by stream
    CALL METHOD G_XSLTP->SET_SOURCE_STREAM
    EXPORTING
    STREAM = G_SRCSTR.
    CALL METHOD G_XSLTP->SET_RESULT_TABLE
    EXPORTING
    TABLE = T_SRCTAB.
    RUN
    TRY.
    CALL METHOD G_XSLTP->RUN
    EXPORTING
    PROGNAME = G_PROGNAME.
    CATCH CX_XSLT_EXCEPTION INTO G_GEN_EX.
    G_XML_STRING = G_GEN_EX->GET_TEXT( ).
    ENDTRY.
    L_FILENAME = P_FILE.
    CALL FUNCTION 'GUI_DOWNLOAD'
    EXPORTING
    FILENAME = L_FILENAME
    FILETYPE = 'BIN'
    TABLES
    DATA_TAB = T_SRCTAB.
    IF SY-SUBRC = 0.
    G_MESSAGE = 'File downloaded successfully'(I03).
    ELSE.
    G_MESSAGE = 'Error in downloading file'(I04).
    ENDIF.
    MESSAGE I000(38) WITH G_MESSAGE.
    ENDFORM. " DOWNLOAD_FILE
    *& Form CLEAR_VARIABLES
    Clear the values of Global Variables
    FORM CLEAR_VARIABLES .
    CLEAR: G_TITLE,
    G_FILENAME,
    G_PATH,
    G_FULLPATH,
    G_LEN,
    G_SRCSTR,
    Work Areas
    WA_SOURCE,
    WA_XML,
    WA_FINAL_XML.
    REFRESH: T_XML,
    T_SOURCE,
    T_SRCTAB,
    T_FINAL_XML.
    ENDFORM. " CLEAR_VARIABLES
    Edited by: Minal Nampalliwar on Jan 21, 2008 6:44 AM

  • Regarding Conversion to date in OBIEE

    Hi
    I am pulling a date column from an as/400 source wherein I have two issues:
    1. The date is displayed 19761027.0 (1976 is the year,10 is the month and 27 is the date). The data type is Integer. I need to convert this to date and in the following format mm/dd/yyyy
    2. I need to add 26 to the year so that it shows the current year 2012.
    How can I achieve this in the RPD? Which conversion function should i choose?
    Vikram

    Vikram VV wrote:
    Hi
    I am pulling a date column from an as/400 source wherein I have two issues:
    1. The date is displayed 19761027.0 (1976 is the year,10 is the month and 27 is the date). The data type is Integer. I need to convert this to date and in the following format mm/dd/yyyy
    2. I need to add 26 to the year so that it shows the current year 2012.
    How can I achieve this in the RPD? Which conversion function should i choose?
    VikramCould you create a column where you would add the 260000 to the existing column and then join that on the date WID of the time dimension and retrieve the date from the Time dimension ? You could always use casting but this would give you better flexibility going forward if you ever needed anything from time dimension.

  • REGARDING CONVERSION OF SPOOL (XML FORMAT ) INTO READABLE FORMAT

    HELLO EVRYONE, I AM GETTING MY SMARTFORM OUTPUT IN XML FORMAT ON SPOOL, I WANT TO CHECK IT SO I NEED THAT XML OUTPUT IN TEXT FORMAT OR ANY OTHER READABLE FORMAT, PLEASE REPLY ME. ITS URGENT.
    THANKS & REGARDS,
    VIMARSH B.

    Hi Check this link..
    http://www.****************/Tutorials/Smartforms/OTF2PDF.htm
    IT contains the code to convert smartform output to PDF File
    Regards,
    Sai Ramesh

  • Regarding conversions

    Hello,
    "I wish to code the number conversion from decimal to binary. Conversion should be of any number which is with/without minus sign and with/without decimal part. Please guide me."

    triple post. check [already posted|http://forum.java.sun.com/thread.jspa?messageID=10242754] for answer

Maybe you are looking for

  • How do I use an extension to set a default font size and page zoom on web pages.

    every time I go to a site I have to zoom in 3 times. I saw an answer that said use an extension to fix the zoom so it would stay where I wanted it. It gave two extensions to use, but I don't know where or how to apply them.

  • Kindle does not show up as device when plugged in USB

    I was trying to transfer some files to my Kindle using the USB port. I have a Kindle 2, and a Rocketfish Micro USB cord. The Kindle does charge up so it is drawing power through the cord. But the Kindle does not show up as a device attached to my Mac

  • How can I delete a iCloud Mail backup

    I originaly setup iCloud backup to include Mail. it now takes up 14 GB in my iCloud. How can I delete the "Mail" backup from the iCloud and just retain the "Backup"

  • Convert YTD to Periodic

    Is the default view (i.e. Periodic, YTD) an application setting or is it a setting for each individual Scenario? We have an application where all of the scenarios have a default view of YTD. We would like to convert this to Periodic. I've found a set

  • IPod touch 4i last update

    iPod touch 4 last update