Wsimport multiple wsdl problem

Hello,
I have been using wsimport successfully to generate a class library based on a wsdl file. The application hits 2 different web services on the same server which I have no control over, and each of these web services use a common xsd. Therefore the wsdl for each web service has some definitions in common, because these definitions are being generated based on the xsd.
I have just started using JDK 1.6.0_04. In previous releases of the JDK, I had to write a program to merge two wsdl files together and then run wsimport against the merged file. This is partly because wsimport would only handle one wsdl file.
Now I see that wsimport allows me to specify multiple wsdl files. When I run it, I get a lot of errors like the following:
[ERROR] 'TaskStatus' is already defined
line 41 of file:/C:/genTest/ReferenceQueries.wsdl
This is because both of these files have many of the same elements defined, because they both use the same xsd.
Is there any plan to handle this situation for future releases, or will I have to continue using my merging program?
Does anyone know how to overcome this situation without doing any extra work to merge the two wsdls?
By the way, I noticed that wsimport in the 1.6.0_04 release does now correctly handle inheritance, and it adds @xmlSeeAlso tags. This project seems to be moving in the right direction, so I hope there is some effort to add support for my situation.
Thanks,
Andrew

The problem is that there isn't any specific error code. Model generator on the Netweaver dev studio just gives exception saying the generation failed when adding the operation parameters (can't check now the exact exception).
I would need 3rd party libraries since the WS interface client is built using them and will of course give ClassDefNotFoundException if I do not deploy the 3rd party jars too. I tried using External library DC to deploy the jars and everything seemed fine until I checked the deployment using SDM. Even though the deployment seems to work through the NWDS, the lib is not deployed on the J2EE engine and there's not even any error message explaining why the jars fail to deploy.
I can't understand why it has been made this difficult. Why not just give the possibility to deploy standard jars or use library paths for J2EE engine?

