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

Passing variable in Java to ABAP

We are working on a BSP application and ran in to an issue. Does anyone know how to pass a value of a variable in Java(HTML) to ABAP?

HTMLB does not support drop down boxes within a Tree Node, therefore we were forced to use standard HTML with the HTMLB Tree Node function as below:

<% wf_string1 = ' TR - CM Trans Cash Mgmt&nbsp <select id= "select1" name="select1">'.

loop at tab into wa_value.

clear wf_option.

concatenate: '<option value="' wa_value '">' wa_value '</option>' into wf_option.

concatenate wf_string2 wf_option into wf_string2.

endloop.

concatenate wf_string1 wf_string2 '</select>' into wf_text. %>

<htmlb:treeNode id = "Test"

text = "<%= wf_text %>"/>

</htmlb:treeNode>

</htmlb:tree>

<br>

We are then trying to get the value from the html <select> <option> in to ABAP and this is where we are having a problem figuring it out.

Any Help would be greatly appreciated.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Sep 27, 2005 at 01:43 PM

    You sure mean JavaScript, not Java.

    See your other thread for answer:

    Passing Java Script variables to ABAP

    By the way, please do not post the same questions in multiple forums.

    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.