Skip to Content
author's profile photo Former Member
Former Member

IF_HTTP_CLIENT --> change stylesheet?

hello,

i use the interface IF_HTTP_CLIENT to get the sap system as a client.

i have modified the online example program:

http://help.sap.com/saphelp_me21sp2/helpdata/en/e5/4d3508c11411d4ad310000e83539c3/frameset.htm

Does anybody know which default stylesheet is used and is it possible to use a custom stylesheet?

best reagrds

Hans-Jürgen

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Sep 26, 2005 at 10:49 AM

    hello Raja,

    thank for the quick response.

    your are right i want to connect from one SAP System to another SAP system for GETTING data.

    I want to get the data from a BW-web-template, which consits of one table and a cutom stylesheet:

    <link href="/sap/bw/Mime/Customer/StyleSheets/ADZGBT_BWReports.css" type="text/css" rel="stylesheet"/>

    If i get the data with the method client->response->get_cdata( ) i will receive a html-coding which neither include that link to the stylesheet nor any styleclass at all. Further all style info is directly written into the html-tags. e.g.:

    <TD class="SAPBEXTbsTab" ...

    will result in something like:

    <TD style="bgcolor:blue; color:yellow" ...

    Therefore is it possible to tell the interface that i want to use a custom stylesheet - maybe like that way:

    CALL METHOD client->request->set_header_field

    EXPORTING

    name = '~custom_syle'

    value = '/path/to/my/stylesheet'.

    ?!?

    any ideas or workarounds?

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Durairaj Athavan Raja

      hello Raja,

      thank you for the quick answer. your recommended solution

      with the fm webquery works very fine! i have changed my coding and used the given link as a very good coding-template!

      Best Regards

      Hans-Jürgen

      Message was edited by: Hans-Juergen Kopperger

  • Posted on Sep 26, 2005 at 09:42 AM

    Hi Welcome to SDN.

    <i>i use the interface IF_HTTP_CLIENT to get the sap system as a client.</i>

    do you mean that from one SAP system using IF_HTTP_CLIENT you connected to another SAP system for passing/getting data.

    Where do you want style sheet in this context. can you explain a bit more about your requirement.

    Regards

    Raja

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.