Need list of POs with 1 currency type (because has 1 POItems w/ different

In the old system users would put currency type on po items. In new system, they are putting it only on PO, not the items.
I am migrating from old system to new and would like to put currency type on the PO.
1. I want to get a report of POs that have >1 currency type assigned by way of the related po items having different currency types. See how PO 249 has GBP and US... that is because there are 2 PO items on that one PO, and one has GBP and the other has US. How could I filter down to just those POs w/ > 1 currency type?
2. Also how could I find those w/ no currency type? Like POs 5 and 6 (they are not in the list).
thanks.
select distinct POID, CurrencyType from fac_import_poitems
POID                   CURRENCYTYPE                  
0                      US                            
1                      US                            
2                      US                            
3                      US                            
4                      US                            
7                      US                            
8                      US                            
9                      US                            
10                     US                            
11                     US                            
12                     US                            
13                     US                            
15                     US                            
17                     US                            
18                     US                            
19                     US                            
20                     US                            
21                     US                            
22                     US                            
23                     US                            
24                     US                            
25                     US                            
26                     US                            
41                     US                            
42                     US                            
43                     US                            
45                     US                            
46                     US                            
47                     US                            
48                     US                            
49                     US                            
51                     US                            
52                     US                            
53                     US                            
54                     US                            
55                     US                            
56                     US                            
57                     US                            
58                     US                            
59                     US                            
60                     US                            
61                     US                            
62                     US                            
63                     US                            
64                     US                            
65                     US                            
66                     US                            
67                     US                            
68                     US                            
69                     US                            
70                     US                            
71                     US                            
72                     US                            
73                     US                            
74                     US                            
75                     US                            
76                     US                            
77                     US                            
78                     US                            
79                     US                            
80                     US                            
81                     US                            
82                     US                            
83                     US                            
84                     US                            
85                     US                            
86                     US                            
89                     US                            
90                     US                            
91                     US                            
92                     GBP                           
93                     US                            
94                     US                            
95                     US                            
96                     US                            
97                     US                            
98                     US                            
99                     US                            
100                    US                            
101                    US                            
102                    US                            
103                    US                            
104                    US                            
105                    US                            
106                    US                            
107                    US                            
108                    US                            
109                    US                            
110                    US                            
111                    US                            
112                    US                            
113                    US                            
114                    US                            
116                    US                            
117                    US                            
118                    GBP                           
119                    EU                            
121                    EU                            
122                    EU                            
123                    GBP                           
124                    EU                            
125                    GBP                           
126                    GBP                           
127                    EU                            
128                    GBP                           
129                    GBP                           
130                    GBP                           
131                    EU                            
132                    EU                            
133                    EU                            
134                    EU                            
135                    GBP                           
136                    GBP                           
137                    GBP                           
138                    GBP                           
139                    US                            
140                    US                            
141                    US                            
144                    US                            
145                    US                            
146                    US                            
147                    US                            
149                    US                            
150                    US                            
151                    US                            
152                    US                            
154                    US                            
155                    US                            
156                    US                            
157                    US                            
158                    US                            
159                    US                            
160                    US                            
161                    US                            
162                    US                            
163                    US                            
165                    US                            
166                    US                            
167                    US                            
168                    US                            
169                    US                            
170                    US                            
171                    US                            
172                    US                            
173                    US                            
174                    US                            
175                    US                            
181                    US                            
182                    US                            
184                    US                            
187                    US                            
188                    US                            
189                    US                            
190                    US                            
191                    US                            
192                    US                            
193                    US                            
194                    US                            
195                    US                            
196                    US                            
197                    US                            
198                    US                            
199                    US                            
200                    US                            
201                    US                            
202                    US                            
203                    US                            
205                    US                            
206                    US                            
207                    US                            
208                    US                            
209                    US                            
210                    US                            
211                    US                            
212                    US                            
213                    US                            
214                    US                            
215                    US                            
216                    US                            
217                    US                            
218                    US                            
219                    US                            
220                    US                            
221                    US                            
222                    US                            
224                    US                            
225                    US                            
226                    US                            
227                    US                            
228                    US                            
229                    US                            
230                    US                            
231                    US                            
232                    US                            
233                    Euros                         
234                    US                            
235                    US                            
236                    US                            
237                    US                            
238                    US                            
239                    US                            
240                    US                            
241                    US                            
243                    US                            
244                    US                            
245                    GBP                           
247                    GBP                           
249                    GBP                           
249                    US   
Oracle 9i*

OK, GOT IT. This gives me the POs w/ >1 currency type
select POs.id POID, count( distinct items.CurrencyType )
  from fac_import_poitems items,
       fac_import_purchase_orders POs
where items.poid = POs.id
group by POs.id, items.poid
having count( distinct items.CurrencyType ) > 1using that as subquery, I can get the POItems in each po w/ >1 currency type and I added some more useful info on the PO as well.
select subq.id POID, subq.Description, subq.PDPerson, items.id POItemID, items.currencytype
from fac_import_poitems items,
  select POs.id, POs.projectname Description, POs.requestorname PDPerson, items.POID, count( distinct items.CurrencyType )
  from fac_import_poitems items,
       fac_import_purchase_orders POs
where items.poid = POs.id
group by POs.id, items.poid, pos.projectname, pos.requestorname
having count( distinct items.CurrencyType ) > 1
  ) subq
