Script to list the number of PO in a specific range of accounting code

Helloo

I need a script to list all PO numbers within a specific range of accounting code.  The script is used for the assessment of the stock.

Grateful if someone can help.

Hello

Please, if this answer is late; just ignore it

The following SQL select statement assumes that you know the costs/inv. natural accounts of valuation and natural account segment is 2:

Select po_num, authorization_status, closed_code

of PO_DISTRIBUTIONS_INQ_V one

where destination_type_code = no ('STOCK', 'FEES')

and a.code_combination_id in

(select b.code_combination_id in the GL_CODE_COMBINATIONS_V b where segment2 = all ('170702110', '720201000'))

"170702110", "720201000" are natural sample accounts

Thank you

Tags: Oracle Applications

Similar Questions

  • Essbase calc script to determine the number of occurrence

    Hello

    is it possible within a calc script to determine the number of occurrence of a value in the account dimension?

    I have an account called ranks which can contain any value between 1 and 10.  I would like to know how many times each value is repeated for a specific cost center.  It's in a database of planning BSO.

    Thanks in advance for your contributions...

    CL

    This isn't the typical calculation you would do in an OLAP architecture, but yes it is certainly possible.

    you will need to create 10 accounts such as occurrence_of_1, occurrence_of_2 etc.

    Then you increment them according to the value of the 5th year.

    Don't forget to put in your calculation!

  • Basic conditional script based on the number of lines in a text layer?

    Just received help here to write a conditional script by using the font size of a text layer. Thank you all for this.

    The next hurdle is a conditional script using the number of lines in a text layer in the differential. Far as I can tell it not the layer details which specify the number of lines. Just '\r' for a return in the idTxt descriptor. Nothing seems to stand for a soft return as far as I can tell. I'll probably have to be able to count the lines with soft and hard returns.

    Any thoughts?

    I was playing around with this a bit and here is a small script to determine the number of rows. This is based on the self in the head, that I calculated to environ.108 times the size of the font.

    #target photoshop
    app.preferences.rulerUnits = Units.POINTS;
    var doc = activeDocument
    var tL = doc.activeLayer
    var h = tL.bounds[3]-tL.bounds[1]
    var per = ((h/5)-(tL.textItem.size))/tL.textItem.size
    var num = h/(tL.textItem.size *1.108)
    
    alert(Math.round( num))
    
  • The number of mobile phone to check my Hotmail account is incorrect.

    The number of mobile phone to check my Hotmail account is incorrect.  I made a mistake when entering it and I want to put the correct mobile number registration

    Hello

    Answers is a peer group supported and unfortunately has no real influence on Hotmail.

    HotMail has its own Forums, so you can ask your questions there.

    Windows Live Solution Center - HotMail - HotMail Forums Solutions
    http://windowslivehelp.com/

    Hotmail - Forums
    http://windowslivehelp.com/forums.aspx?ProductID=1

    Hotmail - Solutions
    http://windowslivehelp.com/solutions.aspx?ProductID=1

    How to contact Windows Live Hotmail Support
    http://email.about.com/od/hotmailtips/Qt/et_hotmail_supp.htm

    Windows Live Hotmail Top issues and Support information
    http://support.Microsoft.com/kb/316659/en-us

    Compromised account - access unauthorized account - how to recover your account
    http://windowslivehelp.com/solution.aspx?SolutionID=6ea0c7b3-1473-4176-b03f-145b951dcb41

    Hotmail hacked? Take these steps
    http://blogs.msdn.com/b/securitytipstalk/archive/2010/07/07/Hotmail-hacked-take-these-steps.aspx

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle="" -="" mark="" twain="" said="" it="">

  • Try to install the items 13 and it requires a serial number. The instructions show the number should start with 1057, but there is no code on the discs, the box or envelopes, only the discs came from 1057. I can't activate the software without this c

    Try to install the items 13 and it requires a serial number. The instructions show the number should start with 1057, but there is no code on the discs, the box or envelopes, only the discs came from 1057. I can't activate the software without this code, and it's a Christmas gift for my wife. Help!

    Thanks a lot... the box inside was stuck and I didn't think it came out. Awesome!

  • get the number of frames in a specific scene?

    Is there in any case for the number of frames in a specific scene? There is a MovieClip class totalFrames property, but it is the total number of frames in all scenes.

    scenes do not exist in a swf file.  so, not during execution.

  • PowerCLI script to display the number of vCPU by VMhost use

    Hi all

    I'm looking to get help here with powerCLI script to list each total number of ESXi vCPU host that is used to determine if there are any ESXi host CPU is more engaged.

    According to suggestion of performance in some blog vExpert, is around 1: 3 of Jepp core ratio: vCPU allocated, then how to display the report with the powerCLI for something like this:

    PRODESXi01
    Total of nuclei available: 32
    Used by the virtual machine: 28

    PRODESXi02
    Total of nuclei available: 32
    Used by the virtual machine: 38

    So according to the result above, the PRODESXi02 is more committed by 6vCPU allocated to the virtual machine.

    Note: The available total carrots is taken from the value of logical processors from the contents tab, when you click on the vSphere console.

    How to get this report using PowerCLI?

    Thank you

    You mean something like this?

    {Foreach ($esx in Get-VMHost)

    $vCPU = get-VM-location $esx | Measure-object-property NumCpu-sum | Select - ExpandProperty sum

    $esx | Select Name,@{N='pCPU'; E={$_. NumCpu}},

    @{N = 'vCPU'; E = {$vCPU}},

    @{N = "Ratio"; E = {[math]: Round ($vCPU / $_.)} (NumCpu, 1)}}

    }

  • Script to list the information under Configuration/Storage/datastore details

    Hello, I'm trying to create a script that returns the details data Configuration/Storage/Datastore/store info. The thing I want the script to do is list my ESX:s, data of list store names, list mpathpolicy and the details of the data store paths section in the VI client.

    Is it possible to get this in a script? Or if anyone knows how I can get information from the info of paths in Details of the data store to the VI client

    Thanks in advance

    This is possible if you use the SDK.

    The following script lists the name of host, name of DS, political path and the number of paths.

    If you need other information on the page of details in the report let me know.

    $report = @()
    
    Get-VMHost  | Get-View | %{
         $esx = $_
         $esx.Datastore | %{Get-View $_} | where {$_.SUmmary.Type -eq "VMFS"} | %{
                   $ds = $_
                   $ds.Info.Vmfs.Extent | %{
                        $ext = $_
                        $extKey = ($esx.Config.StorageDevice.ScsiLun | where {$_.CanonicalName -eq $ext.DiskName}).Key
                        $lun = $esx.Config.StorageDevice.MultipathInfo.Lun | where {$_.Lun -eq $extKey}
    
                        $row = "" | Select ESXname, DSname, "Path Selection","Paths Total"
                        $row.ESXname = $esx.Name
                        $row.DSname = $ds.Name
                        $row."Path Selection" = &{
                             switch($lun.Policy.Policy){
                                  "VMW_PSP_FIXED"{"Fixed"}
                                  "VMW_PSP_RR"{"Round Robin"}
                                  "VMW_PSP_MRU"{"Most Recently Used"}
                             }
                        }
                        $row."Paths Total" = $lun.Path.Count
                        $report += $row
                   }
         }
    }
    $report
    

    ____________

    Blog: LucD notes

    Twitter: lucd22

  • Script to determine the number of lines of text in a paragraph?

    I'm revisiting a problem I posted here last summer, thanks to all those who have offered help, but I could not sort it out.

    http://forums.Adobe.com/thread/455526?TSTART=0

    What I'm after is a 'search' function to insert in a FindChangeByList.

    Jongware suggested the following - but when inserted in my list, I can't seem to do anything - it does not take a Javascript error.

    app.findTextPreferences = NothingEnum.nothing;
    app.findTextPreferences.appliedParagraphStyle = "Callout_3";
    foundItems = app.activeDocument.findText();
    for (var i=foundItems.length-1; i>=0; i--)
    {
      if (foundItems[i].paragraphs[0].lines == 2)
        foundItems[i].paragraphs[0].appliedParagraphStyle = "Callout_2";
      if (foundItems[i].paragraphs[0].lines == 1)
        foundItems[i].paragraphs[0].appliedParagraphStyle = "Callout_1";
    }

    I regularly get a 'word' document on which I run a "FindChangeByList" that cleans and formats the text with a number of GREP/text searches.

    One of the lines of research converts a particluar to the text string to a paragraph style "Callout_3" (the most common legends).

    This style applies to paragraph NET, above and below the line, to create a block/strip of color that says text is reveresed.

    The problem I have, is that the style (due to the rules of paragraph), works well if the paragraph has x 3 lines of text.

    I have updated styles in place for any eventuality - Callout_1 (for the single line of text), Callout_2 (for x 2 lines of text) etc.

    I'm looking for is a script that can count the number of lines in the paragraph (once the "Callout_3" style has been applied) and then change the style accordingly the number of lines in each paragraph/legend.

    Any other thoughts?

    Steve

    -your script can be incorporated into a FindChangeByList .txt file?

    No, he needs to access real paragraph finds it to count the number of line of this paragraph. FindChangeByList Find/change regular strings together, and you can not search for a certain number of lines.

    -what it takes to go to the 'findStyle ('Callout_1');"reference within a"group of paragraph style"called"legends "?

    ... Nothing. Because the style can be within a group, I wrote this little function. The findStyle performs a loop on * all * paragraph styles in the document, the root and in each group and returns the first style with the name that you provide in the function call (tested!).

    So if there is a 'Callout_1' style anywhere, it should find it... Are you sure you put the name at the top of the script? I've seen in a post later that it is actually called "Callout_1line".

  • Script to get the number of CPUS in evaluation mode.

    Hi team,

    I would like to know the total number of CPU which is in trial mode. The script that I created is as below.

    $ServiceInstance = get-view ServiceInstance

    $Eval = (get-View ($ServiceInstance |)) Select - 1 first). Content.LicenseManager | Select - ExpandProperty licenses? | {$_. Name - match "Evaluation Mode"} | check the used box | Measure - Object - property used - sum). Sum

    Write-host "$Eval".

    By using this format, I got the number of licensed processors, but cannot get to the evaluation mode, do not know what is missing.

    Can someone help me please.

    Power required:

    If there are 4 cottages with 2 CPU each running in evaluation mode, I need output like '8 '.

    It was my mistake...

    The entry is as below.

    $ServiceInstance = get-view ServiceInstance

    $Eval = (get-View ($ServiceInstance |)) Select - 1 first). Content.LicenseManager | Select - ExpandProperty licenses? | {$_. Name - match "product evaluation"} | "" check the used box | Measure - Object - property used - sum). Sum

    Write-host "$Eval".

  • REQ: script to calculate the number of months

    Looking for a script that will calculate the number of months between 2 dates (to 2 decimal points)

    or if there is a way to make a calculation of the number of months

    for example: if I go to google and say 75 days - months, it returns a value of 2.46

    That's what I'm looking for

    If anyone can help?

    with a calculation of date or number calculation?

    I tried # days / 365 x 12 but there is no decimal places.  right guard rounded up/down

    As mentioned in a month, the days are not constant throughout the year and change formula 28-31 days. How are you calculating the decimal value of the month?

    A year has 365 days, if she did then there would be no need for leap years and centuries jump.

    Calculation of a variable with the result of a calculation method is set to decimal.

    cDateFormat = "d-mmm-yyyy";
    var cStartDate = "January 1, 2000;
    var oStartDate = util.scand (cDateFormat, cStartDate);
    oStartDate.setHours (0, 0, 0, 000);
    var cEndDate = "January 15, 2000;
    var oEndDate = util.scand (cDateFormat, cEndDate);
    oEndDate.setHours (0, 0, 0, 000);
    nDiff var = oEndDate.getTime () - oStartDate.getTime ();
    Console.println ("end date:" + cEndDate);
    Console.println ("start date:"+ cStartDate ");
    Console.println ("difference in milliseconds:" + nDiff);
    Console.println ("difference in seconds:" + nDiff/1000);
    Console.println ("difference in minutes:" + nDiff / (1000 * 60));
    Console.println ("difference in hours:" + nDiff / (1000 * 60 * 60));
    Console.println ("difference in days:" + nDiff / (1000 * 60 * 60 * 24));
    Console.println ("difference in weeks:" + nDiff / (1000 * 60 * 60 * 24 * 7));
    Console.println ("difference over the years:" + nDiff / (1000 * 60 * 60 * 24 * 365.2524));
    Console.println ("difference in months:" + nDiff / ((1000 * 60 * 60 * 24 * 365.2524) / 12));  12 months in a year;

    End date: January 15, 2000
    Start date: January 1, 2000
    Difference in milliseconds: 1209600000
    Difference in seconds: 1209600
    Difference in minutes: 20160
    Difference in hours: 336
    Difference in days: 14
    Difference of weeks: 2
    Difference in years: 0.0383296591617194
    Difference in months: 0.45995590994063273

    Several turncate the decimal values scirpts because keeping them may not meet the need of specific calculation. You know that there are methods to roud until the next iniger, round.5 to the top and turnacate to the lower intiger.

    According to the date of departure, the values may be different:

    For a start date of February 1, 2000, 75 days would be 1,810 months but for a start date of 1 February 2001 75 days becomes 1,838 since the number of days of changes of February 29 to 28 and the number of days for the month of fractions varies from 26 to 27.

  • Measure the number of Vm for a specific folder and its subfolders in a Vcenter

    Hello

        I am try to create a script that tit I am creating a powercli script that will count the number of VMS in all subfolders that is mapped to a specific folder (like I have a folder name 'guests', according to which several customers subfolders (cus01, cuso2, cus03...) will show all customers folder. )

    For example-, we have several files in the vcenter, whereby I need to point to allows specific folder say "All customers" and count of the VM of each subfolders.

    VMcount folder

    All clients 60 - this total count of the main folder, including subfolders.

    Cus01                                   10

    cus02                                    20

    cus03                                    30

    ANY IDEA? do this in simple oneliner or a simple loop.

    Thanks in advance!

    -Philippe.

    Try something like this

    $folderName = "all customers".

    $rootFolder = get-file-name $folderName

    $folder = @($rootFolder) + (get-file-location $rootFolder)

    $folder | Select Name,

    @{N = "VMCount"; E={($_ | Get - VM | Measure - Object). County}}

  • Apple script apply prefix the number in a particular order?

    Hi all

    I would like to write a script that adds a prefix number to a bunch of files in a very particular order.

    Please see screenshot below.

    I want to precede the files shown on the left, starting at '001' but in the order of the list on the right.

    That is to say

    001 clubworx BA CYF

    002 name me BASS

    etc.

    I have

    Any help with this is greatly appreciated.

    Thank you for taking the time to read this.

    Kind regards

    John

    Use the following syntax:

    Set namelist to {'BA clubworx CYF.fxp', 'name me Bass_2.fxp"}

    the_num Set to 0

    Repeat with this_item in namelist

    Set the_num to the_num + 1

    the_string value «»

    If the_num < 10 then set the_string to '0' & the_string

    If the_num < 100 then set the_string to '0' & the_string

    the value the_string the_string & the_num & "" & this_item

    Tell application "Finder".

    Set the name of the file window this_item the_string 1

    tell the end

    end repeat

    (142019)

  • PowerCLI script to list the df - hl on all ESX hosts?

    Hi Expert,

    I have more than 100 esx host, and I need to list all the df - hl out for my report. Y at - it instead of connect on each esx host to get under output, powercli script that I can use to remove similar information?

    Size of filesystem used Avail use % mounted on

    / dev/sdaa2 20G 1.5 G 17G 8%.

    / dev/CCISS/c0d0p1 1.1 G 118 M 909 M 12% / Boot

    / dev/sdaa6 9.7 G 151 M 9.0 G 2% / Home

    / dev/sdaa7 9.7 G 151 M 9.0 G 2% / tmp

    / dev/sdaa5 9.7 G 317 M 8.9 G 4% / var

    / dev/sdaa8 494M 212 M 257M 46% /vmimages

    Please advice. Thank you

    Are you allowed to enable SSH on servers ESX (i)?

    And are you allowed to establish a SSH session on each ESX (i) Server?

    You have an account and a password on each ESX (i) server that can run the command 'df '?

    If it is Yes, then you can use something like plink.exe in consequence of PuTTY to connect to each ESX (i) server, run the command "df" and retrieve the output.

    There are several available examples to use plink.

    And don't forget that you will need a fingerprint for each server ESX (i) will be stored on the client from which you are running the script.

  • Script to list the responsibility of the user by Department

    Hello

    I'm looking for a script that can list all employees and responsibilities, as well as his Ministry. I want to output something like this:

     
    
    _Name_                                _Responsibility_                                                  _Application_               _Department_
    
    Peter Ken                          Fixed Assets Manager                                            Assets                          Finance
    I'm on 12.1.1

    Dula

    Please take the necessary haou table columns.

    SELECT   paf.full_name,
             paaf.assignment_id,
             fr.responsibility_name,
             furg.start_date,
             fat.application_name,
             haou.*
        FROM fnd_user_resp_groups_direct furg,
             fnd_user fu,
             fnd_responsibility_tl fr,
             per_all_people_f paf,
             fnd_application_tl fat,
             hr_all_organization_units haou,
             per_all_assignments_f paaf
       WHERE furg.user_id = fu.user_id
         AND furg.responsibility_id = fr.responsibility_id
         AND fu.employee_id = paf.person_id(+)
         AND fr.application_id = fat.application_id
         AND fr.LANGUAGE = USERENV ('LANG')
         AND fu.user_name = '&user_name'
         AND paf.person_id = paaf.person_id
         AND haou.organization_id = paaf.organization_id
         AND trunc(sysdate) BETWEEN nvl(paf.effective_start_date,trunc(sysdate)) AND nvl(paf.effective_end_date,trunc(sysdate))
         AND trunc(sysdate) BETWEEN nvl(paaf.effective_start_date,trunc(sysdate)) AND nvl(paaf.effective_end_date,trunc(sysdate))
    ORDER BY 3 DESC
    

    HTH
    See you soon,.
    ND
    Use the buttons "useful" or "correct" to award points to the answers.

Maybe you are looking for

  • charge port problem

    Hey guys I use an Iphone 5 16 GB and, recently, I found that my charger is not working properly so I change the cable and the problem is still there. My iphone does not load, BUT when I put a small piece of paper or something like that under the "cab

  • Pirrit - how Custom to restore your data without infecting a MacBookPro erased?

    May 31, 2016, I started to get pop-up windows.  The next day because the problem has gotten worse, I bought Bitdefender and downloaded MalwareBytes, which found and removed adwares/malwares.  However, as CJ706 says, Bitdefender has continued to find

  • Is there anywhere a technical manual for the NB100?

    Is there anywhere a technical manual for the NB100? I want to replace my internal hard drive with a bigger and Dona´t want to destroy anything, so a manual for how best to open the NB100 would be good :-) Cola

  • Satellite Pro L20 dies on 70% of the battery

    battery has about 3.15 hours remaining, and the laptop turns off twice and reset the clock and date at 11 pm on January 10, 2005. technical help say that I need to send the laptop battery all etc. away just to have the battery replaced. I'm not happy

  • HP Envy 17 K2Z68AV: Adding a second hard drive for HP Envy 17 K2000 Series notebook PC

    So, I have been looking around for more information on adding a second HDD/SDD in my model of laptop computer on the web, but can't find anything on my specific model. Many places say K-series laptops have only one hard drive Bay, and that you use a