MB_MIGO_BADI. Post document. Posting date?

Hi Guys,
I need your help. I'm using MB_MIGO_BADI, method post_document to change posting date in header. After user changed the posting date I need to check some conditions and if they are fulfilled I want to change this posting date with sending the W-message that posting date was changed. After this user needs to press post again and GR will be posted. My problem is that I cannot change the posting date in is_mkpf structure. In method PAI_HEADER I saved posting date changed by user and now I'm trying to use it to update is_mkpf
field-symbols: <fs> type mkpf.
if post_fy > del_fy.
concatenate cur_fy '0831' into post_date.
assign is_mkpf to <fs>.
<fs>-budat = post_date.
message w895(m7) with 'Posting date changed. Post again.'.
but I have runtime error "overwriting protected filed". What I need to do to change the posting date with a new value?
Thanks a lot.

Hi,
Create an implementation of this badi in SE19.
Go to tcode SE19. Give the z implementation name. In the definition name of give MB_MIGO_BADI.
If the z-fields are in table MSEG I hope it will be available to you in IT_MSEG table as well in the badi.
Write the code for populating the fields. Save and Activate the badi implementation.
KR Jaideep,

Similar Messages

  • GR/IR from miro document and posting date.

    Hi experts,
    Is there any proper way to selecting data.
    My purpose is getting GR/IR on Miro Document and Posting date basis.
    THE CODE IS.
    TABLES : bkpf, rseg, bseg.
    DATA : BEGIN OF it_bkpf OCCURS 0.
            INCLUDE STRUCTURE bkpf.
    DATA : bbelnr TYPE bkpf-belnr,
          bgjahr TYPE bkpf-gjahr.
    DATA : END OF it_bkpf.
    *data : it_bkpf like bkpf OCCURS 0 WITH HEADER LINE.
    DATA : it_rseg LIKE rseg OCCURS 0 WITH HEADER LINE.
    DATA : it_bseg LIKE bseg OCCURS 0 WITH HEADER LINE.
    DATA : bbelnr TYPE bkpf-belnr.
    DATA : bgjahr TYPE bkpf-gjahr.
    DATA : bawkey TYPE bkpf-awkey.
    data : dmbtr1 type bseg-dmbtr.
    data : dmbtr2 type bseg-dmbtr.
    PARAMETERS : p_budat LIKE bkpf-budat.
    SELECT SINGLE * FROM bkpf
      WHERE budat = p_budat
      AND blart = 'RE'.
    WRITE :/ bkpf-awkey(10).
    WRITE :/20 'I/R'.
    WRITE :/20 sy-uline(30).
    SELECT * FROM bseg
      WHERE belnr = bkpf-belnr
        AND gjahr = bkpf-gjahr.
      IF bseg-shkzg ='H'.
        bseg-dmbtr = bseg-dmbtr * -1.
      ENDIF.
        dmbtr1 = dmbtr1 + bseg-dmbtr.
      WRITE :/20 bseg-belnr, bseg-dmbtr.
    ENDSELECT.
    bbelnr = bkpf-awkey(10).
    bgjahr = bkpf-awkey+10(4).
    SELECT SINGLE * FROM rseg
      WHERE belnr = bbelnr
      AND gjahr = bgjahr.
    SKIP 2.
    CONCATENATE rseg-lfbnr rseg-lfgja INTO bawkey.
    SELECT SINGLE * FROM bkpf
      WHERE awkey = bawkey.
    WRITE :/20 'G/R'.
    WRITE :/20 sy-uline(30).
    SELECT * FROM bseg
      WHERE belnr = bkpf-belnr
        AND gjahr = bkpf-gjahr.
      IF bseg-shkzg ='H'.
        bseg-dmbtr = bseg-dmbtr * -1.
      ENDIF.
        dmbtr2 = dmbtr2 + bseg-dmbtr.
      WRITE :/20 bseg-belnr, bseg-dmbtr.
    ENDSELECT.
    dmbtr1 = dmbtr1 - dmbtr2.
    skip 2.
    write :/ dmbtr1.

    self solved

  • Posting Date of Cancelled Invoice Document MR8M

    Hi, there is a invoice document posted in the system (using MIRO) on 3/31/09, when i reverse this document on 4/14/09 using MR8M, the canceled document has a posting date of 3/31/09 (same as the original document) instead of 4/14/09. Can someone tell me how to get the posting date to 4/14/09. Both 3/31/09 and 4/14/09 are in the same fiscal year and period.
    Thanks

    Hi,it's depend on Reversal reason!You'd to customize it

  • Posting date and clearing date different in G/L clearing document

    Hi Friends,
    While clearing a G/L manually using F-03, the clearing date is entered in the selection screen.
    The clearing document which is posted is posted with the posting date same as the clearing date mentioned in the selection screen of F-03.
    In what situations can the posting date of a G/l clearing document be different from the clearing date?
    Regards,
    Shilpi

    Hi,
    The Clearing Date in F-03 is actually the Posting date, so in this case the posting date will be same as clearing date. But a clearing document can also be created when you reverse a FI document, in this case the Reversal document will have a clearing date different than posting date. Let me know if this info helps you

  • Error in document date & posting date-- Posting period 001 2008 is not open

    hi guru's
    while doing vendor creation in XK01, i m not getting the data screens like address, ..etc.i m getting error..posting period not open". what does it mean..
    What date i need to give in both fields...?
    can anybody send a set of data for me to create a vendor to test for my bdc/lsmw?
    can any help me step by step vendor creation in xk01,
    I am getting this below....
    Posting period 001 2008 is not open
    Message no. F5201
    Diagnosis
    Period 001 of fiscal year 2008 is not open for posting for the variant of posting period 1000.
    System Response
    Processing cannot be continued.
    Procedure
    The error can have several causes. In order to eliminate the error, proceed as follows:
    1. Check whether the posting date was entered correctly. The system determines the posting period by means of the date.
    2. Check whether the required posting period is open for posting for the variant of posting period 1000 and account type +. Make sure that the period is open for posting.
    To do this, specify a period interval in which the required period for the variant of posting period 1000 and account type + is contained.
    Proceed
    thanks

    Hi
    Kris is right, that message means you can't post a FI document in the period 1 (probably Gennuary) of the 2008, but this can't mean you can't create a new vendor.
    So are you sure on trx?
    If the trx is right perhaps somebody has inserted a control in a user-exit.
    Max

  • Posting date is wrong in the reversal document in FI document

    Hi All,
    We have one issue related to Posting date. We need your valuable feedback on the same:
    Issue:
    There are some documents which reversed in the month of Mayu20192010 but the posting date is coming as Marchu20192010 which is very strange.  The Original documents posted via transaction code F110 in the month March and reversed in the month May but the posting date of the reversal document is coming as March which is NOT correct.
    Analysis:
    Our first analysis is that, the posting of Original document happened when the system was in 4.6 version and reversal happened after ECC go live. We are not sure if that could be the reason.
    Secondly, we checked the change log of transaction code OB52 but there is no change for the posting period 3 in the month of May.
    Thirdly, we tried to replicate the same scenario in our development system but here we are getting the error that Posting period is not open which is correct.
    Request you to please look into it and provide you input.
    Thanks.
    Regards,
    Ajay Kumar Tiwari

    Hi,
    By any chance, did the user enter march date in FB08 screen ?
    Best Regards,
    Madhu

  • Implications of Changing Posting date of parked document.

    Hi,
    I have changed the posting date, document date & translation date to current period
    of an already parked document in a closed period.
    (e.g) Document parked in month of 28.04.2009(closed period) & i have changed the dates to
           28.05.2009(current period)
    I need to know what are the implications of the changes in dates for (posting date, document date & translation date) induvidually for both the periods(closed & current).
    Thanks
    Kenn

    Hi,
    There is no implications of change the the posting date of parked document because parked documents are not affected in financial.When you post the doucment then it will affect in finance.so there is no problem. You can change the posting date or document date only in a Fiscal year.

  • Cannot change posting date of a parked document. See addt'l details inside

    Hello again SAP experts,
    I was just wondering how come I cannot change the posting date of a parked document. The document type of the said parked document is a "BATCH INPUT" only document type.I already set in config that the posting date be changeable for parked docs.
    Is it not possible to change the posting date even if the status is only parked? Our client requires that the posting date still be changeable for BATCH INPUT only doc types. Please help.
    BTW, listed below is the error message that the system displays. Thanks
    Document type AA only defined for batch input

    Hi Loong,
    First and foremost, thanks for your time answering my queries. =)
    Going back to the topic, the OB32 suggestion didn't solve the issue. I added BKPF-BUDAT in the list, and made sure that it applies to all account types. I also tagged it as changeable field.Still, the system displays the error Document type AA only defined for batch input
    Is there such a rule that for doc types that are tagged as for BATCH INPUT only, you cannot change the posting date?
    Our client requires that the posting date still be editable.
    Please help. Thanks a lot!

  • Posting date for rebate credit note document

    Hi friends,
    This is with reference to settlement of rebate agreement. There is a background job executed say today, but the posting date was backdated to 31/08/2011. The financial posting period for current month starts from 27th of Aug and the posting was done in current period only. The validity of the Rebate agreement ends on 31/08/2011.
    My query is what is the reason behind the system posted the document on 31/08/2011.
    Is it because the validity ends on 31/08/2011.
    Quick responses are appreciated.
    Thanks & regards,
    Praveen.

    Hi Praveen,
    You are correct.  The final settlement credit memo request uses the last day of the agreement validity period as the billing date.
    Please refer to the 29th Page  first and second lines of the Matthias white paper of Rebate management. Below is the link.
    http://www.erpgenie.com/publications/saptips/052005.pdf
    Hope this helps

  • Goods Receipt and Goods Issue - Posting Date and Document Date Problem

    Hi All,
    I was using SDK to build own add on to insert Posting Date and Document Date under Inventory> Inventory Transactions> Goods Receipt and  Inventory> Inventory Transactions> Goods Issue, but the UI Screen Posting Date and Document Date shown current date.
    My SAP Business One version was 2007A SP00 PL42 and alreadly upgrade to SP05.
    End up result still the same.
    Is there someone can help me?
    Thanks you.
    Best Regards,
    danny

    Hi there,
    I already solve it by myself.
    Actually is i call the initialization twice:
    Company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInventoryGenEntry)
    Thats what make this problem happened.
    Sorry.
    Best Regards,
    danny

  • F-03: Need foreign curr translation date = document date, not posting date

    Hi All,
    We need to clear accounts through F-03. If we use a foreign currency (local curreny is PLN), the translation date is set as posting date/clearing date: SAP default behaviour. However, we want the translation date to be document date.
    We cannot change the clearing date in F-03 to document date because, if the document date is in previous period, the posting periods will be closed.
    Can this be accomplised through any standard functionality in T-Code (F-03, F-44)? I couldn't find any.
    Or do we need substitution/user exit for this?
    Thanks for your time!

    Hi This may help you,
    before that I have similar Problem you had in Bank master "Bank USxxxx doesn't exists" in Production,you can reply me from my Business card,in my profile,Thx,
    Note 574583 - MIRO: BADI for value date
    Summary
    Symptom
    In the logistics invoice verification, the system derives the value date (WWERT) from the posting date (BUDAT).However, the derivation should occur from the document date (BLDAT) or the posting date depending on the country key of the company code.
    Edited by: BettyCalhun on Mar 18, 2010 8:33 PM

  • Drill down on posting date and Document number

    Hello Gurus,
    In a Bex report, I am looking at account balance on a keydate for a G/L Account. When I drill down based on posting date I do not see any values for the keyfigure 'Account balance as on key-date'....But after I drill down on posting date --> document number I get to see values for thie key figure.
    What is this strange behaviour? Kindly explain.
    Regards,
    KP

    Hi KK,
    This may be due to the values/quantities having different UOM or currency for different documents/posting date.For example,  Usually when there are mixed values like this, the aggregated value is not displayed, instead a '*' is displayed in the report result. However there is a setting in BW where you can mention how to handle such mixed values.
    So I suggest you first check the currencies for the amount at the posting date/document level(when you drill down). If they are different then check the settings in the transaction SPRO --> SAP Business Information Warehouse --> Report-relevant settings --> General Reporting settings in the Business Explorer --> Presenting the numeric value in the Business Explorer.
    Here check the value maintained for 'Mixed Values'. If it is blank, then this is the reason that no value is displayed.
    Regards,
    Shilpa

  • Difference between document date, posting date and created on date in FI

    hi
    Would like to know in which scenario can the document date be different from posting date in case of incoming payment which reamains unallocated for a while.
    Please correct my understanding : created on date will be the date on which we enter/create in SAP which can be different in case we are uploading the documents from legacy sys.
    But will it be different from posting and document date in case this document was created in SAP itself.
    Thanks and regards,
    Sarah.

    Hi
    Document date and creation date are same ie date on which document is created but the posting date is the date on which the document is posted lets say for example a document is created on friday 5:55 as the office gets closed at 6 and sat sun is off now the posting date will be date on monday or the date after monday when the document gets all the necessary approvals
    so it can be posible that posting date and creation date are same for a document and vice versa is also true
    thanks
    puneet

  • Posting Date, Document Date and Due Date as same

    Hi All
    I would like to make Posing date , Document Date and Due date as same
    The movement i enter Posting date it should automatically carry the same value to Due date and Document date field . How can i make it
    Regards
    Rashid

    Dear Gordon
    Thanks, it is working for Marketing documents,
    I would like to have the same for JE and JV
    Regards
    Rashid

  • Need to check PO Posting date at schedule line and material document level

    HI All,
    I am facing an issue to reconciliation data with ECC.
    Issue :
    we have a PO,item,schedule line with delivery date, scheduled qty and quantity received from EKET table
    we have PO,item,Material document,movement type,posting date with quantity received from EKBE table
    the standard extractor 2LIS_02_SGR is providing data at
    PO,item,schedule line,material document,movement,posting date
    as if now we are using this extractor to get the posting date at schedule line level.
    can some one let me know how exacty the EKET and EKBE table are joined ???

    Hi,
    The data for the datasource 2lis_02_sgr can be compared in ECC using ME80FN transaction.
    Please check the below Link for all the details reragrding 2LIS_02_SGR datasource.
    [http://help.sap.com/saphelp_dm40/helpdata/en/69/063f3f2615e07fe10000000a114084/content.htm]
    Hope this helps..
    Thanks,
    Nagarjuna

Maybe you are looking for

  • SSO from non-SAP (Webspher AS) to SAP (EP)

    Hi, We need to connect in SSO an WebSphere Application Server with SAP EP. In practice our users will log on Corporate Portal, go to a section in which there will be a link to SAP EP (in particular access to the functionality ESS and MSS). How do I i

  • Recent increase in spam through iCloud?

    For many years my emails received through Apple Mail via iCloud have been virtually spam-free.  I put this down to excellent filtering by Apple and my own care.  Although my domain name is public and used on my web site, I use a different name in fro

  • Reg:JCO_COMMUNICATION_FAILURE

    Hi all, I am getting this error while trying to excecute one IDOC to Proxy interface.Can anyone please let me know the solution? <?xml version="1.0" encoding="UTF-8" standalone="yes" ?> - <!--  Request Message Mapping   --> - <SAP:Error xmlns:SAP="ht

  • ALE to Webmethods design

    We are on an older version of R/3 currently, and  have one feed through wM currently running in production. This carries orders in to SAP and confirmations back out. With one eye on what might be available when we move on to one of the latest platfor

  • SAP GRC AC 5.3 RAR Background jobs are cancelled

    Hi Experts, we have newly implemented theS AP GRC AC 5.3 RAR  Help me in troubleshooting the Background jobs cancellation in SAP GRC AC5.3 RAR.. we have reported this issue to customersupport they asked us to upgrade the front end  patch level to Sp1