cancel
Showing results for 
Search instead for 
Did you mean: 

Few queries regarding SOBO functionality and BADIs

former_member184111
Active Contributor
0 Kudos

Hi Experts,

Few technical questions...

1. How to identify if a shopping cart is created on behalf of before it is saved or ordered?

Details of the SC are available in BBP_PD or using the FM BBP_PD_SC_GETDETAIL only after the SC is saved or ordered. I need to do some validations in check BADI and Change BADI when the user adds an item, IF it is a SOBO cart.

How to find that out?

Description is not a good solution since it can be chaned as soon as the creation process starts.

2.When an item is added from catalog to shopping cart and BBP_CATALOG_TRANSFER BADI is triggered...how to identify if the particular Catalog is an internal catalog or external catalog?

Is there some field or flag or some other way in the BADI?

3.In catalog transfer BADI if we get for eg. a flag in a Z field from the catalog and some validations or changes are required based on this flag in CHECK/ CHANGE or Workflow BADIs...how to check the value of this flag in CHECK/ CHANGE or Workflow BADIs...basically is there any table that is updated after catalog transfer BADI or is there any append / include common between structures of catalog transfer BADI and other BADIs?

Any information or pointers will be of great help.

Thanks,

Anubhav

Accepted Solutions (1)

Accepted Solutions (1)

laurent_burtaire
Active Contributor
0 Kudos

Hello Anubhav,

(...)

1. How to identify if a shopping cart is created on behalf of before it is saved or ordered?

Details of the SC are available in BBP_PD or using the FM BBP_PD_SC_GETDETAIL only after the SC is saved or ordered. I need to do some validations in check BADI and Change BADI when the user adds an item, IF it is a SOBO cart.

How to find that out?

Description is not a good solution since it can be chaned as soon as the creation process starts.

(...)

For a shop on-behalf of SC, partner 'Requester' is different from CREATED_BY field (header level of the SC).

Inside BAdI check, SC details can be obtained.

(...)

2. When an item is added from catalog to shopping cart and BBP_CATALOG_TRANSFER BADI is triggered...how to identify if the particular Catalog is an internal catalog or external catalog?

Is there some field or flag or some other way in the BADI?

(...)

Add a specific field (XFELD field, set by default) in your internal catalogs. Using OCI, map this specific field in one of the CUF from the OCI structure in SRM. Then, in BBP_CATALOG_TRANSFER BAdI, map this CUF to another CUF at SC item level. Now, you can do your checks: field set -> internal catalog, field unset -> external catalog.

Other solution is to use field CATALOG_ID: giving a strict codification name for internal catalog, you should be able to identify them.

(...)

3. In catalog transfer BADI if we get for eg. a flag in a Z field from the catalog and some validations or changes are required based on this flag in CHECK/ CHANGE or Workflow BADIs...how to check the value of this flag in CHECK/ CHANGE or Workflow BADIs...basically is there any table that is updated after catalog transfer BADI or is there any append / include common between structures of catalog transfer BADI and other BADIs?

(...)

See what i wrote above.

Regards.

Laurent.

Answers (0)