How to do changes in Z"ME2M"  (Copied report of ME2M)

Hi Friends,
The standard transaction ME2M gives the PO documents with the details of GRN & GRIR quantities to be delivered and quanities to be invoiced and the report output is based on the document date
My Requirement is:
I have to add a "Posting date" select-options so that the user can take the report output based on the Posting date of the document.
Scenario:
In Standard:
>>> I have a document with document date 15.05.2006 and
>>> its posting date is 06.06.2006 (today).
>*** I want the report between the dates 01.05.2006 to
>*** 31.05.2006 .and iam running the report today.. As >*** the document is posted today it is not getting
>*** reflected in the report output.
The "Z"ME2M should pick this docuemnet also in the output, as the document is a Pending document when on 31.05.2006
How can i do that ???
any inputs ????
Expecting your answers ....
Hope my requiremet and question is clear
Thanks in advance
Cheers
R.Kripa.

Kripa,
      For a purchase order the header details are in EKKO and the item details are in EKPO.In your case you need the table which contains the Posting date for a Purchase order.The table is EKBE and the field is BUDAT.Now that you know where the related data is stored let us proceed to changing the program for ME2M.
1. I Guess you have already added the Posting date as a select option field in your ZME2M program.
2. Let us consider ur case where u need all the documents between 01.05.2006 - 31.05.2006 whether it is posted or whether it is still open.Your logic should be to select the documents between the specified period by checking whether the document created date(EKKO-AEDAT) is between 01.05.2006 - 31.05.2006 and that the posting date field is populated(EKBE-BUDAT).But this will miss out the documents which are open as is happening in ur case.
so in ur select-options for posting date include a blank entry which will check for those purchasing documents which do not have a posting date selected.
*Include Blank Row.
r_posting_date_range-option = 'EQ'.
r_posting_date_range-sign   = 'I'.
append r_posting_date_range.
To be more precise your select will be like this.
Select ekko~ebeln
  from ekko as ekko
  inner join ekbe as ekbe
  on ekkoebeln eq ekbeebeln
   where aedat in r_created_date_range
    and  budat in r_posting_date_range. 
This should give u the required output.
I Hope what i am telling is clear.

