SAP standard transaction output on web

Hi,
My client is developing  its own business portal,and they also wanted to display customer related data that have in  SAP .
All is done but for one specific requirement  they  need to publish SAP standard transation output as it is on web.Transaction is  FPL9 that displays  business partneru2019s payment details.  
So, I want to display FPL9 output on web(IBM WS),and we are on SAP 4.7.Also,we donu2019t have EP and all.
For IBM WS to SAP connectivity we are using JCO.
Regards,
Vijay Gupta

Hi,
We can convert internal table data into HTML . you can try with the following sample code.
REPORT  ytest_table_html1.
       D A T A   D E C L A R A T I O N
----*-HTML Table
DATA:
  t_html TYPE STANDARD TABLE OF w3html WITH HEADER LINE,
                                       " Html Table*- Declare Internal table and Fieldcatalog
  it_flight TYPE STANDARD TABLE OF sflight WITH HEADER LINE,
                                       " Flights Details
  it_fcat TYPE lvc_t_fcat WITH HEADER LINE.
                                       " Fieldcatalog
*-Variables
DATA:
  v_lines TYPE i,
  v_field(40).*-Fieldsymbols
FIELD-SYMBOLS: <fs> TYPE ANY.
       S T A R T - O F - S E L E C T I O N
START-OF-SELECTION.  SELECT *
    FROM sflight
    INTO TABLE it_flight
    UP TO 20 ROWS.
       E N D - O F - S E L E C T I O N
END-OF-SELECTION.*-Fill the Column headings and Properties
Field catalog is used to populate the Headings and Values of
The table cells dynamically
  CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
    EXPORTING
      i_structure_name       = 'SFLIGHT'
    CHANGING
      ct_fieldcat            = it_fcat[]
    EXCEPTIONS
      inconsistent_interface = 1
      program_error          = 2.  DELETE it_fcat WHERE fieldname = 'MANDT'.  t_html-line = '<html>'.
  APPEND t_html.
  CLEAR t_html.
  t_html-line = '<thead>'.
  APPEND t_html.
  CLEAR t_html.
  t_html-line = '<tr>'.
  APPEND t_html.
  CLEAR t_html.
  t_html-line = '<td><h1>Flights Details</h1></td>'.
  APPEND t_html.
  CLEAR t_html.
  t_html-line = '</tr>'.
  APPEND t_html.
  CLEAR t_html.
  t_html-line = '</thead>'.
  APPEND t_html.
  CLEAR t_html.  t_html-line = '<table border = "1">'.
  APPEND t_html.
  CLEAR t_html.  t_html-line = '<tr>'.
  APPEND t_html.
  CLEAR t_html.
*-Populate HTML columns from Filedcatalog
  LOOP AT it_fcat.    CONCATENATE '<th bgcolor = "green" fgcolor = "black">'
        it_fcat-scrtext_l
        '</th>' INTO t_html-line.
    APPEND t_html.
    CLEAR t_html.  ENDLOOP.  t_html-line = '</tr>'.
  APPEND t_html.
  CLEAR t_html.  DESCRIBE TABLE it_fcat LINES v_lines.
*-Populate HTML table from Internal table data
  LOOP AT it_flight.
    t_html-line = '<tr>'.
    APPEND t_html.
    CLEAR t_html.
*-Populate entire row of HTML table Dynamically
*-With the Help of Fieldcatalog.
    DO v_lines TIMES.      READ TABLE it_fcat INDEX sy-index.
      CONCATENATE 'IT_FLIGHT-' it_fcat-fieldname INTO v_field.      ASSIGN (v_field) TO <fs>.      t_html-line = '<td>'.
      APPEND t_html.
      CLEAR t_html.      t_html-line = <fs>.
      APPEND t_html.
      CLEAR t_html.      t_html-line = '</td>'.
      APPEND t_html.
      CLEAR t_html.      CLEAR v_field.
      UNASSIGN <fs>.    ENDDO.    t_html-line = '</tr>'.
    APPEND t_html.
    CLEAR t_html.
  ENDLOOP.
  t_html-line = '</table>'.
  APPEND t_html.
  CLEAR t_html.
