Convert abap code to HTML

Hi Experts,
Can any body tell me, how to convert all abap codes in my SAP system to HTML format for creating backup, in one go.
Thanx
Rajiv Ranjan

HI,
I don't know if it wil be of any help. But you could always convert a ABAP report into a TXT file
DATA: I_LINES TYPE T_LINES OCCURS 1000.
DATA: BEGIN OF I_TEXT OCCURS 1000,
        TEXT(72).
DATA: END OF I_TEXT.
Read the source code into the internal table
  READ REPORT ABAP INTO I_TEXT.
  Loop over the source lines
    LOOP AT I_TEXT.
    Setup Transfer
      MOVE C_ID_SOURCE TO S_SOURCE-ID.
      MOVE I_TEXT-TEXT TO S_SOURCE-LINE.
    Fill up download file
       MOVE S_SOURCE-LINE TO WA_LINES.
      APPEND WA_LINES TO I_LINES.
    ENDLOOP.
  CALL FUNCTION 'WS_DOWNLOAD'
       EXPORTING
          BIN_FILESIZE        = ' '
          CODEPAGE            = ' '
            FILENAME            = FILENAME
            FILETYPE            = 'ASC'
            MODE                = ''
          WK1_N_FORMAT        = ' '
          WK1_N_SIZE          = ' '
          WK1_T_FORMAT        = ' '
          WK1_T_SIZE          = ' '
          COL_SELECT          = ' '
          COL_SELECTMASK      = ' '
       IMPORTING
            FILELENGTH          = W_FILE_LENGTH
       TABLES
            DATA_TAB            = I_LINES
       EXCEPTIONS
            FILE_OPEN_ERROR     = 1
            FILE_WRITE_ERROR    = 2
            INVALID_FILESIZE    = 3
            INVALID_TABLE_WIDTH = 4
            INVALID_TYPE        = 5
            NO_BATCH            = 6
            UNKNOWN_ERROR       = 7
            OTHERS              = 8.
Edited by: Jürgen Degraeve on Jan 15, 2008 3:52 PM
Edited by: Jürgen Degraeve on Jan 16, 2008 6:42 AM
Edited by: Jürgen Degraeve on Jan 16, 2008 6:49 AM

