Creating more then one JMS Destination using MBeans
Hi all,
I am trying to create 2(or more) JMS Destinations (Topics and Queues) in a JMS Server.
The code looks like:
MBeanHome home = (MBeanHome) ctx.lookup(MBeanHome.ADMIN_JNDI_NAME);
ServerMBean srvrMBean = (ServerMBean) home.getMBean("examplesServer", "Server",
"examples");
JMSServerMBean jmsServer = (JMSServerMBean)home.findOrCreateAdminMBean("examplesServer",
"JMSServer", "examples");
jmsServer.setStore(jmsStore);//jmsStore is JMSJDBCStoreMBean obj
jmsServer.setTargets(srvrMBean);
JMSDestinationMBean jmsTopic1 = (JMSTopicMBean)home.findOrCreateAdminMBean("tempTopic1",
"JMSTopic", "examples", jmsServer);
jmsTopic1.setJNDIName("com.temp.topic1");
jmsServer.addDestination(jmsTopic1);
and the second one is added as:
JMSDestinationMBean jmsTopic2 = (JMSTopicMBean)home.findOrCreateAdminMBean("tempTopic2",
"JMSTopic", "examples", jmsServer);
jmsTopic2.setJNDIName("com.temp.topic2");
jmsServer.addDestination(jmsTopic2);
(Actually, the Topics are added to the jmsServer in a method)
I can see in the console that the first topic is added to the JMS server and to the
JNDItree of the server instance,
But for some reason, the second topic is not added to the JNDI tree(but it is added
to the JMS Server).
and I can not look up the second object in JNDI.
Does anybody come across this problem??
what is the right way to add the destinations??
thanks for any help
-Vijay
Hi Mihir,
thanks....I tried the same program, but the only difference is i am setting the targets
to the jms server (i.e. jmsServer.setTarget(tm);) before adding second destination
to it(i tried both setDestinations and addDestination).
Because, (according to my requirements) after adding the first destination i have
to set the target for the jmsserver (which eventually starts the JMSserver).
So, is there any way to add the destinations to the jmsserver after setting the targets??
thanks for any help
-Vijay
"Mihir Kulkarni" <[email protected]> wrote:
The following code works for me.
Btw, I use setDestinations and pass it an array of JMSDestinationMBeans
instead of using addDestinations()
Hope this helps...
mihir
import java.util.Set;
import java.util.Iterator;
import java.rmi.RemoteException;
import javax.naming.*;
import weblogic.jndi.Environment;
import weblogic.management.MBeanHome;
import javax.management.ObjectName;
import weblogic.management.WebLogicMBean;
import weblogic.management.MBeanCreationException;
import weblogic.management.configuration.ServerMBean;
import weblogic.management.runtime.ServerRuntimeMBean;
import weblogic.management.WebLogicObjectName;
import weblogic.management.configuration.*;
import javax.management.InvalidAttributeValueException;
/* Running this program will create a JMS Server and a JMS Connection
* Factory targetted to the Admin server. It will also add a JMS Topic
* and a JMS Queue to the JMSServer.
* This will create the following entries in the config.xml:
* <JMSServer Name="myJMSServer" Targets="MyServer">
* <JMSQueue JNDIName="jmx.jms.myJMSQueue" Name="myJMSQueue"/>
* <JMSTopic JNDIName="jmx.jms.myJMSTopic" Name="myJMSTopic"/>
* </JMSServer>
* <JMSConnectionFactory JNDIName="jmx.jms.myJMSConnectionFactory"
* Name="myJMSConnectionFactory" Targets="MyServer"/>
public class createJMS {
public createJMS() {
public static void main(String[] args) {
JMSServerMBean jmsServer = null;
JMSDestinationMBean jmsQueue = null;
JMSDestinationMBean jmsTopic = null;
JMSConnectionFactoryMBean jmsConnectionFactory = null;
JMSSessionPoolMBean jmsSessionPool = null;
JMSConnectionConsumerMBean jmsConnectionConsumer = null;
ServerMBean srvrMBean = null;
MBeanHome home = null;
JMSServerMBean jmsServerConfig = null;
file://domain variables
String url = "t3://localhost:7001";
String username = "system";
String password = "mihirk00";
file://variable Names
String DOMAIN = "mihirDomain";
String ADMINSERVERNAME = "MyServer";
String JMSSERVER = "myJMSServer";
String JMSCONNECTIONFACTORY = "myJMSConnectionFactory";
String JMSQUEUE = "myJMSQueue";
String JMSTOPIC = "myJMSTopic";
log("Creating AdminMBeans for JMS queue and JMS connection
factory");
try
Environment env = new Environment();
env.setProviderUrl(url);
env.setSecurityPrincipal(username);
env.setSecurityCredentials(password);
Context ctx = env.getInitialContext();
home = (MBeanHome)ctx.lookup("weblogic.management.adminhome");
log("Got AdminHome: " + home);
String name = DOMAIN + ":,Name=" + ADMINSERVERNAME + ",Type=Server"
WebLogicObjectName objName = new WebLogicObjectName(name);
srvrMBean = (ServerMBean)home.getMBean(objName);
file://srvrMBean =
(ServerMBean)home.getMBean(ADMINSERVERNAME,"Server",DOMAIN);
log("Got the serverMBean: " + srvrMBean);
} catch (Exception e) {
log("Exception in getting Admin home & srvrMBean: " + e);
/* the findOrCreateAdminMBean method of the MBeanHome is used to
create
* the Admin MBeans for all the JMS stuff needed for this utility
* the method takes 3 parameters - Name, Type, Domain
* the type Parameter is the name of the MBean you want to create
* minus the MBean prefix
* eg) JMSServer, JMSConnectionFactory, JMSQueue etc..
* It also takes an addition parameter which is the parent
AdminMbean
* if one needs to create a child node in the xml tree.
* Once the MBean is created you can set attributes on it using
the
* exposed API of that MBean
* Its always better to use the findOrCreateAdminMBean method compared
* to createAdminMBean method .
file://use findOrCreateAdminMBean to create JMSConnectionFactory
try {
jmsConnectionFactory =
(JMSConnectionFactoryMBean)home.findOrCreateAdminMBean(JMSCONNECTIONFACTORY,
"JMSConnectionFactory", DOMAIN);
if( jmsConnectionFactory.getJNDIName() == null) {
jmsConnectionFactory.setJNDIName("jmx.jms.myJMSConnectionFactory");
log("Created a JMSConnectionFactory");
else
log("looked up JMS ConnectionFactory: " +
jmsConnectionFactory.getJNDIName());
} catch (MBeanCreationException e) {
log("MBeanCreationException: " + e);
catch(InvalidAttributeValueException e) {
log("InvalidAttributeValueException: " + e);
file://create the JMSServerMBean
try {
jmsServer = (JMSServerMBean)home.findOrCreateAdminMBean(JMSSERVER,
"JMSServer", DOMAIN);
log("Found or Created a JMSServer");
} catch (MBeanCreationException e) {
log("MBeanCreationException: " + e);
file://create the JMSQueueMBean - use methods of
JMSDestinationMBean
file://here we pass the jmsServer as the parent MBean so that the
file://JMSQueueMBean is created as the child of the JMSServerMBean
try {
jmsQueue =
(JMSDestinationMBean)home.findOrCreateAdminMBean(JMSQUEUE, "JMSQueue",
DOMAIN, jmsServer);
if( jmsQueue.getJNDIName() == null) {
jmsQueue.setJNDIName("jmx.jms.myJMSQueue");
log("Created a JMSQueue");
else {
log("looked up JMS Queue: " + jmsQueue.getJNDIName());
} catch (MBeanCreationException e) {
log("MBeanCreationException: " + e);
catch(InvalidAttributeValueException e) {
log("InvalidAttributeValueException: " + e);
file://create the JMSTopicMBean - use methods of
JMSDestinationMBean
file://here we pass the jmsServer as the parent MBean so that the
file://JMSTopicMBean is created as the child of the JMSServerMBean
try {
jmsTopic =
(JMSDestinationMBean)home.findOrCreateAdminMBean(JMSTOPIC, "JMSTopic",
DOMAIN, jmsServer);
if( jmsTopic.getJNDIName() == null) {
jmsTopic.setJNDIName("jmx.jms.myJMSTopic");
log("Created a JMSTopic");
else {
log("looked up JMS Topic: " + jmsTopic.getJNDIName());
} catch (MBeanCreationException e) {
log("MBeanCreationException: " + e);
catch(InvalidAttributeValueException e) {
log("InvalidAttributeValueException: " + e);
file://create the target Arrays
JMSDestinationMBean[] jdm = {jmsQueue,jmsTopic};
TargetMBean[] tm = {srvrMBean};
file://set the Destinations for the jms Server
try {
jmsServer.setDestinations(jdm);
log("Added Destination to the jmsServer");
} catch(Exception e) {
log("Excpn in setting the property for jmsServer:" + e);
/* Now target the JMS Server to the appropriate Server
* As the JMSServerMBean extends the DeploymentMBean, we can
directly
* use the addTarget method of the DeploymentMBean
file://ordering is important
file://Target the JMS ConnectionFactory
try {
jmsConnectionFactory.setTargets(tm);
log("Targetted the Connection Factory to the admin Server");
} catch (Exception e) {
System.out.println("Exception in targetting the
jmsConnectionFactory to the Admin server: " + e);
file://Target the JMS Server
try {
jmsServer.setTargets(tm);
log("Targetted the JMS Server to the admin Server");
} catch (Exception e) {
System.out.println("\nException in targetting the jmsServer to
the Admin server: " + e);
log("Done with registering AdminMBeans for JMS");
private static void log(String s) {
System.out.println("\n[createJMS]: " + s);
"Vijay Bujula" <[email protected]> wrote in message
news:[email protected]...
Hi all,
I am trying to create 2(or more) JMS Destinations (Topics and Queues)in a
JMS Server.
The code looks like:
MBeanHome home = (MBeanHome) ctx.lookup(MBeanHome.ADMIN_JNDI_NAME);
ServerMBean srvrMBean = (ServerMBean) home.getMBean("examplesServer","Server",
"examples");
JMSServerMBean jmsServer =(JMSServerMBean)home.findOrCreateAdminMBean("examplesServer",
"JMSServer", "examples");
jmsServer.setStore(jmsStore);//jmsStore is JMSJDBCStoreMBean obj
jmsServer.setTargets(srvrMBean);
JMSDestinationMBean jmsTopic1 =(JMSTopicMBean)home.findOrCreateAdminMBean("tempTopic1",
"JMSTopic", "examples", jmsServer);
jmsTopic1.setJNDIName("com.temp.topic1");
jmsServer.addDestination(jmsTopic1);
and the second one is added as:
JMSDestinationMBean jmsTopic2 =(JMSTopicMBean)home.findOrCreateAdminMBean("tempTopic2",
"JMSTopic", "examples", jmsServer);
jmsTopic2.setJNDIName("com.temp.topic2");
jmsServer.addDestination(jmsTopic2);
(Actually, the Topics are added to the jmsServer in a method)
I can see in the console that the first topic is added to the JMS serverand to the
JNDItree of the server instance,
But for some reason, the second topic is not added to the JNDI tree(butit
is added
to the JMS Server).
and I can not look up the second object in JNDI.
Does anybody come across this problem??
what is the right way to add the destinations??
thanks for any help
-Vijay
Similar Messages
-
Can I create More Then One seesion in one script?
Hi all ,
I have got a requirment to create more then one seesion in one script only
(means I have to login using multiple USER's in a single script.).
and also there is no way for LOG-OFF.
Thanks in advnc.Yes. This is a very common task.
You should databank the User and Password parameters. When running many virtual users in e-load, the script will login each script/user from the list you have included in the databank. When running in Functional playback, each new iteration of a single user will login with a new user from the databank.
There also does not need to be a logoff. In either Functional or Load playback, each time a script or a virtual user starts a new iteration it will begin as though there are no past cookies or cache files. -
HT1495 More then one iPad being used.
We have more then one iPad. Can we use one iTunes account so I do not have to buy games and songs more then once? Also, 3 people are on one iTunes account. How do we avoid our iMessages being shown on each device?
Thanks.Yes, you can run as many devices as you want from one iTunes account. To avoid having messages sync across all devices, use different email addresses for iMessage.
-
Creating more then one instance in Singleton
Hi Friends,
In the Singleton pattern,I want to restrict the no. of instances of a class created to 3 or 4 and not necessarily
one.I am written this code,that creates duplicate singleton objects,I want to know is this the right way
to do so.
public class Test implements Cloneable
public Object clone() {
try {
return super.clone();
catch (CloneNotSupportedException e) {
throw new InternalError(e.toString());
public class SingletonObject extends Test
private SingletonObject(){}
public static SingletonObject getSingletonObject()
if (ref == null)
ref = new SingletonObject();
return ref;
private static SingletonObject ref;
public class Clone
public static void main(String args[])
throws Exception
SingletonObject obj = SingletonObject.getSingletonObject();
SingletonObject clone1 = (SingletonObject) obj.clone();
SingletonObject clone2 = (SingletonObject) obj.clone();
}ThanksMore then 1 instance defeats the purpose of the
Singleton pattern, don't you think?No it doesn't. It's specially noted in the GoFbook
that one way a Singleton is more flexible than a
class (with only static members) is that you can
change your mind and allow more than one instance.Then it's not a singleton anymore. I agree that
developing the class in the way one does for a
singleton object is more flexible for that reason,
but as soon as you allow multiple instances, it's not
singleton anymore, it's multiton (if that's the
official term... I'd just call it a normal class).I think most people throw the word multiton out there (I know I do) when talking about a class that needs strict control over how many instances of it are out there, like a Singleton, but isn't strictly limited to a single instance. For example, you might call an immutable class that guarantees no two equal instances exist a "multiton", or perhaps there' a more preferred term out there. -
How to Create more then one Application in HCP-trial
Hi all,
I am new to this field,
I want to create new application in HCP I have already create one and want to do more hands on this but i cant find where to create second application.
and one more question.
can we see the content which we created through Web-based Development Workbench... to our local eclipse based tool because its not visible to me
Regards
GBHi vinod,
Call one BDC after the another, Like if u want to create a sales order and then correspondingly display it as well, u can capture the sales order created afer ur first BDC theu the messages mostly in SYMSGV1 and using this u can do a call txn skip first screne of VA03.
If u are talking about session, get 2 session names and move them to different sessions or if both txn are dependant on each other, move it one after the other thru call txn. It is the same, howmany ever trx u wabnt to post thru BDC.
Award points if this helps. -
Suggestion on more then one people when using internet...
hi, first off all, sorry for my bad english... so, my suggestion... on my notebook, I and my wife are using internet... my wife uses firefox, and I must use other browser, because of we use same websites, such as facebook or gmail. we save passwords and users. and if we use one browser, we must change user, write passwords... my seggestion... can be created user profiles... egzample... i turn on firefox, and on main screen view a list of firefox user, such as my and my wife... i turn my acount, i just click facebook and i get where... later my wife turn on firefox and she see this list of user, she get her's user, and gets to facebook without my facebook turn off and write her's name and password... it like be as too firefox instaed on notebook... these acount have their own tabs, start pages... and if to next computer one person uses firefox, just on install, he turn off this feature...
Create a new profile for the other users and create a desktop shortcut with -P "profile" appended to the target to launch each profile.
* http://kb.mozillazine.org/Creating_a_new_Firefox_profile_on_Windows
* http://kb.mozillazine.org/Shortcut_to_a_specific_profile
* http://kb.mozillazine.org/Using_multiple_profiles_-_Firefox -
RV_INVOICE_CREATE u0096 Issue creating more then one invoice
Hi All,
I am creating Billing document using <b>RV_INVOICE_CREATE</b>. For single sales record it creates fine, but when I pass multiple sales order to create invoice, it only creates billing document for first sales order rest ignored. I am using <b>RV_INVOICE_REFRESH</b> after each create, still it doesnt work. Am I missing any thing here? Thanks in advance. Please check code for further details.
Regards,
Tim
CODE ....
loop at GT_INIT_ITAB2 into GS_INIT_ITAB2.
concatenate GS_INIT_ITAB2-afdat6(4) GS_INIT_ITAB2-afdat3(2) GS_INIT_ITAB2-afdat+0(2)
into gl_date.
condense gl_date.
MOVE-CORRESPONDING GS_INIT_ITAB2 to gt_xkomfk.
gt_xkomfk-fkimg = GS_INIT_ITAB2-KWMENG.
gt_xkomfk-SELDAT = gl_date.
append gt_xkomfk.
Create Billing document at end of each Sales Document
AT END OF VBELN.
gs_vbsk-mandt = sy-mandt.
gs_vbsk-smart = 'F'.
gs_vbsk-ernam = sy-uname.
gs_vbsk-erdat = sy-datum.
gs_vbsk-uzeit = sy-uzeit.
Call function module to create Invoice
CALL FUNCTION <b>'RV_INVOICE_CREATE'</b>
EXPORTING
DELIVERY_DATE = sy-datum
INVOICE_DATE = gl_date
INVOICE_TYPE = p_fkart
PRICING_DATE = sy-datum
ID_NO_ENQUEUE = 'X'
vbsk_i = gs_vbsk
with_posting = 'B'
IMPORTING
vbsk_e = gs_vbsk
TABLES
xkomfk = gt_xkomfk
xkomv = gt_xkomv
xthead = gt_xthead
xvbfs = gt_xvbfs
xvbpa = gt_xvbpa
xvbrk = gt_xvbrk
xvbrp = gt_xvbrp
xvbss = gt_xvbss.
loop at gt_xvbfs.
append gt_xvbfs-vbeln to gt_vbeln.
endloop.
CALL FUNCTION 'DEQUEUE_EVVBAKE'
EXPORTING
VBELN = GS_INIT_ITAB2-vbeln.
DESCRIBE TABLE gt_xvbrk LINES SY-SUBRC.
IF SY-SUBRC = 0.
DELETE GT_INIT_ITAB2.
REFRESH GT_XKOMFK.
ELSE.
CALL FUNCTION <b>'RV_INVOICE_REFRESH'</b>
EXPORTING
WITH_POSTING = ' '
TABLES
XKOMFK = GT_XKOMFK
XKOMV = GT_XKOMV
XTHEAD = GT_XTHEAD
XVBFS = GT_XVBFS
XVBSS = GT_XVBSS
XVBPA = GT_XVBPA
XVBRK = GT_XVBRK
XVBRP = GT_XVBRP.
ENDIF.
REFRESH: gt_xkomfk, gt_xkomv,gt_xthead,gt_xvbfs,gt_xvbpa,
gt_xvbrk,gt_xvbrp,gt_xvbss .
ENDAT.
endloop.Hi Narendarn,
Thanks for your feed back. I am calling RV_INVOICE_REFRESH before looping thru internal table. So first one created fine. I am calling RV_INVOICE_REFRESH again once I process RV_INVOICE_CREATE. But there onwards billing document not created but I do get billing document number. But when I check in VF03 that billing document no doesnt exist at all in system. I dont know what wrong?
here is the code
Call function module to create Invoice
CALL FUNCTION 'RV_INVOICE_REFRESH'
EXPORTING
WITH_POSTING = 'B'
TABLES
XKOMFK = GT_XKOMFK
XKOMV = GT_XKOMV
XTHEAD = GT_XTHEAD
XVBFS = GT_XVBFS
XVBSS = GT_XVBSS
XVBPA = GT_XVBPA
XVBRK = GT_XVBRK
XVBRP = GT_XVBRP.
This value will be imported back in Billing document routine(VOFM)
Routine number 906 - For consolidation logic
EXPORT P_CONSOL TO MEMORY ID 'ZSD_OPWS_PRE_INVOICE'.
if gv_lock is initial and
gv_block is initial.
loop at GT_INIT_ITAB2 into GS_INIT_ITAB2.
clear: gt_xvbfs.
refresh: gt_xvbfs.
CALL FUNCTION 'DEQUEUE_EVVBAKE'
EXPORTING
MANDT = SY-MANDT
VBELN = GS_INIT_ITAB2-VBELN.
concatenate GS_INIT_ITAB2-afdat6(4) GS_INIT_ITAB2-afdat3(2) GS_INIT_ITAB2-afdat+0(2)
into gl_date.
condense gl_date.
MOVE-CORRESPONDING GS_INIT_ITAB2 to gt_xkomfk.
gt_xkomfk-fkimg = GS_INIT_ITAB2-KWMENG.
gt_xkomfk-SELDAT = gl_date.
gt_xkomfk-SELDAT = GS_INIT_ITAB2-afdat.
append gt_xkomfk.
CASE P_CONSOL.
WHEN 'N'.
Create Billing document at end of each Sales Document
AT END OF VBELN.
gs_vbsk-mandt = sy-mandt.
gs_vbsk-smart = 'F'.
gs_vbsk-ernam = sy-uname.
gs_vbsk-erdat = sy-datum.
gs_vbsk-uzeit = sy-uzeit.
CALL FUNCTION 'RV_INVOICE_CREATE'
EXPORTING
DELIVERY_DATE = sy-datum
INVOICE_DATE = sy-datum
INVOICE_TYPE = p_fkart
PRICING_DATE = sy-datum
vbsk_i = gs_vbsk
with_posting = 'B'
id_no_enqueue = 'X'
IMPORTING
vbsk_e = gs_vbsk
TABLES
xkomfk = gt_xkomfk
xkomv = gt_xkomv
xthead = gt_xthead
xvbfs = gt_xvbfs
xvbpa = gt_xvbpa
xvbrk = gt_xvbrk
xvbrp = gt_xvbrp
xvbss = gt_xvbss.
CLEAR: gt_xkomfk.
REFRESH: gt_xkomfk.
ENDAT.
loop at gt_xvbfs.
gs_vbeln-vbeln = gt_xvbfs-vbeln.
gs_vbeln-vbeln_so = GS_INIT_ITAB2-vbeln.
append gs_vbeln to gt_vbeln.
endloop.
Call function module to create Invoice
CALL FUNCTION 'RV_INVOICE_REFRESH'
EXPORTING
WITH_POSTING = 'B'
TABLES
XKOMFK = GT_XKOMFK
XKOMV = GT_XKOMV
XTHEAD = GT_XTHEAD
XVBFS = GT_XVBFS
XVBSS = GT_XVBSS
XVBPA = GT_XVBPA
XVBRK = GT_XVBRK
XVBRP = GT_XVBRP.
WHEN 'Y1'.
Create Billing document at end internal table all togather in one Billing document
AT LAST.
gs_vbsk-mandt = sy-mandt.
gs_vbsk-smart = 'F'.
gs_vbsk-ernam = sy-uname.
gs_vbsk-erdat = sy-datum.
gs_vbsk-uzeit = sy-uzeit.
CALL FUNCTION 'RV_INVOICE_CREATE'
EXPORTING
DELIVERY_DATE = sy-datum
INVOICE_DATE = sy-datum
INVOICE_TYPE = p_fkart
PRICING_DATE = sy-datum
vbsk_i = gs_vbsk
with_posting = 'B'
id_no_enqueue = 'X'
IMPORTING
vbsk_e = gs_vbsk
TABLES
xkomfk = gt_xkomfk
xkomv = gt_xkomv
xthead = gt_xthead
xvbfs = gt_xvbfs
xvbpa = gt_xvbpa
xvbrk = gt_xvbrk
xvbrp = gt_xvbrp
xvbss = gt_xvbss.
CLEAR: gt_xkomfk.
REFRESH: gt_xkomfk.
ENDAT.
loop at gt_xvbfs.
gs_vbeln-vbeln = gt_xvbfs-vbeln.
gs_vbeln-vbeln_so = GS_INIT_ITAB2-vbeln.
append gs_vbeln to gt_vbeln.
endloop.
ENDCASE.
endloop.
commit work.
Regards,
Tim -
Creating more then 1 statement in one connection in SQL server
hi
am using sql server as my database.here i cannot create more then one statement in the i connections....why does this happen
secondly is it preferable to create 'x' number of connections at the start of the application or create a connection as and when required...
Pls if anyone can help me...
regards
Praveenahi,
if i'm not wrong try to close the already creted statment if ur creating another with the same nmae otherwise it should not be a problem creating set of statements.u can create any number of statement with a single connections.u need not open connection for every statement.hope this helps u out
bye -
Same variable "used in more then one InfoObject"
I want to use the same user entered value as part of the definition of two different restricted key figures, restricting on two different characteristics. Basically the user will enter a date, and one key figure includes only those with a "Calendar date" < the entered date, the other will have "Date1" less then the entered date and "Date2" greater the entered date. When I try that, I get the error "Variable Select Date used in more then one infoObject". How can I either use the same variable for more then one characteristic, or create a new variable that takes the value of the "Select Date" variable without prompting the user to enter the same date multiple times.
thanks
ValHi Val,
Hereunder an example of a routine extracting year from month, month inserted manually (year = anno in Italian):
DATA: loc_var_range LIKE rrrangeexit.
DATA: l_s_range TYPE rsr_s_rangesid.
DATA: v_anno(4) TYPE c.
CASE i_vnam.
WHEN 'VCE_ANNO'.
IF i_step = 2.
CLEAR l_s_range.
LOOP AT i_t_var_range INTO loc_var_range
WHERE vnam = '0PCALMON'.
CLEAR v_anno.
v_anno = loc_var_range-low(4).
l_s_range-low = v_anno.
L_S_RANGE-HIGH =
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
ENDLOOP.
APPEND l_s_range TO e_t_range.
ENDIF.
endcase.
Ciao.
Riccardo. -
Fetching The more then One Company ID by using PLSQL Table on Block B1(FORM
I have two blocks in Form (Forms 10g) .On the Block B2 I have populated the Company Id by using the PLSQL Table.Now I selected more than two company ID from that Block ...I just want to keep the Company ID in the Temp Field on the Block B1.which I have selected on the Block B2.Any idea how can I assign more then one Company ID to That Temp Field on B1.
This doesn't appear to have any connection to JMS or indeed to Java. Wrong forum. Locking.
-
HOW DO I USE MORE THEN ONE ITUNES WITH MY IPHONE WITHOUT ERASING MY MUSIC?
I have two different laptops with iTunes on it. I use both of them but my iPhone only works with one iTunes. I plug it into the computer and it says that my iPhone cannot use more then one iTunes. Is there a way I can use both or no?
YES I AM CLICKING MANUELLY ADD SONGS TO MY iPhone.
I just bought my iPhone about a week or so ago.
Please help ASAP.I clone my library to a portable drive using SyncToy 2.1, a free tool from MS. I run this both at home & work so that I essentially have three identical copies of my library for backup redundacy, any of which I can use to update my iPods and my iPhone. I use iTunes Folder Watch occasionaly in case I've managed to download, for example, a podcast at one location but overwrite the library with a newer copy updated at the other. It can be done but you need to take considerable care...
tt2 -
Can I use more then one apple ID on my computer/osx app store
Hi,
I use my MBP/iMac/ipad/iphone for both business and home. Right now everything is setup to my home apple id (and I have made quite a few purchases with that). With the release of the osx app store and FCPX, my company wants to buy these for my computers. But they want to do this on their apple id. Can I run more then one id on a mac? How can I make this work as I know they will want me to start getting more apps as they are released.You can have apps from multiple Apple IDs on one Mac. The issue will be that to update Mac apps bought with A ID #1 will require signing into A ID #1 in the MAS. And later when apps bought with A ID #2 need an update you will need to sign into A ID #2 in the MAS to update them. If you can keep that straight and can abide that requirement, there should be no issues.
The same will be true to update iOS apps, but using iTunes. -
How to use 'BAPI_GOODSMVT_CREATE' for more then one row selected ???
Hi,
I am using bapi , BAPI_GOODSMVT_CREATE , my requirement is that first perform ALV display with check boxes & then user can selsct any number of rows & then on clicking execute button this bapi is triggered , now my ques is that if i am selecting rows one by one & executing , then am able to post data successfully, but if am selecting more then one row at a time then its giving me error
" exactly one serial no must be selected (instead of more then two / three ) ."
plz help me .
this is how i am filling data in BAPi & bapi call
FORM FILL_BAPIDATA .
wa_GOODSMVT_HEADER-PSTNG_DATE = sy-datum.
wa_GOODSMVT_HEADER-doc_DATE = sy-datum.
wa_goodsmvt_code-gm_code = c_gmcode.
LOOP AT it_final INTO wa_final.
wa_GOODSMVT_ITEM-MOVE_TYPE = c_movtype. " '313'.
wa_GOODSMVT_ITEM-material = WA_final-MATNR.
wa_GOODSMVT_ITEM-ENTRY_QNT = wa_final-verme.
wa_GOODSMVT_ITEM-plant = WA_final-WERKS. "'DB10'.
wa_GOODSMVT_ITEM-STGE_LOC = WA_final-LGORT.
wa_GOODSMVT_ITEM-BATCH = WA_final-CHARG.
wa_GOODSMVT_ITEM-BATCH = l_charg.
append wa_GOODSMVT_ITEM to IT_GOODSMVT_ITEM.
clear: wa_GOODSMVT_ITEM.
ENDLOOP.
LOOP AT it_final INTO wa_final.
wa_serialnumber-SERIALNO = wa_final-sernr.
APPEND wa_serialnumber to it_serialnumber.
CLEAR wa_serialnumber.
ENDLOOP.
LOOP AT it_position2 INTO wa_position2.
wa_serialnumber-MATDOC_ITM = wa_position2-wepos .
MODIFY it_serialnumber INDEX sy-tabix from wa_serialnumber TRANSPORTING MATDOC_ITM .
ENDLOOP.,
data: begin of mthead.
include structure bapi2017_gm_head_ret.
data: end of mthead.
CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
EXPORTING
GOODSMVT_HEADER = wa_GOODSMVT_HEADER
GOODSMVT_CODE = wa_GOODSMVT_CODE
IMPORTING
GOODSMVT_HEADRET = mthead
MATERIALDOCUMENT = w_MATERIALDOCUMENT
MATDOCUMENTYEAR = w_MATDOCUMENTYEAR
TABLES
GOODSMVT_ITEM = IT_GOODSMVT_ITEM
GOODSMVT_SERIALNUMBER = IT_SERIALNUMBER
RETURN = IT_RETURN
GOODSMVT_SERV_PART_DATA =
EXTENSIONIN =
APPEND w_MATERIALDOCUMENT to it_GOODSMVT1 .
IF sy-subrc = 0 .
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
*MESSAGE text-016 TYPE 'I'.
PERFORM msg_log .
ENDIF.Hi,
Did u check the serial numbers table before calling the BAPI. Might be the case tht same serial number is assigned for all items, in this case the goods movement may be possible with same serial number for all items.
Reagrds,
Aditya
Edited by: aditya on Aug 11, 2009 11:46 AM -
How to create a service call for more then one item
Hi All,
How to create a service call for more then one item. i.e. the service call should be logged for more then one itemAs you noticed this is not possible by design.
Maybe you could have a dummy item for that purpose and register the real items to be handled in a UDT...
HTH -
More then one repositry could be used at same time?
please anybody can told what we can use more then one repository at same time? as i have two reposities as sh,paint.what these two could be enable in nsq file .
Edited by: shakeel khan on Jan 4, 2010 5:03 AMyes you can..
check the following links
http://rnm1978.wordpress.com/2009/08/25/multiple-rpds-on-one-server-part-1-the-bi-server/
http://rnm1978.wordpress.com/2009/08/25/multiple-rpds-on-one-server-part-2-presentation-services/
Regards,
Raghu
Maybe you are looking for
-
Mail not sending Event to iCal after upgrade
I did the same as everyone else and upgraded as soon as I saw the message to upgrade mobileme ical. Now when I try to create an event in iCal using a date in an email after clicking on "Add To iCal" the popup just freezes. I've quited and rebooted Ma
-
how do i delete muliple emails as i cant seem to delete more than one at a time cant seem to highlight them anymore
-
Hi, I am doing some development using OAS 4.0.8.1 on NT using JSP. I am successfully able to save session state using session.putValue(...). However, OAS always tries to maintain this session via a cookie (4 cookies, to be exact). Is there a way to f
-
CS 5.5. Flatten Selection Batch Command Problem
Hello, I created a command "Flatten Selection" using the History panel. It now appears on the Commands menu. However, I need to Batch apply this command to 80 icons on a layer of my image so I can flatten them individually. How can I do this? Thank Y
-
How do you position text in a div tag to be in the center vertically?
Can someone help? I am struggling to convert from being dependent on tables to design sites to using all css and divs. Anyway, in my practice file, i made a header that is styled to be 50 pixels tall. The type in the header goes to the top. I am