HTML code to ABAP in WD for OCI

Hello All,
How can I convert the below code in ABAP. The example below is what needs to be generated by the catalog engine, after the user is done with picking items in his shopping basket. But, this code is in ITS in HTML format and I need to accomplish similar task in ABAP. Kindly let me know how can I do this in ABAP.
<HTML>
<HEAD>
SAP Open Catalog Interface: HTML - Example
<BODY bgcolor="#DED6C2">
<FORM action="<%=Request.QueryString("HOOK_URL")%>" method=post target=_top>
<input type="hidden" name="NEW_ITEM-VENDOR[1]" value = "1768">
<input type="hidden" name="NEW_ITEM-VENDORMAT[1]" value = "648570">
<input type="hidden" name="NEW_ITEM-MANUFACTCODE[1]" value = "4711">
<input type="hidden" name="NEW_ITEM-MANUFACTMAT[1]" value = "4712">
<input type="hidden" name="NEW_ITEM-EXT_QUOTE_ITEM[2]" value = "">
<input type="hidden" name="NEW_ITEM-EXT_PRODUCT_ID[2]" value = "">
<input type="submit" value="Transfer Items to B2B shopping basket" id=submit1 name=submit1><br>
</FORM>
</BODY>
</HTML>
Thks & Rgds,
Hemal
Edited by: Hemal Gandhi on Jan 11, 2010 7:27 PM

hi ,
u donot need to create this code in webdynpro
in ur WDA ( transaction SE80) , create a View
go to the layout tab , right click on the Root Element Container and choose insert element .
create the similar layout as u have for ur HTML
in ur Context tab , create a context node and as many context attributes under it as there are input fields
bind the Value property of ur Input field to the context attribute
now ur layout is created ..
now create a application for ur application , choose test , and ur layout wud be dispalyed in a browser
choose View->Source ,u can see  the similar HTML code
regards,
amit

