Application Development 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: 

Dunning Level Not updating

surya_ramireddy
Participant
0 Kudos

Hi Experts.

The following code has been used to update dunning level and dunning procedure. Its updating FKKMAKO and FKKMAZE tables.

But when i view the account display using FPL9 Tcode, the layout only showing dunning procedute not the dunning level.

Can you help me out?

DATA:XT_FKKMAVS LIKE FKKMAVS OCCURS 0 WITH HEADER LINE,

YT_FKKMAKO LIKE FKKMAKO OCCURS 0 WITH HEADER LINE,

YT_FKKMAZE LIKE FKKMAZE OCCURS 0 WITH HEADER LINE.

DATA:GPART LIKE DFKKCRH-GPART ,

LV_DFKKOP LIKE DFKKOP.

SELECT SINGLE * FROM DFKKOP INTO LV_DFKKOP

WHERE VKONT EQ '000550116721' AND

FAEDN LT SY-DATUM AND

AUGST EQ ' '.

CLEAR:XT_FKKMAVS.

XT_FKKMAVS-OPBEL = LV_DFKKOP-OPBEL.

XT_FKKMAVS-VKONT = LV_DFKKOP-VKONT.

XT_FKKMAVS-GPART = LV_DFKKOP-GPART.

XT_FKKMAVS-MAHNV = 'ME'.

  • XT_FKKMAVS-OPSTA =

XT_FKKMAVS-MAHNS = '30'.

*XT_FKKMAVS-MSTYP = '01'.

APPEND XT_FKKMAVS.

CLEAR:YT_FKKMAKO.

YT_FKKMAKO-LAUFD = SY-DATUM.

YT_FKKMAKO-LAUFI = 'TEST3'.

YT_FKKMAKO-VKONT = LV_DFKKOP-VKONT.

YT_FKKMAKO-GPART = LV_DFKKOP-GPART.

YT_FKKMAKO-AUSDT = SY-DATUM.

YT_FKKMAKO-OPBUK = '0100'.

YT_FKKMAKO-STDBK = '0100'.

YT_FKKMAKO-MAZAE = '000001'.

YT_FKKMAKO-MAHNV = 'ME'.

YT_FKKMAKO-MAHNS = '30'.

*YT_FKKMAKO-MSTYP = '03'.

APPEND YT_FKKMAKO.

CLEAR:YT_FKKMAZE.

YT_FKKMAZE-LAUFD = SY-DATUM.

YT_FKKMAZE-LAUFI = 'TEST3'.

YT_FKKMAZE-OPUPK = '1'.

YT_FKKMAZE-MAHNN = '0'.

YT_FKKMAZE-FAEDN = LV_DFKKOP-FAEDN.

YT_FKKMAZE-VKONT = LV_DFKKOP-VKONT.

YT_FKKMAZE-GPART = LV_DFKKOP-GPART.

YT_FKKMAZE-MAZAE = '000001'.

YT_FKKMAZE-MAHNS = '30'.

YT_FKKMAZE-MSTYP = '01'.

YT_FKKMAZE-MAHNV = 'ME'.

YT_FKKMAZE-OPBEL = LV_DFKKOP-OPBEL.

APPEND YT_FKKMAZE.

*CALL FUNCTION 'FKK_CREATE_DUNNING_DATA'

  • EXPORTING

  • X_GPART = LV_DFKKOP-GPART

    • X_BONMA =

    • X_BONVH =

    • X_BMADT =

    • X_DATUM = SY-DATUM

    • X_MDRKD = SY-DATUM

    • X_CALLID =

    • X_FRDAT =

  • TABLES

  • XT_FKKMAVS = XT_FKKMAVS

  • YT_FKKMAKO = YT_FKKMAKO

  • YT_FKKMAZE = YT_FKKMAZE.

CALL FUNCTION 'FKK_WRITE_DUNNING_HISTORY'

TABLES

I_FKKMAKO = YT_FKKMAKO

I_FKKMAZE = YT_FKKMAZE.

CALL FUNCTION 'FKK_SET_OPSTA_FROM_FKKMAZE'

TABLES

XT_FKKMAZE = YT_FKKMAZE.

Regards,

surys

4 REPLIES 4

Clemenss
Active Contributor
0 Kudos

Hi surya,

it looks dangerous to me not using the SAP standard dunning process. You have lots of events to implement special functionality.

Also, the process must be commtted (BAPI_TRANSCTION_COMMIT)

If it still not works, try one of those FM

VKKMA6_SET_DUNNING_LEVEL
VKKMA6_SET_DUNNING_LEVEL_VKONT
VKKMA6_SET_DUNNING_LEVEL_VTREF
VKKMA6_UPDATE_DUNNING_LEVEL

Regards,

Clemens

surya_ramireddy
Participant
0 Kudos

got solved on my own

0 Kudos

Thanks for sharing the solution.

Regards,

Clemens

0 Kudos

Hi

How did you resolve this issue

Thank you