Skip to Content
2
Jun 29, 2007 at 10:09 AM

Using CI _ BBP _ ITEM _ SC

30 Views

Hi,

I try to transfer a cuf field from catalogue to the SC.

I read the OCI documentation that explains 2 methods :

Method 1 :

I did not succeed in passing the value from catalogue to SC using method IF_EX_BBP_CATALOG_TRANSFER~ENRICH_ITEM_DATA

Here is my code to pass the new_item_cust_field1 froรนcatalogue to the ztoto cuf field in the SC :

method IF_EX_BBP_CATALOG_TRANSFER~ENRICH_ITEM_DATA.

DATA: wa_sc_item_data TYPE BBP_PDS_SC_ITEM_D.

DATA: wa_catalog_content TYPE BBP_WS_OCI_ITEM_S.

LOOP AT catalog_content INTO wa_catalog_content.

LOOP AT et_sc_item_data INTO wa_sc_item_data

WHERE catalogitem = wa_catalog_content-cust_field1.

wa_sc_item_data-ztoto= wa_catalog_content-cust_field1.

MODIFY et_sc_item_data FROM wa_sc_item_data.

ENDLOOP.

ENDLOOP.

endmethod.

-

-


what's wrong in my code ?

Did anybody make it work ?

If yes, what are the step by step ?

Kind regards,

Yann