Similar Messages

  • How can I change selection texts of standard report (S_P99_41000192)?

    Hi:
    I want to change selection texts of  tcode s_P99_41000192.
    ( Our SAP verison is SAP 4.7 version, non unicode)
    Because we can see only Deutch.
    It looks standard sap query so we can not add it into package.
    How can we change it?
    Please help me.

    Hi,
    you can change this in the related InfoSet /SAPQUERY/AM27 on which the Query is based on. Tcode InfoSet maintenance is SQ02.
    Regards,
    Markus

  • [Forum FAQ] How do I change default values shown in Report Delivery Options?

    Introduction
    Some users want to change default values shown in Report Delivery Options when creating standard subscriptions. Someone might want to always Cc the report to a specified user without sending the report URL. So they want to display those default values display
    automatically when creating standard subscriptions like below.
    Solution
    To achieve this goal, please embed JavaScript code into the SubscriptionProperties.aspx file to change those default values (By default, the file’s location is: <Installation directory>\Reporting Services\ReportManager\Pages\SubcriptionProperties.aspx).
    The example below will show how to set default values for “Cc” field and “Include Link” field.
    Before coding, pleas find out the corresponding HTML tags of the two fields in the browser using IE Developer Tools.
    Get “Cc” field with its corresponding HTML tag
    Get “Include Link” field with its corresponding HTML tag
    Embed such a code snippet at the end of the existing code within the SubcriptionProperties.aspx file
    <script runat="server">   
    protected void Page_Load(object sender, EventArgs e)
        Page.ClientScript.RegisterStartupScript(typeof(Page),"MyScript", "var cc = document.getElementById('CcEmailAddressesID');cc.value = '[email protected]';var IncludeLink = document.getElementById('ui_cbIncludeLink');IncludeLink.checked
    = false;",true);}
    </script>
    Create a new subscription to check the default values shown in Report Delivery Options 
    Applies to
    Reporting Services 2005
    Reporting Services 2008
    Reporting Services 2008 R2
    Reporting Services 2012
    Reporting Services 2014
    Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.

    Thanks,
    Is this a supported scenario, or does it use unsupported features?
    For example, can we call exec [ReportServer].dbo.AddEvent @EventType='TimedSubscription', @EventData='b64ce7ec-d598-45cd-bbc2-ea202e0c129d'
    in a supported way?
    Thanks! Josh

  • How can I change the ownership of a report in BW?

    I am trying to create a role and save a query in it but the query belongs to someone else. When I try to save the query in the folder, I cannot, but when she tries, it works fine. Does it have anything to do with the ownership since she was the one who originally wrote the query?
    Points will be assigned. Thanks!

    Hi MD,
       The easiest thing is to make a copy of that query, so that you have similar query on your name. Then delete the first query.
         OR
         There is a table which gives you information about the queries in BW called RSZCOMPDIR. I dont think it is advisable, but you can change the owner of the query here. Check if you have to make the changes in any more places.
    Hope this helps...

  • How do you change fonts in an HTML report?

    Hello all,
    I need to create a report from a test that I've written, and my only feasible option is HTML. Unfortunately, I know next to nothing about HTML, so I'm using the LabView VI's to build the report.
    In the attached VI, I've written a program that simply plops a couple lines of text down and saves it in the HTML format. The color, font style, font type all seem to work fine, and when I change them I see the changes reflected in the HTML document. The size, however, doesn't change.
    What I need to do is have the ability to have different lines of text be different sizes, or even 1 word in a sentence be a different size.
    How do I do this?
    What am I doing wrong?
    Any help would be greatly app
    reciated!
    Dave Neumann
    [email protected]
    Attachments:
    htmltrial.vi ‏78 KB
    111.html ‏1 KB

    Dear Dave,
    The setting of the size is working but your parameters are inadequate for a HTML document.
    The reporting VIs are generating HTML which is decrepated. It generates a FONT tag with a size attribute with "30pt" and "10pt" as you have set in the Set Report Font parameters. The HTML standard allows only values of "1" to "7". The standard works with relative sizes so a "pt" does not apply to it. "1" is the smallest size and the actual displayed size depends on the setting of the browser. In MS IE you can set it under View>>Size to one of five degrees.
    If you would use "5" and "7" instead of "10pt" and "30pt" you will see the text in different size.
    Your values are coerced to 7. That's why you see something you didn't expected.
    Unfortunatly
    I have no experience with the reporting VIs. I'm not sure if they can use the style sheet formatting which will allow font sizes measured in points.
    Waldemar
    Waldemar
    Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
    Don't forget to give Kudos to good answers and/or questions

  • How do you Change Group Sort Direction using Report Client

    It looks like there should be a sort direction property on the ISCRGroupOptions object but there is none. So how do you set the sort direction of the group?

    I tried that and it did not work. Here's the code to change the grouping, note I also change the associated sort object. I did notice that if you go into the crystal reports designer and bring up the Record Sort Export and select the group's corresponding sort that the Sort Direction radio buttons are disabled. The question is how to change the sort direction shown on the Change Group Options dialog?
            public bool GroupModify(short GroupIndex, string TableName, string ColumnName, SortDirection SortDirection)
                bool result = false;
                if ((_ReportClient != null) && (GroupIndex >= 0) && (GroupIndex < this.GroupCount()))
                    CrystalDecisions.CrystalReports.Engine.Group docGroup = _ReportDocument.DataDefinition.Groups[GroupIndex];
                    ISCRField field = _ReportClient.DataDefController.FindFieldByFormulaForm(docGroup.ConditionField.FormulaName);
                    if (field != null)
                        Group group = _ReportClient.DataDefController.GroupController.FindGroup(field);
                        if (group != null)
                            Group newGroup = group.Clone();
                            newGroup.ConditionField = FieldGet(TableName, ColumnName);
                            if ((newGroup.ConditionField != null) && (_ReportClient.DataDefController.GroupController.CanGroupOn(newGroup.ConditionField)))
                                _ReportClient.DataDefController.GroupController.Modify(group, newGroup);
                                result = this.SortSet(TableName, ColumnName, SortDirection);
                return result;
            public bool SortSet(string TableName, string ColumnName, SortDirection SortDirection)
                bool successful = false;
                if (_ReportClient != null)
                    ISCRField field = FieldGet(TableName, ColumnName);
                    if (field != null)
                        ISCRSort sort = _ReportClient.DataDefController.SortController.FindSort(field);
                        if (sort != null)
                            _ReportClient.DataDefController.SortController.ModifySortDirection(sort, CRSortDirection(SortDirection));
                return successful;
            public int GroupCount()
                int count;
                if (_ReportClient != null)
                    count = _ReportClient.DataDefController.DataDefinition.Groups.Count;
                else
                    count = 0;
                return count;

  • How to programmically change all fonts in Crystal Reports using VS2005

    Post Author: KonRi
    CA Forum: .NET
    I want to change all fonts in my rpt files from Arial to Tahoma. I have:
    ReportDocument report;
    raport.Load(fInfos&#91;i&#93;.FullName);
    if (report.IsLoaded)    ChangeFont(report, path);
    ...        private void ChangeFont(ReportDocument oReport, string path)        {            foreach (CrystalDecisions.CrystalReports.Engine.Section crSection in oReport.ReportDefinition.Sections)            {                                foreach (CrystalDecisions.CrystalReports.Engine.ReportObject crObject in crSection.ReportObjects)                {                    FontStyle fStyle = FontStyle.Regular;                    if (crObject.Kind == ReportObjectKind.TextObject)                    {                                                CrystalDecisions.CrystalReports.Engine.TextObject text = (CrystalDecisions.CrystalReports.Engine.TextObject)crObject;                        if(text!=null)                        {                            if (text.Font.Bold)                                fStyle = fStyle | FontStyle.Bold;                            if (text.Font.Italic)                                fStyle = fStyle | FontStyle.Italic;                            if (text.Font.Underline)                                fStyle = fStyle | FontStyle.Underline;                            if (text.Font.Strikeout)                                fStyle = fStyle | FontStyle.Strikeout;                            text.ApplyFont(new Font("Tahoma", text.Font.Size,fStyle));                                                    }                    }                                        else if (crObject.Kind == ReportObjectKind.FieldObject)                    {                       ... the same                    }                    else if (crObject.Kind == ReportObjectKind.FieldHeadingObject)                    {                        ... the same                    }                                        else if (crObject.Kind == ReportObjectKind.SubreportObject)                    {                        CrystalDecisions.CrystalReports.Engine.SubreportObject crSubReport = (CrystalDecisions.CrystalReports.Engine.SubreportObject)crObject;                        ReportDocument crSubDoc = crSubReport.OpenSubreport(crSubReport.SubreportName);                        ChangeFont(crSubDoc,path);                    }                }            }            if (!oReport.IsSubreport)                oReport.SaveAs(path);        }
    This works fine but when TextObject has Embedded Fields those Fields aren't change and still have Arial font.My question is: how to change font in whole rpt file, including Embedded Fields?? RegardsKonRi

    Is there any update on this ? I am facing the same problem.
    Thanks

  • How can i change field width in ALV report

    hello,
    i have to modify vendor payment list. it is a ALv report
    proble is that when i gave vendor acc range for any month (range of posting date) it shows list,
    but for february it show run time error
    error description-  the resulting values are too large for the designated field.
    for posting dates 1.02.2009 to 25.02.09 it shows list. but when i gave posting date after 25 it doesnt show list.
    just i cant understand how to solve it.
    thanks in advance,
    Anuradha.

    Hi...
    Best option is first deside which format you want to put in that date field...
    then before filling internal table do one thing format that date field and then add into ur internal table which u later will use to show in ALV Grid Report...
    Example...Suppose you want DD.MM.YYYY
    then use
    concatenate Fieldname0(2) Fieldname2(2) Fieldname+4(4) into Fieldname...
    This way you can format the date in any format with proper logic. and ur problem getting solved
    Regards,
    Chintan

  • How can I change the appearance of html report file generated from Teststand to that I change the orientation of the data in the tables?

    For instance, I'd like to have the measurement results, limits, and status all on one line in a table.
    I am running Teststand 2.0 on Windows 2000.

    Hello Joel_IEI,
    You can modify each report entry as it is being generated by doing the following steps:
    1) In the TestStand Sequence Editor's Report Options, change the Report Generator to "Sequence".
    2) In your sequence file, override the ModifyReportEntry callback. In this callback, you can modify or even replace ENTIRELY the default report information TestStand plans to append to the report. You can use Statement steps to modify the contents of Parameters.ReportEntry (the TestStand variable that you will use to do this), or replace the contents entirely!
    You can look at the code example Adding Extra Results to a Report Using the Modi
    fyReportEntry Callback Sequence for more information.
    David Mc.
    National Instruments

  • How can I change line colors in HTML reports?

    I have a VI that is creating an HTML report based on a table of results. I change the back ground color of the line based on failed results. However this line color change is not seen in the HTML reports. Can anyone give me a good way of basically transferring the properties of my table to the HTML report? Is it possible? Thanks in advance for any help.

    Greg - Thanks for the reply. I figured this out doing some more research. The line that I needed was "<BACKLOG="#PAYOFF">Your Cell Text</ID>. The problem I was having was that line is needed in front of the rest of the font formatting commands. For example here is my original line:
    <ID WIDTH="200"><BACKLOG="#PAYOFF"><FONT SIZE=+0 COLOR="#OFF">8.3.12.1</ID>
    The bold part in the line above is what I added. With the cell color added like this it actually created another cell and pushed existing ones one cell to the right. It then colored the second cell in the row and left the first one blank. Through looking up more examples I found that I was actually putting the cell color command in the middle of the font formatting command. So I tried putting it at the end and it then did nothing. The only way I could get the cell in the table to change and not change anything else was using the syntax below.
    <ID BACKLOG="#PAYOFF"><WIDTH="200"><FONT SIZE=+0 COLOR="#OFF">8.3.12.1</ID>
    Troy

  • How can I change the active session?

    How can I change session in the pre report trigger, to connect to another session wich has uncommited data, that I want to see in the report?

    Click the apple >> system preferences >> iCloud >> sign out.  Then sign back in with the desired apple id.  Some data will be removed when you sign out.  You can export data you want to keep first, sign out, then reimport.  If it's just your daughter's info, then this probably won't matter to you.

  • Changing date format in bw report

    Hi,
    Could anybody pls Explain How can I change date format in bw report from 19-03-2008 to 19 mar 2008.Is there any setting we need to do. Else do i need to write some ABAP code to get desired format.
    Regards,
    Sarath

    Hi Sarath,
    I could have the routine enabled and its wrk for my DATS obj ...
    else pls go through the following code
    Check this example of how to get this format..
    TABLES: T247.
    DATA: V_DATE TYPE SYDATUM.
    DATA: V_STRING(20).
    V_DATE = SY-DATUM.
    SELECT SINGLE * FROM T247
    WHERE SPRAS = SY-LANGU
    AND MNR = V_DATE+4(2).
    IF SY-SUBRC = 0.
    CONCATENATE V_DATE+6(2) '-' T247-KTX '-' V_DATE(4)
    INTO V_STRING.
    WRITE: / V_STRING.
    ENDIF.
    or make use of the routine make use of the FM
    CONVERSION_EXIT_IDATE_OUTPUT
    hope it helps you out...
    regards,
    pradeep
    Assign points if useful.

  • I have copied over my music file to a new computer and the music shows on itunes but wont play. When I track where the song is located it is reading the wrong information. How do I change this as Edit Preferences has the right location

    I have copied over my music files to a new computer and the music shows on itunes but wont play. When I track where the song is located it is reading the wrong information. How do I change this as Edit>Preferences has the right location?

    Select one of the tracks with a broken link, press ctrl-i to Get Info. Say No when iTunes asks if you would like to locate the track, then look at the Summary tab for the location expects to find the file in.
    Now try to locate the file in question. The two locations should give a clue as to what to do next.
    Here is an example with a file I've deliberately moved from the new layout to the old pre-iTunes 9 layout.
    This means iTunes is expecting to find the file at:
    D:\iTunes\iTunes Media\Music\a-ha\Take On Me\01 Take On Me.mp3
    but it isn't there because I've moved it to:
    D:\iTunes\iTunes Media\a-ha\Take On Me\01 Take On Me.mp3
    which is where it would have lived back in iTunes 8 (though the media folder would have been called iTunes Music back then as well).
    If you can provide the expected and actual locations of a broken track I should be able to suggest the easiest way to resolve things.
    tt2

  • I have a rather old iMac 20" (mid 2007) and I want to upgrade the Hard drive. How do I change it? How do I transfer all my applications? May I just copy the old hd into the new one? Thanks.

    I have a rather old iMac 20" (mid 2007) and I want to upgrade the Hard drive. How do I change it? How do I transfer all my applications? May I just copy the old hd into the new one? Thanks.

    There are many online tutorials on how to change out the HD on a mid 2007 iMac. One of the originals is from 2007 and is Upgrade your iMac 20" or iMac 24" aluminum (mid 2007) to 1TB Hard Drive and 4 GB RAM - DIY Guide. As far as migrating your system Apple helps out with that in Setup Assistant which automatically starts when you turn on a new Mac for the first time. After you have installed the new HD you will have to format the new HD to Mac OS Extended (Journaled) and then you will have to install OS X. The first time you turn it on Setup Assistant will start. Follow the directions and you will be fine. In order to restore your information you will need to backup what is on the current internal HD first. I'd recommend using Time Machine (Assuming you are using Leopard or later) AND also creating a bootable clone using either SuperDuper or Carbon Copy Cloner.
    Please complete your profile so at the very least we know what version of OS X your machine has installed.

  • When creating a fillable form and saving it as a pdf, the default color of the data fields is a light blue. How do I change the color to something else that will copy better, e.g. a light yellow?

    When creating a fillable form and saving it as a pdf, the default color of the data fields is a light blue. How do I change the color to something else that will copy better, e.g. a light yellow?

    It's probably the fields highlight color of the application, which you can change via Edit - Preferences - Forms.

