on 12-11-2006 11:15 AM
Hi !
we need to make some of the fields on the Ship-to address screen ( Internet service: BBPSC01Theme : 99 HTML Template: SAPLBBP_SC_UI_ITS 310 ) mandatory to stop users from creating Shopping Carts without Post Code for example. Does anybody know how can you achieve this without changing the HTML Code?
Classic Scenario, SRM 4.00
Any advice would be greatly appreciated.
Thank you!
e.b.
Hi Elisabeta,
You can user BADI BBP_DOC_CHECK_BADI to stop creating SC.
Example code:
method if_ex_bbp_doc_check_badi~bbp_doc_check .
call function 'BBP_PD_SC_GETDETAIL'
exporting
i_guid = iv_doc_guid
importing
e_header = wa_e_header
tables
e_item = lt_item
e_account = ls_account
e_longtext = lt_longtext
e_messages = lt_messages
e_partner = lt_partner.
then check lt_partner for eg.
POSTL_COD1
if ls_partner-postl_cod1 is initial.
message e904(zbbp_sc) into lf_dummy.
clear ls_message.
ls_message-msgty = sy-msgty.
ls_message-msgid = sy-msgid.
ls_message-msgno = sy-msgno.
shift ls_message-msgv1 left deleting leading '0'.
select single text from t100 into ls_message-message
where sprsl = sy-langu
and arbgb = sy-msgid
and msgnr = sy-msgno.
append ls_message to et_messages.
endif.
Regards,
Marcin Gajewski
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.