Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BTE 1120 Not triggering.

Sijin_Chandran
Active Contributor
0 Likes
6,445

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.

11 REPLIES 11
Read only

RaymondGiuseppi
Active Contributor
0 Likes
4,502

Better look at scn for FI validations (and their customer-exit to access other data)

Regards,

Raymond

Read only

0 Likes
4,502

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.

Read only

0 Likes
4,502

No problem, you can easily post this code in an exit of FI validation.

(User Exits in Validations/Substitutions/Rules)

Regards,

Raymond

Read only

0 Likes
4,502

I will try with this solution.

But I am clueless for the BTE not triggering despite maintaining every parameters correctly.

Read only

0 Likes
4,500

Hello ,

I found one program ZRGGBS000 already maintained in our system.

Which is a copy of RGGBS000.

But when I set a breakpoint in it and tried to post using FB60  , it wasn't stopping.

Do I need to assign or do something else.

Read only

0 Likes
4,500

There is a FAQ OSS Note 842318 - Frequently asked questions about validations + substitutions

  • First check your condition in customizing GGB0
  • Then execute the RGUGBR00 report to insure generated program are up-to-date
  • Then if not reaching break-point look for the "debug" how-to in this note.

Regards,

Raymond

Read only

0 Likes
4,500

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.

Read only

0 Likes
4,500

As per the note suggested by you I have dropped the Idea of making an error message pop up while accounting document generation.

Instead I am suggesting Functional Consultant to make PAN entry obligatory while creation of Vendors.

Very thanks for your time and suggestion

Read only

0 Likes
4,500

The validation exit message are defined in the GBB0 transaction, the customer exits (see sample in original RGGBS000.) just return a parameter true/false which will trigger the error.

Regards,

Raymond

Read only

eduardo_hinojosa
Active Contributor
0 Likes
4,500

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

Read only

0 Likes
4,500

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.