Determining the correct DSO based on date.

Hi,
I  am new to BI. Now I am doing BI ABAP  report. I have a requirement that need to find correct sales quarter DSO based on the selection screen date. Would you please anybody suggest me any function module or code to achieve that.
Your help will be more appreciated.
Thanks,
Kumar.

Hi,
Are you using a Multiprovider based on this quarter wise DSO's ? If yes, then you can provider an exit variable and code for the correct infoprovider based on quarter calculation
If this is the scenario then use the following guide , there they have provider exit code from similar scenario
How tou2026Create Efficient MultiProvider Queries
http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/751be690-0201-0010-5e80-f4f92fb4e4ab
hope this helps..
Edited by: Sonal Patel on Nov 27, 2009 11:36 AM

Similar Messages

  • Copy the correct file based on date??

    $whatdate = (Get-Date).Date
    $today = $whatdate.ToShortDateString()
    $file = (Get-ChildItem 'C:\pstfiles\*.pst').LastWriteTime.ToShortDateString()
    foreach ($pst in $file)  
        {$day = $today -like $file} 
            if ($day -like "TRUE") {Copy-Item c:\pstfiles\$pst "c:\temp\PSTTSP"}
    this code executes without error but nothing gets copied.  This is because my $file is a date (7/24/2014).   How do I modify this code so I capture the file name yet still do
    the date comparison?   
    I have 3 files in my folder.  File1 modified today.  File2 and File3 modified yesterday.  When when I run my code I want to to see that File1 was modified today and then
    copy File1.pst to my target location.   Sounds easy but proving to be hard.
    mqh7

    File dates are date objects and not strings.
    Get-ChildItem C:\pstfiles\* -Include *.pst | Where-Object{$_.LastWriteTime.ToShortDateString() -eq '7/24/1014'} |Select Name
    It is better to not use strings.
    $matchdate=[dateTime]'07/24/2014'
    Get-ChildItem C:\pstfiles\* -Include *.pst |
         Where-Object{$_.LastWriteTime -ge $matchdate -and
    $_.LastWriteTime -lt $matchdate.AddDays(1) } |Select Name
    ¯\_(ツ)_/¯

  • How to determine the  Benefit Salary based on P0168-BPLAN?

    Hi All,
    My requirement is calculation of Benefit salary .As per the Functional Spec ,First I have to retrieve info type PA0168
    record in effect as of the system date where P0168- BPLAN = one of the STD Plan on ed on the selection screen.  Using the system date as the Calculation Date, use the same logic as the I/T168 screen does to determine Benefit Salary. 
    My Doubt here is how the I/T168 screen  determines Benefit Salary?
    Please update me with your idea how can I determine the benefit Salary based on the PA0168 record.
    Thanks a lot,
    Srinivas.

    Payload size is not the only factor while determining size of the system (h/w). You need to consider number of services, nature of services (sync/async), payload size, frequency of messages (load), peak load value, security constraints, performance requirements etc..
    You may contact your local Oracle Sales Representative/ Oracle Support to get help in determining size of the system. They will provide you a sizing questionarre and on the basis of that they may suggest sizing as well (Oracle has an internal tool for proposing sizing)
    Regards,
    Anuj

  • How to determine the correct moment when Word has finished to write to a docx file

    Hello,
    we are currently passing a document to Microsoft Word for editing and want to take back the changed/saved document when editing is finished. But it seems we have issues to determine the correct moment when Word has for sure saved all changes and
    it is save to take back the file.
    To pass the document to Word we use ShellExecuteEx with the file name. Then we use the Running Objects Table and a File Moniker to wait for the file to be closed.
    Sample code:
    HRESULT hRes = S_OK; 
    CComPtr<IMoniker> spIMoniker; 
    CComPtr<IRunningObjectTable> pRT; 
    hRes = GetRunningObjectTable(0, &pRT); 
    if (FAILED(hRes))
       TWTHROW1(TWERR_ANY_ERROR, hRes, _T("GetRunningObjectTable failed."));
    hRes = ::CreateFileMoniker(m_strTempFilename.AllocSysString(), &spIMoniker);
    if (FAILED(hRes))
       TWTHROW1(TWERR_ANY_ERROR, hRes, _T("CreateFileMoniker failed."));
    while (S_OK == pRT->IsRunning(spIMoniker) && !m_bShutdown)
       Sleep(500);
       continue;
    So we wait for the file to be removed from the Running Objects Table and additionally wait until we can get exclusive access to the file before we take over the changed file. But still it seems to happen that we take the file too early. Hence it
    seems the file is removed from the Running Objects Table by Microsoft Word before saving the file has completed.
    Is this behaviour of Microsoft Word by design? What is the best practice to identify the moment in time when writing the file has completed. Some other applications like Winzip seem to do the same thing.
    Thanks,
    Wolfgang

    Hi WolfGang,
    Thanks for posting in MSDN forum.
    Based on the description, you are developing application with Windows API. I would like to move it to
    General Windows Desktop Development Issues forum.
    The reason why we recommend posting appropriately is you will get the mostqualified pool of respondents, and other partners who read the forums regularly can either share their knowledge
    or learn from your interaction with us.
    Thanks for your understanding.
    Regards & Fei
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How do I determine the correct sales org for the employee?

    Hi
    The requirement here is to determine the correct sales org for the employee logged in when creating an activity (a customer visit). We know that all employees will belong to one sales org.
    On this basis, in the organisational data determination I have maintained the organisational data profile Z0001 with the Organisational Model Determination Rule: 10000162 (employees for responsible org. unit). I have left the Responsibilities Determination Rule empty. I am not sure if both have to be filled. Can anyone explain the difference between the two?
    I have checked the sales organisation and distribution channel. This is for the sales scenario.
    I simulated this rule in Maintain Determination Rules. I entered the Sales Org and no agents (employees) were found.
    The org data profile Z0001 has been assigned to the transaction.
    The Object Permitted in Determination has been checked for the sales scenario in the Organisational Model.
    Regards
    Declan

    Hi PePe
    I made the change and it worked as I wanted it. Thanks a lot.
    You say there's no need to Maintain the Responsibilities Rule. Can I ask what this section does and why it can be one or the other?
    Regards
    Declan

  • How to fetch the correct netprice based on contract item conditions

    Hi,
    When you display a contract using ME33K and you click on a item and view its conditions(shift+F6), there might be 2 validity periods for a given item.
    and each period will have different netprice in it.
    Let me describe the same.
    Suppose the PO creation date is 04.07.2007
    The conditions for an item in a contract for the PO are as follows;
    1. Validity from 04.07.2007 validity to 04.07.2007 Netprice = 100.00
    2. Validity from 05.07.2007 validity to 31.12.9999 Netprice = 200.00
    We need to always fetch the net price from the validity period which always matches with the PO creation date. here the value 100.00 should be the correct netpr as the PO creation date matches with the first validity period.
    But the program is fetching the netprice 200.000 which belongs to the second validity period. That is because the select statement which fetches the data for contracts collects on the basis of EKKO-kdate and ekko-kdtab.The fields kdate and kdtab retrieves the validity period of the contract which is from 04.07.2007 to 31.072007. This data is then used to retrieve the netpr data from EKPO and it fetched 200.00 as it retrieves the net price of current data in contract validity and not with respect to PO creation date.
    This data is then used to fetch the get the netpr data from EKPO.
    what we need is the netprice for that validity period of item(Conditions) that matches with the PO creation date..
    Now I have the internal table which is having data retrieved from Ekko and EKPO table.
    Now how do I retrive the correct price by using the condition tables KONV and KONP.
    Can you pls give the code snippet..
    Thanks in advance.

    Hi,
    Please get the valid condition ( based on date ) from A016 (MK & LPA). With the appropriate KNUMH read the Condition header. You can access the different condition items viz., PB00, RA00 etc., for the values from table KONP. Further if you have Value scales / Quantity scales, you can read the data from KONM, KONW.
    An additional tips: in KONP, if you have a condition like RA00 - Rebate, the value will be multiplied by 10 and saven in database to accomodate the discount to the third decimal.
    I could not completely understand your requirements like nature of development ( Is it a Report / SAP Script ??) you are working etc., so that I could help you precisely.
    Hope this helps,
    Best Regards, Murugesh AS
    Message was edited by:
            Murugesh Arcot

  • Insufficient rights - How to determine the correct rights?

    All,
    Does anyone know how to determine the correct rights if you get the error message "Insufficient rights for operation"?
    In SAP backend systems you can start transaction SU53 to check your "missing" authorizations, but is something like that also possible in MDM?
    I also don't see any detailed information in the logs or reports.
    If anyone has an good suggestion, please let me know, since I don't want to do "trail and error" to know what Functions to set to Execute and what Tables/Fields to set to Read/Write (because there are quite some combinations to check).
    p.s. I've read the complete reference guide of the MDM console and sometimes it's really obvious what Functions and Tables/Fields you have to set, but for instance when I want to give authorization to maintain Relationships in the DataManager and have set the Main table and all Relationships to Read/Write and have set all Records and DataManager functions to Execute it still doesn't allow me to maintain the relationships on the records! I only get the message "insufficient rights" and it's unclear what rights are missing!
    Regards,
    Marcel

    hi Marcel,
    I doubt if we have anything in MDM to show you what authorizations are missing.However,you can check the following :
    1. What activity are you trying to perform when you get this error.
    2. Check if authorization are given in the role for that actitvity.
    3. Check how many roles are allocated to user and  Is authorization given in all roles if more than 1 role is assigned to that user?
    Please let us know answer of the queries...
    Regards,
    Vineet

  • Function module to get the posting period based on date

    Hi to all,
    Is there any function module to get the posting period based on date?
    Regards,
    Nagesh

    hi,
    CALL FUNCTION 'FIRST_DAY_IN_PERIOD_GET'
          EXPORTING
            I_GJAHR        = GV_GJHAR
            I_PERIV        = GC_24
            I_POPER        = GV_POPER
          IMPORTING
            E_DATE         = S_FKDAT-LOW
          EXCEPTIONS
            INPUT_FALSE    = 1
            T009_NOTFOUND  = 2
            T009B_NOTFOUND = 3
            OTHERS         = 4.
        IF SY-SUBRC <> 0.
          MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                  WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
        CALL FUNCTION 'LAST_DAY_IN_PERIOD_GET'
          EXPORTING
            I_GJAHR        = GV_GJHAR
            I_PERIV        = GC_24
            I_POPER        = GV_POPER
          IMPORTING
            E_DATE         = S_FKDAT-HIGH
          EXCEPTIONS
            INPUT_FALSE    = 1
            T009_NOTFOUND  = 2
            T009B_NOTFOUND = 3
            OTHERS         = 4.
        IF SY-SUBRC <> 0.
          MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                  WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
    ags.

  • How system is determining the Number of Foreign trade data in the Header do

    Dear consultants
    how system is determining the Number of Foreign trade data in the Header -delivery documents(LF) in the Organization Tab.
    Regards
    prakash

    Number of foreign trade data in MM and SD documents.
    Path : SPRO-MM-Purchasing-Foreign Trade/Customs-Define Number Ranges-General Import/Export Processing.(internal number range)
    I hope MM guys will maintain in the above path

  • Determine the size of EDI payload data

    Hi Experts,
    As far as my B2B Knowledge is concerned, in order to know the size of an EDI payload... we download the payload from wire message or payload, copy the data and paste it in a file. The size of the file determines the EDI payload size.
    But, this is a tedious task, particularly in cases where there are huge number of EDI data. To far as I know, the size of EDI files ranges from 1 MB to 1GB.
    Please advise what should I do in cases of files with large payload sizes(more than 25MB).
    Please advise if there is any B2B table whose one of the columns depicts the size of the payload.
    I have searched through some b2b table as b2b_messageinstance, b2b.ip_b2b_report but could not find any such columns.
    Please advise what exactly the procedure is to determine the size of EDI payload data, particularly for cases where payload data is larger than 25 MB.

    I am afraid that there is no direct way of finding the payload size in 10g. You may write your own standalone program or API which may calculate the size of payload by querying the b2b_instancemessage view or by calling the B2B InstanceMessage API -
    http://www.oracle.com/technetwork/testcontent/b19324-01-instance-msg-api-129535.zip
    Regards,
    Anuj

  • Not able to determine the Approvers properly due to data in Approval Master

    Hi All,
    Not able to determine the Approvers properly due to data in Approval master Master table error. This was affected my approval flow. plz help to resolve this.
    Thank you.
    Edited by: ganeshsrm11 on Apr 13, 2010 6:48 AM

    Hi,
    Which table are you talking about? Do you have technical table name? If it is custom table you need to fix your custom program code.
    Regards,
    Masa

  • Could not determine the correct port

    Hi Folks!
    I can't start the EM, when I type
    $emctl (status, stop or start) dbconsole, the follow message is displayed:
    Could not determine the correct port
    Please, help me to correct this problem.
    Regards,
    Wilson

    user490256 wrote:
    Hi Folks!
    I can't start the EM, when I type
    $emctl (status, stop or start) dbconsole, the follow message is displayed:
    Could not determine the correct port
    Hi Wilson,
    What is Oracle version.
    Was it running fine earlier ?
    How did you configure dbconsole ..
    Are you any error in trace files..
    To change the dbconsole port ,
    How to change ports for DB Control 10.2.x.x [ID 395755.1]
    http://yogeedba.blogspot.com/2008/02/manual-configuration-of-dbconsole-em.html
    Regards
    Rajesh

  • Determine the employee responsible based on the territory structure

    Hi all ,
    System should automatically determine the employee responsible based on the territory structure.
    Get the Employee Name and Employee Region Name
    Are they standard programs or BAPI's to achive this?
    Thanks,
    Anitha.

    Hi Anitha,
    You can try using partner determination procedure ,where in for partner function employee resposnible  define access sequence with  the source as "CRM_PARTNER_M-- Business Partner from Territory management".
    Also check few notes:
    1428285
    1399843
    1423950
    Hope this helps.
    Rgds,
    deepa

  • How to determine the number of rows of data in a datatable?

    I have a datatable that I fill from an SQL query.  I do not know exactly how many rows of data it will return (due to my selection criteria) but will be somewhere between 100 and 300 rows.  I send this data into a report but need to determine the length of the report (panel height data member) programatically based on how much data the query has returned.  So, I need a way to count how many rows are filled in the data table.
    I tried doing a nested "if" statement checking the value of each cell but when I tested the expression at 59 "if" statements (will need 300+) I got a parser error in lookout when I tried to accept the connection.  I also tried a type of loop by assigning cursor.2 either to its own value (circular) or to its own value plus one depending on the value of the cell at cursor.2.  It was close but overshot by one row or more (much more sometimes).
    Any clever ideas?  Perhaps I have just been looking at this problem too long.  Thanks, in advance, for your help.

    Since the datatable gets the data from the SQL query, you can also use the SQL statement to count the number of rows in the query result.  
    For example, in datatable you do "select localtime, trace1 from intdata where xxx". You can get the count by "select count(trace1) from intdata where xxx". Use the same condition in order to get the same number of rows.
    Maybe another SQLExec object is needed to do the count.
    Whenever the datatable executes the SQL, the SQLExec executes and return the count.
    Ryan Shi
    National Instruments

  • How to schedule the webi report based on data changes in the report data

    Hello,
    I want  to schedule a webi report based on data change in a column in the report.
    The scenario is something like below:
    1. If a data of a particular column changes from 2 to 3 than I would like to schedule this report and sent it to users mail box.
    I know how to apply alerts or schedule a report or data tracking for capturing changes in the report but I dont know how to schedule the report only for data changes.
    Anybody done this before.
    Thanks
    Gaurav

    Hi,
    May be these links can help you:
    http://devnet.magicsoftware.com/en/library?book=en/iBOLT/&page=SAP_R_3_Master_Data_Distribution_Defining_Change_Pointers.htm
    SEM-BCS: Load from data stream schedule
    Attribute Change Run