Maybe you are looking for

  • Can we restrict a Procedure to be called only once in a session or package?

    Hi, I am having a procedure which is called for each insert statement. The code is non-Editable. So, I want to restrict the procedure to be called only once for the entire session or package. Could any one please suggest me, can we do this? Thak you,

  • Problem with post_login after Upgrade to 4.1.1.00.23

    Hi, i upgraded the APEX environment from 4.1 to 4.1.1.00.23 via p13331096_112020_Generic.zip. And now the page sentry NTLM via PL/SQL (see http://jastraub.blogspot.com/2008/03/ntlm-http-authentication-and.html) doesn't work :-( I think the cookie via

  • Adobe Acrobat Pro X - plug-ins not loaded

    I recently purchased Adobe Acrobat Pro for our company with multiple user licences.  Once installed I noticed a lot of features which were in previous versions are not available.  When I select the "Help" "About Adobe Plug-ins..." tab, almost all of

  • Convert data in table to mix case

    Hi All, I have a table that contains data. This table has to columns, an id and description. I would like to update my table to convert data to mix case. As of now, all of my data in the table are lower case. What I mean by mix case is first letter f

  • Jumpy/repeated playback on rendered AVCHD footage

    Hi folks! I am experiencing multiple jumpy & sometimes repeated frames during playback on rendered AVCHD files on Premiere Pro CS4. It's really hard to catch since it happens on multiple files and the jumpyness can be like a rewind or it skip frames.