cancel
Showing results for 
Search instead for 
Did you mean: 

Shopping Cart Ship-To Address

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

Thank you very much indeed for your help. I have awarded full points as this is exactly what I was looking for.

Regards,

e.b.

Answers (0)