where subq.ID = items.poid;thank you so much Justin!!!

Similar Messages

  • I need make mac browsers with windows compatibility, because if i try to se priview from Dw to all browsers on windows PC it will look fine, but same file i trying to see on mac all browsers it will not showing proper..... Please help me for that.

    i need make mac browsers with windows compatibility, because if i try to se priview from Dw to all browsers on windows PC it will look fine, but same file i trying to see on mac all browsers it will not showing proper..... Please help me for that.

    ASk in the DW firum and be much more specific. Web page rendering issues are specific to specific versions of browsers and you may simply be using some bad code that messes up your page.
    Mylenium

  • Certificate with PSE type SystemPSE has been invalid

    Hi,
    I got the following error in the log. Please advise.
    Certificate with PSE type >SystemPSE< has been invalid for 733561 days
    Regards,
    Tony

    Tony,
    If you are not currently using SSO, you may want to clean up the System PSE at any time, to eliminate those log errors.
    If you are actively using SSO, youu2019ll want to wait for off-peak hours or a maintenance window.
    The following is based on having the system certificate and the portal SSO certificate.  If you have more for other reasons, youu2019ll need to take more care and planning.
    To do this, you will need to:
    -     go to strustsso2
    -     right click on System PSE (left panel)
    -     select Delete
    -     green arrow back all the way out of strustsso2 to the main screen
    - Go back into strustsso2
    - right click on create
    - accept the default entries for u2018create PSEu2019
    - click Save
    - If you expand the System PSE on left, you should see your server name.
    - Double click the server to show the system certificate. 
    - Then double click the certificate to see the details.
    -     Finally, youu2019ll want to import your SSO certificate, add it to the Certificate List and add it to the ACL, and save.
    Of course, all of this is if you want to have a cleaner system log.  If you have any doubts before attempting, feel free to post as there are a lot of helpful people in the forums, and in this thread alone!
    If everything is working as expected and you donu2019t mind ignoring the system log messages, then you can take no action.
    Hope this helps!
    PJ

  • Open item account line with flow type 0178 has to contain a partner

    At the time of RERAPP Periodic posting getting the error msg
    " Open item account line with flow type 0178 has to contain a partner"
        Message no. RERACA005
    Please guide me on the same.

    Hi,
    As per your suggestion  i have posted the setting for flow type
    In Define Flow type
    140     Security Deposit     S Debit Posting     ANRVCN     TRRVCN
    Assign Reference Flow Types
    10 Follow-Up Postings Due to Condition Increase     140     Security Deposit     140     Security Deposit
    20 Follow-Up Postings Due to Condition Reduction     140     Security Deposit     140     Security Deposit
    30 Distribution Postings (Object Transfers)     140     Security Deposit     140     Security Deposit
    Please guide me

  • List of POs with subsequent changes

    Hai Gurus,
    Need to track the changes done on POs after saving the original. Can display individually by selecting header changes / item changes from the header menu.
    Is there a report to get the chages for list of POs?
    Regds,
    NalindaR

    Hi,
    you need to develop a customized report for those changes.
    all changes related to Puchasing document types can be read through the below function module. for that you need to pass teh purchasing document  number.
    CALL FUNCTION 'ME_CHANGEDOC_READ2'
            EXPORTING
              I_DOCUMENT_CATEGORY = WA_EKKO-BSTYP
              I_DOCUMENT_NUMBER   = WA_EKKO-EBELN
              I_ALL_ITEMS         = 'X'
            TABLES
              T_AUSG              = I_CDPOS.
    Thanks
    Raheem

  • List custom form with content type drop list

    We're building retention polices for our documents we have 18 document type each has different retention period , when user enter document information we need to choose a document content type from dropdown list instead of choosing it from New Item
    in ribbon menu, then complete other form fields and save, also ability to change the content type for document item, what is the best practice to complete this task.
    BR

    Hey,
    Have below link for your reference. It may help you.
    How to pass query string parameter to SharePoint
    list forms
    Thanks.

  • Certificate with PSE type SystemPSE has been invalid for 9 days

    Hi,
    I am seeing the above message in my ERP system transaction SM21 along with Validity of certificate from list with PSE type >SystemPSE< ends in 5 days message.
    I have seen several notes and SDN threads on this and have replaced the PSE etc.  However, when I download a new verify.der file from the Portal, it still shows a valid to date of September 29, 2007.
    How do I change the valid to date to something other than what has already expired?
    Any help is greatly appreciated.
    Regards,
    Rick

    Hi
    check this note 685306
    and also look into this blog 
    Seamless SSO in spite of certificate expiration
    hope this helps you
    Regards
    Krishna.

  • I recently purchased a 2013 Macbook Air, when I want to install a new copy, it says I need to sign in with an Id that has purchased mountain lion, help?

    Question says it all

    Welcome to Apple Support Communities
    Did you purchase a second-hand Mac? If so, this is the answer. You need to purchase Mountain Lion by reinstalling the original Mac OS X version that came with your MacBook.
    If you didn't purchase a second-hand Mac and you have a Mid 2012 or Mid 2013 MacBook Air, make sure you started up in Recovery HD and that you are using the Apple ID you used to set up your MacBook Air. Another option is to use Internet Recovery (hold Command, Option and R keys while your Mac is starting), because some users said it doesn't require any Apple ID.
    If this doesn't work, contact with the Mac App Store support > http://www.apple.com/support/mac/app-store/contact

  • Need help regarding currency types

    Hi All,
      I need help in understanding the currency types.
    Presently in my system previous guys have designed the currency type = 10, so all the present data is in currency type=10 only,
    Now I need the data for currency type = 30, how can i make this.
    Please give me what are the different ways of achieving this.
    Thanks,
    vinay.

    Hi,
    If you are loading data for currency types then you can use it in Reorts for restrictions, if you are giving any selection in InfPackage then you need to change it for your requirement, else you need to reload the compeletly load the data from ECC.
    Thanks
    Reddy

  • Report of POs with GR but no IR

    Hello,
    I need to run a report of all open POs for a range of Vendors with GR but no IR.
    Is there a standard report I can use? Or which table can I run a query on?
    Help is appreciated,
    -Pratibha

    Hi Pratibha
    First get all the POs using open invoice, then u get a list of POs with no invoice and it is possible that for some of them GR is not there, so just copy them in a spreadsheet(ur local copy) and then again go to this report enter selected POs(copied from ur local copy) again document number field(Use multiple selection) and finally select selection parameter as No GR exists.this way you get POs with no ivoice and no GR.
    regrds
    Yogesh

  • Two COA currency type 20 (SEK) and 30 (CHF)in same client

    Hi
    Anyone who can help me out wit this.
    Today we have one controlling area COA with currency type 20 and Currency SEK, SEK is also currency on the Client
    Now I want to create a new controlling area with CHF as currency. (Implementing new companies)
    If I create the controlling area with currency type 20,the controlling area currency need to be the same as client currency (SEK)
    So I was thinking of if I could use currency type 30 instead. And then create the COA in CHF
    We want to have this two controlling area in the same COPA.
    Now to my question:
    Will it be a problem in the future with one COA currenctype 20 and the other COA in 30
    In the same Client?
    In the same COPA?
    If yes, any ideas how to solve the problem ( I donu2019t want to migrate the old COA to CHF)
    Hope anyone can help me out with this 
    Best regards
    Afanda

    Hi,
    First let me clarify two things to you...
    If you select the currency type 20, u have the option to choose your controlling area currency... it need not be your client(sap client)currency...
    If you select the currency type 30, system by default takes the client currency as group currency...
    Now coming to your question,
    you will not have any issue if you have different currency types to different controlling areas....
    As far as the operating concern currency is concerned, u can freely define the operating area currency... so no issues even if you assign two different controlling areas with different controlling area currencies....
    Hope u r ideas will become clearer now.
    Regards
    Sudhakar Reddy

  • KG843 Currency type does not match plan version

    Dear all,
    we try to set up a CO-PA-planning in company code currency CZK / our operating corncern-currency is EUR - in the operatin concern we have maintained currency EUR and we have set the flag "Company-code currency" (TA KEA0).
    As actual/plan-Version we use Version 0 with the following settings for operation concern: Currency type B0 (Operating Concern currency).
    Now we try to plan our CO-PA characteristics and value fields with TA KEPM. Therefore we have created a planning layout. Here we receive the error message: KG843 Currency type does not match plan versionThe planning layout (TA KE15) is set up like this:
    1. By creation of the layout we selected "Operating concern currency / Company code currency" because we would like to plan in CC-Currency
    2. In the General data selection I have selected currency type = 10 = Company code currence because we would like to plan in CC-Currency
    3. In the value field I selected Plan/Act. Indicator = 1 = Planning data and Version = 0
    Do you know why I receive message KG843 - or what can I do so that I am able to plan with currency type 10 and version 0?
    Thanks for a soon feedback.
    Best regards,
    XmchX

    Ok, here's what SAP help has to say about multiple currencies in COPA planning:
    http://help.sap.com/erp2005_ehp_05/helpdata/EN/7a/4c3d494a0111d1894c0000e829fbbd/frameset.htm
    Basically it says you have to define one version for OC currency and one version to use CC currency. Then plan in one version and copy to the other. Currency conversion will happen when copying.
    REgards
    Nikolas

  • 0FI_GL_6 and Currency Type=00

    We extract the delta to ODS. From ODS to Cube the data goes with FULL upload. Selection to ODS and to Cube is only on Company code and fiscal period/year. The problem is that only Currency Type =10 is extracted.
    When I go to RSA3 in R/3 and check 0FI_GL_6 extractor without selection on Currency Type I get records with Currency Type=10 only. When I put in the selection Currency Type =00 I get the records with such selection.
    What I need to have is the data with Currency Type = 00 in the cube.
    I think I could upload the data from the Source directly to the Cube putting requred selection. Am I right?
    But what should I do to have date uploaded every night with selections:
    Currency Type =00
    Currency Type =10

    I need to do a workaround now to have the data ready for reporting as soon as possible. I will upload the data from the source to the Cube directly passing by ODS.
    Shall I choose Repair Full Reqest to do this?

  • Open item account line with flow type has to contain a partner

    Hi,
    I am getting the following error while doing periodic posting in flexible real estate management.
    " Open item account line with flow type Z240 has to contain a partner"
    " Open item account line with flow type Z820 has to contain a partner"
    Message no. RERACA005
    I have found a similar message in this forum.
    This error is not coming for other flow type Z120 in the contract.
    The accrual type for accruals is set  as ANRVCN and Accrual type for deferrals is set as TRRVCN in the definition of flow type with S Debit posting.
    For ANRVCN , posting supported is " Only periodic"  and for TRRVCN " All"
    Please guide as to where I need to check and correct.
    Regards,
    T Saravanan

    Hi Saravanan.
    I have the same problem, could you help me to solve it?
    thanks in advance!
    Lucas

  • REPORT for list of invoice with an order reason.

    Hi SAP Gurus !
    Is there any standard SAP report which will show me a list of invoice with an order reason field?
    I have tried VF05 and VF05n,but in both of them, order reason as a selection parameter field is missing.
    In case of any clarification kindly revert back to me.
    Regards,
    Ujjawal

    Thanks to all !
    Actually i was going  to create a query with VBRK and VBAK  tables but sales order number is not the common link as sales order number is present in VBAK table only.
    Apart from that i had tried to add VBRK and VBRP table then i was getting the list of invoice with order reasons (because order reason was getting copied from an order to invoice) ,but in this query i'm getting Order reason number with list of invoice only(Description of order reason is not coming).
    Please guide me for this if i'm wrong.
    Regards,
    Ujjawal

Maybe you are looking for