Similar Messages

  • Display HTML code in WebDynpro for ABAP

    Hi, I would like to display a html page in a WebDynpro View, ie: I have the html code in a "string" variable and would now display this string now not with the html tags visible, but as a "real" html page.
    I found a thread in WebDynpro for ABAP but I am a little bit lost in converting the logic to ABAP world.
    Thanks

    >I found a thread in WebDynpro for ABAP but I am a little bit lost in converting the logic to ABAP world.
    I'm a little bit confused by this statement. Do you mean you found a thread in Web Dynpro Java, perhaps?
    Regardless the approach is possible using the iFrame UI.  The warning about the iFrame is that it is deprecated in NetWeaver 7.0 and 7.01 and my not be usable depending upon your support package level. However in NetWeaver 7.02 the iFrame returns to fully supported status.
    If you have the HTML content in a string, you can simply place it into the ICM cache.  This will provide a temporary URL for the content (you supply the lifetime of the URL) that can be referenced via the iFrame URL or even the LinkToURL if you want to open in a new window.
    Here is the code for placing the string into the ICM Cache:
    ****Create the cached response object that we will insert our content into
      data: cached_response type ref to if_http_response.
      create object cached_response
        type
          cl_http_response
        exporting
          add_c_msg        = 1.
      try. " ignore, if compression can not be switched on
          call method cached_response->set_compression
            exporting
              options = cached_response->co_compress_based_on_mime_type
            exceptions
              others  = 1.
        catch cx_root.
      endtry.
    ****set the data and the headers
      data: l_app_type type string.
          cached_response->set_cdata( lv_html_text ).
          l_app_type = 'text/html'.
    cached_response->set_header_field( name  = if_http_header_fields=>content_type
                                         value = l_app_type ).
      cached_response->set_status( code = 200 reason = 'OK' ).
      cached_response->server_cache_expire_rel( expires_rel = 60 ).
      data: guid type guid_32.
      call function 'GUID_CREATE'
        importing
          ev_guid_32 = guid.
      concatenate '/sap/public' '/' guid '.' 'html' into lv_iframe_url.
    ****Cache the URL
      cl_http_server=>server_cache_upload( url      = lv_iframe_url
                                           response = cached_response ).
      wd_context->get_element( )->set_attribute(
        name =  `IFRAME_URL`
        value = lv_iframe_url ).

  • Can i have html code for date select options (SEARCH HELP)

    Hi frinds,
    I have a BSP Page with input as date.
    Can i have html code for date select options (SEARCH HELP)
    Moosa

    Hi
    Please find the sample code below.
    FROM DATE
          <htmlb:inputField id        = "dd"
                            width     = "45%"
                            type      = "DATE"
                            showHelp  = "X" <- Search help
                            alignment = "CENTER"
                            maxlength = "10"
                            disabled  = "TRUE"
                            value     = "<%= w_FROMDATE %>" />
    TO DATE
          <htmlb:inputField id        = "dd"
                            width     = "45%"
                            type      = "DATE"
                            showHelp  = "X"
                            alignment = "CENTER"
                            maxlength = "10"
                            disabled  = "TRUE"                      
    value     = "<%= w_TODATE %>" />
    Thanks
    kalyan

  • RH Automatically Changing HTML Code for Links

    For some reason, RH is doing something to the links I create. In my stylesheet, I have the following code for links:
    a {
        color: #054abc;
        cursor: pointer;
    a:hover {
        color: #336699;
        text-decoration: none;
    a:active {
        color: #333333;
    When I create a link, the HTML code looks like this *at first*:
    <a href="Development_Plan.htm">Development Plan</a>
    But then, after I save the file and switch to HTML view, the code looks like this:
    <a href=" Development_Plan.htm" style="color: #0000ff; text-decoration: underline; ">Transcript</a>
    I am not doing anything other than saving the file, and that apparently causes RH to automatically add the style (color and text-decoration). Why is RH adding that? It's causing my links not to change color when you hover over them.
    How can I make RH stop doing that, so my links display as defined in the stylesheet?

    Hi,
    This is strange behaviour. How exactly do you create a hyperlink? I have seen this behaviour only with links that are empty or contain a single space.
    As a workaround, in your css, add the !important declaration to your hover styles:
    a:hover
    Although this isn't an elegant solution, it will overwrite the inline styling of the link and thus change colour on hover.
    Greet,
    Willam

  • Help with some html code for flash site!

    Got this site>
    http:/www.thedesignport.com
    Site works great! everything is uploaded! What I cant seem to
    get workning is the html code to add a description under the title
    of the website in a google search? Goto google enter "topanga
    mountain school" I'm top spot on the second page but with NO
    description?? have a look at the html code for
    http://www.thedesignport.com
    Have I gone wrong somewhere?? But I've found if you put
    "topanga mountain school pdf" into google ( I have three pdf's on
    the site) My site is Second on the search with a DESCRIPTION of the
    pdf's under the site name?? I dont get it?? Any help would be
    great!

    You're not getting any help here because this is the forum for discussions of the Community Help Client application and Help system in general. For CSS questions, you should probably try something like the Dreamweaver forum.

  • DreamWeaver HTML code is good for WordPress?

    Hello everyone! It's the first time I write in this Forum, but I've got a problem and I hope someone of you could help me...
    I've found some problems when I pasted my Dreamweaver generated HTML code in a WordPress page.
    I usually write in my WP Blog with no problem, but today I wanted to create some special <div>, so first of all I generated the page in DreamWeaver. Then I copied and pasted the code into the WP CMS (HTML view, of course). But the text was not formatted like in DW... I tried to modify the code in the WP CMS, but I couldn't do what expected.
    Anyone can help me?

    Thank you for your answers, martcol and bemdesign.
    I'll try to better explain my problems. First of all, sorry for my bad english: I hope you will understand anyway. Unfortunately I cancelled my previous HTML code. Here's what is on-line at the moment:
    <div class="postText">
                            <p><strong>Oggetto dell&#8217;analisi dimostrativa</strong><br />
    Tutto il materiale prodotto nel web in Francia e in lingua francese, nel  periodo 10 settembre-10 ottobre 2010. In particolare, sono stati  analizzati blog e forum, siti di news on-line, contenitori di foto e  video, social network come Facebook, Twitter e FriendFeed, Google e i  principali motori di ricerca.<strong> </strong></p>
    <p><strong>Obiettivi</strong><br />
    - Misurare il volume di discussioni nel web sul Salone dell&#8217;Automobile di Parigi 2010<br />
    - Individuare le case automobilistiche maggiormente citate<br />
    - Individuare i più citati, tra i nuovi modelli e concept presentati al Salone</p>
    <p><strong>Strumento utilizzato</strong><br />
    <a href="http://www.intesys.it/Buzz-Analysis/">WebMetrika</a>, il   il servizio di <strong>Blog &amp; Buzz Analysis</strong> di Intesys, che   offre alle aziende informazioni per valutare la  propria Web Brand Reputation, l&#8217;efficacia delle iniziative di marketing  attuate, l&#8217;opinione dei consumatori su prodotti e servizi.</p>
    <hr width="100%" color="#666666"></p>
    <p>Si sta svolgendo in questi giorni a Parigi il <strong>Mondial de l&#8217;Automobile </strong>2010: il più importante salone dell&#8217;automobile francese, che si svolge al Paris Expo Porte Versailles. Appuntamento blasonato a cadenza biennale, vanta più di un secolo di storia: la prima edizione risale al 1898.</p>
    et cetera et cetera
    I wanted to insert the first part of the page in a <div>: from "Oggetto dell&#8217;analisi dimostrativa..." to "...opinione dei consumatori su prodotti e servizi". In my head this <div> had to seem like a grey box with a red border: easy to make with DW! I did so, but when I copied it into WP, the text didn't appear as I've formatted it... What have changed? The <br> and the font dimension too...
    I couldnt think that creating a simple box would be so tough!

  • How to write HTML code in Web Template for selection screen

    Hello All,
    Is it possible to write a html code in the web template html tag so that the output of the html is displayed in the selection screen, i.e before the execution of query.
    I know that we can write html, which will be displayed once the query has been executed, but can it be done for selection screen.
    if so, how.
    My exact requirement is : to display a 2-3 lines of text in the selection criteria screen - sort of, various options available to user for entering values in the selection screen.  I was thinking of putting this text using HTML code in the selection screen.
    Regards,
    Nagendra.

    Hi Erick,
    No, unfortunately nobody replied to this thread. So i assumed it is not possible to modify the selection screen thru html code.
    Btw, as my requirement was to provide user with multiple answers on the selection screen. I did the validations on customer exit and popped an errror dialog when applicable.
    Regards,
    Nagendra.

  • ABAP Function Module for Output File Compression of HTML file

    We would to compress a HTML file that is created during a daily batch run so that it can be sent to the concerned users by email.
    THerefore we are looking for a Function Module and code that can do this for us.
    Please help.
    You can contact me at [email protected]
    Thanks.
    Suresh Rao

    We would to compress a HTML file that is created during a daily batch run so that it can be sent to the concerned users by email.
    THerefore we are looking for a Function Module and code that can do this for us.
    Please help.
    You can contact me at [email protected]
    Thanks.
    Suresh Rao

  • Html code for bc captcha

    Hi
    I want to add a captcha or image verfication to my contact form that I have used from the Muse widget library but I can't find the html code for this, what I can get is the html code for e-mail, captcha and submit? Can anyone help, thanks

    Thanks Liam. I am a newbie at all of this and decided to use the widget contact form in muse which has an image verification module but when I test it I get a message that it has to be supported business catalyst captcha module so thought there was a html code for it.
    Thanks for coming back to me so quickly

  • Possible for Acrobat XI to compile html code to create hyperlinks out of "regular" words?

    Hi,
    I've downloaded Acrobat 11, which I used to convert to pdf a Mac Word 2011 document that contains some html code like this:
    <a href="http://www.adobe.com">Adobe's website</a>
    I want the html code to be "compiled" and clickable so that when one clicks on the words "Adobe's website," one is connected to the website. 
    Is this possible to do in Acrobat XI?  I have dozens of such examples throughout my document, so I would prefer an automated method.  I did try to use the "Add or edit link" function in Tools, but that's not an automated method, and I was confused about how to properly use it, since it wanted me to draw a box.
    thanks for any advice you may have

    To make an Adobe quality PDF on a Mac
    Create document
    Save document in orginal format (as a backup file or if you need to do edits)
    Go to Print Menu
    Click on and hold down PDF Button (on the menu)
    when Context menu pops up choose Adobe PDF (or Adobe quality PDF depending upon OS)
    the first set of instructions set quaility of Document (works similar to Distiller). I usually use the setting that comes up which is High Quality.
    The second ite that comes up is name if with Word it will be formatted as Microsoft-Filename.docx.pdf you can rename as Filename.pdf
    after renaming, browse to desired save location
    Choose Save
    The file will Process. You can set open in Acrobat or Reader. I don't.
    You can in Word go to Save As.... and chose PDF
    or go to Print menu and click release real  the PDF button very fast.
    Both of these Options use Apple's PDF engine which has a ton of flaws.
    Using the Adobe Quality PDF option actually uses Acrobat's PDF engine not Apple's
    For this to work Acrobat must be installed. The components for this to work have been install since Mac version 8 of Acrobat. And work on Snow Leopard (OSX.6.8) and above.

  • HTML Code for Full Website and Not Mobile. Site

    A frustration with iPhone browsers is that they force you to view the mobile website, as oppose to the full website, if a mobile site exists. Unfortunately, the mobile sites often do not provide the services the full sites do.
    Is there HTML coding that can be added to a link to get the iPhone to the full site?

    The sites that are directing you to a mobile site is using HTML code to do so. What you really want is for those site to NOT have code redirecting you to a mobile site.
    Many mobile website have a link on their mobile site that takes you to the full site. A good website developer might have the site place a cookie in your Safari that tells their site you prefer to visit the full site. After tapping on that link, the next time you visit the site you will most likely not be directed to the mobile site.
    But whether or not a redirect happens is the Perdue of the website developer.
    Try an alternate browser. Some, like Atomic Web, have a settings area where you can select the type of browser you are using. I have mine set to Internet Explorer. atomic Web then fools the website into thinking I'm on a computer instead of a mobile device and I'm never directed to a mobile site.

  • Html code for quicktime audio stream

    I am looking for the html code to play mp3-audio files on a website. I used to write it with the <embed>-tag, but this does not work in modern browsers like firefox 8 or opera 11.5. Perhaps someone can help me. Thanks in advance.

    Your page code is telling my browser to look for the "wrong" plug-in.
    The page uses the wrong class ID and code for the QT plug-in.
    Your page uses a .mov file but uses a class ID of:
    clsid:166B1BCA-3F9C-11CF-8075-444553540000
    And a plug in download for Macromedia.
    A .mov file would use a class ID of:
    clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B
    and the plug-in download page should point the the QT download page:
    pluginspage="http://www.apple.com/quicktime/download/"
    More info on the links in the previous threads.
    You'll get it sorted out once you use the right code for the media.

  • Html-code for showing cover of current issue?

    Has anyone an example of a simple html-code for showing the latest issue?
    All I need is the adress to the image-file.

    There was a problem like that in the WYSIWYG before 7.0.2 as
    described in Using RH7 on my site. However, that was local and the
    patch fixed it.
    I had a completely different problem a while back but wonder
    if the solution might work. Speak to your web guys and suggest
    this.
    Add the AddDefaultCharset utf-8 directive to either the
    Apache config or the site .htaccess file
    It's a long shot. I don't know what other effects it might
    have on your server but the web guys should.

  • HTML code for region position 3

    Hi All,
    Can i get the HTML code for display point: Region position 3.
    My requirement is, i have to apply some background color to all the regions which are placed in region position 3.

    Chandran wrote:
    Hi All,
    When you have a problem you'll get a faster, more effective response by including as much relevant information as possible upfront. This should normally include:
    <li>Full APEX version
    <li>Full DB/version/edition/host OS
    <li>Web server architecture (EPG, OHS or APEX listener/host OS)
    <li>Browser(s) and version(s) used
    <li>Theme
    <li>Template(s)
    <li>Region/item type(s) (making particular distinction as to whether a "report" is a standard report, an interactive report, or in fact an "updateable report" (i.e. a tabular form)
    For layout and visual formatting issues the APEX version, browser, theme, page and region template, and region/item details are always required.
    Can i get the HTML code for display point: Region position 3.
    My requirement is, i have to apply some background color to all the regions which are placed in region position 3.Region position 3 is determined by the location of the substitution string<tt>#REGION_POSITION_03#</tt> substitution string in the page template. This will vary by version, theme and page template, which is information you have not provided.
    Regions located in region position 3 will probably have existing background colours determined by their region templates. Is the requirement to apply a background colour to individual regions, or a background colour underlying all of the regions?

  • Html code for embed wmv

    hi, i need to embed wmv files for a website and so far, the basic code i've placed have worked on ie and sometimes firefox (both pc platform) but unable to get the wmv to show in safari. i've read things about flip4mac and such but is there an html code that will allow the safari browser to play wmv? thanks.

    Hi,
    FormsCentral has Embed Form feature which enables you add a FormsCentral form to your web site. Please check out the first part of the document on how to embed a form into an html page: http://forums.adobe.com/docs/DOC-1991.
    Thanks,
    Wenlan

Maybe you are looking for

  • Transferring music from iPhone to MacBook Pro

    I  just bought a new macbook pro and went to transfer my music from my iPhone to the new iTunes, and only half transferred. The other half are in the iTunes music section but are not highlighted. Help?

  • IPad 4 wifi

    iOS 7.1.2 iPad 4 Wi-Fi no jailbreak I've noticed the following bug. When I'm on vk using the Safari browser, when I browse the website's newsfeed, either iOS reboots or Safari shuts down. I've noticed it happens only when I'm on vk, haven't checked w

  • Wrong datasources on DEV after client copy

    Hi all, a customer just made a cliente copy from PRD to DEV and now all data sources on DEV are pointing to PRD and it says that source system doesn't exist. 1) What was the right way to do the copy so the datasources are still pointing to R/3 DEV (o

  • Outbound Payload not displayed

    Hi All, I am unable to see the outbound payload in sxi_monitor. The parameters in sxmb_adm are RUNTIME     LOGGING_SYNC          1     0 RUNTIME     TRACE_LEVEL          3     1 Please let me know any more parameters need to be added? Thanks NPrabhu

  • Premiere Pro cc Export troubles

    Dear Sirs: I'm currently trying to export a  1h 20' long video that has taken me several months to compose. All the video clips were originally taken on a 29,97 fps basis and with the same Sony Handycam. On the Project Panel it reads correctly 29,97