*-Download  the HTML into frontend  CALL FUNCTION 'GUI_DOWNLOAD'
    EXPORTING
      filename                = 'C:\Flights.htm'
    TABLES
      data_tab                = t_html
    EXCEPTIONS
      file_write_error        = 1
      no_batch                = 2
      gui_refuse_filetransfer = 3
      invalid_type            = 4
      no_authority            = 5
      unknown_error           = 6
      header_not_allowed      = 7
      separator_not_allowed   = 8
      filesize_not_allowed    = 9
      header_too_long         = 10
      dp_error_create         = 11
      dp_error_send           = 12
      dp_error_write          = 13
      unknown_dp_error        = 14
      access_denied           = 15
      dp_out_of_memory        = 16
      disk_full               = 17
      dp_timeout              = 18
      file_not_found          = 19
      dataprovider_exception  = 20
      control_flush_error     = 21
      OTHERS                  = 22.  IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.*-Display the HTML file  CALL METHOD cl_gui_frontend_services=>execute
    EXPORTING
      document               = 'C:\Flights.htm'
      operation              = 'OPEN'
    EXCEPTIONS
      cntl_error             = 1
      error_no_gui           = 2
      bad_parameter          = 3
      file_not_found         = 4
      path_not_found         = 5
      file_extension_unknown = 6
      error_execute_failed   = 7
      synchronous_failed     = 8
      not_supported_by_gui   = 9
      OTHERS                 = 10.  IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.
Edited by: sairayachoti on Oct 4, 2010 3:18 PM
Edited by: sairayachoti on Oct 4, 2010 3:20 PM

