Distrubute Queue Creation with WLST

Hi,
I am trying to created queues on a clustered env with wlst 8.1.sp5.jar and remaining jars from 8.1 sp4. When i run the script it gets executed completely with creating required queue's. But it also throws one exception. I am not able to figure out why it is throwing this error. If anyone has info about it let me know.
[jmsQueueCreation] cd('/')
[jmsQueueCreation] JMSQueue with name 'cgJMSServer_auto_1.TransformationCheckWeb
.queue.AsyncDispatcher_error' has been created successfully.
[jmsQueueCreation] JMSQueue with name 'cgJMSServer_auto_1.TransformationCheckWeb
.queue.AsyncDispatcher' has been created successfully.
[jmsQueueCreation] java.lang.NullPointerException
[jmsQueueCreation] at weblogic.management.configuration.JMSLegalHelper.lega
lErrorDestination(JMSLegalHelper.java:575)
[jmsQueueCreation] at weblogic.management.configuration.JMSQueueMBean_Helpe
r.validateAttribute(JMSQueueMBean_Helper.java:41)
[jmsQueueCreation] at weblogic.management.info.ExtendedInfo.validateAttribu
te(ExtendedInfo.java:323)
[jmsQueueCreation] at weblogic.management.internal.DynamicMBeanImpl.checkAt
tributeValueIsLegal(DynamicMBeanImpl.java:1635)
[jmsQueueCreation] at weblogic.management.internal.DynamicMBeanImpl.prepare
ForModification(DynamicMBeanImpl.java:1570)
[jmsQueueCreation] at weblogic.management.internal.DynamicMBeanImpl.setAttr
ibute(DynamicMBeanImpl.java:1089)
[jmsQueueCreation] at weblogic.management.internal.ConfigurationMBeanImpl.s
etAttribute(ConfigurationMBeanImpl.java:362)
[jmsQueueCreation] at com.sun.management.jmx.MBeanServerImpl.setAttribute(M
BeanServerImpl.java:1361)
[jmsQueueCreation] at com.sun.management.jmx.MBeanServerImpl.setAttribute(M
BeanServerImpl.java:1336)
[jmsQueueCreation] at weblogic.management.internal.RemoteMBeanServerImpl.pr
ivate_setAttribute(RemoteMBeanServerImpl.java:431)
[jmsQueueCreation] at weblogic.management.internal.RemoteMBeanServerImpl.se
tAttribute(RemoteMBeanServerImpl.java:387)
[jmsQueueCreation] at weblogic.management.internal.RemoteMBeanServerImpl_WL
Skel.invoke(Unknown Source)
[jmsQueueCreation] at weblogic.rmi.internal.BasicServerRef.invoke(BasicServ
erRef.java:477)
[jmsQueueCreation] at weblogic.rmi.internal.BasicServerRef$1.run(BasicServe
rRef.java:420)
[jmsQueueCreation] at weblogic.security.acl.internal.AuthenticatedSubject.d
oAs(AuthenticatedSubject.java:363)
[jmsQueueCreation] at weblogic.security.service.SecurityManager.runAs(Secur
ityManager.java:147)
[jmsQueueCreation] at weblogic.rmi.internal.BasicServerRef.handleRequest(Ba
sicServerRef.java:415)
[jmsQueueCreation] at weblogic.rmi.internal.BasicExecuteRequest.execute(Bas
icExecuteRequest.java:30)
[jmsQueueCreation] at weblogic.kernel.ExecuteThread.execute(ExecuteThread.j
ava:219)
[jmsQueueCreation] at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:
178)
[jmsQueueCreation] at java.lang.Thread.startThreadFromVM(Unknown Source)
[jmsQueueCreation] --------------- nested within: ------------------
[jmsQueueCreation] java.lang.NullPointerException
[jmsQueueCreation] at weblogic.management.configuration.JMSLegalHelper.lega
lErrorDestination(JMSLegalHelper.java:575)
[jmsQueueCreation] at weblogic.management.configuration.JMSQueueMBean_Helpe
r.validateAttribute(JMSQueueMBean_Helper.java:41)
[jmsQueueCreation] at weblogic.management.info.ExtendedInfo.validateAttribu
te(ExtendedInfo.java:323)
[jmsQueueCreation] at weblogic.management.internal.DynamicMBeanImpl.checkAt
tributeValueIsLegal(DynamicMBeanImpl.java:1635)
[jmsQueueCreation] at weblogic.management.internal.DynamicMBeanImpl.prepare
ForModification(DynamicMBeanImpl.java:1570)
[jmsQueueCreation] at weblogic.management.internal.DynamicMBeanImpl.setAttr
ibute(DynamicMBeanImpl.java:1089)
[jmsQueueCreation] at weblogic.management.internal.ConfigurationMBeanImpl.s
etAttribute(ConfigurationMBeanImpl.java:362)
[jmsQueueCreation] at com.sun.management.jmx.MBeanServerImpl.setAttribute(M
BeanServerImpl.java:1361)
[jmsQueueCreation] at com.sun.management.jmx.MBeanServerImpl.setAttribute(M
BeanServerImpl.java:1336)
[jmsQueueCreation] at weblogic.management.internal.RemoteMBeanServerImpl.pr
ivate_setAttribute(RemoteMBeanServerImpl.java:431)
[jmsQueueCreation] at weblogic.management.internal.RemoteMBeanServerImpl.se
tAttribute(RemoteMBeanServerImpl.java:387)
[jmsQueueCreation] at weblogic.management.internal.RemoteMBeanServerImpl_WL
Skel.invoke(Unknown Source)
[jmsQueueCreation] at weblogic.rmi.internal.BasicServerRef.invoke(BasicServ
erRef.java:477)
[jmsQueueCreation] at weblogic.rmi.internal.BasicServerRef$1.run(BasicServe
rRef.java:420)
[jmsQueueCreation] at weblogic.security.acl.internal.AuthenticatedSubject.d
oAs(AuthenticatedSubject.java:363)
[jmsQueueCreation] at weblogic.security.service.SecurityManager.runAs(Secur
ityManager.java:147)
[jmsQueueCreation] at weblogic.rmi.internal.BasicServerRef.handleRequest(Ba
sicServerRef.java:415)
[jmsQueueCreation] at weblogic.rmi.internal.BasicExecuteRequest.execute(Bas
icExecuteRequest.java:30)
[jmsQueueCreation] at weblogic.kernel.ExecuteThread.execute(ExecuteThread.j
ava:219)
[jmsQueueCreation] at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:
178)
[jmsQueueCreation] at java.lang.Thread.startThreadFromVM(Unknown Source)
[jmsQueueCreation] --------------- nested within: ------------------
[jmsQueueCreation] javax.management.RuntimeOperationsException: RuntimeException
thrown by the setAttribute weblogic.management.internal.WebLogicAttribute@2c127
cbmethod of the Dynamic MBean
[jmsQueueCreation] at weblogic.rjvm.BasicOutboundRequest.sendReceive(BasicO
utboundRequest.java:108)
[jmsQueueCreation] at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemo
teRef.java)
[jmsQueueCreation] at weblogic.management.internal.RemoteMBeanServerImpl_81
4_WLStub.setAttribute(Unknown Source)
[jmsQueueCreation] at weblogic.management.internal.ConfigurationMBeanImpl.u
pdateConfigMBeans(ConfigurationMBeanImpl.java:972)
[jmsQueueCreation] at weblogic.management.internal.ConfigurationMBeanImpl.s
etAttribute(ConfigurationMBeanImpl.java)
[jmsQueueCreation] at com.sun.management.jmx.MBeanServerImpl.setAttribute(M
BeanServerImpl.java:1361)
[jmsQueueCreation] at com.sun.management.jmx.MBeanServerImpl.setAttribute(M
BeanServerImpl.java:1336)
[jmsQueueCreation] at weblogic.management.internal.RemoteMBeanServerImpl.pr
ivate_setAttribute(RemoteMBeanServerImpl.java:431)
[jmsQueueCreation] at weblogic.management.internal.RemoteMBeanServerImpl.se
tAttribute(RemoteMBeanServerImpl.java:387)
[jmsQueueCreation] at weblogic.management.internal.RemoteMBeanServerImpl_WL
Skel.invoke(Unknown Source)
[jmsQueueCreation] at weblogic.rmi.internal.BasicServerRef.invoke(BasicServ
erRef.java)
[jmsQueueCreation] at weblogic.rmi.internal.BasicServerRef$1.run(BasicServe
rRef.java)
[jmsQueueCreation] at weblogic.security.acl.internal.AuthenticatedSubject.d
oAs(AuthenticatedSubject.java)
[jmsQueueCreation] at weblogic.security.service.SecurityManager.runAs(Secur
ityManager.java)
[jmsQueueCreation] at weblogic.rmi.internal.BasicServerRef.handleRequest(Ba
sicServerRef.java)
[jmsQueueCreation] at weblogic.rmi.internal.BasicExecuteRequest.execute(Bas
icExecuteRequest.java)
[jmsQueueCreation] at weblogic.kernel.ExecuteThread.execute(ExecuteThread.j
ava)
[jmsQueueCreation] at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:
178)
[jmsQueueCreation] at java.lang.Thread.startThreadFromVM(Unknown Source)
[jmsQueueCreation] JMSQueue with name 'cgJMSServer_auto_2.TransformationCheckWeb
.queue.AsyncDispatcher_error' has been created successfully.
[jmsQueueCreation] JMSQueue with name 'cgJMSServer_auto_2.TransformationCheckWeb
.queue.AsyncDispatcher' has been created successfully.
[jmsQueueCreation] java.lang.NullPointerException
[jmsQueueCreation] at weblogic.management.configuration.JMSLegalHelper.lega
lErrorDestination(JMSLegalHelper.java:575)
[jmsQueueCreation] at weblogic.management.configuration.JMSQueueMBean_Helpe
r.validateAttribute(JMSQueueMBean_Helper.java:41)
[jmsQueueCreation] at weblogic.management.info.ExtendedInfo.validateAttribu
te(ExtendedInfo.java:323)
[jmsQueueCreation] at weblogic.management.internal.DynamicMBeanImpl.checkAt
tributeValueIsLegal(DynamicMBeanImpl.java:1635)
[jmsQueueCreation] at weblogic.management.internal.DynamicMBeanImpl.prepare
ForModification(DynamicMBeanImpl.java:1570)
[jmsQueueCreation] at weblogic.management.internal.DynamicMBeanImpl.setAttr
ibute(DynamicMBeanImpl.java:1089)
[jmsQueueCreation] at weblogic.management.internal.ConfigurationMBeanImpl.s
etAttribute(ConfigurationMBeanImpl.java:362)
[jmsQueueCreation] at com.sun.management.jmx.MBeanServerImpl.setAttribute(M
BeanServerImpl.java:1361)
[jmsQueueCreation] at com.sun.management.jmx.MBeanServerImpl.setAttribute(M
BeanServerImpl.java:1336)
[jmsQueueCreation] at weblogic.management.internal.RemoteMBeanServerImpl.pr
ivate_setAttribute(RemoteMBeanServerImpl.java:431)
[jmsQueueCreation] at weblogic.management.internal.RemoteMBeanServerImpl.se
tAttribute(RemoteMBeanServerImpl.java:387)
[jmsQueueCreation] at weblogic.management.internal.RemoteMBeanServerImpl_WL
Skel.invoke(Unknown Source)
[jmsQueueCreation] at weblogic.rmi.internal.BasicServerRef.invoke(BasicServ
erRef.java:477)
[jmsQueueCreation] at weblogic.rmi.internal.BasicServerRef$1.run(BasicServe
rRef.java:420)
[jmsQueueCreation] at weblogic.security.acl.internal.AuthenticatedSubject.d
oAs(AuthenticatedSubject.java:363)
[jmsQueueCreation] at weblogic.security.service.SecurityManager.runAs(Secur
ityManager.java:147)
[jmsQueueCreation] at weblogic.rmi.internal.BasicServerRef.handleRequest(Ba
sicServerRef.java:415)
[jmsQueueCreation] at weblogic.rmi.internal.BasicExecuteRequest.execute(Bas
icExecuteRequest.java:30)
[jmsQueueCreation] at weblogic.kernel.ExecuteThread.execute(ExecuteThread.j
ava:219)
[jmsQueueCreation] at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:
178)
[jmsQueueCreation] at java.lang.Thread.startThreadFromVM(Unknown Source)
[jmsQueueCreation] --------------- nested within: ------------------
[jmsQueueCreation] java.lang.NullPointerException
[jmsQueueCreation] at weblogic.management.configuration.JMSLegalHelper.lega
lErrorDestination(JMSLegalHelper.java:575)
[jmsQueueCreation] at weblogic.management.configuration.JMSQueueMBean_Helpe
r.validateAttribute(JMSQueueMBean_Helper.java:41)
[jmsQueueCreation] at weblogic.management.info.ExtendedInfo.validateAttribu
te(ExtendedInfo.java:323)
[jmsQueueCreation] at weblogic.management.internal.DynamicMBeanImpl.checkAt
tributeValueIsLegal(DynamicMBeanImpl.java:1635)
[jmsQueueCreation] at weblogic.management.internal.DynamicMBeanImpl.prepare
ForModification(DynamicMBeanImpl.java:1570)
[jmsQueueCreation] at weblogic.management.internal.DynamicMBeanImpl.setAttr
ibute(DynamicMBeanImpl.java:1089)
[jmsQueueCreation] at weblogic.management.internal.ConfigurationMBeanImpl.s
etAttribute(ConfigurationMBeanImpl.java:362)
[jmsQueueCreation] at com.sun.management.jmx.MBeanServerImpl.setAttribute(M
BeanServerImpl.java:1361)
[jmsQueueCreation] at com.sun.management.jmx.MBeanServerImpl.setAttribute(M
BeanServerImpl.java:1336)
[jmsQueueCreation] at weblogic.management.internal.RemoteMBeanServerImpl.pr
ivate_setAttribute(RemoteMBeanServerImpl.java:431)
[jmsQueueCreation] at weblogic.management.internal.RemoteMBeanServerImpl.se
tAttribute(RemoteMBeanServerImpl.java:387)
[jmsQueueCreation] at weblogic.management.internal.RemoteMBeanServerImpl_WL
Skel.invoke(Unknown Source)
[jmsQueueCreation] at weblogic.rmi.internal.BasicServerRef.invoke(BasicServ
erRef.java:477)
[jmsQueueCreation] at weblogic.rmi.internal.BasicServerRef$1.run(BasicServe
rRef.java:420)
[jmsQueueCreation] at weblogic.security.acl.internal.AuthenticatedSubject.d
oAs(AuthenticatedSubject.java:363)
[jmsQueueCreation] at weblogic.security.service.SecurityManager.runAs(Secur
ityManager.java:147)
[jmsQueueCreation] at weblogic.rmi.internal.BasicServerRef.handleRequest(Ba
sicServerRef.java:415)
[jmsQueueCreation] at weblogic.rmi.internal.BasicExecuteRequest.execute(Bas
icExecuteRequest.java:30)
[jmsQueueCreation] at weblogic.kernel.ExecuteThread.execute(ExecuteThread.j
ava:219)
[jmsQueueCreation] at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:
178)
[jmsQueueCreation] at java.lang.Thread.startThreadFromVM(Unknown Source)
[jmsQueueCreation] --------------- nested within: ------------------
[jmsQueueCreation] javax.management.RuntimeOperationsException: RuntimeException
thrown by the setAttribute weblogic.management.internal.WebLogicAttribute@2c6a4
acmethod of the Dynamic MBean
[jmsQueueCreation] at weblogic.rjvm.BasicOutboundRequest.sendReceive(BasicO
utboundRequest.java:108)
[jmsQueueCreation] at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemo
teRef.java)
[jmsQueueCreation] at weblogic.management.internal.RemoteMBeanServerImpl_81
4_WLStub.setAttribute(Unknown Source)
[jmsQueueCreation] at weblogic.management.internal.ConfigurationMBeanImpl.u
pdateConfigMBeans(ConfigurationMBeanImpl.java:972)
[jmsQueueCreation] at weblogic.management.internal.ConfigurationMBeanImpl.s
etAttribute(ConfigurationMBeanImpl.java)
[jmsQueueCreation] at com.sun.management.jmx.MBeanServerImpl.setAttribute(M
BeanServerImpl.java:1361)
[jmsQueueCreation] at com.sun.management.jmx.MBeanServerImpl.setAttribute(M
BeanServerImpl.java:1336)
[jmsQueueCreation] at weblogic.management.internal.RemoteMBeanServerImpl.pr
ivate_setAttribute(RemoteMBeanServerImpl.java:431)
[jmsQueueCreation] at weblogic.management.internal.RemoteMBeanServerImpl.se
tAttribute(RemoteMBeanServerImpl.java:387)
[jmsQueueCreation] at weblogic.management.internal.RemoteMBeanServerImpl_WL
Skel.invoke(Unknown Source)
[jmsQueueCreation] at weblogic.rmi.internal.BasicServerRef.invoke(BasicServ
erRef.java)
[jmsQueueCreation] at weblogic.rmi.internal.BasicServerRef$1.run(BasicServe
rRef.java)
[jmsQueueCreation] at weblogic.security.acl.internal.AuthenticatedSubject.d
oAs(AuthenticatedSubject.java)
[jmsQueueCreation] at weblogic.security.service.SecurityManager.runAs(Secur
ityManager.java)
[jmsQueueCreation] at weblogic.rmi.internal.BasicServerRef.handleRequest(Ba
sicServerRef.java)
[jmsQueueCreation] at weblogic.rmi.internal.BasicExecuteRequest.execute(Bas
icExecuteRequest.java)
[jmsQueueCreation] at weblogic.kernel.ExecuteThread.execute(ExecuteThread.j
ava)
[jmsQueueCreation] at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:
178)
[jmsQueueCreation] at java.lang.Thread.startThreadFromVM(Unknown Source)
[jmsQueueCreation] JMSDistributedQueue with name 'dist_TransformationCheckWeb.qu
eue.AsyncDispatcher' has been created successfully.
[jmsQueueCreation] JMSDistributedQueueMember with name 'cgJMSServer_auto_1.Trans
formationCheckWeb.queue.AsyncDispatcher' has been created successfully.
[jmsQueueCreation] JMSDistributedQueueMember with name 'cgJMSServer_auto_2.Trans
formationCheckWeb.queue.AsyncDispatcher' has been created successfully.
[jmsQueueCreation] JMSDistributedQueue with name 'dist_TransformationCheckWeb.qu
eue.AsyncDispatcher_error' has been created successfully.
[jmsQueueCreation] JMSDistributedQueueMember with name 'cgJMSServer_auto_1.Trans
formationCheckWeb.queue.AsyncDispatcher_error' has been created successfully.
[jmsQueueCreation] JMSDistributedQueueMember with name 'cgJMSServer_auto_2.Trans
formationCheckWeb.queue.AsyncDispatcher_error' has been created successfully.

