Urgent!!! How to use IN_PARAMETER in CONSTRUCT_BSP_URL method
Hi sdn,
Iam new to bsp.I created a application with 2 controllers and 2 views.i want to transfer the values from one controller to another controller by using the runtime->construct_bsp_url().
in that one parameter " in_parameter" is used to pass the values from another controller.but i don't know how to use that parameter.please give me sample example or give me syntax for that parameter.
thank you for advance.
Award the useful answer.
thanks,
Ramkumar
hI,
method DO_HANDLE_EVENT.
DATA: event1 TYPE REF TO CL_HTMLB_EVENT.
DATA: data TYPE REF TO CL_HTMLB_INPUTFIELD.
DATA: V_TARGET_URL TYPE STRING,
W_APP_NAME TYPE STRING.
event1 = CL_HTMLB_MANAGER=>get_event( runtime->server->request ).
if event1->name = 'button' and event1->event_type = 'click'.
data:button_event type ref to cl_htmlb_event_button.
button_event ?= event1.
if button_event->server_event = 'submit'.
data ?= CL_HTMLB_MANAGER=>GET_DATA( request = runtime->server->request
name = 'inputField'
id = 'ip1'
IF data IS NOT INITIAL.
input1 = data->value.
ENDIF.
data ?= CL_HTMLB_MANAGER=>GET_DATA( request = runtime->server->request
name = 'inputField'
id = 'ip2'
IF data IS NOT INITIAL.
input2 = data->value.
ENDIF.
DATA: lt_params TYPE tihttpnvp.
FIELD-SYMBOLS: GOTO_PAGE( V_TARGET_URL ).
endif.
endif.
endmethod.
THE ABOVE CODE I WROTE IN DO_HANDLER_EVENT() METHOD.I ACTIVATED AND TESTED.IN THE FIRST VIEW ASKING THE APPLICATION NAME AND CONTROLLER I GAVETHAT INPUTFIELDS BUT THE NEXT VIEW IN THE OTHER CONTROLLER NOT DISPLAYING.IT GEETING THE ERROR
BSP Exception: Das Objekt default.htm in der URL /sap/bc/bsp/sap/zehro_gr_fw_1/default.htm?input1=ZWFA_ESS04&input2=ZWFA_ESS04_01%2eDO&sap-sessioncmd=open ist nicht gültig.
Please resolve my issue.
Similar Messages
-
How to use two split this method in my code
How to use two split this method in my code
if i got one string line which like this
("aa!bb!cc~ab!bc!cd") a
nd want to use two split to spare ! and ~ this seal for my spare point how that output
has come diff ?
public static void main(String[] args) {
String str = "aa!bb!cc~ab!bc!cd";
String strs[]= str.split("~");
String strE[]= str.split("!");
int count =0;
for(int j=0; j < strs.length; j++){
for (int i = 0; i < strE.length; i++){
System.out.println(count + " " + strE);
count++;
the output how can it be like this
0 aa
0 bb
0 cc
1 ab
1 bc
1 cdMove your second slit inside the first loop, so you are splitting the substring, not the entire string.
-
This is my Name class:
class Name {
private String title;
private String name;
public Name(){
title=" ";
name=" ";
public Name(String title){
setTitle(title);
name=" ";
public Name(String title,String name){
setTitle(title);
setName(name);
public void setTitle(String title){
this.title=title;
public String getTitle(){
return title;
public void setName(String name){
this.name=name;
public String getName(){
return name;
} This is my Person Class
class Person extends Name{
private String address;
private String tel;
private String email;
public Person(){
super();
address=" ";
tel=" ";
email=" ";
public Person(String name){
super(name);
address=" ";
tel=" ";
email=" ";
public Person(String title,String name,String addressStr){
super(title,name);
setAddress(addressStr);
tel=" ";
email=" ";
public Person(String title,String name,String addressStr,String phoneNum){
super(title,name);
setAddress(addressStr);
setTel(phoneNum);
email=" ";
public Person(String title,String name,String addressStr,String phoneNum,String emailStr){
super(title,name);
setAddress(addressStr);
setTel(phoneNum);
setEmail(emailStr);
public void setAddress(String add){
address=add;
public String getAddress(){
return address;
public void setTel(String telephone){
tel=telephone;
public String getTel(){
return tel;
public void setEmail(String emailAdd){
email=emailAdd;
public String getEmail(){
return email;
public boolean equals(Person inputRecords){
boolean equalOrNot=false;
if(inputRecords.super(getTitle()).equals(title)) //this is wrong
if(inputRecords.super(getName()).equals(name)) //this is wrong
if(inputRecords.getAddress().equals(address))
if(inputRecords.getTel().equals(tel))
if(inputRecords.getEmail().equals(email))
equalOrNot=true;
return equalOrNot;
public void makeCopy(Person copyInto){
copyInto.super(setTitle(title)); //this is wrong
copyInto.super(setName(name)); //this is wrong
copyInto.setAddress(address);
copyInto.setTel(tel);
copyInto.setEmail(email);
}How can I correct the wrong part?
I don't understand how to use super in equals() method and makeCopy() method.Try something like this ...
public boolean equals(Object other) {
if (other==null || !(other instanceof Person)) return false;
Person that = (Person) other;
return getTitle().equals(that.getTitle())
&& getName().equals(that.getName())
&& getAddress().equals(that.getAddress())
&& getTel().equals(that.getTel())
&& getEmail().equals(that.getEmail())
Notes:
* This overrides Object's public boolean equals(Object other), which is (probably) what you meant.
* You don't need to call "super.getWhatever" explicitly... just call "getWhatever" and let java workout where it's defined... this is better because if you then override getTitle() for example you don't need to change your equals method (which you would otherwise probably forget to do, which would probably have some interesting side effects.
Cheers. Keith. -
Urgent : How to use pricing scale base type "G" in CRM?
Hi Gurus
We are facing a problem regarging scale base type G which is scale based on a formula in SAP ECC side. I one of our Z condition type wea re using scale base type G and using a formula 901 to calculate pricing in SAP R/3.
But scale base type "G" is not supported in CRM as the entry is not there in /SAPCND/T681VS and we could not find any ways to include it in CRM. We even tried by entering the entried in the table by debug method but then the records, specialy the supplement record, are not replicating correctly in CRM from ECC.
So for time being we changed the scale base type to C from G in ECC side.
Can you please guide me if there is any way to use scale base type G in CRM? Or what can be the way around to use scale based on formula in CRM ?
Is it possible to change the scale base type while the records are getting replicated to CRM?? But how will it work then.
This is very urgent.
An useful answer will be highly appreciated.Hello Singamshetty and Micheal,
We are facing exact same issue. Problem is that formula 901 does not get called in ECC with scale base type = 'c' in condition type ZSH1. Because of this, order and billing document in ECC have wrong condition value and then order document in CRM also gets wrong value once the billing document is saved.
This is highly critical issue as it's a big $ loss. Any expert, please suggest how to correct it?
Thanks
Sandeep -
How to use JFrame's setLayeredPane() method?
I want to custom JFrame's LayeredPane by setLayeredPane() method,but it does't work.
Anyone who can help me?
The code as follows:
import javax.swing.*;
import java.awt.*;
public class LayeredTest{
public static void main(String[] args){
SwingUtilities.invokeLater(new Runnable(){
public void run(){
new MyFrame().setVisible(true);
class MyFrame extends JFrame{
public MyFrame(){
super("LayeredTest");
setLayeredPane(new JLayeredPane()); //this line, I want to set the LayeredPane myself;
//but it doesn't work.
JPanel panel =new JPanel();
panel.setPreferredSize(new Dimension(320,240));
panel.add(new JLabel("Label"));
panel.add(new JButton("Button"));
add(panel);
setDefaultCloseOperation(EXIT_ON_CLOSE);
pack();
}Thanks!
But the very thing I want to know is "How to set Layered Pane(by setLayeredPane() method)",
not "How to use Layered Pane". -
How to use results of ejbfind methods when it is a collection ?
How to use ejbFind methods result , when it is a collection ?
Hi thank you for reading my post.
EJB find methods return a collection , i want to know how i can use that collection ?
should i use Collection.toArray() and then use that array by casting it?
what is DTOs and ho i can use them in this case?
How i can use the returned collection is a swing application as it is a colection of ejbs ?
Should i Cast it back to ejb class which it comes from or some other way ?
for example converting it to an array of DTO (in session bean) and return it to swing application ?
or there are some other ways ?
Thank youHi
pleas , some one answer
Collection collection = <home-interface>.<finderMethod>;
Iterator iter = collection.iterator();
while (iter.hasNext()) {
<remote-interface> entityEJB = (<remote-interface>) iter.next();
} what if i do the above job in session bean and convert the result to a DTO and pass the dto back ?
thank you -
How to use $controller.DateTimeUtils.DateGet method ?
Hi everyone,
Can someone tell me how to use the $controller.DateTimeUtils.DateGet method ? I would like to know whether a date is a saturday or sunday but I can't figure out how to use the method.
Thanks in advance
ChrisSee the JMX documentation.
http://java.sun.com/javase/6/docs/api/javax/management/modelmbean/ModelMBeanInfo.html -
Urgent: how to use cookies or session in javafx
Hi....
i am new to javafx and need help to learn how to use cookies and session in javafx.i want to create a simple website using javafx.....
Urgent reply is requested
mufaddalPlease correct me if I'm wrong: I think LiveConnect is not supported on IE, and Mozilla has plans to discontinue it.
Didn't an earlier version of JavaFX allow access to the Applet instance, including the AppletContext? Seems to me, just generally, that JavaFX applets are hobbled unless they have that functionality available. Cookies are one example. Also applet parameters, hyperlinks, and the browser status display.
Especially hyperlinks. -
Its urgent how to use calss file of jar located in lib folder
how to use calss file of jar located in lib folder.
i want to use RowSetDynaClass class which is in beanutil jar file which is in my lib folder .if i use that class in my jsp following error is coming.
Class RowSetDynaClass not found.
RowSetDynaClass resultSet = new RowSetDynaClass(rs, false);
how to access class in jar file.
please helpYou have to either refer to the class in its fully quallified name, or import it into the JSP:
<%
some.full.packagename.RowSetDynaClass resultSet = new some.full.packagename.RowSetDynaClass(rs,false);
...-or-
<%@ page import="some.full.packagename.RowSetDynaClass" %>
<%
RowSetDynaClass resultSet = new RowSetDynaClass(rs, false);
...As long as the class has public visibility and you have re-started the server/servlet context since you added the JAR. -
How to use FileOutputStream in a method??
Dear friend,
Now I want to write a program use java swing. I can get text from JPasswordField but I can't write the password in a document. I try to use FileOutputStream in a method with actionPerformed. But it seem no work. The problem is where should I put the 'throws IOException'? At the main or at the method?? Thank you very much.
Ah Siew.Hi!
You can write this methode in a
try
}catch(IOException)
or you write an throws IOException after the Methode.
Thats the Problem with to IOException
Now your other problem:
first: an JPasswordField is an javax.swing element.
You can get the String with the
String1 = PasswordFieldObject.getText(); Methode.
and than you can save it in an "Global" Var.
Greetings
F@b -
How to use the VBS MoveFolder methode in DIAdem without any error message?
Hi,
I want to move folders with the VBS MoveFolder methode, but in DIAdem I run in problems. When I use the following comman fso.MoveFolder(project_folder & test_folder, project_folder & test_folder & "\" & test_ & " " & test_count)
I get error message
"During call a sub routine no parentheses are allowed!"
When I remove the brackets and use fso.MoveFolder project_folder & test_folder, project_folder & test_folder & "\" & test_ & " " & test_count
I get the error message
"Invalid sub routine call."
How I have to use the command right?
(the text of error messages is free translated from German Version of DIAdem 11.0! Take only the sense, not the exact wording!)
Thanks for help.
Regards
SvenHello Sven!
Just add a 'Call' at the beginning of your first line will solve the syntatic error. I recommend always to use 'Call' and parenthesis.
But there is a fundamental problem in your code: MoveFolder moves a folder from a source to a new destination and the old source folder will be deleted. You try to move a folder to a location below the same folder. If the MoveFolder wouldn't recognize these situtation and throws an error all of your data would be deleted!
Just print out your paths in a Messagebox to clearify the situation.
Matthias
Matthias Alleweldt
Project Engineer / Projektingenieur
Twigeater? -
How to use JCoIDoc.JCoDocument.fromXML method
I want to restore an IDoc from XML string which is saved by method of IDoc.Document.toXML. But I can not find any api I can use. There is JCoIDoc.JCoDocument.fromXML method which can do this task. But I don't know how to get the instance of this class. Does anyone can give me some help?
Thanks,
JunSee the JMX documentation.
http://java.sun.com/javase/6/docs/api/javax/management/modelmbean/ModelMBeanInfo.html -
Please help on how to use variables inside a method call
Hello guys,
How's it goin?
Pardon me if you find my question silly, but I am relatively
new in ActionScript 2.0 programming.
I have here a simple problem. It seems I can't use a variable
inside a method call of an object. Here's the code. Please note of
the authParams string variable below.
import AkamaiConnection;
import mx.services.WebService;
var GeneratedToken:String;
var authParams:String;
// Create a Web Service object
var TokGenService:WebService = new WebService("
http://webservice.asmx?wsdl");
// Call the web service method
var myToken:Object = TokGenService.GenerateToken();
// Create an AkamaiConnection object
var connection:AkamaiConnection = new AkamaiConnection();
connection.addEventListener("onConnect", this);
connection.addEventListener("onError", this);
// If you get a result from the web service, save the result
in a variable
myToken.onResult = function(result)
// If you get a result from the web service, save the result
in a variable
myToken.onResult = function(result)
GeneratedToken = result;
authParams = GeneratedToken +
"&aifp=v001&slist=37414/test/Streaming/";
//Call the Connect method of the AkamaiConnection class
connection.connect("cp37414.edgefcs.net/ondemand",true,true,5,true,false,"443","rtmpt",
authParams);
But then, if I use a hard-coded string value in lieu of the
variable, the method call works!
connection.connect("cp37414.edgefcs.net/ondemand",true,true,5,true,false,"443","rtmpt",
"testStringvalue");
I don't know what I'm missing or what I'm doing wrong... Can
somebody help me please? I am using a 30-day trial version of Adobe
Flash CS3. Also, when I Trace output the variables, the values are
there. It just that they can't be read or recognize inside the
method call. Is this a ActionScript limitation?
Thanks so much in advance!The result param is a returned, “Decoded ActionScript
object version of the XML”. I am not exactly sure what that
means but I have had issues of returned XML values and their
datatype. When I did have these issues I had to cast or convert
into the desired datatype. Try one of the following, assuming the
problem is related to the code that you have bolded.
GeneratedToken = result.toString();
authParams = GeneratedToken +
"&aifp=v001&slist=37414/test/Streaming/";
Or
GeneratedToken = String(result);
authParams = GeneratedToken +
"&aifp=v001&slist=37414/test/Streaming/";
Or
GeneratedToken = result.toString();
authParams = String(GeneratedToken +
"&aifp=v001&slist=37414/test/Streaming/"); -
Hi all,
Can anyone tell me what is the use of findObject() method can i use it to find and replace actual pageItems.
ThanksThe ADF is used to automatically feed a number of pages for scanning, copying or faxing. Paper is loaded into the ADF with the printed side facing up. When you then copy (or scan or fax) the pages will be automatically pulled into the scanner mechanism one at a time and then deposited in the output tray.
Bob Headrick, HP Expert
I am not an employee of HP, I am a volunteer posting here on my own time.
If your problem is solved please click the "Accept as Solution" button ------------V
If my answer was helpful please click the "Thumbs Up" to say "Thank You"--V -
How to use Character.toUpperCase(c) method in below program?
Dear,
I have a source code as below. I want to ask how to convert all lower case letters in input file(farrago.txt) to upper case letters in the output file(outagain.txt)? Where the method Character.toUpperCase(c) adds into the code?
Please help!
import java.io.*;
public class Copy {
public static void main(String[] args) throws IOException {
File inputFile = new File("farrago.txt");
File outputFile = new File("outagain.txt");
FileReader in = new FileReader(inputFile);
FileWriter out = new FileWriter(outputFile);
int c;
while ((c = in.read()) != -1)
out.write(c);
in.close();
out.close();
}Sorry, i did not see that c is an int, so do it like this
while ((c = in.read()) != -1)
char C = Character.toUpperCase((char)c);
out.write(C);
}Noah
Maybe you are looking for
-
I use two desktops in OS-X. One is for FCPX (desktop 2) and one is for default things, browser, email etc. I have two screens, and my second screen is my viewer. When I am in FCPX, all is fine, viewer is on screen 2 as it should be but if I flip over
-
How do I fix this?
-
ive tried everything and nothing is working by the time i have wrote this 3 % of it is gone and its been 5 min, need help asap
-
Acrobat 7.0 activation problems
I just found my old version of Acrobat 7.0, and went ahead and installed it on my new Win7 system. The install actually went OK, but when I try to use the program, I get this pop up error message that says: "Activation requires that you have admin
-
Video Conferencing with IOS Homogeneous Video Conference Bridge
Dears, I have CUCM 8.6 and 3945 Cisco router with 2 x PVDM-256 I configured the IOS Homogeneous Video Conference Bridge. and I did the required configurations in the router. and I can see the conferencing bridge is registered. I put the conference br