Maybe you are looking for

  • Running a Unix Script through a Java Program

    Hi !!!!!!!!! Can anybody plz suggest me an approach for the following queries - 1.  How to execute a unix script through a java program ?   2.  How to send the o/p of the script to a java program so that it can be used .

  • Appearance of iWeb 2.0.2 pages in Safari and other browsers

    I guess this question has been posted several times before because I can't find the relevant search terms to limit the number of answers to a reasonable count. Thus, sorry for the repetition (if so). Is there a way to amend the appearance problems of

  • LMS 3.2 common services error

    Hi all, I am facing a problem with my LMS 3.2 server. Suddenly I found there is no device reflecing in common services-> device management as well as RME also. I restarted LMS services, server multiple time, reseted casuser, demoted the server from A

  • Firefox freezes when printing

    After installing the package "agfa-fonts-2003.03.19-156.21.noarch.rpm" (for SLES 11.2 DVD) during the printing progress, firefox freezes in about 20 minutes and then page is printed . HW: Intel (R) Core (TM) i5-2450M CPU @ 2.50GHz / 4GB O.S:. SLED 11

  • Need some help on building my pc

    Hi i have seen some discussions about what pc to build,but i don't have any idea about hardware,i am very much confused about motherboards,cpu,ram,and overclocks, my requirement is that,I am a vfx compositor,i left my job and doing freelance for Feat