cancel
Showing results for 
Search instead for 
Did you mean: 

How to differentiate between an Invoice and credit memo

former_member1283268
Participant
0 Kudos

Hi All

My business requirement is that I have to activate a customised check in tansaction MIRO through user exit but this customised check is to be activated only for invoice document and not for credit memo,susequent credit or debit.So how do I differentiate between following transaction types apart from document types.

Pls help urgently.

Regards

Satish Kumar

Accepted Solutions (0)

Answers (4)

Answers (4)

former_member1283268
Participant
0 Kudos

answered

Former Member
0 Kudos

HI,

If Invoice

RBKP-XRECH - X

RSEG u2013TBTKZ - blank

If Credit Memo

RBKP-XRECH - blank

RSEG u2013TBTKZ - blank

If Subsequent Debit

RBKP-XRECH - X

RSEG u2013TBTKZ - X

If Subsequent Credit

RBKP-XRECH - Blank

RSEG u2013TBTKZ - X

Regards

Former Member
0 Kudos

beside the document type the only way is S for invoice and H for debit/credit.

regards,

qsm sap

dheeraj_vaishampayan
Active Contributor
0 Kudos

Hi

Simplest would be to differentiate based on field RSEG-SHKZG (debit/credit indicator)

for invoice this should be S and for credit note this should be H

Reg

Dheeraj

former_member1283268
Participant
0 Kudos

Hi Dheeraj

Entry in table RSEG happens only when the document gets posted and my requirement is that my customised check should come into play before document gets posted through user exit.

Regards

Satish Kumar

Former Member
0 Kudos

Check with ABAP team for this.

Regards,

qsm sap

Former Member
0 Kudos

I think Dheeraj's suggestion is valid, it's just a potential rather than a stored table field entry at that point.

Alternatively the ABAPer could check the screen element VORGANG (via structure RM08M) at the point of Saving.

1 = invoice

2 = credit

3 = Sdeb

4 = Scred

Regards,

Nick