on 12-20-2011 6:14 AM
Hi Expert,
Just want to seek your help regarding my issue in Payment block using tcode MIRO. When I enter an Incoming Invoice and post the Purchase Order thru "SIMULATE" button the payment block appeared is block "R" but when I post it directly ("SAVE" button) payment block appeared is block "D" which is the correct one. I've already change the user-exit in the program used but I end up to affect the other payment block. Can you please help me on this issue? Your help is very much appreaciated.
Thanks so much.
Regards,
Anna
Hi ,
can you check the BADI "MRM_PAYMENT_TERMS" and its documentation.
regards
Prabhu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
you can use ENHANCEMENT in fm : MRM_INVOICE_POST
Program SAPLMRMP
include LMRMPU01
fm MRM_INVOICE_POST
ENHANCEMENT-POINT mrm_invoice_post_05 SPOTS es_saplmrmp.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Expert,
I really need your insights regarding my concerns/issues above. Thanks so much in advance for your help.
Regards,
-Anna
Edited by: ascapilos on Dec 21, 2011 9:26 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nabheet,
The requirements here is that once the user click the 'SIMULATE' button in TCODE MIRO he/she wants to get the block that also appeared in clicking the 'SAVE/POST' button. But what happened here is that upon posting/clicking 'SIMULATE' button, the invoice/payment block is different in posting/clicking 'SAVE/POST' button which is the correct one. User-exit here is where the logic of invoice blocking is declared. Here is the user-exit used: SAPLMR1M - MRM_INVOICE_POST - USER_EXIT_010 - ZFI016. Thanks in advance for your help.
Regards,
-Anna
Hi Nabheet,
As per debugging MIRO upon clicking the SIMULATE button, the code that validates the blocking is in Call Function 'MRM_INVOICE_POST' inside user_exit_010. Kindly see codes below.
For D block.
IF l_block_set IS INITIAL. "LRD080701
p_t_drseg-spgrq = 'X'. "DMO021302
MODIFY p_t_drseg TRANSPORTING spgrq. "LRD080701 "DMO021302
p_rbkpv-zlspr = 'A'. "JJK080602
p_rbkpv-zlspr = 'D'. "JJK080602
READ TABLE xaccit INDEX 1. "LRD022305
IF xaccit-zlspr IS INITIAL. "LRD022305 "MTS051905
xaccit-zlspr = p_rbkpv-zlspr. "LRD022305
MODIFY xaccit INDEX 1. "LRD022305
ENDIF. "MTS051905
ENDIF. "LRD080701
Thanks so much for your response.
Regards,
-Anna
So that means your code is triggered and block is set in this exit but it gets changed after that..correct me if my understanding is wrong..?
If this is the case than that means this is not the right point where block has to be set in case of simulation. What you can do is after this point try to change its value at some other point and see where does the changes take effect.
Nabheet
Kindly see below codes where in the internal table XACCIT was cleared. Before the clearing, the block is 'D' but its changed when it was cleared.
CLEAR:
rbkpv,
saldo_fw,
t_currencies,
t_konv_a,
t_konv_n,
xaccbset,
xacchd,
xaccit,
xaccit_ext,
xaccit_wt,
xaccvs.
When the said table cleared, it will pass thru on the codes below and change the block.
CHECK sy-subrc EQ 0.
e_mrm_zlspr = c_mrm_zlspr_a.
READ TABLE t_accit INDEX 1.
*--- Bei manuell eingegebener Zahlsperre bleibt diese unverändert -
*
IF t_accit-zlspr IS INITIAL.
t_accit-zlspr = 'R'.
MODIFY t_accit INDEX 1.
Thanks.
-Anna
Edited by: ascapilos on Jan 3, 2012 12:50 PM
Hi Anna
As you have already modified the blog in RSEG table after the function module is executed (Press F7) and see where does this RBKP and RSEG value get lost.
Unfortunately i am not able to simulate the thing on my system that is why i can give pointer for the same.
Seondly check with your functional also for config that whether simulation block can be handled via config or not
Nabheet
User | Count |
---|---|
91 | |
11 | |
10 | |
6 | |
5 | |
5 | |
5 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.