How to send query parameters using BIApplicationFrame
HI,
I am working on integration of BEx WebTemplate in webdynpro view.
I am using BIApplicationFrame ui element for this.
I set the template id in template property of BIApplicationFrame.
I have to execute a query of this template.
So i selected the option 'query' of dataProviderStateType property.
<b>How to send the query parameters to that query.</b>
I did not find any help ( Example tutorial ) for BIApplicationFrame UI element in SDN.
Please anybody help me out.
Hi Charan
I tried to add the costume parameter in BIApplicationFrame same method that you mentioned. But the result is not coming.
I am trying to pass the input variable for the query.
My url is:
http://<host>:<port>/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.sap.pct!2fplatform_add_ons!2fcom.sap.ip.bi!2fiViews!2fcom.sap.ip.bi.bex?TEMPLATE=BTMP_20100929_054852&DUMMY=8&debug=x&BI_COMMAND=&BI_COMMAND-BI_COMMAND_TYPE=SET_SELECTION_STATE&BI_COMMAND-CHARACTERISTICS_SELECTIONS=&BI_COMMAND-CHARACTERISTICS_SELECTIONS-CHARACTERISTIC_SELECTIONS_1=&BI_COMMAND-CHARACTERISTICS_SELECTIONS-CHARACTERISTIC_SELECTIONS_1-CHARACTERISTIC=ZCUSTOM1&BI_COMMAND-CHARACTERISTICS_SELECTIONS-CHARACTERISTIC_SELECTIONS_1-SELECTIONS=&BI_COMMAND-CHARACTERISTICS_SELECTIONS-CHARACTERISTIC_SELECTIONS_1-SELECTIONS-SELECTION_1=SELECTION_INPUT_STRING&BI_COMMAND-CHARACTERISTICS_SELECTIONS-CHARACTERISTIC_SELECTIONS_1-SELECTIONS-SELECTION_1-SELECTION_INPUT_STRING=C07&BI_COMMAND-TARGET_DATA_PROVIDER_REF_LIST-TARGET_DATA_PROVIDER_REF=DP_1&REQUEST_ID=11
If I execute the url directly the out put is coming perfectly after filtering and if I pass the parameter by adding code in wddomodifyview method the filters not working.
My webdynpro code given below:
mapParams.put("BI_COMMAND=&BI_COMMAND-TARGET_DATA_PROVIDER_REF_LIST-TARGET_DATA_PROVIDER_REF=DP_1&BI_COMMAND-BI_COMMAND_TYPE=SET_SELECTION_STATE&BI_COMMAND-CHARACTERISTICS_SELECTIONS=&BI_COMMAND-CHARACTERISTICS_SELECTIONS-CHARACTERISTIC_SELECTIONS_1=&BI_COMMAND-CHARACTERISTICS_SELECTIONS-CHARACTERISTIC_SELECTIONS_1-CHARACTERISTIC=ZCUSTOM1&BI_COMMAND-CHARACTERISTICS_SELECTIONS-CHARACTERISTIC_SELECTIONS_1-SELECTIONS=&BI_COMMAND-CHARACTERISTICS_SELECTIONS-CHARACTERISTIC_SELECTIONS_1-SELECTIONS-SELECTION_1=SELECTION_INPUT_STRING&BI_COMMAND-CHARACTERISTICS_SELECTIONS-CHARACTERISTIC_SELECTIONS_1-SELECTIONS-SELECTION_1-SELECTION_INPUT_STRING","C05");
Appreciate if you can help me on this.
Sajith
Similar Messages
-
How to send query parameters using BIApplicationFrame in WD Java
HI,
I am working on integration of BEx WebTemplate in webdynpro view.
I am using BIApplicationFrame ui element for this.
I set the template id in template property of BIApplicationFrame.
I have to execute a query of this template.
So i selected the option 'query' of dataProviderStateType property.
How to send the query parameters to that query.
I am setting the fowlloing values in BIApplicationFrame
dataProviderStateName: BEx Query Name
dataProviderStateType: query
server: server url
server type: java
templateid: BEx template id.
The query screen is opening ..But no data.
I have to pass the following two parameters to that query:
BI_COMMAND_1-I_COMMAND_TYPE=SET_VARIABLES_STATE&BI_COMMAND_1-VARIABLE_VALUES-VARIABLE_VALUE_1-VARIABLE=ZVARCUST01&BI_COMMAND_1-VARIABLE_VALUES-VARIABLE_VALUE_1-VARIABLE_TYPE=VARIABLE_INPUT_STRING&BI_COMMAND_1-VARIABLE_VALUES-VARIABLE_VALUE_1-VARIABLE_TYPE-VARIABLE_INPUT_STRING=0500000003
&BI_COMMAND_2-BI_COMMAND_TYPE=SET_VARIABLES_STATE&BI_COMMAND_2-VARIABLE_VALUES-VARIABLE_VALUE_1-VARIABLE=0I_CMNTH&BI_COMMAND_2-VARIABLE_VALUES-VARIABLE_VALUE_1-VARIABLE_TYPE=VARIABLE_INPUT_STRING&BI_COMMAND_2-VARIABLE_VALUES-VARIABLE_VALUE_1-VARIABLE_TYPE-VARIABLE_INPUT_STRING=01/2000-12/2002
How to send these two query parameters using BIApplicationFrame.
I did not find any help ( Example tutorial ) for BIApplicationFrame UI element in SDN.
Please help me.My problem solved. I used the following code in wdModifyView() method.
Map parameters=new HashMap();
parameters.put("BI_COMMAND_1-BI_COMMAND_TYPE=SET_VARIABLES_STATE&BI_COMMAND_1-VARIABLE_VALUES-VARIABLE_VALUE_1-VARIABLE=ZVARCUST01&BI_COMMAND_1-VARIABLE_VALUES-VARIABLE_VALUE_1-VARIABLE_TYPE=VARIABLE_INPUT_STRING&BI_COMMAND_1-VARIABLE_VALUES-VARIABLE_VALUE_1-VARIABLE_TYPE-VARIABLE_INPUT_STRING","0500000003");
parameters.put("BI_COMMAND_2-BI_COMMAND_TYPE=SET_VARIABLES_STATE&BI_COMMAND_2-VARIABLE_VALUES-VARIABLE_VALUE_1-VARIABLE=0I_CMNTH&BI_COMMAND_2-VARIABLE_VALUES-VARIABLE_VALUE_1-VARIABLE_TYPE=VARIABLE_INPUT_STRING&BI_COMMAND_2-VARIABLE_VALUES-VARIABLE_VALUE_1-VARIABLE_TYPE-VARIABLE_INPUT_STRING","01/2000-12/2002");
WDBIMethods.addCustomParameters(wdThis.wdGetAPI(),"BIApplicationFrame",parameters); -
How to set query parameters to i5Grid
Hello Everyone,
I am working on creating i5Charts.
I mapped query template and display template to i5Chart template but I need to pass the query parameters dynamically.
How to set query parameters to i5Grid?
Pls help with syntax.
Thanks.
Regards,
MinakshiHi Minakshi,
Yes you can try the first 2 options listed by Rohit, the 3rd one however is not supported.
The below syntax should work for you:
1. gridObject.getQueryObject().setRowCount(<Value>);
2. gridObject.getQueryObject().setParameter("RowCount", <Value>);
You can check the documentation at the following link:
http|s://<host>:<port>/XMII/JSDOC/i5ChartAllClasses.html
You could also use the script assistant to check for the JS methods.
Regards,
Ria -
How to send meeting invites using Exchange Email Account
Does anybody know how to send meeting invitations using the 3.0 software update?
My corporate email is set up with an Exchange ActiveSync account, but I can't figure out how to send meeting invites?
Is it a function solely of the iPhone 3.0 OS, or is it dependent on the Exchange setup.
Any insight would be appreciated.
DavidThat is what I was afraid of...the good thing is that is the only feature (besides battery life) that I miss from my Blackberry. Thanks.
-
How to send secure email using JavaMail
Hi, anyone out there know how to send secure email using Java Mail? Greately appreciated.
For starters, if you have not already done so, read about it in the JavaMail design specifications.
Search for Message Security in the said document. -
How to send CC email using SO_DOCUMENT_SEND_API1
Hi,
How to send CC email using SO_DOCUMENT_SEND_API1. Any sample code is very much appreciated.
CheersPlease check In this function there is a flag in RECEIVERS table for sending mail as COPY or BLIND COPY
a® -
How to send sms,Email using java
how to send sms,Email using java
Hi,
There are many sms gateways that have their own api to send sms. You can use them for sms. (They will charge you for the sms!!!)
Moderator edit: Link removed
Thanks
Edited by: PhHein on 20.10.2010 16:11 -
How to send an email using XML Publisher
Can any body help me how to send an email using XML Publisher.
Regards,
SureshSorry ,
when a http://blogs.oracle.com/xmlpublisher/newsItems/departments/documentDelivery
this it show this not answer the question.
Thanks
Welcome to Oracle Blogs
Welcome to the Oracle blogging community, where Oracle executives, employees, and non-employees exchange views about customer requirements and best practices.
We're sorry, the weblog you requested cannot be accessed.
- You may not have the necessary permission for access the weblog.
- This weblog does not exist.
You may wish to try again using one of the tools below.
- Check the URL and contact your System Administrator for access.
- Or click here to go back to Oracle Blogs homepage.
Powered by
Movable Type and Oracle
The views expressed on this blog are my own and do not necessarily reflect the views of Oracle. Terms of Use -
How to send picture message using J2ME sms APIs?
Hi,
I experiment with SMS APIs, i successfully send simple text message. now i want to send picture message, how to send picture message using J2ME APIs.
please guide me.
guna.I experienced in coding sending and receiving sms in J2ME. Besides, I also esperienced in coding reading a binary file in a applicaition jar. But I never done these both together. Hence Im not sure it works or not. Below is the example to open and read a binary file:
InputStream oInputStream = getClass().getResourceAsStream( "/picture.png" );
if(oInputStream == null) {
//File does not exist;
throw new Exception("File not found");
//Read the binary file and copy it to a byte array
byte[] abyPicture = new byte[oInputStream.available()];
oInputStream.read(abyPicture ); -
How to schedule Query Extracts using RSCRM_BAPI
Hi,
Can you give me the link to the document How to schedule Query Extracts using RSCRM_BAPI . I do not have userid password to view the same.
Thanks for the help.Hi,
this is the link for the document..
https://websmp205.sap-ag.de/~form/sapnet?_FRAME=CONTAINER&_OBJECT=011000358700004400232004E
thnks. -
Need help : how to send 3 parameters over http using Java POST
I am trying to sending some data to agency company over http using Java POST
They need 3 parameters and some contents like below
1. Cmd : cmd=_RequestInsertNewLead
2 Live : False
3 XMLData : 3C%3Fxml+version%3D%........
I already have XML done ,but I don't know how to send these guy over http
is that like
this.out = new DataOutputStream(os);
out.writeBytes("Cmd");
out.writeBytes(" cmd=_RequestInsertNewLead");
out.writeBytes(" Live ");
out.writeBytes("False");
anyone could give help :)First of all, are you getting any exception?
You didn't put much logging information in your code.
You can also try this.Instead of doing sos.println(".....") try to build the output string using string buffer.
Like:
StringBuffer sb = new StringBuffer();
sb.append("Some output");
sb.append("More output");
sos.print(sb.toString());
sos.flush();Let me know if this works. -
How to find out sender query by using receiver query in RRI
Hi,
I have do some assignment settings .I know receiver query name ,but i don't know sender query name .
please suggest me how to find out sender query name .
is there any table /t-code ?
Thanks,
EDK.....Hello,
If the receiver query is web report, then goto table RSBBSQUERY and in RONAM field put the web report name.
You will get the sender query UID in the field ELTUID.
Now take this UID and goto table RSRREPDIR and put this UID in COMPUID and you will get the query name.
If the reciever query is bex query then get the UUID as above from RSRREPDIR by providin the tech name and then go to table RSBBSQUERY to get the UID of the sender query.
Regards
Shashank -
How to send query string to OSB Business Service?
Hi
I need to call a Servlet which is accepting http get request.
My system design is
I have a web service interface that I need to expose to Front end application. I am using Proxy service for this.
Then I have a servlet at end system and using Business service to send request to servlet.
I need to pass username, password, jndi context and payload using url encoding.
What all steps do I need to follow for this? How to create query string , which variable I need to play with inbound or outbound?
I have gone through all the answers on this forum but could not understand much.
Thanks
VibhorHii
I am still unable to send http get request to end service.
In flow I have setted $outbound/transport/request-http/query-string too.
But I have to send request with url encoding.
How to encode query string and how can I check whether my request is going correctly or not, is there any variable in which complete url would be stored.
Thanks
Vibhor
Edited by: Vibhor Rastogi on Sep 15, 2010 9:49 AM -
How to send multiple Recipients using the mail.jar and activation.jar
hi!
could somebody help me. how do i send multiple Recipient using mail.jar. when i would input 2email address in to Recipient
(example: [email protected], [email protected])
i get a DEBUG: setDebug: JavaMail version 1.3.2
but if i send a single email it just works properly.
heres my code
import java.io.*;
import java.util.*;
import javax.mail.*;
import javax.mail.event.*;
import javax.mail.internet.*;
public class SendMail
public SendMail(String to, String from, String subject, String body)
//public SendMail(String to)
String message_recip = to;
String message_subject = subject;
String message_cc = "";
String message_body = body;
//The JavaMail session object
Session session;
//The JavaMail message object
Message mesg;
// Pass info to the mail server as a Properties, since JavaMail (wisely) allows room for LOTS of properties...
Properties props = new Properties( );
// LAN must define the local SMTP server as "mailhost" to be able to send mail...
//props.put("mail.smtp.host","true");
props.put("mail.smtp.host", "mailhost");
// Create the Session object
session = Session.getDefaultInstance(props, null);
session.setDebug(true);
try
// create a message
mesg = new MimeMessage(session);
// From Address - this should come from a Properties...
mesg.setFrom(new InternetAddress(from));
// TO Address
InternetAddress toAddress = new InternetAddress(message_recip);
mesg.addRecipient(Message.RecipientType.TO, toAddress);
// CC Address
InternetAddress ccAddress = new InternetAddress(message_cc);
mesg.addRecipient(Message.RecipientType.CC, ccAddress);
// The Subject
mesg.setSubject(message_subject);
// Now the message body.
mesg.setText(message_body);
// XXX I18N: use setText(msgText.getText( ), charset)
// Finally, send the message!
Transport.send(mesg);
}//end of try
catch (MessagingException ex)
while ((ex = (MessagingException)ex.getNextException( )) != null)
ex.printStackTrace( );
}//end of while
}//end of catch
}//end of SendMail
public static void main(String[] args)
//String t = "[email protected], [email protected]"; - this I think causes error
String t = "[email protected]";
String f = "[email protected]";
String s = "Hello World";
String b = "the quick brown fox jumps over the lazy dog";
SendMail sm = new SendMail(t,f,s,b);
}//end of main
}//end of class
could someone please help me im stuck-up with this. thanx!i need it ASAP
i am a beginner in java and jsp
Need to knw how can I parse the addresss field
Below
is the code
<code>
package
public class EMailBean {
private String smtp,username,password,from,bcc,subject,body,attachments,cc;
/*setter*/
public void setSmtp(String str){this.smtp=str;}
public void setUsername(String str){this.username=str;}
public void setPassword(String str){this.password=str;}
public void setFrom(String str){this.from=str;}
public void setTo(String str){this.to=str;}
public void setCc(String str){this.cc=str;}
public void setBcc(String str){this.bcc=str;}
public void setSubject(String str){this.subject=str;}
public void setBody(String str){this.body=str;}
public void setAttachments(String str){this.attachments=str;}
/*getter*/
public String getSmtp( ){return this.smtp;}
public String getUsername( ){return this.username;}
public String getPassword( ){return this.password;}
public String getFrom( ){return this.from;}
public String getTo( ){return this.to;}
public String getCc( ){return this.cc;}
public String getBcc( ){return this.bcc;}
public String getSubject( ){return this.subject;}
public String getBody( ){return this.body;}
public String getAttachments( ){return this.attachments;}
</code>
Session session = Session.getDefaultInstance(props, null);
session.setDebug(true);
try {
MimeMessage msg = new MimeMessage(session);
msg.setFrom(new InternetAddress(mail.getFrom()));
msg.addRecipients(Message.RecipientType.TO, InternetAddress.parse(to, false));
msg.addRecipient(Message.RecipientType.TO,new InternetAddress(mail.getTo()));
msg.addRecipient(Message.RecipientType.CC, new InternetAddress(mail.getCc()));
msg.addRecipient(Message.RecipientType.CC, new InternetAddress("[email protected]"));
msg.setSubject(mail.getSubject());
// Create the message part
BodyPart messageBodyPart = new MimeBodyPart();
// Fill the message
messageBodyPart.setText(mail.getBody());
Multipart multipart = new MimeMultipart();
multipart.addBodyPart(messageBodyPart);
// Part two is attachment
messageBodyPart = new MimeBodyPart();
DataSource source = new FileDataSource(mail.getAttachments());
messageBodyPart.setDataHandler(new DataHandler(source));
messageBodyPart.setFileName(source.getName());
multipart.addBodyPart(messageBodyPart);
msg.setContent(multipart);
msg.setSentDate(new Date());
Transport t = session.getTransport("smtp");
try {
t.connect(mail.getUsername(), mail.getPassword());
t.sendMessage(msg, msg.getAllRecipients());
} finally {
t.close();
result = result + "<FONT SIZE='4' COLOR='blue'><B>Success!</B>"+"<FONT SIZE='4' COLOR='black'> "+"<HR><FONT color='green'><B>Mail was successfully sent to </B></FONT>: "+mail.getTo()+"<BR>";
if (!("".equals(mail.getCc())))
result = result +"<FONT color='green'><B>CCed To </B></FONT>: "+mail.getCc()+"<BR>";
if (!("".equals(mail.getBcc())))
result = result +"<FONT color='green'><B>BCCed To </B></FONT>: "+mail.getBcc() ;
result = result+"<BR><HR>";
} catch (MessagingException mex) {
result = result + "<FONT SIZE='4' COLOR='blue'> <B>Error : </B><BR><HR> "+"<FONT SIZE='3' COLOR='black'>"+mex.toString()+"<BR><HR>";
} catch (Exception e) {
result = result + "<FONT SIZE='4' COLOR='blue'> <B>Error : </B><BR><HR> "+"<FONT SIZE='3' COLOR='black'>"+e.toString()+"<BR><HR>";
e.printStackTrace();
finally {
return result;
} -
How to send SMS by using ABAP program
HI Gurus,
I need to notify the vendor through sms when his goods are received. His details are stored in vendor master.
My problem is that I am not able to find any function module for the same.
Do any of you know how to send 'sms' to particular mobile number using ABAP.
Are there any basis settings required for the same?
Thanks and Regards,
SaurabhHi,
Pls check the below links
http://help.sap.com/saphelp_nw04/helpdata/en/58/97c43af280463ee10000000a114084/frameset.htm
/people/ronen.fox/blog/2007/12/06/sending-sms-notification-via-business-workflow
http://www.****************/Tutorials/Workflow/Workflow.htm
You can use the FM: 'SO_DOCUMENT_SEND_API1' &
'SO_DOCUMENT_SEND_API1_NEW'.
to send the mail,sms etc.
But you have to make some chamnges in the reciever table, jus go thru FM documnetaion once, you will fine the option for sending SMS thru either of this FM.
Below is a sample code for sending e-mail.
so, u can take help from this.
data declarations
DATA : v_sender TYPE soextreci1-receiver,
v_doc TYPE sodocchgi1,
it_paklist TYPE STANDARD TABLE OF sopcklsti1 ,
wa_paklist TYPE sopcklsti1 ,
it_obj_head TYPE STANDARD TABLE OF solisti1 ,
it_obj_bin TYPE STANDARD TABLE OF solisti1 ,
it_obj_txt TYPE STANDARD TABLE OF solisti1 ,
it_obj_rcv TYPE STANDARD TABLE OF somlreci1 ,
wa_obj_rcv TYPE somlreci1 ,
v_desc(100).
CONSTANTS: c_start(12) TYPE c VALUE '000000000000001',
c_num(12) TYPE c VALUE '000000000000002',
c_num1(12) TYPE c VALUE '000000000010030',
c_raw(3) TYPE c VALUE 'RAW',
c_test(4) TYPE c VALUE 'TEST',
c_X(1) TYPE c VALUE 'X'.
refresh internal tables
REFRESH : it_paklist, it_obj_rcv.
clear internal tables
CLEAR : it_paklist, it_obj_rcv, v_sender.
v_sender = sy-uname.
fill internal table it_paklist
wa_paklist-head_start = c_start.
wa_paklist-head_num = c_num.
wa_paklist-body_start = c_start.
wa_paklist-body_num = c_num1.
wa_paklist-obj_name = c_test .
wa_paklist-doc_type = c_raw .
wa_paklist-transf_bin = c_X .
APPEND wa_paklist TO it_paklist.
clear: wa_paklist.
Data in the Header/subject Line
v_desc = text-005 .
v_doc-obj_name = c_objname .
v_doc-obj_descr = v_desc.
Mail text
APPEND v_desc TO it_obj_txt.
Preparing the receiver list
wa_obj_rcv-rec_type = 'U'.
wa_obj_rcv-rec_type = 'C'.
v_dlist = 'SCE_TEST'.
wa_obj_rcv-receiver = v_dlist. "Distribution list.
wa_obj_rcv-receiver = Enter the mail id .
APPEND wa_obj_rcv TO it_obj_rcv.
Call the function module to send mail
IF NOT it_obj_rcv[] IS INITIAL.
CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
EXPORTING
document_data = v_doc
sender_address = v_sender
sender_address_type = 'B'
put_in_outbox = 'X'
commit_work = 'X'
TABLES
packing_list = it_paklist
object_header = it_obj_head
contents_bin = it_obj_bin
contents_txt = it_obj_txt
receivers = it_obj_rcv
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7
OTHERS = 8.
IF sy-subrc NE 0.
MESSAGE text-006 TYPE 'I' .
ENDIF.
ENDIF .
Maybe you are looking for
-
Issue with Deduplicated files and Mac OSX 10.9.2
Running a Windows 2012 R2 DFS with Deduplication enabled on the storage drives. Both Macs and PCs regularly interact with the system with no issues. However with Apple's rollout of 10.9.2 SMB2 'fix' users are no longer able to correctly interact wit
-
iPod 5 generation. ios 8.1.2 I forgot the restrictions code, and I'm trying to reset my iPod, but because of restrictions, it won't let me! I cannot do the thing with the computer, because I never backed it up on a PC before. I've also tried the so-c
-
Can I backup a single account on my mountain lion macbookpro?
I have a macbook pro with two accounts (me and my wife's), but I now need to separate her account on a different machine because I will take one machine to work. what is the best way to just backup her account and restore it on a different machine ru
-
Calling one program from another program
Hi, I need to call RVKUSTA1 program into Function module & that FM to used in BDT. So I think I shouldn't use Select-options. So any of u could u please send me the sample code. Thanks , Rani
-
Hi experts . I have a requirement 1. After plant selection in the left part of screen , open a tree with relevant work centers for it. ( Done) 2. In the right part of screen ,as it done in **** scenario ,I need to display a few buttons to select A