cancel
Showing results for 
Search instead for 
Did you mean: 

Header condition in Central contract

Former Member
0 Kudos

Dear all,

SRM 7.02, ECC 6 EHP6.

I have created a header condition ZTST in SRM system and map the same with
ZDG6 in mapping condition in ECC.

I have created a Central contract 9100XXXXX in SRM and replicated the
same in ECC(i.e. the contract is created in ECC) and the header price condition is not displayed in ME33k.
In XML message i have the header price condition ZTST.

In ME33k if i display the contract and click the button Conditions in the header level, nothing is displayed.

Kindly help on above issue.

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Kudos

Hi Tamil.

You should use BADI:   BBP_ECS_PO_OUT_BADI

This is an code example


          MOVE ls_cond-cond_rate TO vl_cond_value.

          lw_cond_b-cond_st_no = ls_cond-cond_number.   "999 "031

          lw_cond_b-cond_count = ls_cond-cond_counter.  "18

          if ls_cond-cond_type = 'FRA2'.

            lw_cond_b-cond_st_no = '031'. "this map correspond to CONV, BE system conditions

          elseif ls_cond-cond_type = 'ZIEP'.  "your SRM conditions

            lw_cond_b-cond_st_no = '031'. "this map correspond to CONV, BE system conditions

          elseif ls_cond-cond_type = '01RH'."your SRM conditions

            lw_cond_b-cond_st_no = '031'. "this map correspond to CONV, BE system conditions

          endif.

          lw_cond_b-cond_type  = ls_cond-cond_type.     "ZIEP.

          lw_cond_b-cond_value = vl_cond_value.

          lw_cond_b-currency   = is_header-currency.

          lw_cond_b-applicatio = 'M'.

          lw_cond_b-stat_con   = 'X'.

          lw_cond_b-change_id  = 'I'.

          lw_cond_b-zvendor1   = ls_cond-zvendor1.

          MOVE-CORRESPONDING lw_cond_b TO lw_condh.

          IF ls_cond-p_guid IS not INITIAL. "

*This case is ITEM condition

            MOVE LW_ITEM-NUMBER_INT+5(5) TO lw_cond_b-ITM_NUMBER.

            APPEND lw_cond_b TO ct_bapi_pocond.

          else.

*This case is HEADER condition

            MOVE space                   TO lw_cond_b-ITM_NUMBER.

            APPEND lw_condh TO ct_bapi_pocondheader.

          ENDIF.

Regards.

José Luis    

Former Member
0 Kudos

Dear Jose,

My issue is related to Central contract price condition replication to ECC contract.

Not the PO conditions..