Skip to Content
avatar image
Former Member

How to I update LFB1-LOEVM and LFB1-SPERR in S4 HANA 1511

We are facing one issue in program to remove XK02 and XD02 BDCs.

The program has 2 functionalities.

Company code level deletion flag LFB1-LOEVM, KNB1-LOEVM is either put or removed by BDC.

Posting block for company code LFB1-SPERR and KNB1-SPERR is either put or removed by BDC.

We found 2 reports BUPA_PRE_EOP and BUPA_PRE_DA but they update flag only at LFA1 and KNA1 level. Hence can't be used.

Please suggest any FM or Report.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Mar 29, 2017 at 07:37 AM

    Hello Uday,

    as far as I know there is no standard mapping from BP fields to LFB1-LOEVM, KNB1-LOEVM resp. LFB1-SPERR and KNB1-SPERR. I can imagine the following option to achieve your requirement.


    You can make use of the BADI CVI_CUSTOM_MAPPER. Here you can define your own Z implementations which maps e.g. the field BUT000-XBLCK to the fields LFB1-SPERR and KNB1-SPERR and BUT000-XDELE to the fields LFB1-LOEVM and KNB1-LOEVM respectively.


    If this implementation is active the CVI will automatically update the corresponding fields once you update BUT000-XBLCK and BUT000-XDELE.

    Best regards

    Thomas

    Add comment
    10|10000 characters needed characters exceeded