Similar Messages

  • Convert ABAP code to a flowchart

    Is there any tool that can Convert ABAP code to a flowchart? Please give  me the details like download link if there any.
    Please help

    Is there any tool that can Convert ABAP code to a flowchart? Please give  me the details like download link if there any.
    Please help

  • Convert ABAP code in start routine/update rule to transform. start routine

    Dear BW ABAPers,
    I have created a custom purchasing info cube (YCP_PURC1) based on 0CP_PURC1 standard cube. I would like to convert this new data flow to BI7 (from 3.x), and convert the standard update rule to transformation. I would need to rewrite the below start routine from the standard update rule to a start routine ABAP code in the newly created  transformation / start routine. My ABAP knowledge is limited. Will you please help?
    *this is the start routine from the update rule. As a side note, the data source is 2LIS_02_SCL.
    LOOP AT SOURCE_PACKAGE.
        IF (     SOURCE_PACKAGE-cppvlc  EQ 0
             AND SOURCE_PACKAGE-cppvoc  EQ 0
             AND SOURCE_PACKAGE-cpquaou EQ 0 ).
          DELETE SOURCE_PACKAGE.
          CONTINUE.
        ENDIF.
    no_scl is initial ( e.g. for good receipts, billing)
    value has to be set depending on storno
        IF SOURCE_PACKAGE-no_scl IS INITIAL.
          IF SOURCE_PACKAGE-storno = 'X'.
            SOURCE_PACKAGE-no_scl = -1.
          ELSE.
            SOURCE_PACKAGE-no_scl = 1.
          ENDIF.
          MODIFY SOURCE_PACKAGE.
        ENDIF.
      ENDLOOP.
    if abort is not equal zero, the update process will be canceled
      ABORT = 0.
    Many thanks and look forward to your kind feedback.
    Kind regards,
    Csaba

    Dear All, Durgesh,
    thanks to you all for your valuable input. Mainly the ABAP part was more interesting for me.
    Durgesh, thanks for your input, it was useful. I just had to change the info objects to data source fields and add the lines before the loop:
    DATA: I_PACKAGE TYPE TYT_SC_1.
        FIELD-SYMBOLS <i_package> TYPE tys_sc_1.
        I_PACKAGE[] = SOURCE_PACKAGE[].
        LOOP AT SOURCE_PACKAGE assigning <i_package>.
          IF ( <i_package>-BWGEO EQ 0
          AND <i_package>-BWGEOO EQ 0
          AND <i_package>-BWMNG EQ 0 ).
            DELETE SOURCE_PACKAGE index sy-tabix.
            CONTINUE.
          ENDIF.
    no_scl is initial ( e.g. for good receipts, billing)
    value has to be set depending on storno
          IF <i_package>-NOSCL IS INITIAL.
            IF <i_package>-ROCANCEL = 'X'.
              <i_package>-NOSCL = -1.
            ELSE.
              <i_package>-NOSCL = 1.
            ENDIF.
          ENDIF.
        ENDLOOP.
    Points have been assigned accordingly.
    Thanks,
    Csaba

  • Abap code in HTML Tag in Web Interface

    Hello,
    in a text tag im my web interface for a BPS a added the sap example code "How to Integrate BEx Web Applications into BPS Web Interfaces".
    Now I want to open a web template with a query containing the user and the date as filter object. this filter i want to fill already while creating the url.
    I inserted a command like <%sy-uname%>  but it doesn't get the users name. Do I miss a command to make abap available in this context, or do i have to use javascript. -> can someone give me a tip where i can find the javascript functions ?
    I add the coding below.
    Thanks for your help.
    Dieter
    <iframe id="BWReport03" name="BWQUERY" src="/sap/bw/mime/bex/icons/pixel.gif" width="1000" height="700"></iframe>
    <script language="JavaScript" type="text/javascript">
    function varValueConvert(dispValue){
    /* Expected formatting of variable selector: Text(Key) or Key
       If there are more than one (...) expression the first is taken.
      var keySection = dispValue.match(/(.*?)/);
      if (keySection){
        var keyValue = keySection[0].replace(/(|)/g,"");
        alert(dispValue + ' : ' + keySection + " : " +keyValue);
         return keyValue;
       } else {//alert(dispValue);
        return dispValue;
    var frame = document.getElementById( 'BWReport03' );
    var url = '/sap/bw/BEx?cmd=ldoc&TEMPLATE_ID=';
    var filter1 = '&FILTER_IOBJNM_1=ZIPBTCUSR&FILTER_COLLAPS_1=&FILTER_VALUE_EXT_1=';
    var filter2 = '&FILTER_IOBJNM_2=0CALDAY&FILTER_COLLAPS_2=';
    var filter2low  = '&FILTER_VALUE_LOW_EXT_2=';
    var filter2high = '&FILTER_VALUE_HIGH_EXT_2=';
    var appl = 'WZIPBTCLOG_S_LOG001';
    var varvl1 =<b> '<%=sy-uname%>';</b>
    var varvl2 = <b>'<%=sy-datum%>';</b>
    var varvl3 = <b>'<%=sy-datum - 7%>';</b>
    // create URL
    url = url + appl + filter1 + varvl1 + filter2 + filter2low + varvl2 + filter2high + varvl3;
    // remove possible white spaces
    url = url.replace(/ /,"");
    // set source attribute of iframe to new URL
    frame.src = url;
    </script>

    Hi,
    There's a disjoin here when we write the java script it's run at the front end and cannot read any standard SAP variables(unless you code for some kind of rfc call not sure). It can only read what's displayed on the web page. If you can somehow display the user id on the web page you will be able to read it back in the script. Regarding date that's a standard functionality in script
    please refer
    <a href="http://www.w3schools.com/js/js_obj_date.asp">Java script</a>
    hope this was helpful.
    thanks

  • Convert ABAP Report to HTML & Send External Email Attachment

    Hi,
    I have a requirement described as below. A report is scheduled to run in the background creates a spool, to be converted to HTML format and send to Third Parties (External Email ID's) via Email. Please let me know whether the requirement is not clear. Can you please suggest me a suitable SAP Solution for this requirement?
    Thanks,
    Kannan.SA

    Hi,
    See below simple report to convert the internal table data to a HTML format data and stores in a internal table and then pass that internal table as an attachment to the external email using function module SO_NEW_DOCUMENT_ATT_SEND_API1.
    You need for create a spool also.
    REPORT  Z_HTML                                                      .
    include <icon>.
    types: begin of msg,
             type      like icon-id,
             text(140) type c,
           end of msg.
    constants: gc_marked type c value 'X',
               gc_ok     like icon-id  value '@5B@'.
    data:
       gt_msg         type standard table of msg,
       gs_msg         like line of  gt_msg,
       gv_msg(138)    type c,
    *-- html
       html_container type ref to cl_gui_custom_container,
       html_control   type ref to cl_gui_html_viewer,
       my_row_header like w3head   occurs 10 with header line,
       my_fields     like w3fields occurs 10 with header line,
       my_header     like w3head,
       my_html       type standard table of w3html  ,
       ok_code       like sy-ucomm.
      Start of Selection                                              *
    start-of-selection.
        clear gv_msg.
        gv_msg = 'MESSAGES for HTML'.
        do 3 times.
          perform message using  gc_ok gv_msg .
        enddo.
      End of   Selection                                              *
    end-of-selection.
        set screen 0100.
    *&      Form  message
    form message using    p_type
                          p_text.
      clear gs_msg.
      gs_msg-type  = p_type.
      gs_msg-text  = p_text.
      append gs_msg to gt_msg.
    endform.                    " MESSAGE
    *&      Module  STATUS_0100  OUTPUT
    module status_0100 output.
      perform convert_itab_html.
      set titlebar '100' .
      set pf-status 'MAIN100'.
      create object html_container
          exporting
              container_name = 'CONTAINER'.
      create object html_control
           exporting
                parent    = html_container
                saphtmlp  = gc_marked      .
      data: assigned_url type url.
      call method html_control->load_data
    EXPORTING
       URL                  = url
       TYPE                 = 'text'
       SUBTYPE              = 'html'
       SIZE                 = 0
       ENCODING             =
       CHARSET              =
        importing
          assigned_url         = assigned_url
        changing
          data_table           = my_html
    EXCEPTIONS
       DP_INVALID_PARAMETER = 1
       DP_ERROR_GENERAL     = 2
       CNTL_ERROR           = 3
       others               = 4
      if sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
               WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      endif.
      call method html_control->show_url
        exporting
          url                    = assigned_url
       FRAME                  =
       IN_PLACE               = ' X'
    EXCEPTIONS
       CNTL_ERROR             = 1
       CNHT_ERROR_NOT_ALLOWED = 2
       CNHT_ERROR_PARAMETER   = 3
       DP_ERROR_GENERAL       = 4
       others                 = 5
      if sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
               WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      endif.
    endmodule.                 " STATUS_0100  OUTPUT
    *&      Module  exit  INPUT
    module exit input.
      leave program.
    endmodule.                 " exit  INPUT
    *&      Module  user_command_0100  INPUT
          text
    module user_command_0100 input.
      case ok_code.
        when 'EXIT' or 'BACK'.
          leave program.
        when others.
          call method cl_gui_cfw=>dispatch.
      endcase.
    endmodule.                 " user_command_0100  INPUT
    *&      Form  convert_itab_html
    form convert_itab_html.
      data: lv_tabix like sy-tabix.
    *-- table header
      call function 'WWW_ITAB_TO_HTML_HEADERS'
        exporting
          field_nr = 1
          text     = 'Type'
          fgcolor  = 'navy'
          bgcolor  = 'red'
          font     = 'Arial'
        tables
          header   = my_row_header.
      call function 'WWW_ITAB_TO_HTML_HEADERS'
        exporting
          field_nr = 2
          text     = 'Message'
          fgcolor  = 'navy'
          bgcolor  = 'red'
          font     = 'Arial'
        tables
          header   = my_row_header.
    *-- table rows
      clear lv_tabix.
      loop at gt_msg into gs_msg.
        lv_tabix = sy-tabix.
            call function 'WWW_ITAB_TO_HTML_LAYOUT'
              exporting
                field_nr = 1
                line_nr  = lv_tabix
                icon     = gc_marked
              tables
                fields   = my_fields.
            call function 'WWW_ITAB_TO_HTML_LAYOUT'
              exporting
                field_nr = 2
                line_nr  = lv_tabix
                fgcolor  = 'red'
                bgcolor  = 'black'
                font     = 'Arial'
                size     = '2'
              tables
                fields   = my_fields.
      endloop.
    *-- header
      move 'Messages during program run' to my_header-text.
      move 'Arial'                       to my_header-font.
      move '2'                           to my_header-size.
      move 'Centered'                    to my_header-just.
      move 'red'                         to my_header-bg_color.
      move 'blue'                        to my_header-fg_color.
      refresh my_html.
      call function 'WWW_ITAB_TO_HTML'
       exporting
         table_header = my_header
       all_fields   = ' '
        tables
          html         = my_html
          fields       = my_fields
          row_header   = my_row_header
          itable       = gt_msg.
    endform.                    "convert_itab_html

  • ABAP code needed to convert from 0calmonth2 & 0calyear to 0calmonth

    Hi SAP GURUS,
    Can anybody give me the ABAP code to convert from 0calmonth2 and 0calyear to 0calmonth.and please suggest me whether i have to write start routine or end routine in transformations.
    Thanks ALL.

    hi,
    in the transformation map 0calmonth2 and 0calyear to the 0calmonth field, and from drop down choose routine.
    there will be an area where it will be mentioned write your piece of code below this line.
    paste the below code:
    Concatenate source_fields-0calmonth2 source_fields-0calyear into result.
    also delete the line result = .
    save the routine and execute the package.
    regards,
    Arvind.

  • ABAP code in update rules to convert the date

    Hi,
    Could any one send me the ABAP code that is written in the update rules to convert the date (DD/MM/YYYY  -- lenght 10) to YYYYMMDD ---  length 8  format.
    Also please let me know where I should write this code; while creating update rules or while creating infosource.
    Thanks,

    Hi Bharath,
    Hi Bharath,
    I suggest you do the conversion of dates in the transfer rules. Here is the correct code you need:
    * Assuming the source data field is called MYDATE
    * Place the ff. in the routine in the transfer rules:
    concatenate tran_structure-mydate+6(4) tran_structure-mydate+3(2) tran_structure-mydate(2) into result.
    replace MYDATE with the name of the source field (10 chars) in the transfer structure. Hope this helps.

  • GRR2- 4FM-RepPaint(put ABAP code for convert data in field)

    Hi,
    If somebody know how possible add ABAP code for convert data in some column-field of report (by RepWriter,UserExit,BADI)?
    Thanks a lot.

    Elaborate your question. Not clear ??

  • How to translate an excel macro to ABAP code

    Hi Guys,
    My requirement is need to put the subtotaling option w.r.t divison when i download the file to an excel sheet via OLE.
    Iam able to get the records in the excel sheet but unable to write the macro in ABAP code.
    the macro which i recorded in Excel is
    Range("A1:C3").Select
    Selection.Subtotal GroupBy:=2, Function:=xlSum, TotalList:=Array(3), _
    Replace:=True, PageBreaks:=False, SummaryBelowData:=True
    how do i convert this into ABAP code .Pls help. Thanks...
    the data might be like
    NAME DIVISION AMOUNT
    ABC IT 400
    DEF BPO 500
    HTG IT 400

    Hi,
    You can run an excel macro like this
    CREATE OBJECT h_excel 'EXCEL.APPLICATION'.
    Call Method of h_excel 'WORKBOOKS' = h_mapl.
    set property of h_excel 'VISIBLE' = 0.
    Call Method of h_mapl 'OPEN'
    EXPORTING
    #1 = d_file.
    CALL METHOD OF H_EXCEL 'ActiveWorkbook' = h_book .
    CALL METHOD OF H_book 'Activesheet' = H_sheet .
    CALL METHOD OF h_excel 'RUN'
    EXPORTING
    #1 = ld_macro.
    Check the links below as well
    http://sample-code-abap.blogspot.com/2009/07/controlling-excel-using-ole-automation.html
    http://arthur_ong.tripod.com/xab017.htm

  • Error in ABAP code whield efining structures

    Hello,
    I am getting following error when I run ABAP code.
    Tables: ZROLE_OWNER, ZROLEMAP, AGR_1251, AGR_USERS.
    DATA: BEGIN OF I_ROLE occurs 0,
          ROLE LIKE ZROLE_OWNER-ROLE,
          END OF I_ROLE.
    DATA: BEGIN OF I_RATT occurs 0,
          ROLENAME LIKE AGR_1251-AGR_NAME,
          OBJECT LIKE AGR_1251-OBJECT,
          FIELD LIKE AGR_1251-FIELD,
          LOW LIKE AGR_1251-LOW,
          HIGH LIKE AGR_1251-HIGH,
          END OF I_RATT.
    DATA: WA_RATT LIKE I_RATT occurs 0.
    SELECT ROLE from ZROLE_OWNER into table I_ROLE
                where SFLAG = ''.
    LOOP AT I_ROLE.
    *This will append all the values for above condition in WA-RATT.
    SELECT AGR_NAME OBJECT FIELD LOW HIGH FROM AGR_1251
                 INTO TABLE WA_RATT
                 WHERE AGR_NAME = I_ROLE-ROLE.
    APPEND WA_RATT TO I_RATT.
    ENDLOOP.
    I am getting error that WA_RATT cannot be converted to line type I_RATT.

    hi,
    Tables: ZROLE_OWNER, ZROLEMAP, AGR_1251, AGR_USERS.
    DATA: BEGIN OF I_ROLE occurs 0,
    ROLE LIKE ZROLE_OWNER-ROLE,
    END OF I_ROLE.
    DATA: BEGIN OF I_RATT occurs 0,
    ROLENAME LIKE AGR_1251-AGR_NAME,
    OBJECT LIKE AGR_1251-OBJECT,
    FIELD LIKE AGR_1251-FIELD,
    LOW LIKE AGR_1251-LOW,
    HIGH LIKE AGR_1251-HIGH,
    END OF I_RATT.
    DATA: WA_RATT LIKE line of I_RATT .
    SELECT ROLE from ZROLE_OWNER into table I_ROLE
    where SFLAG = ''.
    LOOP AT I_ROLE.
    *This will append all the values for above condition in WA-RATT.
    SELECT AGR_NAME OBJECT FIELD LOW HIGH FROM AGR_1251
    INTO WA_RATT
       up to 1 rows
    WHERE AGR_NAME = I_ROLE-ROLE.
    endselect.
    APPEND WA_RATT TO I_RATT.
    ENDLOOP.
    Thanks,
    Rajinikanth.

  • SQL Command conversion in abap code

    Hi,
    I want to implement the UNION, INTERSECT and MINUS SQL commands in abap code. Please give me the appropriate solutions asap.
    For Example:
    select field1, field2, . field_n
    from tables
    <b>UNION</b>
    select field1, field2, . field_n
    from tables;
    select field1, field2, . field_n
    from tables
    <b>MINUS</b>
    select field1, field2, . field_n
    from tables;
    select field1, field2, . field_n
    from tables
    <b>INTERSECT</b>
    select field1, field2, . field_n
    from tables;
    Thanks,
    Ravi

    Hi Ravi
    Check out this procedure...
    DATA: FRANKFURT(4) TYPE X,
          FRISCO(4)    TYPE X,
          INTERSECT(4) TYPE X,
          UNION(4)     TYPE X,
          BIT          TYPE I.
    DATA: CARRID TYPE SPFLI-CARRID,
          CARRIER LIKE SORTED TABLE OF CARRID
                              WITH UNIQUE KEY TABLE LINE.
    DATA WA TYPE SPFLI.
    SELECT CARRID FROM SCARR INTO TABLE CARRIER.
    SELECT CARRID CITYFROM FROM SPFLI
                           INTO CORRESPONDING FIELDS OF WA.
      WRITE: / WA-CARRID, WA-CITYFROM.
      READ TABLE CARRIER FROM WA-CARRID TRANSPORTING NO FIELDS.
      CASE WA-CITYFROM.
        WHEN 'FRANKFURT'.
          SET BIT SY-TABIX OF FRANKFURT.
        WHEN 'SAN FRANCISCO'.
          SET BIT SY-TABIX OF FRISCO.
      ENDCASE.
    ENDSELECT.
    INTERSECT = FRANKFURT BIT-AND FRISCO.
    UNION     = FRANKFURT BIT-OR  FRISCO.
    SKIP.
    WRITE 'Airlines flying from Frankfurt and San Francisco:'.
    DO 32 TIMES.
      GET BIT SY-INDEX OF INTERSECT INTO BIT.
        IF BIT = 1.
          READ TABLE CARRIER INDEX SY-INDEX INTO CARRID.
          WRITE CARRID.
        ENDIF.
    ENDDO.
    SKIP.
    WRITE 'Airlines flying from Frankfurt or San Francisco:'.
    DO 32 TIMES.
      GET BIT SY-INDEX OF UNION INTO BIT.
        IF BIT = 1.
          READ TABLE CARRIER INDEX SY-INDEX INTO CARRID.
          WRITE CARRID.
        ENDIF.
    ENDDO.
    This produces the following output list:
    The program uses four hexadecimal fields with length 4 - FRANKFURT, FRISCO, INTERSECT, and UNION. Each of these fields can represent a set of up to 32 elements. The basic set is the set of all airlines from database table SCARR. Each bit of the corresponding bit sequences representes one airline. To provide an index, the external index table CARRIER is created and filled with the airline codes from table SCARR. It is then possible to identify an airline using the internal index of table CARRIER.
    In the SELECT loop for database table SPFLI, the corresponding bit for the airline is set either in the FRANKFURT field or the FRISCO field, depending on the departure city. The line number SY-TABIX is determined using a READ statement in which no fields are transported.
    The intersection and union of FRANKFURT and FRISCO are constructed using the bit operations BIT-AND and BIT-OR.
    The bits in INTERSECT and UNION are read one by one and evaluated in two DO loops. For each position in the fields with the value 1, a READ statement retrieves the airline code from the table CARRIER.
    Comparing Bit Sequences
    Use the following three operators to compare the bit sequence of the first operand with that of the second:
    <operator>
    Meaning
    O
    bits are one
    Z
    bits are zero
    M
    bits are mixed
    The second operand must have type X. The comparison takes place over the length of the second operand. The first operand is not converted to type X.
    The function of the operators is as follows:
    O (bits are one)
    The logical expression
    <f> O <hex>
    is true if the bit positions that are 1 in <hex>, are also 1 in <f>. In terms of set operations with bit sequences, this comparison is the same as finding out whether the set represented by <hex> is a subset of that represented by <f>.
    Z (bits are zero)
    The logical expression
    <f> Z <hex>
    is true if the bit positions that are 1 in <hex>, are 0 in <f>.
    M (bits are mixed)
    The logical expression
    <f> M <hex>
    is true if from the bit positions that are 1 in <hex>, at least one is 1 and one is 0 in <f>.
    Caution: The following programs are no longer supported in Unicode systems:
    REPORT demo_log_expr_bits .
    DATA: text(1) TYPE c VALUE 'C',
          hex(1) TYPE x,
          i TYPE i.
    hex = 0.
    DO 256 TIMES.
      i = hex.
      IF text O hex.
        WRITE: / hex, i.
      ENDIF.
      hex = hex + 1.
    ENDDO.
    The output is as follows:
    00          0
    01          1
    02          2
    03          3
    40         64
    41         65
    42         66
    43         67
    Here, the bit structure of the character 'C' is compared to all hexadecimal numbers HEX between '00' and 'FF' (255 in the decimal system), using the operator O. The decimal value of HEX is determined by using the automatic type conversion during the assignment of HEX to I. If the comparison is true, the hexadecimal number and its decimal value are displayed on the screen. The following table shows the bit sequences of the numbers:
    Thanks
    Ashok

  • How to convert word documents to html page in sharepoint online 2013

    Hi,
    I am new SharePoint and still learning it.
    I have been tasked to do the following on office 365 E3 SharePoint 2013 Online edition.
    1) I have to create a Web page in asp.net
    2) This page needs to show document from a given SharePoint folder and bind them in a grid or dropdown on the asp .net web page
    3) On selecting the document from the drop down or gird (on asp .net webpage), I need to show the SharePoint word document as HTML on the webpage (something like word to html) Note: These SharePoint word document may contain Images, bullets, tables etc. 
    What I have been able to do till now
    1) I have been able to connect to SharePoint from ASP .net application.
    2) I have been able to retrieve document from a specific SharePoint folder.
    3) Read the document from SharePoint folder and bind them to a drop down on the asp .net page.
    What is missing?
    I am not aware about any API that SharePoint Online provides to convert Word document to HTML. Any code sample or reference on how to will be much appreciated. 
    I am not also not sure what is the best way of achieving the functionality this?
    Thanks 
    Krishna

    If this was SharePoint server then it would be easy however in O365 You need to create a app which will use the word automation service and below is  powershell which you can use for the conversion:-
    # This script will convert Docx to PDF using word automation and similarly it can be used to convert to HTML
    $wordFile="http://contoso/kick.docx"
    $pdfFile="http://contoso/kick.pdf"
    $wasp = Get-SPServiceApplicationProxy | where { $_.TypeName -eq "Word Automation Services Proxy" }
    $site = Get-SPSite "http://contoso"
    $ConvertJob = New-Object Microsoft.Office.Word.Server.Conversions.SyncConverter($wasp)
    $ConvertJob.UserToken = $site.UserToken
    $ConvertJob.Settings.UpdateFields = $false
    $ConvertJob.Settings.OutputFormat = "PDF"
    $ConvertJob.Convert($wordFile, $pdfFile)

  • LOOKUP-Master Data Attribute (ABAP Code)

    Hi,
    My requirment
    ZCOMPANY is an attribute of ZCostcenter
    ZCost center is an attribute ZEMPLOYEE
    zcomp is an attribute of employee
    While Loading attribute data to employee i need to write Lookup/routine in transformations that will
    Based on ZCOSTCENTER data of an employee i has to read setup tables in BW and update ZCOMP of an employee(attribute) from ZCOMPANY  of ZCostcenter
    Please update me with the ABAP Code
    Thanks in advance

    Hi,
    This is the routine written in transformations.
    My requirment is to modify this a bit to include following conditions
    1)source_fields-costcenter
    (It needs to be converted to CAPS)(Bcaz ZCOSTCENTER consists all the caps)
    2)I want to include 'OBJVERS'='A' in the code
    Please update me with the code
    select /bic/zcompany from /bic/mzcostcenter
    into result
    where zcostcenter = source_fields-costcenter.
    end select.
    Thanks

  • ABAP Report as HTML

    Hello,
    we have a couple of ABAP reports that generate a traditional list (with WRITE) and now I have to convert the output as HTML and display it (perhaps) in a new window of the browser. I´m not sure if function WWW_LIST_TO_HTML can be very helpful for that purpose.
    Has any one experience in this field that can tell me a couple of tricks on how to do it the best way ?? The reports will be called from BSP pages, of course.
    Thanks a lot

    if your report dosent have parameters or you dont need to supply any parameter simply call the following url
    http://<wasserver>.xxx.com:<port>/sabp/bc/report?report=<your report>
    else follow the following link for details
    Re: Conversion ABAP Report to BSP Application
    Regards
    Raja

  • SQ01 DIsplay Problem (Can v write abap code ) Sql Query

    Hi
    Need help in SQL Query
    I generated one sql query which has the following output in general .
    Customer   name   description   amount
    asrq1  sharekhan      Amount payed      10
    asrq1  sharekhan     Amount Advance     20
    asrq1  sharekhan    Amount due             30
    but i need the output in the following way
    Customer  name  AMount payed     Amount  Advance                  Amount Due
    asrq1   sharekhan  10    20     30
    and iam new this sql query but came to know we can write code ..but iam unable to initiliaze to write
    a peace of code as i dont know what are the select-options defined ..i saw in the include but didnt got it
    % comes prefix of select-options,and iam unable to get he internal table which is displayed in the query .
    can anyone help me in this answers will be awarded points.

    First, I will suggest to go for ABAP report for this kinda requirement.
    If you really want to go for it through SQ01, even then you will have to write some ABAP to display the records in one row. You will need to create three custom fields.
    I will give Psudo for one field:
    Field Name := ZAmountPayed
    Select Amount_Payed into varAmountPayed from Table Where Emp# = '12345'
    ZAmountPayed := varAmountPayed
    Convert the above into relative ABAP code and create 2 more similar fields, and you should be all set.
    You have to know the table names and any other calculations to get the right data.

Maybe you are looking for