cancel
Showing results for 
Search instead for 
Did you mean: 

Mandatory field

Former Member
0 Kudos

Hi,

I need to set a field of a structure as mandatory

from a badi(interface IF_EX_BBP_CUF_BADI_2)

someone can help me?

Accepted Solutions (1)

Accepted Solutions (1)

Ramki
Active Contributor
0 Kudos

Hello Tony

I would recommend using the BADI BBP_DOC_CHECK_BADI.

It is better to do all checks in a single BADI so that maintenance of custom programs will be easy later.

Best regards

Ramki

Former Member
0 Kudos

Hi

Which SRM version are you using ?

Please use the following useful links to refer in this case.

<b>

Incase you need any assitance, let me know.

Hope this will help.

Regards

- Atul

Former Member
0 Kudos

SRM 4.0

BBP_DOC_CHECK_BADI does not seems to exist.

Former Member
0 Kudos

Hi

Are you sure ?

Have you checked carefully in SE18 Transaction for the BADI name ?

It should exist. Please confirm.

Alternatively, try to go for the BADI

BBP_ITEM_CHECK_BADI

BBP_DOC_CHECK_BADI   General BAdI in Cross-Check for Message Returns    

BBP_ITEM_CHECK_BADI  Gen. BAdI in Item Cross-Check for Message Return  

Hope it will help.

Regards

- Atul

Former Member
0 Kudos

Ok.

It exists.

Now i'm going to create an implementation of it.

Can you help me about filters to add ??

Former Member
0 Kudos

Hi,

For whcih document have you added the custom fields?

If its SHOPPING CART,then add the Filter type as BUS2121.

Other documents and their corresponding filter values are:

BUS2000113 Purchase Contract

BUS2200 Bid Invitation

BUS2201 Purchase Order

BUS2202 Vendor Bid

BUS2203 Confirmation

BUS2205 Incoming Invoice

BUS2206 Vendor List

BUS2208 Auction

BUS2209 Purch.Order Response

BUS2210 Invoice Default

BUS2230 SUS Purchase Order

BUS2231 Shipping Notif.

BUS2232 SUS PO Confirmation

BUS2233 SUS Confirmation

BUS2234 SUS Invoice

HTH.

BR,

Disha.

Pls reward points for helpful answers.

Former Member
0 Kudos

Hi

For Changing value of custom/standard shopping cart fields, we use - <u>BBP_DOC_CHANGE_BADI</u> -> use filter type BUS2121 for shopping cart

-> use filter type BUS2201 for Purchase Order

Similarly, For Issuing custom message- we use <u>BBP_DOC_CHECK_BADI</u> -> use filter type BUS2121 for shopping cart

-> use filter type BUS2201 for Purchase Order

Do let me know, you complete business requirements, incase you need further assistance.

Regards

- Atul

Former Member
0 Kudos

Ok.

very useful... i need a filetr for a PO, so i'll use the 2201.

But i can't activate for this message:

"there are already implementations active for these filter values"

How can i solve??

Thanks.

Tony.

Former Member
0 Kudos

Hi

Please try this ->

For BADI Definition - BBP_DOC_CHECK_BADI using SE!8 transaction, click Display key to see the details and then clcick on Menubar Implementations -> Display to see what all Custom Implementations for this BADI Definition are existing in your system. Take help of Some ABAP persons. Custom BADI Implementations starts with either Y or Z.

See using SE19 Transaction What all Custom Implementations are existing in the system which are using BBP_DOC_CHECK_BADI as the BADI Definition.

Then Incase, there exists any BADI Implementation starting with Y or Z for this BADI Definition - BBP_DOC_CHECK_BADI, you can put your logic as per you businees requirements inside the Method BBP_SC_CHECK (for BUS2121) OR

for the method BBP_PO_CHECK for filter type BUS2201 accordingly.

Let me know incase you face any other issues.

<b>Note -> Please read the SAP Standard Documentation of the BADI before implementing the custom Implementation.</b>

You will Enjoy learning working on Business Add-Ins !!

Regards

- Atul

Former Member
0 Kudos

Ok. perfect.

I've used an implementation already active...

Thanks for the great support.

Tony

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

You can set the field as mandatory through the same BADI (BBP_CUF_BADI_2)itself...(Dont remember the method).Alternatively you can write the logic in BBP_DOC_CHECK_BADI acc to the Docuemnt for whcih you have added the custom fields.

BR,

Disha.

Pls reward points for useful answers.