Is it possible to run MRKO settlement for previous month date.

Hi Experts,
I  have a requirement from client, where they need to do the MRKO settlement in previous month period.
I know the posting date and document date by default taken as current date.
For Example : I have done the GI on 25/05/2010 and forgot to do the settlement on the same month
now suppose on 02/06/2010 i want to do the settlement for 25/05/2010.
In this case system will take the current date as posting date, is it possible here to change the posting date to
pervious month period 25/05/2010????
what is the standar rule according to SAP and if it is possible to post in the back date will it impact anything further.
Please help me in solvning this issue.
Rabindra S

Use Exit "EXIT_RMVKON00_001".
It read the date from posting date and settle on given posting date
And follow the follwing code....
DATA: wa_rkwa TYPE rkwa,
      wa_bseg TYPE bseg,
      wa_bkpf TYPE bkpf,
      fieldname(80),
      myidx TYPE i,
      ex_poper LIKE t009b-poper,
      ex_gjahr LIKE t009b-bdatj.
FIELD-SYMBOLS: <fs_date> TYPE rkwa-bldat.
MOVE '(RMVKON00)SO_BUDAT-HIGH' TO fieldname.  "<fs_bkpf>-budat.
ASSIGN (fieldname) TO <fs_date>.
LOOP AT t_rkwa INTO wa_rkwa.
  CALL FUNCTION 'DATE_TO_PERIOD_CONVERT'
    EXPORTING
      i_date               = <fs_date>
      i_periv              = 'V3'
   IMPORTING
     e_buper              = ex_poper
     e_gjahr              = ex_gjahr
   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.
  READ TABLE t_bkpf INTO wa_bkpf
                WITH KEY bukrs = '1000'
                         belnr = wa_rkwa-belnr
                         gjahr = wa_rkwa-mjahr.
  IF sy-subrc EQ 0.
    myidx = sy-tabix.
    wa_bkpf-monat = ex_poper.
    wa_bkpf-gjahr = ex_gjahr.
    wa_bkpf-budat = <fs_date>.
    wa_bkpf-bldat = <fs_date>.
    MODIFY t_bkpf FROM wa_bkpf INDEX myidx. " TRANSPORTING bldat budat.
  ENDIF.
ENDLOOP.
Regards
Rasmi Ranjan Mishra

