2008 Nov 23 11:52 AM
Hi Everyone,
I need to validate the item tax code and pass an error message to the header level custom field.
I am using MM08R002 and fn module EXIT_SAPLMR1M_001 it is triggering when user is selecting any line item in the po and try to save it ..
The problem here is when I throw the error message, the header level fields fields are non editable. I need the header level fields editable and validate the item data.
Please suggest ideas.
Thanxs
regards
vijay
2008 Nov 24 7:17 AM
Hi,
for MIRO transaction you should considre using fm MRM_PROT_FILL
e.g.
DATA: gt_errtab TYPE TABLE OF mrm_errprot,
gs_errtab TYPE mrm_errprot.
CLEAR gs_errtab.
gs_errtab-msgty = 'E'.
gs_errtab-msgid = 'ZMESSAGE_CLASS'.
gs_errtab-msgno = '045'.
gs_errtab-source = 'Q'.
APPEND gs_errtab TO gt_errtab.
CALL FUNCTION 'MRM_PROT_FILL'
TABLES
t_errprot = gt_errtab.
Best regards.
2008 Nov 24 5:08 AM
keep popping up info message till user changes it
come out after 2nd or 3rd time, because user may want to come out without making change.
2008 Nov 24 5:11 AM
2008 Nov 24 5:21 AM
Hi,
Thanks for your information.
@Vivek, If the user presses save, with the information message the user can proceed further and saves the document.
Is there a BADI/User exit available where I can do some operation after saving the invocie document via MIRO transaction?
Thanks and Regards,
Vijay
2008 Nov 24 5:25 AM
2008 Nov 24 5:29 AM
Hi,
INVOICE_UPDATE badi does not have a method to do operation after save. it contains methods for CHANGE_AT_SAVE
CHANGE_BEFORE_UPDATE
CHANGE_IN_UPDATE
But i want to do the operation after the document number is updated in the database.
Thanks and Regards,
Vijay
2008 Nov 24 5:30 AM
long back I had handled this kind of requierment by popping up info message box.
on SAVE isn't control coming back to your user exit ? if not, you would need code in one more user exit.
2008 Nov 24 5:35 AM
DO ONE THING FIRST U UPDATE YOUR DOCUMENT THEN AFTER U CALL BADI SO IN BADI PASS ALL CHANGE DATA
2008 Nov 24 5:24 AM
hi
try badi's
MRM_HEADER_CHECK.
LMR1MF79, LMR1MI1N, LMR1MI2G
hope this helps
regards
Aakash Banga
2008 Nov 24 7:17 AM
Hi,
for MIRO transaction you should considre using fm MRM_PROT_FILL
e.g.
DATA: gt_errtab TYPE TABLE OF mrm_errprot,
gs_errtab TYPE mrm_errprot.
CLEAR gs_errtab.
gs_errtab-msgty = 'E'.
gs_errtab-msgid = 'ZMESSAGE_CLASS'.
gs_errtab-msgno = '045'.
gs_errtab-source = 'Q'.
APPEND gs_errtab TO gt_errtab.
CALL FUNCTION 'MRM_PROT_FILL'
TABLES
t_errprot = gt_errtab.
Best regards.
2008 Nov 24 7:25 AM
Hi Pablo,
Your reply have solved my problem.
I have given points for solved answer:-)
Thanks,
Vijay
Edited by: Vijay Dhanasekar on Nov 24, 2008 8:25 AM