Hi
I am actually using JMX but trying to do pretty much the same thing as using WLST. Here is my code snippet.
JMSServerMBean jmsServer = this.getJMSServerMBean();
JMSQueueMBean jmsQ = this.findOrCreateJMSQueue("qName");
jmsQ.setJNDIName("myJNDIName");
jmsServer.addDestination(jmsQueue);          
// I added this line after your post
jmsQ.setParent(jmsServer);
The problem still exists. The JMSQueue appears in the weblogic console with JNDIName attached but does NOT appear in my JNDI tree. Do I have to manually put an object in the tree or am I missing something.
Thanks
Eugene

Similar Messages

  • JMS queue assignment with WLST offline WLS 8.1

    Hi
    I would like to know how to assign a JMSQueue to JMSserver under WLST offline and WLS 8.1
    I've tried with assign(...) function or the setParent without success.
    As far as I understand, the JMSQueue is always created under a JMS server, once created there how can I assign it to another server??
    10x

    Hi
    I would like to know how to assign a JMSQueue to JMSserver under WLST offline and WLS 8.1
    I've tried with assign(...) function or the setParent without success.
    As far as I understand, the JMSQueue is always created under a JMS server, once created there how can I assign it to another server??
    10x

  • Jetadmin Queue creation failed.

    I got a new Novell 6.5 server last week and I can't add a queue thru Jetadmin. The error message is "Queue creation failed", as I try to add a queue to the new server.
    IPX is loaded and working fine and I have checked the bindery context. I have also run dsrepair, as instructed by all other threads I could find regarding the problem, with no luck. I have 5 other 6.5 servers with bindery queue based printing and even though I would like to eventually move over to ndps, I really need this running right now..
    I can add a printer thru non-ndps add printer in the nwadmin program, but it's only visible by browsing thru the tree.
    Any ideas? Please?!?

    Originally Posted by AndersG
    Bburke,
    > Even when I add a queue manually, it doesn't show up in the jetadmin
    > utility as a servicable queue.
    >
    Did you create it as a bindery queue? IIRC does JetAdmin require that
    - Anders Gustafsson (Sysop)
    The Aaland Islands (N60 E20)
    Discover the new Novell forums at http://forums.novell.com
    Novell does not monitor these forums officially.
    Enhancement requests for all Novell products may be made at
    Enhancement Request
    I found the problem. The bindery context wouldn't load because there wasn't a replica on that server. Thanks for all the help! :)

  • Error message display for PO creation with reference to internal orders

    Sir,
    While creating PO with Tcode ME21N (item category I) with reference to ' Internal Order with Funds provided (Tcode KO12), system displaying error message  when Budget is exceeded.
    But when Funds provision is not mentioned (Funds value is initial in KO12) , error message is not being given by the system during Po creation with ME21N.
    Where should I configure in img(Tcode SPRO) , so that system will throw error mesage while creating PO without Budget Provision (Funds not mentioned ) in Internal Orders.
    Regards,
    Srinivasa Murthy

    Hi Anupam,
    The error message display as follows. (when the PO Price exceeds the Planned Funds kept for internal order)
    This error comes during PO creation Process and PO can not be saved. This error message display is correct.
    Item 001 Order 600643 budget exceeded
    Message no. BP604
    Diagnosis
    In document item 001 Order 600643, budget  for fiscal year 2009 was exceeded by 99,960,000.00 INR.
    But  my question is 'when funds have not at all been mentioned for the internal order' then system has to throw the same error as mentioned above. But it is not happening. System is allowing the PO to save which is not correct.
    Regards,
    Srinivasa Murthy

  • Po Creation With Reference to contract

    Dear Experts
                       We are creating the purchase order with reference to contract the contract quantity not copied to po. it is asking to enter the qty. but it should copy the contract quantity. the same contract price also not copied to po. it is copying from the info record price.
    my scenario is at the time of po creation with reference to contract it should copy the contract qty and price any copy control assignment is there or any other settings required.
    Please help
    Regards
    Anand

    Hi,
    If a contract with one of your principal vendors exists for a material, you can create purchase orders referencing this contract. Purchase orders created in this way are called contract release orders.
    The price, vendor data,  terms of payment, delivery costs, and any instructions to the vendor are adopted from the contract automatically.
    If  you have created the contract & info records is also exists  then system will give priority to contract to determine the conditions.
    Please check the source list ,whether contract is maintained over there or not.
    Thanks,
    AMIT

  • BOM changes(Not creation) with EC Number

    Hi
    I want to make the ECN as mandatory while changing the BOM,not for creation.
    I tried by setting OS27,OS25 settings for BOM. I tried BOM creation with status 3(With history requirement). System gives only warning message,not the error message.(Message no. 29045)
    I tried to make the Change number field as mandatory,but it applies it to CS01 & CS02. I want only in CS02.
    Plse help me out if any knows the soultion.

    Dear Sudhar,
    1.Please check in OS27 - Tick mark is included for EC Management Active &
    BOM validity manitained and History Requirement.
    2.In OS25 - For History Requirement.
    3.Get the help from ABAP consultant,to make use of field exit for the particular
    screen CS02 ,which has got a screen number.The system will not allow the user
    to enter into the next screen unless that field is not filled.
    4.Check for the Auth.Object C_STUE_NOH
    With this Logic only we are using in my present project.
    Check & reply.
    Regards
    Mangal

  • Service PO creation with BAPI

    Hi All,
    I have to create a file upload program to create service PO's with BAPI_PO_CREATE1. Please if anyone can give me a example of it it would be great.
    Thanks.
    Malinda

    Hi ,
           Check out this program .
    use this program for creating service po's using bapi.
    *& Report ZMM_PO_CREATE1 *
    REPORT ZMM_PO_CREATE1 .
    data : POHEADER like BAPIMEPOHEADER occurs 0 with header line,
    POHEADERX like BAPIMEPOHEADERX occurs 0 with header line,
    POITEM like BAPIMEPOITEM occurs 0 with header line,
    POITEMX like BAPIMEPOITEMX occurs 0 with header line,
    POESLLC like BAPIESLLC occurs 0 with header line,
    POACCOUNT like BAPIMEPOACCOUNT occurs 0 with header line,
    POACCOUNTX like BAPIMEPOACCOUNTX occurs 0 with header line,
    POCONDHEADER like BAPIMEPOCONDHEADER occurs 0 with header line,
    POCONDHEADERX like BAPIMEPOCONDHEADERX occurs 0 with header line,
    POCOND like BAPIMEPOCOND occurs 0 with header line,
    RETURN like BAPIRET2 occurs 0 with header line.
    data : po_no(10).
    data : begin of it_head occurs 0,
    ref(10),
    bsart like ekko-bsart,
    lifnr like ekko-lifnr,
    ekorg like ekko-ekorg,
    ekgrp like ekko-ekgrp,
    bukrs like ekko-bukrs,
    verkf like ekko-verkf,
    telf1 like ekko-telf1,
    ihrez like ekko-ihrez,
    unsez like ekko-unsez,
    kdatb(10),
    kdate(10),
    end of it_head.
    data : begin of it_det occurs 0,
    ref(10),
    knttp like ekpo-knttp,
    pstyp like ekpo-pstyp,
    txz01 like ekpo-txz01,
    matkl like ekpo-matkl,
    werks like ekpo-werks,
    afnam like ekpo-afnam,
    ktext1 like esll-ktext1,
    srvpos like esll-srvpos,
    frmval1 like esll-frmval1,
    frmval2 like esll-frmval2,
    menge like esll-menge,
    kostl like eskn-kostl,
    sakto like eskn-sakto,
    zzcode like eskn-zzcode,
    kbetr like konv-kbetr,
    end of it_det.
    data : c_col1 TYPE i VALUE '0001',
    c_col2 TYPE i VALUE '0002',
    c_col3 TYPE i VALUE '0003',
    c_col4 TYPE i VALUE '0004',
    c_col5 TYPE i VALUE '0005',
    c_col6 TYPE i VALUE '0006',
    c_col7 TYPE i VALUE '0007',
    c_col8 TYPE i VALUE '0008',
    c_col9 TYPE i VALUE '0009',
    c_col10 TYPE i VALUE '0010',
    c_col11 TYPE i VALUE '0011',
    c_col12 TYPE i VALUE '0012',
    c_col13 TYPE i VALUE '0013',
    c_col14 TYPE i VALUE '0014',
    c_col15 TYPE i VALUE '0015',
    c_col16 TYPE i VALUE '0016'.
    data : v_currentrow type i,
    v_currentrow1 type i.
    data : itab_head like ALSMEX_TABLINE occurs 0 with header line,
    itab_det like ALSMEX_TABLINE occurs 0 with header line.
    data : file_head type RLGRAP-FILENAME,
    file_item type RLGRAP-FILENAME.
    file_head = 'C:Documents and SettingsDesktophead.xls'.
    file_item = 'C:Documents and SettingsDesktopitem.xls'.
    CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
    EXPORTING
    filename = file_head
    i_begin_col = 1
    i_begin_row = 1
    i_end_col = 12
    i_end_row = 50
    tables
    intern = itab_head
    EXCEPTIONS
    INCONSISTENT_PARAMETERS = 1
    UPLOAD_OLE = 2
    OTHERS = 3
    IF sy-subrc 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
    EXPORTING
    filename = file_item
    i_begin_col = 1
    i_begin_row = 1
    i_end_col = 16
    i_end_row = 50
    tables
    intern = itab_det
    EXCEPTIONS
    INCONSISTENT_PARAMETERS = 1
    UPLOAD_OLE = 2
    OTHERS = 3
    IF sy-subrc 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    IF itab_head[] IS INITIAL.
    WRITE:/ 'No Header Data Exists '.
    STOP.
    ELSE.
    sort itab_head by row col.
    read table itab_head index 1.
    v_currentrow = itab_head-row.
    loop at itab_head.
    if itab_head-row ne v_currentrow.
    APPEND it_head.
    v_currentrow = itab_head-row.
    ENDIF.
    CASE itab_head-col.
    WHEN c_col1.
    it_head-ref = itab_head-value.
    WHEN c_col2.
    it_head-bsart = itab_head-value.
    WHEN c_col3.
    it_head-lifnr = itab_head-value.
    WHEN c_col4.
    it_head-ekorg = itab_head-value.
    WHEN c_col5.
    it_head-ekgrp = itab_head-value.
    WHEN c_col6.
    it_head-bukrs = itab_head-value.
    WHEN c_col7.
    it_head-verkf = itab_head-value.
    WHEN c_col8.
    it_head-telf1 = itab_head-value.
    WHEN c_col9.
    it_head-ihrez = itab_head-value.
    WHEN c_col10.
    it_head-unsez = itab_head-value.
    WHEN c_col11.
    it_head-kdatb = itab_head-value.
    WHEN c_col12.
    it_head-kdate = itab_head-value.
    ENDCASE.
    ENDLOOP.
    APPEND it_head.
    CLEAR it_head.
    ENDIF.
    IF itab_det[] IS INITIAL.
    WRITE:/ 'No Item Data Exists '.
    STOP.
    ELSE.
    sort itab_det by row col.
    read table itab_det index 1.
    v_currentrow1 = itab_det-row.
    loop at itab_det.
    if itab_det-row ne v_currentrow1.
    APPEND it_det.
    v_currentrow1 = itab_det-row.
    ENDIF.
    CASE itab_det-col.
    WHEN c_col1.
    it_det-ref = itab_det-value.
    WHEN c_col2.
    it_det-knttp = itab_det-value.
    WHEN c_col3.
    it_det-pstyp = itab_det-value.
    WHEN c_col4.
    it_det-txz01 = itab_det-value.
    WHEN c_col5.
    it_det-matkl = itab_det-value.
    WHEN c_col6.
    it_det-werks = itab_det-value.
    WHEN c_col7.
    it_det-afnam = itab_det-value.
    WHEN c_col8.
    it_det-srvpos = itab_det-value.
    WHEN c_col9.
    it_det-ktext1 = itab_det-value.
    WHEN c_col10.
    it_det-frmval1 = itab_det-value.
    WHEN c_col11.
    it_det-frmval2 = itab_det-value.
    WHEN c_col12.
    it_det-menge = itab_det-value.
    WHEN c_col13.
    it_det-kostl = itab_det-value.
    WHEN c_col14.
    it_det-sakto = itab_det-value.
    WHEN c_col15.
    it_det-zzcode = itab_det-value.
    WHEN c_col16.
    it_det-kbetr = itab_det-value.
    ENDCASE.
    ENDLOOP.
    APPEND it_det.
    CLEAR it_det.
    ENDIF.
    loop at it_head.
    poheader-doc_type = it_head-bsart.
    poheader-vendor = it_head-lifnr.
    poheader-purch_org = it_head-ekorg.
    poheader-pur_group = it_head-ekgrp.
    poheader-comp_code = it_head-bukrs.
    poheader-sales_pers = it_head-verkf.
    poheader-telephone = it_head-telf1.
    poheader-REF_1 = it_head-ihrez.
    poheader-OUR_REF = it_head-unsez.
    poheader-VPER_START = it_head-kdatb.
    poheader-VPER_END = it_head-kdate.
    loop at it_det where ref = it_head-ref.
    poitem-acctasscat = it_det-knttp.
    poitem-item_cat = it_det-pstyp.
    poitem-short_text = it_det-txz01.
    poitem-matl_group = it_det-matkl.
    poitem-plant = it_det-werks.
    poitem-PREQ_NAME = it_det-afnam.
    POESLLC-SERVICE = it_det-srvpos.
    POESLLC-SHORT_TEXT = it_det-ktext1.
    POESLLC-FORM_VAL1 = it_det-frmval1.
    POESLLC-FORM_VAL2 = it_det-frmval2.
    POESLLC-QUANTITY = it_det-menge.
    POACCOUNT-COSTCENTER = it_det-kostl.
    POACCOUNT-GL_ACCOUNT = it_det-sakto.
    POCONDHEADER-COND_TYPE = 'R000'.
    POCONDHEADER-COND_VALUE = it_det-kbetr.
    endloop.
    endloop.
    poheaderx-doc_type = 'X'.
    poheaderx-vendor = 'X'.
    poheaderx-purch_org = 'X'.
    poheaderx-pur_group = 'X'.
    poheaderx-comp_code = 'X'.
    poheaderx-sales_pers = 'X'.
    poheaderx-telephone = 'X'.
    poheaderx-REF_1 = 'X'.
    poheaderx-OUR_REF = 'X'.
    poheaderx-VPER_START = 'X'.
    poheaderx-VPER_END = 'X'.
    poitemx-acctasscat = 'X'.
    poitemx-item_cat = 'X'.
    poitemx-short_text = 'X'.
    poitemx-matl_group = 'X'.
    poitemx-plant = 'X'.
    poitemx-PREQ_NAME = 'X'.
    *POESLLCx-SHORT_TEXT = 'X'.
    POACCOUNTx-COSTCENTER = 'X'.
    POACCOUNTx-GL_ACCOUNT = 'X'.
    POCONDHEADER-cond_type = 'X'.
    CALL FUNCTION 'BAPI_PO_CREATE1'
    EXPORTING
    poheader = poheader
    POHEADERX = poheaderx
    POADDRVENDOR =
    TESTRUN =
    MEMORY_UNCOMPLETE =
    MEMORY_COMPLETE =
    POEXPIMPHEADER =
    POEXPIMPHEADERX =
    VERSIONS =
    NO_MESSAGING =
    NO_MESSAGE_REQ =
    NO_AUTHORITY =
    NO_PRICE_FROM_PO =
    IMPORTING
    EXPPURCHASEORDER = po_no
    EXPHEADER =
    EXPPOEXPIMPHEADER =
    TABLES
    RETURN = return
    POITEM = poitem
    POITEMX = poitemx
    POADDRDELIVERY =
    POSCHEDULE =
    POSCHEDULEX =
    POACCOUNT = poaccount
    POACCOUNTPROFITSEGMENT =
    POACCOUNTX = poaccountx
    POCONDHEADER = pocondheader
    POCONDHEADERX = pocondheaderx
    POCOND =
    POCONDX =
    POLIMITS =
    POCONTRACTLIMITS =
    POSERVICES = poesllc
    POSRVACCESSVALUES =
    POSERVICESTEXT =
    EXTENSIONIN =
    EXTENSIONOUT =
    POEXPIMPITEM =
    POEXPIMPITEMX =
    POTEXTHEADER =
    POTEXTITEM =
    ALLVERSIONS =
    POPARTNER =
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
    WAIT =
    IMPORTING
    RETURN =
    if sy-subrc = 0.
    loop at return.
    write return-MESSAGE_V1.
    write po_no.
    endloop.
    endif.
    Also check this link
    [Service Order through BAPI|Service PO creation with BAPI;

  • BAPI for Outbound Delivery Creation with reference to Sales Order - VL01N

    Hi Everybody,
           We are in ECC 5.0 version.
           I want to create a enhancement for Outbound Delivery Creation with reference to a Sales Order.
           Is any BAPI available for this ?
           Any input on this will be very much helpfull.
           Please suggest any BAPI available for this, or should I go for BDC using VL01N or VL04 ?
           Thanks in advance.
    regards,
    Nagarajan.J

    Hi Nagarajan,
    The BAPI BAPI_DELIVERYPROCESSING_EXEC meets your requirement. You can create delivery with reference to sales order.
    The below is the sample code...
      data:lt_request      like bapideliciousrequest
                                    occurs 0 with header line,
           lt_createditems like bapideliciouscreateditems
                                    occurs 0 with header line,
           lt_return       like bapiret2
                                    occurs 0 with header line.
        lt_request-document_type      = 'A'.
        lt_request-document_numb      = vbeln.
        lt_request-document_item      = posnr.
      lt_request-material           = matnr.
      lt_request-plant              = werks.
      lt_request-stge_loc           = lgort.
      lt_request-quantity_base__uom = base_uom_qty.
      lt_request-delivery_date      = sy-datum.
      append lt_request.
      call function 'BAPI_DELIVERYPROCESSING_EXEC'
      EXPORTING
        DELIVERY_EXTEND       =
        TECHN_CONTROL         =
        tables
          request               = lt_request
          createditems          = lt_createditems
          return                = lt_return.
      loop at lt_return where type = 'A'
                          or  type = 'E'.
        exit.
      endloop.
      if sy-subrc <> 0.
    Use the BAPI for Commit
        call function 'BAPI_TRANSACTION_COMMIT'
             exporting
                  wait = 'H'.
      endif.
    Thanks
    Ramakrishna

  • BAPI for Outbound Delivery Creation with reference to Sales Order

    Dear all,
    I'm on R/3 4.6B platform and to develop an RFC for outbound Delivery creation instead of using the standard VL01N transaction.
    I've review BAPI for Outbound Delivery Creation with reference to Sales Order - VL01N thread which suggest BAPI_DELIVERYPROCESSING_EXEC .
    However, in 4.6B, that function module doesn't exist. Appreciate any suggestion and or workaround.
    Thanks.
    Steven
    Edited by: Steven Khoo on Mar 25, 2010 7:13 AM
    Edited by: Steven Khoo on Mar 25, 2010 7:14 AM

    Not required anymore

  • Dynamic queue name with JMS Queue XML?

    Hi,
    Is it possible to use dynamic queue name with JMS Queue XML?
    I tried using a variable in the JNDI URL, and supply the value in a package. I specified the following in the JNDI URL in the Topology:
    e.g.
    <JMS_RESOURCE>?d=<DTD_FILE>&s=<SCHEMA>&JMS_DESTINATION=#PROJECT_NAME.dest_var
    I declared and set the variable in a package, then tried to load data from the above data server to database. But executing this package gave me the following error:
    7000 : null : java.sql.SQLException: javax.jms.JMSException: Cannot find the target in JNDI (#PROJECT_NAME.dest_var)
    java.sql.SQLException: javax.jms.JMSException: Cannot find the target in JNDI (#PROJECT_NAME.dest_var)
         at com.sunopsis.jdbc.driver.bg.executeQuery(bg.java)
         at com.sunopsis.jdbc.driver.bh.executeQuery(bh.java)
         at com.sunopsis.jdbc.driver.l.f(l.java)
         at com.sunopsis.jdbc.driver.l.executeUpdate(l.java)
         at com.sunopsis.sql.SnpsQuery.executeUpdate(SnpsQuery.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execSrcOrders(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSqlC.treatTaskTrt(SnpSessTaskSqlC.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandScenario.treatCommand(DwgCommandScenario.java)
         at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
         at com.sunopsis.dwg.cmd.e.i(e.java)
         at com.sunopsis.dwg.cmd.g.y(g.java)
         at com.sunopsis.dwg.cmd.e.run(e.java)
         at java.lang.Thread.run(Unknown Source)
    Am I doing it wrongly?
    Thanks!

    hi,
    as it's not in Adapter-Specific Message Properties
    http://help.sap.com/saphelp_nw04/helpdata/en/10/b1b4c8575a6e47954ad63438d303e4/content.htm
    looks like you cannot do it with jms adapter in standard
    use proxy or your own adapter instead
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

  • Create ecatt script for one sales order creation with multiple line items

    Hi ,
    I want to create a ecatt script for one sales order creation with multiple line items. Preferably SAP GUI.
    This selection of data will be from an external file/ variants which will have only one row of data in it.
    Firstly: I have to sort the external file having same PO Numbers in an order.Group them together.
    Second: I have to create sales order for those many line items having same PO Number.
    Best Regard
    Taranum

    Hi Micky
    Firstl you should upload the Line items for a particular sales Order in an Internal table
    and then pass that internal table to your BAPI during your coding corresponding to a particu;lar sales order
    In case of any issues pls revert back
    Reward points if helpful
    Regards
    Hitesh

  • Purchase order creation with reference to Contract

    Dear All
                    Purchase order creation with reference to quantity contract the contract quantity is not copied in to po. any configuration copying rules required. please guide
    Regards
    Anand.

    Hi Buddy
    The correct business process is RV Preq created by a user from any department then buyer converts this Preq to a MK contract with some quantity keeping the duration as some months/year. Then as and when material mentioned in the contract is required during the validity period of the contract MRP creates Preq or buyer manually creates NB preqs , same are then converted to PO but these PO are released against MK contract. So qty in PO are different then mentioned in contract because contract is for  a large qty keeping in mind the duration (for example one year).
    Regrds
    Yogesh

  • PDF Creation with data from SAP system

    Hi All,
    I need to generate a PDF file using Adobe Document Service. The content of the PDF can be from any datasource (Oracle/ BW/ R3 ),  So I require Webdynpro code for pdf creation with data from any of the system

    Hi Deepak,
                     Before starting the code just like that,make sure u have configured all services in Visual Administrator.
    U can refer this:
    <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/95/5a08cd0e274a0bae559622d6670722/frameset.htm">Configuration Guide</a>
    regards
    Sumit

  • JDeveloper - ESB / BPEL - JMS Adapter - prefix queue name with db schema

    When I use the JMS Adapter in ESB to create a new message queue producer or consume using database (AQ) I'm experiencing a problem when selecting the queue.
    I can browse the queue in the database but when I have selected the queue JDeveloper prefix it with the schema name owning the queue.
    Example:
    java:comp/resource/DocumentQueueResourceProvider/Queues/QUEUES.DOCUMENT_IMPORT_QUEUE
    Schema owner is QUEUES and the name of the queue is DOCUMENT_IMPORT_QUEUE.
    The problem is when I try to use it its unable to look up the queue and I have to manually remove the prefix from .wsdl file before deploying it - as with setting mcf.IsTransacted='false'.
    When the resource provider finds the queue and exposes it in the JNDI three it does it without the prefix.
    Question: How do I either:
    a) make the schema prefix be removed by JDeveloper
    b) make the resource provider prefix the queue name with the schema name.
    Anybody?
    Best regards
    Christian Damsgaard

    Try this:
    <?xml version="1.0" encoding="UTF-8"?>
    <xsd:schema targetNamespace="http://www.yourcompany.com/msg"
    xmlns:tns="http://www.yourcompany.com/msg"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:nxsd="http://xmlns.oracle.com/pcbpel/nxsd"
    nxsd:encoding="ASCII" nxsd:stream="chars" nxsd:version="NXSD"
    elementFormDefault="qualified" attributeFormDefault="unqualified">
    <xsd:element name="rootnode" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="${eof}"/>
    </xsd:schema>
    This will result in a single node xml.
    Edited by: user472896 on Sep 22, 2010 10:29 AM

  • Global Creation with Input args

    I create a Global Creation activity with a screenflow task. The screenflow has both a integer input argument (call it sfIntArg) and a output argument (of BPM object).
    When I right-click on the Global creation activity and go to argument mapping, I have trouble mapping the screenflow input argument. I am not sure what to specify in the "Value" field to map to sfIntArg.
    1. when I specify nothing to map to sfIntArg (sfIntArg = empty/null), then I get the message "express is expected".
    2. when I do not specify the argument mapping, I get "All arguments must be satisfied"
    3. when I choose a instance variable of the process, I get "xxx is not a static member of project.process.instance"
    I want to invoke the Global Creation with WAPI and pass the value for sfIntArg to the Global Creation.

    Hi,
    It's odd that you see no errors in your project.
    1. Make sure that you just have one project open in your Project Navigator tab.
    2. In the Project Navigator tab, double click the name of the process. Look at the "Outline" tab directly below the Project Navigator tab (click Window -> Reset Perspective if you don't see the Outline tab). Expand Methods and double click each of the methods to find the offending logic with the "var1" syntax that is causing your problem. Do this for each of your processes.
    Dan

Maybe you are looking for

  • Loud audio and overexposed picture in iDVD

    This has happened with earlier projects, and is occurring again with my present one: I edited my production, (under 60 mins) and import it to iDVD 3.1 as a QT movie by dragging it into the work area. Upon burning, I note that the audio levels, while

  • Available bandwindth and 'max-reserved bandwidth'

    Is the max-reserved bandwidth only important when working with Qos classes and the bandwidth statement? Is the default 75% available bandwidth only used then? In other words if I have a 100MB link with a service policy applied for Voice, Call-Control

  • Java system error: Bean BICS_CONS_GET_VIEW_DEF_J_PROXY not found

    In BEx Report Designer, click Insert Data provider under Report, and then choose one create query, system show the error message(message class:RSBOLAP, message number:018), the detail diagnosis like below, please help to solve it. Thanks! Diagnosis E

  • Item Based Interest on Remaining Balance of Invoice after Payment Posted

    We are doing item based interest but the when a payment is posted against the invoice the interest is calculated against the entire invoice amount.  Where do I need to check to get the interest to be calculated against the remaining balance. Edited b

  • IOS 7 Issue

    All of our apps created with Air now request microphone access for audio recording on first launch in iOS 7. Anyone know what's triggering this? We don't use the microphone in our apps. Thanks, Matt