Similar Messages

  • Is it possible to post the Excise invoice previous month date.

    Dear All,
    We want to post a excise invoice with previous month date. Is that possible?
    We have created a billing document (VF01) last month (October) and not created Excise Invoice (J1IIN).
    Now our finance people requirement is to create the excise invoice with last month date.
    Kindly let me know whether it is possible.
    Regards,
    Mullairaja

    Yes quite possible provided your FI period is still open.  Once you execute J1IIN and clicked the tab "Billing", you can see a field Posting Date where you maintain the billing document date itself if FI period is open.
    But from excise point of view, this is wrong due to the fact that excise returns should be submitted on or before 3rd of every month in which case, the excise team would have submitted the returns for October.
    thanks
    G. Lakshmipathi

  • How to show a report for 'Previous Month' Data

    Hi Gurus,
    I have a requirement, where i have to default my report to show previous month data.
    Scenario:
    My prompts by Default are set to CURRENT (current year,quarter,month). once the user logs in, the report should display data for month 'Nov' instead of 'Dec'.
    I tried using TIMESTAMPADD() in the formula , but it didn't work, though i don't see any error. Not sure if i 'm missing something.
    Is there a way to achieve this.I 'm using OBIEE 11.1.1.6.
    Any help is highly Appreciated ! Please.
    Thanks,
    Ramya

    From what you wrote I am assuming the user can manually save the report results to the Excel file.
    If your report uses ALV Grid it is possible to export the data to a spreadsheet (one of the functions available in the ALV tool bar).
    If you have used WRITE statements it is also possible to save the output as a spreadsheet (menu System -> List -> Save), but the latter will not produce as nice a spreadsheet if the data don't form a matrix. In other words, some work may be necessary in the spreadsheet afterwards before it has the format your user wants.

  • Syntax for previous months data

    For some reason I cannot get the syntax of the previou month correct. Here is what I have used.
    ("Date"."Calendar Month" IN (SELECT case when 1=0 then "Date"."Calendar Month" else timestampadd (sql_tsi_month, -1, current_date) end FROM "RProBIEE"))
    However it doesn't like this. I get an error.
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 22027] Union of non-compatible types. (HY000)
    SQL Issued: SELECT s_0, s_1, s_2, s_3, s_4 FROM ( SELECT 0 s_0, "RProBIEE"."Date"."Calendar Month" s_1, "RProBIEE"."Stores"."Store Name" s_2, "RProBIEE"."Sales Amounts"."Local Revenue" s_3, REPORT_SUM("RProBIEE"."Sales Amounts"."Local Revenue" BY "RProBIEE"."Stores"."Store Name") s_4 FROM "RProBIEE" WHERE (("Date"."Calendar Month" IN (SELECT case when 1=0 then "Date"."Calendar Month" else timestampadd (sql_tsi_month, -1, current_date) end FROM "RProBIEE"))) ) djm
    I think it is saying that the it doesn't like (sql_tsi_month, -1, CURRENT_DATE) however If I use CURRENT_MONTH it doesn't like that either.
    Any help is appreciated.

    Hello... The data type for the "Date"."Calendar Month" value is TINYINT. So i assume you are right that i need to CAST this so that it matches CURRENT_DATE. Or perhaps maybe instead I need to CAST current DATE as TINYTINT to match? Do you happen to know the syntax? This is what I have but it's not working. I get syntax errors.
    "Date"."Calendar Month" IN (SELECT case when 1=0 then "Date"."Calendar Month" else (cast (timestampadd (sql_tsi_month, -1, current_date))))

  • ORD to AUC settlement for previous year

    Hi All,
    We have a scenario wherein some expense exists on the Internal order for 2014. The Asset fiscal year has been changed to 2015.
    While trying to settle the ORD to AUC for current year, we get a message to do the settlement for previous year.
    I checked the SAP notes, it recommended:
    1. To do a PRE settlment to Cost Center/receiver in 2014,
    2. Manual reposting of cost from the receiver to ORD in 2015, and
    3. AUC settlement in 2015.
    Please suggest if there is any other way to do it with/without opening the previous fiscal year.

    Hi Pankaj,
    Check the settle parameters of the order, have you defined settlement type as "periodic settlement" for the asset. If yes, add another line for full settlement for it. Then do settlement for 2015 with processing type as "Automatic", then system will post to 2015 for the asset.
    Regards,
    Mukthar

  • Help with Setting Previous Month Date Parameter for SSAS via SSRS

    Hi All,
    Firstly, any assitance is greatly appreciated.
    Now, I am working on developing a report for a business area that will be sent on the first of every month. The report will contain data for all records created in the previous month, current year.
    I have been able to successfully implement a default year parameter, which will default to current year-
    ="[REFERRAL LODGEMENT DATE].[CAL YEAR].&["+CSTR(Year(Today))+"]". However, when I attempt to set a previous month paramater it is not setting when the report is generated. The code I have used
    is as follows: 
    ="[REFERRAL LODGEMENT DATE].[CAL MONTH NAME].&["+CSTR(Month(Today)-1)+"]"
    Cheers

    Before you spend more time trying to fix the parameter, let me suggest that you can write MDX to come up previous month data.
    if you can't go that route, couple of things to consider for your approach:
    1) don't subtract 1 from January that won't work. you'll need to handle it using the ssrs expression.
    2) when you use the month function it's going to return a month index so effectively you are passing something like [REFERRAL LODGEMENT DATE].[CAL MONTH NAME].&[7] to SSAS, is that the current format?
    you can use the MonthName function to get month names but again make sure that the formatting is right.
    to see the parameter value, you can display it on the ssrs report and see if it's the right format.
    Paras Doshi (Blog: ParasDoshi.com | Twitter:
    @Paras_Doshi )

  • SAP XI runtime workbench doesnot display data for previous months

    Hi,
    We are experiencing an issue in our XI system. When we try to extract messages from the Integration engine we recieve data only for two months including the present month and not for previous months.
    Can you pleaes suggest which SAP job or any set parameter is creating such a scenario.
    Thanks in advance and suggestion are welcome.
    Regards,
    Subhram

    You should check the archiving/deletion jobs in the PI Admin Check guide..
    Kind regards,
    Mark

  • Need reporting logic for Previous months sales compared to current month

    Dear Folks,
    I need to design a report that  should give cumulative sales for the month compared with cumulative sales for the same date for previous months e.g. Sales upto 21st May should be compared with sales from 1st to 21st April, from 1st March to 21st March and so on.
    Can anyone provide me a logic or CMOD code how to develop this report.
    Will be great helpful.
    Thanks in Advance.
    Rakesh

    Hi Rakesh,
         To accomplish the required output, you need to create variables that are input enabled and of processing type user eixt in the columns of your report in the query designer. I am assuming that, you would have atleast one variable which is input enabled and of processing type manual entry.
    The user would input a date ( for example may 21) in this variable. You need to capture this value in the user eixt in I-STEP 2. From this value you need to calculate the previous month and pass it to the user exit variable. Below is a sample code,
    ----variable ZPREVDATE:pass the to value from variable ZCURRDAT -
    DATA : LV_CALDAY TYPE SY-DATUM,
               LS_T_VAR_RANGE TYPE i_t_var_range,
               LV_YR(4), LV_MN(2), LV_DY(2).
    WHEN 'ZPREVDATE'.
    IF i_step = 2.
          READ TABLE i_t_var_range INTO LS_T_VAR_RANGE
          WITH KEY vnam = ZCURRDAT'.
          LV_CALDAY = LS_T_VAR_RANGE-high.
          LV_YR = LV_CALDAY+0(4).
          LV_MN = LV_CALDAY+4(2).
          LV_DY = LV_CALDAY+6(2).
    LV_MN = LV_MN - 1.
    CONCATENATE LV_YR LV_MN LV_DY INTO LV_CALDAY.
          ls_range-low = LV_CALDAY.
          ls_range-opt = 'EQ'.
          ls_range-sign = 'I'.
          APPEND ls_range TO e_t_range.
    ENDIF.
    The above code is a rough code that would help you to acheive your logic
    Regards,
    Prem

  • Check 3G data usage for previous months?

    Where do I go to check my 3G iPad2 data usage for previous months?
    I look in the Settings / Cellular Data / View Account - but only see the current month.
    I tried to create a My Verizon account on the verizon wireless web site using my iPad phone number but I get the error "We're sorry, but at this time you cannot register your account for My Verizon. Please access your account information on your device."
    I installed the "My Verizon" app for ipad from the App Store but I get "System under maintenance.  Please Try again." all the time.
    Is there someplace else I can see previous months data usage?  I would like to get a sense how much I have used in the past.
    Thanks
    Joe

    Dear AdamE+VZW and AntoniioC_VZW
    Have you actually tried the advice you gave?  I'm 6 days into my billing cycle.  The furthest back I am able to see data traffic is 6 days.
    The specific navigation path "View Bill --> I Want To...  --> Month ---> Usage Details --> Data"  does not currently exist.
    As far as I can tell, AdamE's claim that "You can easily see the past six months of data usage on our website " is untrue.
    The report generated by the "Account Analysis" is plainly false as well.  It reports that both of my data phones used exactly 1024.00 MB in February, March, and April. (sic: 2 decimal points!!).  That is an exceedingly unlikely coincidence, and flatly contradicts the current month summary which reports that one of my phones has used only 23 MB, and the other line even less.  The "Account Analysis" has a bug so serious as to render its data traffic output absolutely useless.  Since it is providing false output, it should be removed from the site until it can be fixed to generate accurate reports.
    I can't even find a way to see my prior month's summary bill, though I can't be sure it is unavailable since the site is large.  But I can say that when a customer spends 15 minutes clicking around a site trying to find their prior month's bill (not merely the bill's dollar amount, but the bill's usage summary) and fails, the site navigation should be improved!!

  • Problem in measure for previous month

    i have columns like following
    d_name Value
    JAN-11 4586236
    FEB-11 2121512
    MAR-11 32121
    APR-11 12121
    p_name is varchar2 type
    Now i need value for previous month can u do it without using queries or obiee
    I am unable to build hierarchy cause of its type. any suggesions

    You might have month numbers in rpd, use ago function to get previous month value

  • To Run the Costing for Previous period

    Dear Firends,
    I need some help for costing run for Pervious period.
    In my sap system Current period is 04-2009. But i want to run costing RUN upto 03-2009 (Previous Period ) because i have some pending documents is there for 04-2009 period. So we plan run the costing for 03-2009 period before go to 05-2009 period.
    How to give the period date.....
    Thanks & Regards
    Saravanan R

    Dear Saravanan,
    It is not possible to create a cost estimate for the past period and to release the same.
    1.If your Costing Run date is some future date ,but the Costing Date from,Qty Structure Date,Valuation date is on
    system's date,then the system will allow to release the cost and the same can be checked under Planned Price,Standard
    price under Current Column in Costing 2 view.
    2.If your costing run date is current date & the valuation,Qty structure date is some future date,then the system will not
    allow you to release the cost.
    So with this check & revert back.
    Regards
    Mangalraj.S

  • I am having a problem w/ my itunes working correctly due to accidentally running Itunes through my troubleshooting, running programs made for previous versions of windows!! How do I turn it off?!??

    I am having a problem w/ my Itunes working correctly, after accidentally running Itunes through my  troubleshooter  to, Run Programs Made For PreviousVersions of Windows. It keeps popping up that the Compatibility  Version is on, to make sure it's off before opening my Itunes Account. I've looked everywhere, Please, Please, How Do I Make This Right??!??

    It sounds like either your hard drive or the SATA cable that connects it to the motherboard are failing. This could be heat related in your case, which is why you see it after it runs awhile. You can take it to the Genius Bar for a free evaluation. If you decide to test it yourself, I usually suggest moving the hard drive to an external enclosure. If it works there for awhile, the cable is probably the issue.
    http://www.amazon.com/Sabrent-2-5-Inch-Aluminum-Enclosure-EC-TB4P/dp/B005EIGUD4/ ref=sr_1_3?ie=UTF8&qid=1397647657&sr=8-3&keywords=2.5+enclosure
    http://www.ifixit.com/Device/MacBook_Pro_13%22_Unibody_Mid_2009

  • Delete cost run & reset release for current month

    For our client we have created a new plant while testing this plant user created a material and they have done a cost run in ck11n  with costing varient zv01 but in they released the cost with costing varient ppc1 with this system got inconsistency and not not allowing to release cost for any other material in the current month if we try to mark it for next month it is working fine.
    we deleted the cost run through ck44 & ckr1 then also we are faceing the same problem. Kindly give me the solution how can i reset the release and later i want to run the ck11n & ck24 for material in the current month  to do  the production cycle.  please consider this is as a urgent.
    Regards
    Chakravarthy

    Hi
    Whether you should do MR21 or not ??
    a. If the cost estimate you reversed belongs to Last month and you are going to post the GR in last month then you should do MR21
    b. if the cost estimate you reversed belongs to may and GR will also be posted in May - No need for Mr21... Because, even though you release cost on say, may 2nd, the cost always gets released from the Start of the Month
    br, Ajay M

  • Need a formula for 12 months data, 6 months data and 3 month

    Hi All Crystal Experts,
    In my report, data is grouped by months and I have monthly view of data. I have three prompts- Year, Startdate and Enddate. If I give 2013 as year, 1/1/2013 as start date and 05/01/2013 as end date then report shows monthly view of data for Jan-13, feb-13, Mar13, Apr-13 and May-13. Now in report, for each month, I want three additional columns, I want to show last 12month, 6 month and 3 months view. Like for Jan-13 month, in column 6 months, I want to show data for last 5 months including current month i.e. Jan-13+Dec-12+Nov-12+Oct-12+Sep-12+Aug-12 and in Column 12months view, I want to show accumulated data of last 11 months(+ current month) and in 3 months view, data for last 2 months(+ current month).
    I had tried creating Sub report for 12 months view and created Running total formula  but it is not showing any value in report. It is blank. I have created running total like this way:
    (1) "Running total formula" (which I am using and placing on group footer):
    (I) Field to summarize- @Cash_total
    (ii) Evaluate (use a formula):
    WhilePrintingRecords;
    NumberVar Cash_total_12 months;
    If Month ({@Month_PostDate}) In [(Month {?StartPostDate} - 11) to Month
    {?StartPostDate}] Then
       Cash_total_12 months :=  Cash_total_12 months + {@Cash_Total};
    (iii) Reset (use a formula):
    WhilePrintingRecords;
    NumberVar Cash_total_12 months=0;
    When I placed this formula in group footer, it is showing nothing.
    Please suggest me formula. Quick help would be much appreciated.
    Thanks,

    Hi Remi,
    Please do not post multiple threads for the same issue.
    Continue discussion on this thread:
    How to calculate last 12 months, 6 months, 3 months data in report
    -Abhilash

  • Need help with SQL retrieval for previous month till current date

    Hi ,
    Need help generating statistics from previous month from date of enquiry till current date of enquiry.
    and have to display it according to date.
    Date of enquiry : 03/02/2012
    Application Type| 01/01/2012 | 02/01/2012 | 03/01/2012 |...... | 31/01/2012 | 01/02/2012 | 02/02/2012 | 03/02/2012 |
    sample1 20 30 40
    sample 2 40 40 50
    sample 3 50 30 30
    Hope you guys can help me with this.
    Regards

    Hi,
    932472 wrote:
    Scenario
    1)If i run the query at 12 pm on 03/2/2012. the result i will have to display till the current day.
    2)displaying the count of the application made based on the date.
    Application type 01012012 | 02012012 | 03012012 | ..... 01022012| 02022012|03022012
    sample 1 30 40 50 44 30
    sample 2 35 45 55
    sample 3 36 45 55Explain how you get those results from the sample data you posted.
    It would help a lot if you posted the results in \ tags, as described in the forum FAQ. {message{id=9360002}
    SELECT     application_type as Application_type
    ,     COUNT (CASE WHEN created_dt = sysdate-3 THEN 1 END)     AS 01012012 (should be getting dynamically)
    ,     COUNT (CASE WHEN created_dt = sysdate-4 THEN 1 END)     AS 02022012
    ,     COUNT (CASE WHEN created_dt = sysdate-5 THEN 1 END)     AS 03022012
    , COUNT (CASE WHEN created_dt = sysdate-6 THEN 1 END)     AS 04022012
    FROM     table_1
    GROUP BY application_type
    ORDER BY     application_typeThat's the bais idea.
    You can simplify it a little by factoring out the date differences:WITH got_d     AS
         SELECT     qty
         ,     TRUNC ( dt
              - ADD_MONTHS ( TRUNC (SYSDATE, 'MON')
                        , -1
              ) AS d
         FROM table1
         WHERE     dt     >= ADD_MONTHS ( TRUNC (SYSDATE, 'MON')
                        , -1
         AND dt     < TRUNC (SYSDATE) + 1
    SELECT     SUM (CASE WHEN d = 1 THEN qty END)     AS day_1
    ,     SUM (CASE WHEN d = 2 THEN qty END)     AS day_2
    ,     SUM (CASE WHEN d = 62 THEN qty END)     AS day_62
    FROM     got_d
    See the links I mentioned earlier for getting exactly the right number of columns, and dynamic column aliases.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Maybe you are looking for

  • Problems with Equalizer Presets in iTunes 8.0.1

    I have equalizer presets on a lot of my songs and for some reason, in iTunes 8, when a song with an equalizer preset plays, it keeps that equalizer setting for songs that play afterwards that don't have presets. In other words, it doesn't set the equ

  • Replacement internal battery... is there an easy way ?

    I need a new internal battery for a MacBook Pro 17" Mid-2009.  The old one doesn't last any more, and has bulged and distorted the base so that the thing now rocks from side to side. Given that batteries are a consumable, and 3rd party batteries are

  • IT 0583 Car & Conv. Allw.

    Hi Experts I configured IT583 and maintained in EE master data but problem is my conv. Allw. is not displaying on Form 16. If I made a mistake in configuration please correct me. Thanks in Advance

  • Has something changed in AME/MPE in  CC?

    Am using PPRo and AME (both CC) with Windows 7 Pro and GeForce GTX 670. When I Queue a file (a sequence) from PPro to AME, I am restricted to MPE Software only. I've added the card to the "cuda_supported_cards.txt" file in both AME folder and PPro fo

  • I can't publish my podcast to iTunes

    I've shortened my previously long url to http://web.mac.com/rimmerpaula/iWeb/Jim%20Rimmer/Podcast/Podcast.html plus I've removed an illegal apostrophe I have another address that forwards to the above url & it is www.jims-jaunts.co.uk My actual short