2012 Dec 13 11:46 AM
Dear SAPGurus ,
I have written a code to check BSEG entries while posting by implementing a BTE , but its not triggering.
I created a FM by copying FM SAMPLE_PROCESS_00001120.
Assigned it using FIBF and maintaining an entry in Settings > Process Modules >
Process Ctr Appl. Function Module Product
1120 FI-FI Z_CHECK_VENDOR_PAN ZFI_PAN
I have set breakpoint in Z_CHECK_VENDOR_PAN and done a MIRO entry but it didn't stop at breakpoint.
Checked every related posts here . But no use.
2012 Dec 13 11:57 AM
2012 Dec 13 12:02 PM
Very thanks for your Prompt reply ,
I think for this scenario FI validations will not be helpful.
I need to check the Vendor PAN Detail for the account number to which BSEG entry is hit.
My code :
LOOP AT T_BSEG INTO WA_BSEG.
IF WA_BSEG-BSCHL EQ '31' OR WA_BSEG-BSCHL EQ 'RE'.
SELECT SINGLE J_1IPANNO FROM J_1IMOVEND INTO PANNO WHERE LIFNR = WA_BSEG-LIFNR.
IF PANNO IS INITIAL.
MESSAGE I001(000) WITH 'Please maintain PAN detail for Vendor' WA_BSEG-LIFNR.
ENDIF.
ENDIF.
ENDLOOP.
2012 Dec 13 12:18 PM
No problem, you can easily post this code in an exit of FI validation.
(User Exits in Validations/Substitutions/Rules)
Regards,
Raymond
2012 Dec 13 12:49 PM
2012 Dec 13 1:23 PM
2012 Dec 13 3:23 PM
There is a FAQ OSS Note 842318 - Frequently asked questions about validations + substitutions
Regards,
Raymond
2012 Dec 14 4:47 AM
Hello I followed the note suggested by you.
In that Point 3 i.e
3. What must I take into account when implementing the user exit?
No dialog boxes, warning messages, information or error messages must be
issued in an exit, and a "COMMIT WORK" must not be rejected. This would,
for example, interrupt the batch processing or cause problems with the
documents to be posted. If you find a serious error in the field contents
in the exit, send a termination message (A or X), which will ensure that
the transaction is terminated.
Actually I want a Pop up message (Information) or error message to be displayed.
Any suggestion.
2012 Dec 14 7:45 AM
2012 Dec 14 8:11 AM
2012 Dec 14 2:04 PM
Hi
Try to do it with BADI for tcode MIRO. Perhaps with BADI MRM_HEADER_CHECK it would be possible. See Note 1156325 - BAdIs in the Logistics Invoice Verification environment for further information. In this BADI, in method HEADERDATA_CHECK you can use the information of vendor in I_RBKPV-LIFNR. For TI_DRSEG you have available data for BSCHL.
I hope this helps you
Regards
Eduardo
2012 Dec 15 9:35 AM
Hello ,
Thanks for your response.
Our consultants here wanted this check for all kind of accounting documents (Not Only for MIRO ).
When a user clears an outstanding MIRO entry using FB60 or any other such financial tcode( I don't actually remember which particular tcode they use ) the message should pop up.