cancel
Showing results for 
Search instead for 
Did you mean: 

Modifying Shopping Cart standard field

Former Member
0 Kudos

Hi Expert,

I wish to change the cost center field in the shopping cart by making the field to empty value to force the user to manually enter the cost center value.

And where can I make the field Internal Order and AOR to mandatory?

Please tell me where can I make the changes?

Thank you.

Regards,

Henry

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Henry,

You can use the BBP_DOC_CHANGE_BADI to make the value for the cost center field to be null.

And BBP_DOC_CHECK_BADI to make the fields mandatory. You cans raise an error message using this BAdI if the Internal order and AOR fields are left empty. If the user tries to leave these fields empty and tries to proceed further. He/She will get the error message.

Hope this helps.

Thanks.

Pradeep

Former Member
0 Kudos

Hi Pradeep,

Can you give example on how to make the field to null for BBP_DOC_CHANGE_BADI?

I don't know the field name and structure to begin with.

Thanks.

Regards,

Henry

Former Member
0 Kudos

Hi Henry,

BAdI: BBP_DOC_CHANGE_BADI

Method: BBP_SC_CHANGE

The field will be in the parameter IT_ACCOUNT

Field name COST_CTR

Exporting parameter ET_ACCOUNT

Field name COST_CTR

Assign blank value to this field so that once this BAdI gets executed the value for cost center will become null.

Thanks,

Pradeep

Answers (1)

Answers (1)

evillafuerte
Explorer
0 Kudos

Hi guys, I know it is an old question, but now I have this problem:

How can you send a blank value through this badi? I am cleaning the value of COST_CTR but It didn't work.

Thank you!!