cancel
Showing results for 
Search instead for 
Did you mean: 

System date to be copied to Posting Date for Parked documents (MIR4)

satyapriyanka_vana
Active Participant
0 Kudos

Hello Friends,

It's a question asked multiple times. I have referred many threads and tried to implement the solution from one of the threads.

Requirement :
When a parked document is opened in MIR4 the posting date should be changed to system date.

The configuration (IMG>Financial Accounting (New)>Financial Accounting Global Settings (New)>Document>Document Parking>Change Posting Date for Parking Documents ) will not work as MIR4 is an enjoy transaction.

I tried a Validation logic to implement the same. (Please find the attachment) But it's not triggered for transactions FBV0/MIR4. But it's triggered for FB50/60/70.

As the validation is not working I implemented an implicit enhancement in PRELIMINARY_POSTING_DOC_READ. and it's working fine for FBV0 but this FM is not triggered for MIR4 documents.

Please help to check where I went wrong. Or can I know that any BAdI/Exit/BTE available to achieve this requirement.

Regards,

Priyanka.

Accepted Solutions (1)

Accepted Solutions (1)

raymond_giuseppi
Active Contributor
0 Kudos

Try to add tcode as MIRO and insure your test is correct (should be BKPF-BUDAT = SYST-DATUM to raise an error when check is NOT fulfilled)

For MIR4 you could also read  1156325 - BAdIs in the Logistics Invoice Verification environment. MIRO/MIR4 and FI transaction don't use the same FI interface, so behavior is different, read 904652 - MIRO: Different from FB60 and simiar documents.

Regards,

Raymond

satyapriyanka_vana
Active Participant
0 Kudos

Hello Raymond,

Thanks for your reply. I have already checked checked all the BAdIs that are triggered when the parked document is displayed/changed through transaction MIR4.

Here is the list of BAdIs. But unfortunately I cannot update the posting date through these BAdIs.

GOS_SRV_SELECT

PPA_CUST_BADI

ME_COMMITMENT_STO_CH

BADI_PRKNG_NO_UPDATE

FM_POP_CORE

MRM_PAYMENT_TERMS

MRM_WT_SPLIT_UPDATE

MRM_UDC_DISTRIBUTE

SD_COND_ACCESS_A

These 2 exits(EXIT_SAPLMR1M_003,EXIT_SAPLMR1M_001) are also of no use.

raymond_giuseppi
Active Contributor
0 Kudos

Some other BAdI are executed like INVOICE_UPDATE.

You could try to "divert" a BAdI of the BADI_FDCB_SUBBAS* (customer subscreen, find one not used by SAP in your system as they are not allowed for multi-use) that allows update of fields of structure INVFO build a dummy subscreen and just force INVFO-BUDAT value in method GET_DATA_FROM_SCREEN_OBJECT?

Regards,

Raymond

satyapriyanka_vana
Active Participant
0 Kudos

Hello Raymond,

Thanks again.

I tried using that too. We have already have a sub screen implementaion of BADI_FDCB_SUBBAS04. And I tried changing the field INVFO-budat over there. But the value is not reflected for the subsequent modules.

Any way I managed to find out an Enhancement Point in LMR1MO2U. And it's working fine..

Closing the thread. Thank you.

Regards,

Priyanka.

Answers (1)

Answers (1)

satyapriyanka_vana
Active Participant
0 Kudos

Here is the procedure I followed.