Similar Messages

  • How to use multiple WSDL operations in One BPEL process Recieve Activity ?

    Is there anyway to attach multiple WSDL operations with a Single BPEL process ? How ?

    Thanks Melvin for your quick respond.
    When I create a BPEL process, It asks me to give the XSD as an Input. When I import the XSD it asks me to select an operation not more than one. Let suppose I select addRequest and finish the wizard.
    Now what I can see, It create Recieve activity with an Input msg of Add operation. Well what I understand from your statement is that, I remove the recieve activity and put the Pick activity.
    Now my question is How to mention the other operations like update and delete ? And how to test them ?? The link provided by you is just tell me what Pick activity can do for me, But its not telling me how to use it ?? and how the give the operation to it. Where should I need to change in the BPEL ???

  • XML IDOC data (hosted on a web server)   &  handling multiple WSDLs

    Hi ALL,
    1)how to design an Interface for picking up an XML IDOC data (hosted on a web server) which will be uploaded to SAP or converted to a file
    this is what the customer has given me ..can any one explain me this and help me how to more forward
    2).This Interface must use UDDI concept because we are going to use multiple BAPIs /RFCs as WSDLs
    what is this mean can any send me some document on this
    3).Use web-service navigator concept as we will be handling multiple WSDLs
    i worked on 1. to define a place holder in WebAS for holding the
    wsdls.
    2. publish the wsdls in WebAS UDDI Repostory
    but i have never used web-service navigator concept as we will be handling multiple WSDLs what is the difference ..send me some step by step docs ..
    thanks very much
    RK..

    1.I am not clear with the requirement too. THere is no big deal in sending XML to IDOC or File. Based on your requirement you have to import IDOC structure or ify ou are using file, create a structure for the file.
    If u are asking about sendin the XML directly without mapping, even you can do that without MM and even IM.
    Please be more elaborate and if you are not clear with what client said, paraphrase them or ask again. Its not good to start work unless we are very clear with the requirement.
    you can say to my understanding i feel this, now pI will send data like this. Is it correct?
    2. More information on UDDI
    http://en.wikipedia.org/wiki/UDDI
    I dont think you need to worry much about this now with many features provided in ESR especially
    3. http://<Host>:<port>/wsnavigator/
    The webservices going out of PI are published here.
    provide host and port are host and port details of ext system.
    Once you enter link in your browser, it shows the available webservices hosted there.
    All you need is to click on the required wsdl and test it.
    It is as good as sending your data from PI to other system.
    It is similar to Altova XML spy but the difference here is you enter the values directly here but in XML spy we send XML .

  • WS Best Practice - Is Duplicating Operations in multiple WSDLs OK?

    My company is providing Web Services to multiple business partners for B2B and A2A Integration. We have Data Sets (XSD files) that are common to multiple services. One such example is a Customer Profile that contains stuff like Name, Address, Employment, etc. Since several of our Services (Existing and Future) includes the Customer Profile element (or some subset of it) in the request Message / Document we're expecting that the Service Consumer has already obtain the Customer Profile from an earlier Web Service call.
    While we have a standalone Customer Profile Service, when Other Services requires the Customer Profile as input should we force the Service Consumer to call the Customer Profile Service (therefore requiring them to use at least 2 Web Services for the Integration), or should we add a Proxy Operation in the Other Service that would bundle all operations required by a particular Integration into 1 Composite Service?
    Now we are not trying to create Consumer specific Web Services. We want to encourage re-use as much as possible. The whole idea of including an operation like "getCustomerProfile" in multiple WSDL / Service Contracts is only intended to simplify integration requirements for cases where a Service Consumer may only care about 1 specific Service or Integration scenario.
    Another way to ask this question might be: If a Web Service requires a Data Set / Element in the Request that can only be provided by the Service Provider, should the Service also provide an operation for querying the required Data Set / Element; or in the case of a commonly used Data Set require that it be queried from a different Web Service?
    Thanks

    If you have things set up so that your layer names end with a space and a number, so that they increment when you duplicate them, you should be able to use the layer's name to navigate to the other layers in the set. For example, if your layers are named "layer 1", "layer 2", etc. and your control layers are named "control 1", "control 2", etc., you could do something like this in your expressions to construct the control layer's name on the fly:
    n = name.split(" ");
    ctrl = thisComp.layer("control " + n[n.length-1]);
    Dan

  • Multiple Inheritance problem persists in Interfaces

    Hi,
    I tentatively made a program and found that multiple inheritance problem of C++ persists even with interfaces. Although this is definetely a special case but I want to know what is this problem known as( i know that this is perhaps known as diamond problem in C++). And is there a way out of this thing.
    interface one
         int i=10;
    interface two
         int i=20;
    interface z extends one,two
    public class xyz implements z
         public static void main(String [] a)
         System.out.println(i);
    }O/P
    D:\Education\Java\JavaStudyRoom\Applets>javac xyz.java
    xyz.java:16: reference to i is ambiguous, both variable i in one and variable i
    in two match
    System.out.println(i);
    *^*
    *1 error*
    Thanks for replying

    suvojit168 wrote:
    I tentatively made a program and found that multiple inheritance problem of C++ persists even with interfaces. Although this is definetely a special case but I want to know what is this problem known as( i know that this is perhaps known as diamond problem in C++). And is there a way out of this thing. This is not the so called diamond inheritance problem. What you have here is an ordinary name clash. And as has been noted you can resolve it by qualifying which constant you're referring to, like
    System.out.println(one.i);
    For the diamond inheritance problem to apply both the one and the two interfaces would need to inherit a common ancestor (that's how the diamond is formed). Furthermore the common anscestor would need to carry implementation which would then be inherited two ways, once via one and once via two. This is the diamond inheritance problem Java is avoiding by allowing single inheritance of implementation only.
    P.S. My previous post was posted my mistake.

  • SP10 - multiple approver problem with CUP

    We have SP10 (patch 1) in our development system and cannot move forward to production because of a real show stopper.  I have currently reported this to SAP thru an OSS message (and it is in development) but would like to know if anyone else is having this issue with SP10.  (this happened even before applying patch 1)
    We have multiple approvers when creating NEW users or CHANGING users in CUP.  We have it configured to allow just one of the approvers to approve before going on to the next stage.  Since we put in SP10, CUP is requiring ALL approvers to approve the request before going on to the next stage.  We get the following message when one of the approvers approve the request:  Request no: 5020. is approved, pending for other Approvers. 
    I've seen this reported for UAR and SOD but not for CUP.  In fact, there is a fix for UAR in Patch 1 of SP10.  I applied this patch but it hasn't fixed the CUP issue.  I also don't have the issue when rejecting a CUP request, or when approving it through the configuration --> Request --> Administration screen (what I consider the Back-door since only security administrators get the configuration area).
    Thanks for your input.
    Peggy

    Christian,
    I totally agree with you.
    The good news is.... We installed SP11.1 and the multiple approver problem is fixed. 
    We have decided to leave our production system at SP8 until this system settles down a bit.  Of course, this means we can't use many of the new fixes and features (such as UAR).  We use our sandbox system to apply new support packs and do very rigorous testing.  And our DEV system is at SP8 too.
    Good Luck.
    Peggy

  • L430 multiple driver problems (ultranav and others)

    Hello,
    I have multiple driver problems with my newly purchased L430.
    1) After hibernate the UltraNav driver randomly stops working. This means that the settings are grayed out and my old settings aren't applied. Sometimes the mouse pad and track ball also stop working after hibernate.
    2) The hardware mute button and hibernate don't like each other as well. After resuming from hibernate with the mute button on the sound doesn't work anymore. Rebooting only helps if you have disabled the mute before rebooting.
    3) The intel usb 3.0 driver can't be installed unless you want a lot of bluescreens.
    I do have the newest drivers and BIOS (2.54).

    It's ok my friend,  I just hope I will be able to help.
    Now to the problem. The thing that worries me the most and the reason I asked you to contact a Lenovo Repair Center, is the blue screens with the Intel Usb 3.0 installation. If the driver is correct this should not happen and most of the times it signifies a pure hardware problem, not a software one. Really, it just should not happen, period!
    So please, before anything else, download and boot with a Linux Live cd, any distro you like (e.g. Linux Mint, Fedora, etc). Better choose a 64bit version. It's one way of determining if you're facing a hardware problem with the usb 3.0 ports.
    The information you give is very useful and more or less complete, but I would like to also know the model of your SSDs, both the 2.5'' and msata.
    Meanwhile, you can check either with the Linux Live cd or with Memtest86+ your ram. This does not seem to be a memory problem but it would be nice if we could exclude it from the suspects list. Many - if not most - of these problems are multifactorial and we cannot leave anything to chance..
    Cheers!
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"!
    This will help the rest of the Community with similar issues identify the verified solution and benefit from it.

  • Web service wsdl problem with wsimport

    I tried running wsimport on a wsdl my company is using for other services, and i get an error
    wsimport -keep -p client https://url/View/EntityViews.svc?wsdland i get this:
    error: operation "Logon": more than one part bound to bodyI'm a lil new to web services, can someone add a lil clarity as to what this means?

    I tried running wsimport on a wsdl my company is using for other services, and i get an error
    wsimport -keep -p client https://url/View/EntityViews.svc?wsdland i get this:
    error: operation "Logon": more than one part bound to bodyI'm a lil new to web services, can someone add a lil clarity as to what this means?

  • Splitting Java source into multiple WSDLs using ANT

    Hi,
    I have seven of webservice operations defined in a single webservice class. But, I want those split into different WSDLs as different services (with different service names) using ANT. I cannot find a easy way of doing that.
    The problem is that when I use servicegen, I can give the same webservice class as different services which would split it into different services. But, I would have all the operations in the overall webservice into every single service. That is not acceptable. Each service can have only one operation.
    Is this possible at all? I am using WLS 813?
    Thanks,
    Sridhar

    If you are asking if there a way to tell servicegen to put different operations from the same Java source in different WSDL, the answer is no.
    You can use the source2wsdd Ant task (http://edocs.bea.com/wls/docs81/webserv/wlws_tags.html#1095437) and the @wlws:exclude tag to exclude methods from the WSDL, but that's about it. Here, you would have multiple copies of the Java source, with each having the @wlws:exclude tag on all but one method. The names of these file copies would be something like <real-file>1.java, <real-file>2.java, etc. You won't ever compile these files, you'll just us them to copy over <real-file>.java, before you run source2wsdd. You'll be running source2wsdd on xxx.java, as many times as you have <real-file>n.java files.
    source2wsdd will then produce a seperate web-services.xml (i.e. web service) for each copy over of <real-file>.java. Each of these web services will need to have a different context root, because the endpoint for a WLS web service is exposed as a servlet.
    HTH,
    Mike Wooten

  • Outlook Sync - Multiple Calendar Problem

    (I am not sure whether this belongs in this Forum or would be more appropriately directed to my Device (Curve 8900) forum or Desktop Software.  Please advise or re-direct if that is the case.)
    I am having a sync issue with Outlook, and it revolves around the issue of having multiple calendars on the Device, each of which is associated with an e-mail address.  I understand this has been a relatively common question; however, although I admittedly may be looking in the wrong place, I have yet to come across a comprehensive solution.
    I understand how to switch the "default" e-mail associated with scheduling items on the calendar, and I believe I'm correct in thinking that this is what syncs with Outlook.  I've noticed that when I try switching the default, Outlook wants to delete all other appointments which are NOT associated with that device calendar.
    So I guess my specific questions are:
    1) Is there a way to have Outlook sync with ALL calendars on the device, i.e. not just the default?  It's easy enough to make all appointments from here on out with a single account & have that be the one that syncs; however, it doesn't seem possible to do that without having Outlook want to delete all other appointments.
    2) Is there a way to change the associated email/calendar for events on the Device?  When I open an event, I can see which email/calendar it is but I don't know how to *change* it -- I only seem to have a choice when scheduling new events.
    If either of these was an option, I think that would solve my problem -- I could either go through the device & convert everything to the default email/calendar & everything would be there upon sync, OR Outlook would just pick up everything from all calendars when I sync.
    I don't understand why it's so complicated to have everything in one place!
    Thanks in advance to those willing to share their wisdom & advice in this matter.
    mbw 

    I was going to post that article but you beat me to it.  
    I believe this is the only way to accomplish this on a BlackBerry
    If someone has been helpful please consider giving them kudos by clicking the star to the left of their post.
    Remember to resolve your thread by clicking Accepted Solution.

  • MULTIPLE ITEM PROBLEM IN VL31N BDC

    hI FRIENDS ,
        I AM POSTING A BDC OF TRANSACTION VL31N ,ie FOR SCHEDULE AGREEMENT INBOUND DELIVERY.I CREATE A FUNCTIONAL MODULE OF THE SAME AND CALL IT FROM AN ASP PAGE,IN THAT THERE IS PO NUMBER 5500000986 WHICH HAS TWO ITEMES 62 AND 95 RESPECTIVLY OF SAME MATARIAL NUMBER R010230123041002 AND DIE NUMBER 2304P,NOW THE PROBLEM IS THIS BDC IS WORKING WHEN THERE IS ONLY ONE ITEM BUT GIVES AN ERROR "CANT CREAT INBOUND DELIVERY FOR PO NO ...' WNEN IT HAS MULTIPLE ITEM.WHAT SHOULD I DO ? I ALSO USED LOOP BUT IT ALSO DOSENT WORK AS IT WILL ADD ALL OPEN QTY OF PO 986 AND UPDATE AGAINST ITEM NO 95.
    CODE IS AS FOLLOWS:.........
    FUNCTION y_synie_bdcinbdly.
    ""Local interface:
    *"  IMPORTING
    *"     VALUE(CTU) LIKE  APQI-PUTACTIVE DEFAULT 'X'
    *"     VALUE(MODE) LIKE  APQI-PUTACTIVE DEFAULT 'N'
    *"     VALUE(UPDATE) LIKE  APQI-PUTACTIVE DEFAULT 'L'
    *"     VALUE(GROUP) LIKE  APQI-GROUPID OPTIONAL
    *"     VALUE(USER) LIKE  APQI-USERID OPTIONAL
    *"     VALUE(KEEP) LIKE  APQI-QERASE OPTIONAL
    *"     VALUE(HOLDDATE) LIKE  APQI-STARTDATE OPTIONAL
    *"     VALUE(NODATA) LIKE  APQI-PUTACTIVE DEFAULT '/'
    *"     VALUE(EXTNID) LIKE  MAKT-MAKTG
    *"     VALUE(VENDORNO) LIKE  LFA1-LIFNR
    *"     VALUE(PONUMBER) LIKE  EKKO-EBELN
    *"     VALUE(ITEMNUMBER) LIKE  LIPS-VGPOS
    *"     VALUE(MATERIAL) LIKE  MAKT-MAKTG
    *"     VALUE(DLYQTY) LIKE  LIPS-LFIMG
    *"     VALUE(BTCHNO) LIKE  LIPS-CHARG
    *"     VALUE(POSLR) LIKE  EKES-EBELP OPTIONAL
    *"  EXPORTING
    *"     VALUE(SUBRC) LIKE  SYST-SUBRC
    *"     VALUE(INDELYNO) LIKE  SY-MSGV2
    *"     VALUE(MSG1) LIKE  SY-MSGV1
    *"     VALUE(MSG2) LIKE  SY-MSGV2
    *"     VALUE(MSG3) LIKE  SY-MSGV3
    *"     VALUE(MSG4) LIKE  SY-MSGV4
    *"  TABLES
    *"      MESSTAB STRUCTURE  BDCMSGCOLL
    *"      ERRTAB STRUCTURE  YSYNERRMSGS
    *"      INDLYTAB STRUCTURE  YSYN_QTYTAB
    Updated by ANAND SYNISE 19.1.2007
      DATA: BEGIN OF bdctab OCCURS 0.
              INCLUDE STRUCTURE bdcdata.
      DATA: END OF bdctab.
      DATA: datenow(10) TYPE c,
            fldvar(30)  TYPE c,
            fldno       TYPE i,
            flditoc(6)  TYPE c,
            qty(13)     TYPE c.
      DATA maxposnr LIKE lips-posnr.
      DATA testposnr TYPE posnr.
      DATA itemnoint TYPE i.
      CONCATENATE sy-datum6(2) '.' sy-datum4(2) '.' sy-datum+0(4) INTO datenow.
      CLEAR bdctab.
      REFRESH bdctab.
      PERFORM open_group      USING group user keep holddate ctu.
           CLEAR bdctab.
           bdctab-program = 'SAPMV50A'.
           bdctab-dynpro = '4007'.
           bdctab-dynbegin = 'X'.
           APPEND bdctab.
           CLEAR bdctab.
           bdctab-fnam = 'BDC_CURSOR'.
           bdctab-fval = 'RV50A-VERUR_LA'.
           APPEND bdctab.
           CLEAR bdctab.
           bdctab-fnam = 'BDC_OKCODE'.
           bdctab-fval = '/00'.
           APPEND bdctab.
           CLEAR bdctab.
           bdctab-fnam = 'LIKP-LIFNR'.
           bdctab-fval = vendorno.
           APPEND bdctab.
           CLEAR bdctab.
           bdctab-fnam = 'LV50C-BSTNR'.
           bdctab-fval = ponumber.
           APPEND bdctab.
           CLEAR bdctab.
           bdctab-fnam = 'RV50A-LFDAT_LA'.
           bdctab-fval = datenow.
           APPEND bdctab.
           CLEAR bdctab.
           bdctab-fnam = 'RV50A-LFUHR_LA'.
           bdctab-fval = '00:00'.
           APPEND bdctab.
           CLEAR bdctab.
           bdctab-fnam = 'RV50A-VERUR_LA'.
           bdctab-fval = extnid.
           APPEND bdctab.
       CLEAR bdctab.
           bdctab-program = 'SAPMV50A'.
           bdctab-dynpro = '1000'.
           bdctab-dynbegin = 'X'.
           APPEND bdctab.
           CLEAR bdctab.
           bdctab-fnam = 'BDC_OKCODE'.
           bdctab-fval = '=MKAL_T'.
           APPEND bdctab.
           CLEAR bdctab.
           bdctab-fnam = 'BDC_SUBSCR'.
           bdctab-fval = 'SAPMV50A'.
           APPEND bdctab.
           CLEAR bdctab.
           bdctab-fnam = 'BDC_CURSOR'.
           bdctab-fval = 'LIKP-BLDAT'.
           APPEND bdctab.
           CLEAR bdctab.
           bdctab-fnam = 'LIKP-BLDAT'.
           bdctab-fval = datenow.
           APPEND bdctab.
           CLEAR bdctab.
           bdctab-fnam = 'BDC_SUBSCR'.
           bdctab-fval = 'SAPMV50A'.
           APPEND bdctab.
           CLEAR bdctab.
           bdctab-fnam = 'RV50A-LFDAT_LA'.
           bdctab-fval = datenow.
           APPEND bdctab.
           CLEAR bdctab.
           bdctab-fnam = 'RV50A-LFUHR_LA'.
           bdctab-fval = '00:00'.
           APPEND bdctab.
           CLEAR bdctab.
           bdctab-fnam = 'BDC_SUBSCR'.
           bdctab-fval = 'SAPMV50A'.
           APPEND bdctab.
           CLEAR bdctab.
           bdctab-fnam = 'BDC_SUBSCR'.
           bdctab-fval = 'SAPMV50A'.
           APPEND bdctab.
           CLEAR bdctab.
           bdctab-program = 'SAPMV50A'.
           bdctab-dynpro = '1000'.
           bdctab-dynbegin = 'X'.
           APPEND bdctab.
       CLEAR bdctab.
           bdctab-fnam = 'BDC_OKCODE'.
           bdctab-fval = '=POPO_T'.
           APPEND bdctab.
           CLEAR bdctab.
           bdctab-fnam = 'BDC_SUBSCR'.
           bdctab-fval = 'SAPMV50A'.
           APPEND bdctab.
           CLEAR bdctab.
           bdctab-fnam = 'LIKP-BLDAT'.
           bdctab-fval = datenow.
           APPEND bdctab.
           CLEAR bdctab.
           bdctab-fnam = 'BDC_SUBSCR'.
           bdctab-fval = 'SAPMV50A'.
           APPEND bdctab.
           CLEAR bdctab.
           bdctab-fnam = 'BDC_CURSOR'.
           bdctab-fval = 'LIPS-POSNR(01)'.
           APPEND bdctab.
           CLEAR bdctab.
           bdctab-fnam = 'RV50A-LFDAT_LA'.
           bdctab-fval = datenow.
           APPEND bdctab.
           CLEAR bdctab.
           bdctab-fnam = 'RV50A-LFUHR_LA'.
           bdctab-fval = '00:00'.
           APPEND bdctab.
           CLEAR bdctab.
           bdctab-fnam = 'BDC_SUBSCR'.
           bdctab-fval = 'SAPMV50A'.
           APPEND bdctab.
           CLEAR bdctab.
           bdctab-fnam = 'BDC_SUBSCR'.
           bdctab-fval = 'SAPMV50A'.
           APPEND bdctab.
           CLEAR bdctab.
           bdctab-program = 'SAPMV50A'.
           bdctab-dynpro = '0111'.
           bdctab-dynbegin = 'X'.
           APPEND bdctab.
           CLEAR bdctab.
           bdctab-fnam = 'BDC_CURSOR'.
           bdctab-fval = 'RV50A-PO_MATNR'.
           APPEND bdctab.
           CLEAR bdctab.
           bdctab-fnam = 'BDC_OKCODE'.
           bdctab-fval = 'WEIT'.
           APPEND bdctab.
           CLEAR bdctab.
           bdctab-fnam = 'RV50A-PO_MATNR'.
           bdctab-fval = material.
           APPEND bdctab.
           CLEAR bdctab.
           bdctab-program = 'SAPMV50A'.
           bdctab-dynpro = '1000'.
           bdctab-dynbegin = 'X'.
           APPEND bdctab.
           CLEAR bdctab.
           bdctab-fnam = 'BDC_OKCODE'.
           bdctab-fval = '=POLO_T'.
           APPEND bdctab.
           CLEAR bdctab.
           bdctab-fnam = 'BDC_SUBSCR'.
           bdctab-fval = 'SAPMV50A'.
           APPEND bdctab.
           CLEAR bdctab.
           bdctab-fnam = 'LIKP-BLDAT'.
           bdctab-fval = datenow.
           APPEND bdctab.
           CLEAR bdctab.
           bdctab-fnam = 'BDC_SUBSCR'.
           bdctab-fval = 'SAPMV50A'.
           APPEND bdctab.
           CLEAR bdctab.
           bdctab-fnam = 'BDC_CURSOR'.
           bdctab-fval = 'LIPS-POSNR(01)'.
           APPEND bdctab.
    *ADDED BY ANAND ON 22-01-2007
           CLEAR bdctab.
           bdctab-fnam = 'BDC_CURSOR'.
           bdctab-fval =  ITEMNUMBER .     "ITEMNUMBER = LIPS-VGPOS
           APPEND bdctab.
    ************ENDED***********************
    ADDED BY MILIND 19.01.2007
           CLEAR bdctab.
           bdctab-fnam = 'BDC_CURSOR'.
           bdctab-fval =  poslr .
           APPEND bdctab.
    *    ENDED * *
       CLEAR bdctab.
           bdctab-fnam = 'RV50A-LFDAT_LA'.
           bdctab-fval = datenow.
           APPEND bdctab.
           CLEAR bdctab.
           bdctab-fnam = 'RV50A-LFUHR_LA'.
           bdctab-fval = '00:00'.
           APPEND bdctab.
           CLEAR bdctab.
           bdctab-fnam = 'RV50A-LIPS_SELKZ(01)'.
           bdctab-fval = ''.
           APPEND bdctab.
           CLEAR bdctab.
           bdctab-fnam = 'BDC_SUBSCR'.
           bdctab-fval = 'SAPMV50A'.
           APPEND bdctab.
           CLEAR bdctab.
           bdctab-fnam = 'BDC_SUBSCR'.
           bdctab-fval = 'SAPMV50A'.
           APPEND bdctab.
       CLEAR bdctab.
           bdctab-program = 'SAPMV50A'.
           bdctab-dynpro = '1000'.
           bdctab-dynbegin = 'X'.
           APPEND bdctab.
           CLEAR bdctab.
           bdctab-fnam = 'BDC_OKCODE'.
           bdctab-fval = '/00'.
           APPEND bdctab.
           CLEAR bdctab.
           bdctab-fnam = 'BDC_SUBSCR'.
           bdctab-fval = 'SAPMV50A'.
           APPEND bdctab.
           CLEAR bdctab.
           bdctab-fnam = 'LIKP-BLDAT'.
           bdctab-fval = datenow.
           APPEND bdctab.
           CLEAR bdctab.
           bdctab-fnam = 'BDC_SUBSCR'.
           bdctab-fval = 'SAPMV50A'.
           APPEND bdctab.
           CLEAR bdctab.
           bdctab-fnam = 'BDC_CURSOR'.
           bdctab-fval = 'LIPS-CHARG(01)'.
           APPEND bdctab.
           CLEAR bdctab.
           bdctab-fnam = 'RV50A-LFDAT_LA'.
           bdctab-fval = datenow.
           APPEND bdctab.
           CLEAR bdctab.
           bdctab-fnam = 'RV50A-LFUHR_LA'.
           bdctab-fval = '00:00'.
           APPEND bdctab.
           CLEAR bdctab.
          QTY = INDLYTAB-DLYQTY.
            qty = dlyqty.
           bdctab-fnam = 'LIPSD-G_LFIMG(01)'.
           bdctab-fval = QTY.
           APPEND bdctab.
           CLEAR bdctab.
           bdctab-fnam = 'LIPS-CHARG(01)'.
    *     BDCTAB-FVAL = INDLYTAB-BTCHNO.
           bdctab-fval = btchno.
           APPEND bdctab.
           CLEAR bdctab.
           bdctab-fnam = 'BDC_SUBSCR'.
           bdctab-fval = 'SAPMV50A'.
           APPEND bdctab.
           CLEAR bdctab.
           bdctab-fnam = 'BDC_SUBSCR'.
           bdctab-fval = 'SAPMV50A'.
           APPEND bdctab.
       CLEAR bdctab.
           bdctab-program = 'SAPMV50A'.
           bdctab-dynpro = '1000'.
           bdctab-dynbegin = 'X'.
           APPEND bdctab.
           CLEAR bdctab.
           bdctab-fnam = 'BDC_OKCODE'.
           bdctab-fval = '=SICH_T'.
           APPEND bdctab.
           CLEAR bdctab.
           bdctab-fnam = 'BDC_SUBSCR'.
           bdctab-fval = 'SAPMV50A'.
           APPEND bdctab.
           CLEAR bdctab.
           bdctab-fnam = 'LIKP-BLDAT'.
           bdctab-fval = datenow.
           APPEND bdctab.
           CLEAR bdctab.
           bdctab-fnam = 'BDC_SUBSCR'.
           bdctab-fval = 'SAPMV50A'.
           APPEND bdctab.
           CLEAR bdctab.
           bdctab-fnam = 'BDC_CURSOR'.
           bdctab-fval = 'LIPS-MATNR(02)'.
           APPEND bdctab.
           CLEAR bdctab.
           bdctab-fnam = 'RV50A-LFDAT_LA'.
           bdctab-fval = datenow.
           APPEND bdctab.
           CLEAR bdctab.
           bdctab-fnam = 'RV50A-LFUHR_LA'.
           bdctab-fval = '00:00'.
           APPEND bdctab.
           CLEAR bdctab.
           bdctab-fnam = 'BDC_SUBSCR'.
           bdctab-fval = 'SAPMV50A'.
           APPEND bdctab.
           CLEAR bdctab.
           bdctab-fnam = 'BDC_SUBSCR'.
           bdctab-fval = 'SAPMV50A'.
           APPEND bdctab.
      CALL TRANSACTION 'VL31N' USING bdctab MODE 'N'  MESSAGES INTO messtab.
      subrc = sy-subrc.
      PERFORM close_group USING     ctu.
      CLEAR bdctab.
      REFRESH bdctab.
      IF sy-subrc EQ 0.
        indelyno = sy-msgv2.
      ENDIF.
      LOOP AT messtab.
        MOVE: messtab-msgid TO errtab-msgid,
              messtab-msgnr TO errtab-msgnr,
              messtab-msgv1 TO errtab-msg1,
              messtab-msgv2 TO errtab-msg2,
              messtab-msgv3 TO errtab-msg3,
              messtab-msgv4 TO errtab-msg4.
        APPEND ERRtab.
      ENDLOOP.
      LOOP AT errtab.
        SELECT SINGLE text FROM t100
          INTO errtab-errmsg
          WHERE msgnr EQ errtab-msgnr AND arbgb EQ errtab-msgid
          AND sprsl EQ sy-langu.
        MODIFY errtab.
      ENDLOOP.
    ENDFUNCTION.

    Hi,
    Check this code:
    REPORT Z_CUSTOMER_UPLOAD .
                  D A T A         D E C L A R A T I O N S                *
    DATA:BEGIN OF IT_CUSTOMER OCCURS 0,
         KUNNR LIKE MV10A-KUNNR,
         VKORG LIKE MV10A-VKORG,
         VTWEG LIKE MV10A-VTWEG,
         MATNR LIKE MV10A-MATNR,
         KDMAT LIKE MV10A-KDMAT,
         MEGRU LIKE MV10A-MEGRU,
         SELKZ TYPE C value 'X',
         LPRIO LIKE MV10A-LPRIO,
         ANTLF LIKE MV10A-ANTLF,
         END OF IT_CUSTOMER.
    DATA:BEGIN OF IT_success OCCURS 0,
         KUNNR LIKE MV10A-KUNNR,
         VKORG LIKE MV10A-VKORG,
         VTWEG LIKE MV10A-VTWEG,
         MATNR LIKE MV10A-MATNR,
         KDMAT LIKE MV10A-KDMAT,
         MEGRU LIKE MV10A-MEGRU,
         SELKZ TYPE C value 'X',
         LPRIO LIKE MV10A-LPRIO,
         ANTLF LIKE MV10A-ANTLF,
         END OF IT_success.
    DATA:BEGIN OF IT_error OCCURS 0,
         KUNNR LIKE MV10A-KUNNR,
         VKORG LIKE MV10A-VKORG,
         VTWEG LIKE MV10A-VTWEG,
         MATNR LIKE MV10A-MATNR,
         KDMAT LIKE MV10A-KDMAT,
         MEGRU LIKE MV10A-MEGRU,
         SELKZ TYPE C value 'X',
         LPRIO LIKE MV10A-LPRIO,
         ANTLF LIKE MV10A-ANTLF,
         END OF IT_error.
    DATA: L_INDEX TYPE SY-TABIX.
    DATA:IT_BDC LIKE BDCDATA OCCURS 0 WITH HEADER LINE,
    IT_DATA TYPE ALSMEX_TABLINE OCCURS 0 WITH HEADER LINE.
    ERROR MESSAGE TABLE
    DATA:IT_MESSAGES LIKE BDCMSGCOLL OCCURS 0 WITH HEADER LINE.
    DATA : C_S TYPE C VALUE 'S',
            C_E TYPE C VALUE 'E'.
    *DATA: IT_SUCCESS LIKE IT_CUSTOMER OCCURS 0,
         IT_ERROR LIKE IT_CUSTOMER  OCCURS 0.
    DATA : V_RECTOT TYPE I,
            V_RECERR TYPE I,
            V_RECSUC TYPE I.
                  S E L E C T I O N  -  S C R E E N                      *
    SELECTION-SCREEN : BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    PARAMETER        : P_FILE LIKE RLGRAP-FILENAME .
    SELECTION-SCREEN : END OF BLOCK B1.
               A T  S E L E C T I O N  -  S C R E E N                    *
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE.
    to get F4 help for p_file
      PERFORM F4_FILENAME USING P_FILE.
                S T A R T   O F   S E L E C T I O N                      *
    START-OF-SELECTION.
    Uploading data from flat file into it_tab
      PERFORM BDC_UPLOAD USING P_FILE.
      PERFORM PROCESS_DATA.
      PERFORM POPULATE_BDC.
                E N D  O F   S E L E C T I O N                           *
    *END-OF-SELECTION.
    PERFORM DISPLAY_REPORT.
    *&      Form  F4_FILENAME
          text
         -->P_P_FILE  text
    FORM F4_FILENAME USING    P_P_FILE.
    DATA:L_FILE TYPE IBIPPARMS-PATH.
    CALL FUNCTION 'F4_FILENAME'
    EXPORTING
      PROGRAM_NAME        = SYST-CPROG
      DYNPRO_NUMBER       = SYST-DYNNR
      FIELD_NAME          = ' '
    IMPORTING
       FILE_NAME           = L_FILE .
       P_P_FILE = L_FILE.
    ENDFORM.                    " F4_FILENAME
    *&      Form  BDC_UPLOAD
          text
         -->P_P_FILE  text
    FORM BDC_UPLOAD USING    P_P_FILE.
    CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
      EXPORTING
        FILENAME                      = P_P_FILE
        I_BEGIN_COL                   = 1
        I_BEGIN_ROW                   = 1
        I_END_COL                     = 8
        I_END_ROW                     = 1000
      TABLES
        INTERN                        = IT_DATA
    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.
    ENDFORM.                    " BDC_UPLOAD
    *&      Form  PROCESS_DATA
          text
    -->  p1        text
    <--  p2        text
    FORM PROCESS_DATA.
    SORT IT_DATA BY ROW COL.
      LOOP AT IT_DATA.
    CASE IT_DATA-COL.
    WHEN 1.
    IT_CUSTOMER-KUNNR   = IT_DATA-VALUE.
    WHEN 2.
    IT_CUSTOMER-VKORG   = IT_DATA-VALUE.
    WHEN 3.
    IT_CUSTOMER-VTWEG   = IT_DATA-VALUE.
    WHEN 4.
    IT_CUSTOMER-MATNR   = IT_DATA-VALUE.
    WHEN 5.
    IT_CUSTOMER-KDMAT   = IT_DATA-VALUE.
    WHEN 6.
    IT_CUSTOMER-MEGRU   = IT_DATA-VALUE.
    WHEN 7.
    IT_CUSTOMER-LPRIO   = IT_DATA-VALUE.
    WHEN 8.
    IT_CUSTOMER-ANTLF   = IT_DATA-VALUE.
    APPEND IT_CUSTOMER.
        ENDCASE.
      ENDLOOP.
    ENDFORM.                    " PROCESS_DATA
    *&      Form  POPULATE_BDC
          text
    -->  p1        text
    <--  p2        text
    FORM POPULATE_BDC.
    DATA:L_COUNTER TYPE N,
             L_STRING TYPE STRING.
    LOOP AT IT_CUSTOMER.
    AT NEW KUNNR.
    CLEAR L_COUNTER.
          L_INDEX = SY-TABIX.
          READ TABLE IT_CUSTOMER INDEX L_INDEX.
    perform bdc_dynpro      using 'SAPMV10A' '0100'.
    perform bdc_field       using 'MV10A-KUNNR'
                                  IT_CUSTOMER-KUNNR.
    perform bdc_field       using 'MV10A-VKORG'
                                  IT_CUSTOMER-VKORG.
    perform bdc_field       using 'MV10A-VTWEG'
                                  IT_CUSTOMER-VTWEG.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    ENDAT.
    L_COUNTER = L_COUNTER + 1.
        CLEAR L_STRING.
    perform bdc_dynpro      using 'SAPMV10A' '0200'.
    CONCATENATE 'MV10A-MATNR(' L_COUNTER ')' INTO L_STRING.
    perform bdc_field       using L_STRING
                            IT_CUSTOMER-MATNR.
    CONCATENATE 'MV10A-KDMAT(' L_COUNTER ')' INTO L_STRING.
    perform bdc_field       using     L_STRING
                                     IT_CUSTOMER-KDMAT.
    CONCATENATE 'MV10A-MEGRU(' L_COUNTER ')' INTO L_STRING.
    perform bdc_field       using   L_STRING
                                    IT_CUSTOMER-MEGRU.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    *-- For Page down in Call Transaction Mode
        IF L_COUNTER = 14.
          CLEAR L_COUNTER.
          PERFORM BDC_DYNPRO      USING 'SAPMV45A' '4001'.
          PERFORM BDC_FIELD       USING 'BDC_OKCODE'
                                                '=P+'.
        ENDIF.
    perform bdc_dynpro      using 'SAPMV10A' '0200'.
    CONCATENATE 'MV10A-SELKZ(' L_COUNTER ')' INTO L_STRING.
    perform bdc_field       using L_STRING
                              IT_CUSTOMER-SELKZ.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=SELE'.
    perform bdc_dynpro      using 'SAPMV10A' '0300'.
    perform bdc_field       using 'MV10A-KDMAT'
                                  IT_CUSTOMER-KDMAT.
    perform bdc_field       using 'MV10A-LPRIO'
                                  IT_CUSTOMER-LPRIO.
    perform bdc_field       using 'MV10A-ANTLF'
                                  IT_CUSTOMER-ANTLF.
    PERFORM BDC_FIELD       USING 'BDC_OKCODE'
                                        '/EBACK'.
    at end of kunnr.
    READ TABLE IT_CUSTOMER INDEX L_INDEX.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=SICH'.
    CALL TRANSACTION 'VD51' USING IT_BDC MODE 'A' UPDATE 'S'
          MESSAGES INTO IT_MESSAGES.
          CLEAR IT_BDC.
          REFRESH IT_BDC.
    ENDAT.
      IF NOT IT_MESSAGES[] IS INITIAL.
        PERFORM FORMAT_MESSAGE.
      ENDIF.
    ENDLOOP.
    ENDFORM.                    " POPULATE_BDC
    *&      Form  bdc_dynpro
          text
         -->P_0273   text
         -->P_0274   text
    FORM bdc_dynpro USING    VALUE(P_0273)
                             VALUE(P_0274).
    IT_BDC-PROGRAM = P_0273.
    IT_BDC-DYNPRO = P_0274.
    IT_BDC-DYNBEGIN = 'X'.
      APPEND IT_BDC.
      CLEAR IT_BDC.
    ENDFORM.                    " bdc_dynpro
    *&      Form  bdc_field
          text
         -->P_0278   text
         -->P_RECORD_KUNNR_001  text
    FORM bdc_field USING    VALUE(P_0278)
                           VALUE(P_0279).
    IT_BDC-FNAM = P_0278.
      IT_BDC-FVAL = P_0279.
      APPEND IT_BDC.
      CLEAR IT_BDC.
    ENDFORM.                    " bdc_field
    *&      Form  FORMAT_MESSAGE
          text
    -->  p1        text
    <--  p2        text
    FORM FORMAT_MESSAGE.
    DATA: L_MSG(100).
      LOOP AT IT_MESSAGES.
      READ TABLE IT_CUSTOMER INDEX L_INDEX.
        CALL FUNCTION 'FORMAT_MESSAGE'
             EXPORTING
                  ID        = IT_MESSAGES-MSGID
                  LANG      = SY-LANGU
                  NO        = IT_MESSAGES-MSGNR
                  V1        = IT_MESSAGES-MSGV1
                  V2        = IT_MESSAGES-MSGV2
                  V3        = IT_MESSAGES-MSGV3
                  V4        = IT_MESSAGES-MSGV4
             IMPORTING
                  MSG       = L_MSG
             EXCEPTIONS
                  NOT_FOUND = 1
                  OTHERS    = 2.
        IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
        write:/ l_msg.
      ENDLOOP.
    ENDFORM.                    " FORMAT_MESSAGE
    reward if helpful,
    keerthi

  • XML multiple targets problem

    there is an example in oracle warehouse builder user's guide how to load xml file into multiple tables (1:N relationship).
    Let's have an xml file:
    <orders>
    <order>
    <id>1</id>
    <items>
    <item>
    <product>a</product>
    </item>
    </items>
    </order>
    </orders>
    but what if one day you get an xml file where an order has no items:
    <orders>
    <order>
    <id>10</id>
    </order>
    </orders>
    I get an error message: ORA-20011: Error occurred while loading source XML document into the target database object XXX . Base exception: No rows to modify -- the row enclosing tag missing. Specify the correct row enclosing tag.
    What I want is to load in order table one row, and no rows in items table.
    The xsl for this small example that makes a problem looks like (the rest is like in oracle warehouse builder user's guide example in C appendix):
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:template match="/">
    <ROWSET>
    <xsl:for-each select="orders/order/items/item">
    <ROW>
    <ORDER_ID>
    <xsl:value-of select="../../id"/>
    </ORDER_ID>
    <PRODUCT>
    <xsl:value-of select="product"/>
    </PRODUCT>
    </ROW>
    </xsl:for-each>
    </ROWSET>
    </xsl:template>
    </xsl:stylesheet>

    Sounds like you've missed some tag from the files.
    For XML processing I would look at leveraging XDB, see the post here;
    http://blogs.oracle.com/warehousebuilder/2007/09/leveraging_xdb.html
    Cheers
    David

  • Suddenly, I've been put on multiple threads over multiple firefox problems, which is filling up my inbox. How do I get out of these?

    Details? I posted a question about one problem (for which no answers have been offered, but that's okay) and somehow, I've become part of multiple threads about various firefox problems. I have no interest in any of these questions/problems.
    How do I get out of these threads? I get about 15-20 emails a day! Firefox is by far the worst community I've even been dragged into....

    Sorry you are having problems.
    Have a look at your settings in the dropdown from the username or https://support.mozilla.org/en-US/users/settings
    Not too sure what you could subscribe to accidentally that causes that behaviour though.
    It would be interesting to know what option caused all the email. If something has gone wrong and you are getting e-mails that you should not be getting we can refer this to the admins to look into. The Firefox sumo community certainly does not intentionally spam, and if you are having a problem lets find out more, because others may have a problem and not have reported it.

  • Data template multiple selection problem

    Hi all,
    I have a problem with the Multiple Selection on the BI Publisher using data templates. One of my parameters is called p_application, this parameter is a integer/number and its values come from a list of values.
    I'm getting the error "....invalid number". I think the data template is not understanding that this parameter have multiple selection.
    Can you help me?
    here is my data template
    <dataTemplate name="user_reg" dataSourceRef="Thomson_Live_ EDC_Environment">
    <properties>
    <property name="include_parameters" value="false"/>
    <property name="include_null_Element" value="false"/>
    <property name="include_rowsettag" value="false"/>
    <property name="scalable_mode" value="on"/>
    <property name="db_fetch_size" value="20"/>
    <property name="scalable_mode" value="on"/>
    </properties>
    <parameters>
    <parameter name="p_customer" dataType="string" include_in_output="false"/>
    <parameter name="p_application" dataType="integer" include_in_output="false"/>
    <parameter name="p_start_date" dataType="date" include_in_output="false"/>
    <parameter name="p_final_date" dataType="date" include_in_output="false"/>
    <parameter name="p_staff_account" dataType="string" include_in_output="false"/>
    </parameters>
    <dataQuery>
    <sqlStatement name="Q1">
    <![CDATA[
    select COUNT(DISTINCT TRUNC(a.TIMESTAMP)) days_logged
    ,COUNT(a.USER_ID) logins
    ,max(a.TIMESTAMP) last_access
    ,a.application_id application_id
    ,a.user_id user_id
    from user_history_log a,
    idweb_user b,
    idweb_customer c
    where to_date(to_char(a.timestamp,'dd-mm-rrrr'),'dd-mm-rrrr') between to_date(:p_start_date,'dd-mm-rrrr') and to_date(:p_final_date,'dd-mm-rrrr')
    and a.user_id = b.user_id
    and b.customer_key = c.customer_key
    and c.staff_account = :p_staff_account
    and ('0' in (:p_customer) or b.customer_key in (:p_customer))
    and (0 in (:p_application) or a.application_id in (:p_application))
    group by a.application_id, a.user_id ]]>
    </sqlStatement>
    <sqlStatement name="Q2">
    <![CDATA[
    SELECT IDCU.CUSTOMER_NAME "Customer name"
    ,PCAP.APPLICATION_NAME "Application name"
    ,IDUS.FIRST_NAME "First name"
    ,IDUS.LAST_NAME "Last name"
    ,IDUS.USER_NAME "Username"
    ,IDUS.EMAIL_ADDRESS "Email address"
    ,IDUS.ROLE "Job Role"
    ,IDUS.AREA "Job Area"
    ,IDUS.DEPARTMENT "Specific Job Area"
    ,IDUS.CITY "City"
    ,IDUS.US_STATE "State"
    ,IDUS.COUNTRY "Country"
    ,SALE.TERRITORY_NAME "Territory/GAM"
    ,BUUN.BUSINESS_UNIT_NAME "SBU"
    ,to_char(IDUS.REGISTRATION_DATE,'dd-mm-yyyy') "Registration date"
    ,to_char(PCCA.EXPIRY_DATE,'dd-mm-yyyy') "Expiry date"
    ,DECODE(PCUA.DISABLED,'Y','Disabled','Enabled') "Status"
    ,pcua.application_id application_id
    ,pcua.user_id user_id
    FROM PC_USER_APPLICATION PCUA
    ,PC_CUSTOMER_APPLICATION PCCA
    ,IDWEB_USER IDUS
    ,IDWEB_CUSTOMER IDCU
    ,sales_territory SALE
    ,business_unit BUUN
    ,PC_APPLICATION PCAP
    WHERE BUUN.BUSINESS_UNIT_ID(+) = IDCU.SBU_ID
    AND SALE.TERRITORY_ID(+) = IDCU.TERRITORY_ID
    AND IDCU.CUSTOMER_KEY = IDUS.CUSTOMER_KEY
    AND IDUS.USER_ID = PCUA.USER_ID
    AND PCCA.CUSTOMER_KEY = IDCU.CUSTOMER_KEY
    AND PCCA.APPLICATION_ID = PCAP.APPLICATION_ID
    AND PCAP.APPLICATION_ID = PCUA.APPLICATION_ID
    AND NVL(IDUS.DISABLED,'N') = 'N'
    AND IDCU.STAFF_ACCOUNT = :p_staff_account
    AND ('0' in (:p_customer) or IDCU.CUSTOMER_KEY in (:p_customer))
    AND (0 in (:p_application) or pcap.application_id in (:p_application))
    ORDER BY IDCU.CUSTOMER_NAME, PCAP.APPLICATION_NAME, IDUS.USER_NAME ]]>
    </sqlStatement>
    <sqlStatement name="Q3">
    <![CDATA[
    select COUNT(a.TIMESTAMP) "Number of Turnaways Kickout",
    MAX(a.timestamp) "Last Turnaway Kickout",
    a.application_id,
    a.user_id
    from tpharma_user.user_refused a,
    idweb_user i
    where to_date(to_char(a.timestamp,'dd-mm-rrrr'),'dd-mm-rrrr') between to_date(:p_start_date,'dd-mm-rrrr') and to_date(:p_final_date,'dd-mm-rrrr')
    and (0 in (:p_application) or a.application_id in (:p_application))
    and a.user_id = i.user_id
    and ('0' in (:p_customer) or i.customer_key in (:p_customer))
    group by a.application_id, a.user_id ]]>
    </sqlStatement>
    <link name="ruser3" parentQuery="Q1" parentColumn="user_id" childQuery="Q3" childColumn="user_id(+)" condition="="/>
    <link name="rapp3" parentQuery="Q1" parentColumn="application_id" childQuery="Q3" childColumn="application_id(+)" condition="="/>
    <link name="ruser1" parentQuery="Q1" parentColumn="user_id" childQuery="Q2" childColumn="user_id" condition="="/>
    <link name="rapp1" parentQuery="Q1" parentColumn="application_id" childQuery="Q2" childColumn="application_id" condition="="/>
    </dataQuery>
    <dataStructure>
    <group name="G_totals1" source="Q1">
    <element name="days_logged" value="days_logged"/>
    <element name="logins" value="logins"/>
    <element name="last_access" value="last_access"/>
    <element name="application_id" value="application_id"/>
    <element name="user_id" value="user_id"/>
    </group>
    <group name="G_main" source="Q2">
    <element name="Customer name" value="Customer name">
    <element name="Application name" value="Application name">
    <element name="First name" value="First name">
    <element name="Last name" value="Last name">
    <element name="Username" value="Username">
    <element name="Email address" value="Email address">
    <element name="Job Role" value="Job Role">
    <element name="Job Area" value="Job Area">
    <element name="Specific Job Area" value="Specific Job Area">
    <element name="City" value="City">
    <element name="State" value="State">
    <element name="Country" value="Country">
    <element name="Territory/GAM" value="Territory/GAM">
    <element name="SBU" value="SBU">
    <element name="Registration date" value="Registration date">
    <element name="Expiry date" value="Expiry date">
    <element name="Status" value="Status">
    <element name="application_id" value="application_id"/>
    <element name="user_id" value="user_id"/>
    </group>
    <group name="G_main" source="Q3">
    <element name="Number of Turnaways Kickout" value="Number of Turnaways Kickout"/>
    <element name="Last Turnaway Kickout" value="Last Turnaway Kickout"/>
    <element name="application_id" value="application_id"/>
    <element name="user_id" value="user_id"/>
    </group>
    </dataStructure>
    </dataTemplate>
    on the XDO file, the parameters are:
    <parameters>
    <parameter id="p_customer" defaultValue="8c3ff6ad5eh5c8" dataType="xsd:string">
    <select label="Customer: " valueSet="lv_customer" multiple="true" all="false" allValue="lov"/>
    </parameter>
    <parameter id="p_application" defaultValue="1" dataType="xsd:integer">
    <select label="Application: " valueSet="LV_application" multiple="true" all="false" allValue="lov"/>
    </parameter>
    <parameter id="p_start_date" defaultValue="{$SYSDATE()$}" dataType="xsd:date">
    <date label="Usage occurs on or after (dd-mm-yyyy):" size="11" format="dd-MM-yyyy" minValue="01-06-1950" maxValue="01-06-2100"/>
    </parameter>
    <parameter id="p_final_date" defaultValue="{$SYSDATE()$}" dataType="xsd:date">
    <date label="Usage occurs on or before (dd-mm-yyyy):" size="11" format="dd-MM-yyyy" minValue="01-06-1950" maxValue="01-06-2100"/>
    </parameter>
    <parameter id="p_staff_account" defaultValue="Y">
    <select label="Staff Accout: " valueSet="lv_staff_account" multiple="false" all="false" allValue="null"/>
    </parameter>
    </parameters>
    Thank you,
    Marcelo Cure
    Oracle Developer
    [email protected]
    www.ilegra.com
    Edited by: user11307652 on 09/03/2010 05:21
    Edited by: user11307652 on 09/03/2010 06:15

    I have a similar problem where i cannot use the parameter with comma separated values in the parameter.
    my report definition is as below.
    <dataTemplate name="COMLTRDATA" description="Data for the COMLTR letters" dataSourceRef="PRISM">
                        <parameters>
                             <parameter name="secondary_sequence" dataType="number" include_in_output="false"/>
                        </parameters>
                        <dataQuery>
                             <sqlStatement name="Q1">
                                  <![CDATA[select     PR_LETTER_MASTER.LETTER_ID as LETTER_ID,
         to_char(PR_LETTER_MASTER.LETTER_DATE,'FMMonth DD, RRRR') as LETTER_DATE,
         PR_LETTER_MASTER.LETTER_NAME as LETTER_NAME,
         PR_LETTER_MASTER.ADDRESS_TYPE as ADDRESS_TYPE,
         PR_LETTER_MASTER.REVIEWED_FIRM_NUMBER as REVIEWED_FIRM_NUMBER,
         PR_LETTER_MASTER.REVIEWED_FIRM_NAME as REVIEWED_FIRM_NAME,
         PR_LETTER_MASTER.REVIEWED_FIRM_TYPE as REVIEWED_FIRM_TYPE,
         PR_LETTER_MASTER.REVIEWING_FIRM_NUMBER as REVIEWING_FIRM_NUMBER,
         PR_LETTER_MASTER.REVIEW_NUMBER as REVIEW_NUMBER,
             PR_LETTER_MASTER.SALUTATION as SALUTATION,
             PR_LETTER_MASTER.SIGNATURE_EMAIL_ID as SIGNATURE_EMAIL_ID,
             PR_LETTER_MASTER.SIGNATURE_TITLE as SIGNATURE_TITLE,
         PR_LETTER_MASTER.REVIEW_STATUS as REVIEW_STATUS,
         to_char(PR_LETTER_MASTER.REVIEW_COMMENCEMENT_DATE,'FMMonth DD, RRRR') as REVIEW_COMMENCEMENT_DATE,
         to_char(PR_LETTER_MASTER.REVIEW_DUE_DATE,'FMMonth DD, RRRR') as REVIEW_DUE_DATE,
         PR_LETTER_MASTER.REVIEW_YEAR as REVIEW_YEAR,
         PR_LETTER_MASTER.REVIEW_PROGRAM as REVIEW_PROGRAM,
             PR_LETTER_MASTER.REVIEW_TYPE as REVIEW_TYPE,
             PR_LETTER_MASTER.TEAM_CAPT_FIRM_NAME as TEAM_CAPT_FIRM_NAME,
         PR_LETTER_MASTER.PRIOR_REVIEW_NUMBER as PRIOR_REVIEW_NUMBER,
         PR_LETTER_MASTER.MNGPTR_MEMBER_NUMBER as MNGPTR_MEMBER_NUMBER,
         PR_LETTER_MASTER.FIRST_NAME as FIRST_NAME,
         PR_LETTER_MASTER.MIDDLE_INITIAL as MIDDLE_INITIAL,
         PR_LETTER_MASTER.LAST_NAME as LAST_NAME,
         PR_LETTER_MASTER.ADDRESS_LINE1 as ADDRESS_LINE1,
         PR_LETTER_MASTER.ADDRESS_LINE2 as ADDRESS_LINE2,
         PR_LETTER_MASTER.ADDRESS_LINE3 as ADDRESS_LINE3,
         PR_LETTER_MASTER.CITY as CITY,
         PR_LETTER_MASTER.STATE as STATE,
         PR_LETTER_MASTER.ZIP as ZIP,
         PR_LETTER_MASTER.ZIP_PLUS as ZIP_PLUS,
         PR_LETTER_MASTER.DELIVERY_EMAIL_ID as DELIVERY_EMAIL_ID,
         PR_LETTER_MASTER.SIGNATURE_TYPE as SIGNATURE_TYPE,
         PR_LETTER_MASTER.SIGNATURE_NAME as SIGNATURE_NAME,
         PR_LETTER_MASTER.TEAM_CAPT_MEMBER_NUMBER as TEAM_CAPT_MEMBER_NUMBER,
         PR_LETTER_MASTER.SIGNATURE_PHONE_NUMBER as SIGNATURE_PHONE_NUMBER,
         PR_LETTER_MASTER.LAST_LETTER_SENT_DATE1 as LAST_LETTER_SENT_DATE1,
         PR_LETTER_MASTER.LAST_LETTER_SENT_DATE2 as LAST_LETTER_SENT_DATE2,
         PR_LETTER_MASTER.LAST_LETTER_SENT_DATE3 as LAST_LETTER_SENT_DATE3,
        to_char(PR_LETTER_MASTER.EXIT_CONFERENCE_DATE,'FMMonth DD, RRRR') as EXIT_CONFERENCE_DATE,
         PR_LETTER_MASTER.REVIEW_TAX_SEASON as REVIEW_TAX_SEASON,
             PR_LETTER_MASTER.STATE_SOCIETY_NUM as STATE_SOCIETY_NUM,
             PR_LETTER_MASTER.STATE_SOCIETY_NAME as STATE_SOCIETY_NAME,
         PR_LETTER_MASTER.SECONDARY_LETTER_SEQUENCE as SECONDARY_LETTER_SEQUENCE,
         PR_LETTER_MASTER.CREATION_DATE as CREATION_DATE,
         PR_LETTER_MASTER.STATE_CODE as STATE_CODE ,
             PR_LETTER_MASTER.DELIVERY_EMAIL_ID as DELIVERY_EMAIL_ID,
             PR_LETTER_MASTER.TEAM_CAPT_FIRST_NAME as TEAM_CAPT_FIRST_NAME,
             PR_LETTER_MASTER.TEAM_CAPT_LAST_NAME as TEAM_CAPT_LAST_NAME,
             to_char(PR_LETTER_MASTER.DT_RAB_PRESENTATION,'FMMonth DD, RRRR') as DT_RAB_PRESENTATION,
             PR_LETTER_MASTER.RAB_DESCRIPTION as RAB_DESCRIPTION ,
             PR_LETTER_MASTER.TEAM_CAPT_MIDDLE_INITIAL as TEAM_CAPT_MIDDLE_INITIAL,
    pr_letter_master.salutation as Salutation
    from      PRISM.PR_LETTER_MASTER PR_LETTER_MASTER
    where secondary_letter_sequence in (:secondary_sequence)]]>
                             </sqlStatement>
                             <sqlStatement name="Q2">
                                  <![CDATA[select followup_description from pr_letter_details where secondary_letter_sequence = :SECONDARY_LETTER_SEQUENCE]]>
                             </sqlStatement>
                        </dataQuery>
                        <dataStructure>
                             <group name="letter1" source="Q1">
                                  <element name="LETTER_DATE" value="LETTER_DATE"/>
                                  <element name="FIRST_NAME" value="FIRST_NAME"/>
                                  <element name="MIDDLE_INITIAL" value="MIDDLE_INITIAL"/>
                                  <element name="LAST_NAME" value="LAST_NAME"/>
                                  <element name="ADDRESS_LINE1" value="ADDRESS_LINE1"/>
                                  <element name="ADDRESS_LINE2" value="ADDRESS_LINE2"/>
                                  <element name="ADDRESS_LINE3" value="ADDRESS_LINE3"/>
                                  <element name="CITY" value="CITY"/>
                                  <element name="STATE" value="STATE"/>
                                  <element name="ZIP" value="ZIP"/>
                                  <element name="ZIP_PLUS" value="ZIP_PLUS"/>
                                  <element name="SALUTATION" value="SALUTATION"/>
                                  <element name="REVIEW_TYPE" value="REVIEW_TYPE"/>
                                  <element name="DT_RAB_PRESENTATION" value="DT_RAB_PRESENTATION"/>
                                  <element name="RAB_DESCRIPTION" value="RAB_DESCRIPTION"/>
                                  <element name="SIGNATURE_NAME" value="SIGNATURE_NAME"/>
                                  <element name="SIGNATURE_PHONE_NUMBER" value="SIGNATURE_PHONE_NUMBER"/>
                                  <element name="SIGNATURE_TITLE" value="SIGNATURE_TITLE"/>
                                  <element name="SIGNATURE_EMAIL_ID" value="SIGNATURE_EMAIL_ID"/>
                                  <element name="TEAM_CAPT_MIDDLE_INITIAL" value="TEAM_CAPT_MIDDLE_INITIAL"/>
                                  <element name="TEAM_CAPT_FIRST_NAME" value="TEAM_CAPT_FIRST_NAME"/>
                                  <element name="TEAM_CAPT_LAST_NAME" value="TEAM_CAPT_LAST_NAME"/>
                                  <element name="REVIEWED_FIRM_NUMBER" value="REVIEWED_FIRM_NUMBER"/>
                                  <element name="REVIEWED_FIRM_NAME" value="REVIEWED_FIRM_NAME"/>
                                  <element name="REVIEW_NUMBER" value="REVIEW_NUMBER"/>
                                  <element name="LETTER_ID" value="LETTER_ID"/>
                                  <group name="Detail" source="Q2">
                                       <element name="followup_description" value="followup_description"/>
                                  </group>
                             </group>
                        </dataStructure>
                   </dataTemplate>

  • RE: HR ABAP Multiple selection problem on input selection-screen

    hi friends,
    I AM Facing one problem in HR abap report  selection-screen , in my report  employee details data getting based on payroll area
    of selection-screen. Here iam  SELECTION-SCREEN  declarations made in program level NOT created REPORT CATEGORY FOR
    PNP LDB.
    ACTUAL MY PROBLEM IS IF I SELECT SINGLE PAYROLL AREA IN SELECTION-SCREEN IT GETTING DATA PERFECTLY FOR THAT
    PAYROLL AREA  
    EX. ZA - PAYROLL AREA IF I SELECT IN SELECTION SCREEN IT FETCHING THAT PAYROLL  AREA DATA PERFECTLY, PROBLEM
    IS IF I SELECT MULTIPLE PAYROLL AREAS IN SELECTION-SCREEN PAYROLL AREA FIELD  ZA AND ZB PAYROLLS IT FETCHING
    ONLY ZA -PAYROLL DATA ONLY IT IS NOT FETCHING DATA FROM ZB PAYROLL AREA.MY REQUIREMENT IS IT SHOULD FETCH
    BOTH PAYROLL DATA  AND SHOWING  .
    HERE  IAM GIVING MY SELECTION SCREEN DECLARATION SYNTAX.
    SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-001.
    SELECT-OPTIONS:
                    S_ABKRS FOR P0001-ABKRS NO INTERVALS," NO-EXTENSION,     " PAY ROLL AREA
                    S_PERSA FOR P0001-WERKS NO INTERVALS," NO-EXTENSION,     " PERS.AREA
    SELECTION-SCREEN END OF BLOCK B2 .
    PLEASE Any body knows solution for this selection give me reply.
    regards,
    gopal

    If you are using Logical DB PNP why are you coding Selection Fields for ABKRS and WERKS?   Both of these fields are defined in the PNP Selection Screen and if you use those fields then SAP will handle filtering the data.

Maybe you are looking for

  • Without standard release confirmation should not allow in process order

    Our clients need is that without standard release confirmation should not allow in process order. We are using CORK,cor6 and MB31 My need is to apply user exit in all cases. I got input from sdn User exit:-PPCO0006 Function module Exit_SAPLCOZF_003 I

  • What are the printing api available in java

    I am very new to java.. I want to print a file from my java program .. how to do it.. please help.

  • JPEG Vs PNG

    hi there, here is a question i have but first i want to apologise for my writting im still learning english ok here it is, hoping that some one who can backup his/her answer read this if every time i use png results in small file size WHY do i want t

  • Data loss in Manage data in HFM 11.1.2. Advice needed

    Dear All, Yesterday while using the Manage data function in HFM we encountered a large amount of data loss. Let me explain. Our goal was to copy Non Financial accounts Entity Currency data from one budget scenario to another budget scenario. See the

  • Getting initiating user out of proxy

    Hello! Following scenario: R/3(A) (sync. Proxy) --> XI --> R/3(B) (sync. Proxy). At the target system the user initiating the proxy in (A) should be investigated out of the proxy runtime data (This works fine via several called methods of the proxy i