Similar Messages

  • How to create an IDOC as an output type for an SAP standard transaction

    Hi ,
    How to create an outbound IDOC as an output type for an SAP standard transaction.
    Regards,
    Beena

    In NACE tcode u can create output type with medium as EDI,
    u can assign the entry sub routine as ENTRY_EDI in RNASTED

  • Docking container and SAP standard transaction

    Hello,
    in one screen I have a tree control container and a docking container. With the tree control container everything is perfect. If the user does a click on a node on the tree in the docking container there should be shown a SAP standard transaction (QA03) with the corresponding data.
    I have not found a possibility to show QA03 or QM03 in a docking container. I also tried it in a splitter container, but I do not know how.
    Can anybody help me?
    Greetings
    Corinna

    Hello Corinna
    There is a simple answer to your question: it is not possible.
    Container can only hold other containers or controls.
    Do not be fooled by the ABAP workbench where we apparently can switch between different transactions (e.g. display a class [SE24], show method coding [SE80], double-click on a DDIC structure [SE11]). The ABAP workbench simply changes the control to be displayed but NOT the transaction (remains always the same).
    Regards
      Uwe

  • Why most of SAP Standard transactions are written in function pools

    Hi Forum Experts,
    Why most of SAP Standard transactions are written in function pools instead of a normal module pool program? ( In the case of Standard tcode function pools, it is a collection of a large number of funciton modules, includes for forms used by function modules, and screens. Why is it so? ).
    Quick response will be appriciated.
    Thanks in advance.
    Regards,
    Harikrishna Indugu.

    because these functino pools contains so many function mudules and these function modules are used in other transactions also...
    thats why....
    reward points if useful....

  • SAP Standard Transactions are not  Available

    Hi all,
    I have one issue that we want to start our project system but some SAP Standard Transactions are not available when i check that Transaction its showing "DOES NOT EXIST". I have then Checked Program name of that same SAP Transaction code in SE38.. But there also it gives "program does not exist" .
    Path is :SAP Menu ->Information Systems ->Project system ->Financials -> Costs ->Plan-based ->By Cost Element ->---Few Tcodes in this
    I want to find out all Inactive Reports in Project System from Project Information system and then i want to make usefull that reports for client.
    but i dont know the reason why this is not available..?and How can be made these all available.
    Thanks.

    analyse table t800
    A.

  • SAP Standard reports Output in ALV

    Hi Folks,
    I have a report MKVZ which is showing the output in a LIST DISPLAY.Is there anyway that I can see this SAP Standard report output in ALV(not by Coding).
    Thanks,
    K.Kiran.

    No Dear you can't see this report in ALV, as this report is genrated in List view using write statements.
    what best you can do is, u can download the final internal table into excel file or
    you have to change by copying the proogram.
    reward if useful
    Amit Singla

  • Add a Button to SAP Standard Transaction by using userexit

    Hi All,
    How to add a Button to SAP Standard Transaction by using User Exits ?
    If any one is having step step   material on the same , please forward me.
    my id is : [email protected]
    Thanks in advance
    RK

    USER EXIT
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sapgenie.com/abap/code/abap26.htm
    http://www.sap-img.com/abap/what-is-user-exits.htm
    http://wiki.ittoolbox.com/index.php/HOWTO:Implement_a_screen_exit_to_a_standard_SAP_transaction
    http://www.easymarketplace.de/userexit.php
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sappoint.com/abap/userexit.pdfUser-Exit
    http://www.sap-img.com/ab038.htm
    http://help.sap.com/saphelp_46c/helpdata/en/64/72369adc56d11195100060b03c6b76/frameset.htm
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sap-img.com/abap/what-is-user-exits.htm
    http://expertanswercenter.techtarget.com/eac/knowledgebaseAnswer/0,295199,sid63_gci982756,00.html
    Rewards if useful.........
    Minal

  • SAP standard transactions for missing parts

    Hi!!! Friends,
    Is there any SAP standard transaction (s) or procedure (s) which will give the list of missing components/ parts per sales order, process order, stock transfer, projects, subcontracting apart from V_V2, CO24 & ME2O standard transactions?

    Hi ,
    As per me there is no other transaction. CO24 solves the purpose of missing part list view for projects more effectively.
    Rgds

  • Change in output format in SAP standard transaction.

    Please find attached files having Actual Format of RG 23 A Part II & SAP format of RG 23 A Part II by using T Code J2I5 & J2I6.
                    Kindly check at your end & arrange necessary changes as per actual format.
    HI All,
    Can we change the SAP standard output  view  that is in alv into some other view i.e merging two fields into one field and displaying fileds at diffrent location in alv.  I have a requirement with J2I5 TRRANSACTION . My client need the output from this transaction to be changed into different format.
    Do help.

    This Is not possible with Standard sap Tcode...
    By Z-Program You Can Do This.....
    Regards,
    Ajit
    Edited by: ajitabap on Oct 3, 2011 5:43 AM

  • How to get information from a text editor in the SAP standard transactions

    Hi SAP gurus I have a requirement in which it is required to gte the information from a text editor(which is not a field) in mm02 (click on) goto Purchase Order Text  in this view there is a text editor there is some text  in te the text editor i have to get that information in a table can it be done if so please give example and steps
    Points will be given to useful information

    Ah yes, excellent question, and not really a clear cut answer. In my experience, the easiest way to find this information is to simply create the text using the standard transaction, in this case MM02.  Then go to transaction SE16, using table STXH, do a query on this table, entering your user name, and today's date as the creation date.  The results should show the text that you just created, now you can see the object, id, and the way the name is being used here. 
    I also understand that in some cases, there is a button next to the editor in the screen which gives you some idea of these values, but this is not implemented everywhere, and I believe that I've only seen this in one place, can't remember where, but the first solution above will always work for you.
    Regards,
    Rich Heilman

  • How to add custom authorization object to a SAP standard transaction

    Hi All,
    I have a standard tcode IW22 (change PM Notification) and I would lock changing when some users modify the field Functional Location (field TPLNR).
    Since this field does not have an authorization object associated, I've tried to solve this problem with the following steps:
    - tcode SU20 - creation of new authorization field TPLNR with data element TPLNR
    - tcode SU21 - creation of  a new auth object in transaction SU21 with name ZPM and field (TPLNR, ACTVT and TCOD)
    - tcode SU24 - insert of new authorization field e check indicator (green)
    - tcode SU22 - check indicator - check (green)
    After this we have created a new role with PFCG and add transaction IW22; the new auth.ZPM was added manually.
    We have try to analyze log (ST01 trace) but it seems no check was made in the trace file.
    It seems new authorization object was not checked.
    My question is: "Is it possible to add a custom authorization object into standard transaction and implementing authorization check without writing abap code in exit or badi ?"
    Thanks
    Maurizio

    > My question is: "Is it possible to add a custom authorization object into standard transaction and implementing authorization check without writing abap code in exit or badi ?"
    >
    No .. not possible. The list of Auth. objects SAP proposed in SU24 for each Stnd. SAP TCodes are basically documentation of the Authority-Checks in the program for that TCode. The extra advantage of SU24 is to set the object status (means the proposal for availability in PFCG) among any of the four check indicators. So that we can provide our own value (customer specific values which are basically defined and separate from sap provided values) and reinforce the authorization concept of the organization.
    So you need to provide a Authority-Check for ZPM in the program of IW22 to make sure that the fields you want to be checked are really being checked during execution of the tcode.
    Regards,
    Dipanjan

  • How to increase the input filed length in a sap standard transaction

    Hi All,
    Below is my user's requirement.
    Tcode->FS00-->f4 help for GL account number --> in this pop-up go to the tab G/L Account description in company code
    Here the input field G/L Long text allows 25 chars as input where as user want it to increase till 50 chars.
    Actually this input field G/L Long text  is refering the sap standard database view GL_ACCT_CC_TEXT (Field: MCODF of length 25)
    Is it possible to increase to search to 50 chars, if so how to do the same.
    --Rose.

    Well documented, please have a look:
    http://help.sap.com/saphelp_nw04s/helpdata/en/1f/29ef5777df11d2959800a0c929b3c3/frameset.htm
    The collective search help to be extended is SAKO.
    Thomas

  • Change SAP Standard Transaction

    I need to call one standard Tcode in Portal. That Tcode is having four Tabstrip. Requirement is each tabstrip showed in different pages also only few fields should be shown. Can you help me in this? Can I do only using Web dynpro and Portal? Is it necessary to use ITS and/or BSP?

    Hi,
    do you mean that you intend to build the transaction as an iView? Then you could, of course, integrate it into Web Dynpro ABAP, see http://help.sap.com/saphelp_nw2004s/helpdata/en/27/96b9c8f14e7d498b90a674710dc9c2/frameset.htm
    Regards, Heidi

  • Use SAP Standard transaction with multi-language

    Hi,
    we have some problems to use standard SAP transaction (like S_ALR_87012082 transaction) the standard Vendor balance, with vendor Master Data.
    I explain, we have some vendors with french, english names (writing in French, English words) in LFA1-NAME field. But in the same times, the Russian accounting requirements are to write all in Cyrillics
    caracters and the name too, on paper and transactions.
    So how we can do to edit vendor in French for french users, in English for English user and Cyrillic for Russian users ?
    We try to create an International versions in 'R' (cyrillic version), but we have the same result. It's normal, because the program select LFA1-NAME field.
    So, we have to find one solution quickly for the next accounting closing.
    Thank's for your help.
    Best regards,
    Gilles DANJOU

    Surendra,
    Which transaction is this and is the change inside an FM ?
    K.Kiran.

  • Standard Screen Element Changes with ECC6.0 in SAP Standard Transactions

    Hi,
    We have upgraded our system from 4.7 to ECC6.0. I need documentation on all GUI changes with ECC6.0 for all SAP transactions/modules.
    I mean, for example, if Sales Order creation screen (transaction code VA01) in 4.7 have say... 12 tabs, then if it has 13 tabs (standard features I am talking) in ECC6.0. I want these kind of additional chnages done to screens like.. adding new menus in menu bar or buttons on tool bar etc.
    As we need to educate our users for all the screen related standard chages by SAP because of upgrade.
    Thx in advance,
    Nagesh

    Ofcouse Nishanth, u need to code in PBO and PAI event.
    PAI   -> To read the User input and for doing validations or some thing as per ur requirement
    Hope this helps,
    Shiva kankanala

Maybe you are looking for