Skip to Content
0
Former Member
Aug 01, 2014 at 09:16 PM

F110 SORT - SEPA

64 Views

Hello,

My client has asked to create several SEPA files according to some factors.

The main factor is the field FDGRV (in KNB1 or LFB1). Whenever it changes the system must generate a new file. This field does not belong to REGUH in spite it was added to struture REGUH_LST).

Using momentum 25 of Payment Format (OBMP1) and specific Z* Function Module we managed to do this. However we are facing a problem.

Imagine this:

1st lifnr - FDGRV = AA

2nd lifnr - FDGRV = AA

3rd lifnr - FDGRV = BB

4th lifnr - FDGRV = AA.

In this cases we should only have two files because there are only two FDGRV. However, it created 3 files since FDGRV value changes 2 times.

  • First file has 1st and 2nd LIFNR (FDGRV = 'AA')
  • Second file has 3rd LIFNR (FDGRV = 'BB')
  • Third file has 4th LIFNR (FDGRV = 'AA')

Because of GET FPAYH in include FPAYM_GET of report SAPFPAYM, we can only read one entry at a time of table REGUH.

Is there any way, via STANDARD ou even EXIT to sort REGUH before this instrution "GET FPAYH". Or is there anyway i can access some internal table where i can MODIFY reguh, before COMMIT WORK??

Thank you very much.

Nuno Anjos