cancel
Showing results for 
Search instead for 
Did you mean: 

Contract number is empty?!?!?

Former Member
0 Kudos

Hello experts,

I noticed that, in EBP, when the customer changes the plant the contract number and contract item are empty!!!!

I made the following test:

In debug mode when I change the plant, and enter in BBP_DOC_CHANGE_BADI, the contract and item number are empty. In this Badi, we have a loop in the IT_ITEM table and we have a logic to "recover" the contract/item number.

The logic is like this:

LOOP AT it_item INTO ti_item_aux

IF ti_item_aux-ctr_item_number IS INITIAL.

MOVE ti_item_aux-yyctr_item_numb TO ti_item_aux-ctr_item_number.

MOVE ti_item_aux-yyctr_hdr_number TO ti_item_aux-ctr_hdr_number.

MOVE 'S' TO lc_update.

ENDIF.

IF lc_update EQ 'S'.

APPEND ti_item_aux TO et_item.

ENDIF.

ENDLOOP.

After the BBP_DOC_CHANGE_BADI occurs the BBP_DOC_CHECK_BADI.

In this logic, when I call the function 'BBP_PD_SC_GETDETAIL', the value of "ctr_hdr_number" is empty again.......

What is wrong?????

Thanks

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

I found another development that change it.... It is fixed now.

Former Member
0 Kudos

Hi

Which SRM version and scenario are you working?

Check if plant is entered in the contract.

If so make sure same plant is selected in shopping cart. Then only contract item will be displayed in SOS.

Reward points if helpful

Regards

Jagadish