cancel
Showing results for 
Search instead for 
Did you mean: 

Contract End date and Payment block field(RECN)

0 Kudos


Hi,

I have a requirement to make payment block and contract end date field mandatory in contract creation(RECN)

my main concern is that it should be contract wise like Z051,Z052.Z061 and Z062 contract.

unable to make it in standard setting.Is there any BADI for this specific requirement??

I only need to make contract end date and payment block field mandatory with respect to contract Z051,Z052,Z061 and Z062.

Your reply will be highly appreciable.

Regards

Md Rizwan

Accepted Solutions (0)

Answers (3)

Answers (3)

0 Kudos

Hi,

Jeong thnx for ur reply.But it is not controled by standard setting.

Regards

Rizwan

yeong-chul_jeong
Active Participant
0 Kudos

Dear MOHAMMAD RIZWAN

You can control this filed status as follows ;

1. Contract End Date : IMG > Contract > Dialog > Screen Layout > Field Groups >

                                            Field Status per Contract Type

2.  Payment Block (On the Posting Parameters) :

       - Method A) Enhancement :

            Enhancement Spot : BADI_RE_CN_CN

            BADI : BADI_RECN_CONTRACT

            Method : CHECK_ALL

      - Method B) Function Module for Field Group

            Field Group : 42 (Payment Rules)

            Field : REEX_PAYMENT_FI_S-PYMTBLOCK

            Function Module : REGC_REGC_EVENT_FMOD2

            Sample :

            *   ================================

            *   contract currency

            *   ================================

                WHEN 9.

            *     display!

                   out_status = reca2_fieldstate-display.

            *     not display?

                   IF lf_display = abap_false

                     AND NOT regcflds-bukrs IS INITIAL.

            *       read currency context

                     CALL METHOD cl_recn_contract_services=>get_currency_context

                       EXPORTING

                         id_bukrs          = regcflds-bukrs

                       IMPORTING

                         ed_currencyassign = ld_currencyassign.

                     IF ld_currencyassign <> recd1_currencyassign-default.

                       out_status = reca2_fieldstate-optional.

                     ENDIF.

                   ENDIF.

Regards

Jeong, Yeong-Chul

franz_posch
Active Contributor
0 Kudos

Hi Rizwan,

you can implement BAdI BADI_RECN_CONTRACT, Method CHECK_ALL, to define additional checks for the contract fields.

I hope this helps.

Regards, Franz

0 Kudos


HI Franz,

Thanks for your reply the above BADI help us to make contract end date as mandatory.

However payment Block field does not seem to work with this BADI.

Is there any other BADI in which we can have structure through which data save in T008?

Thanks

Rizwan