on 04-25-2011 6:29 AM
Dear Experts,
We have a requirement to create the fields in the shopping cart.
Through customizing we have defined the fields and configured them. Now we could able to see the custom fields in the Shopping cart at item level. The values to custom fields must be the passed from the external Catalog after punch out.
Which BADI should we implement and am i missing anything else.
Please provide pointers to solve the issue.
Thanks,
Vikas
Hello Vikas,
Please find the sample code below for moving catalog field to custom field.
But customer field mapping needs to be known.
MOVE-CORRESPONDING enriched_item_data_out TO ls_enriched_item_data.
wa_index = ls_enriched_item_data-line.
*--- If Customer Field of Catalog is Filled
IF ls_enriched_item_data IS NOT INITIAL.
wa_payment_term = ls_enriched_item_data-cust_field1.
wa_incokey = ls_enriched_item_data-cust_field3.
wa_incoloc = ls_enriched_item_data-cust_field1.
wa_tax = ls_enriched_item_data-cust_field5.
wa_ag_id = ls_enriched_item_data-agreement.
LOOP AT et_sc_item_data_out INTO ls_item WHERE number_int EQ wa_index.
ls_item-zpay_term = wa_payment_term.
ls_item-zincokey = wa_incokey .
ls_item-zincoloc = wa_incoloc.
ls_item-ztax_code = wa_tax.
ls_item-zag_id = wa_ag_id .
MODIFY et_sc_item_data_out INDEX wa_index FROM ls_item TRANSPORTING zpay_term
zincokey
zincoloc
ztax_code
zag_id .
ENDLOOP.
ENDIF.
regards,
Neelima
Edited by: S Neelima on Apr 28, 2011 2:09 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi svikaskumar
This is the Badi to Transfer Shopping Cart from Catalog BBP_CATALOG_TRANSFER .
Thanks& Regards
PradeepKumarDondeti
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.