on 02-03-2009 12:53 AM
To whom it may concern
I would like to create a new shopping cart using 'BBP_PD_SC_CREATE' or 'BAPI_SCEC_CREATE'.
But i am getting Interface errors.
"Message type: A; Message ID: BBP_PD; Message no: 002"
I found below information from internet,but I don't know whether this information is correct.
"BBP_PD_SC_CREATE is really not intended to be used by customers - it is
in fact in "not released for customer" status."
Can we use BAPI_SCEC_CREATE to create Shopping Cart if we can not use BBP_PD_SC_CREATE?
I am not very sure about the use BAPI_SCEC_CREATE.
Could you give me some tips about the BAPI_SCEC_CREATE usage?
Can you please tell me the mandatory parameters to be passed to this FM.
I had tried all possible way of doing that but for me its not working.
Any help is highly appreciated.
Thanks in Advance,
Hi,
Please check the following sample code it could be helpful
PROGRAM zkb_sc_create.
DATA: i_basket TYPE TABLE OF bbp_basket_ext_device,
i_basket_back TYPE TABLE OF bbp_basket_back,
i_basket_errors TYPE TABLE OF bbp_oci_errors.
DATA: w_basket TYPE bbp_basket_ext_device,
w_basket_back TYPE bbp_basket_back,
w_basket_errors TYPE bbp_oci_errors.
PARAMETERS: p_user TYPE sy-uname DEFAULT 'REQUESTER'.
CLEAR w_basket.
w_basket-basket_name = 'Test Shopping Cart'.
w_basket-line = '00001'.
w_basket-description = 'Mat Desc New'.
w_basket-quantity = 1.
w_basket-unit = 'EA'.
w_basket-price = 10.
w_basket-priceunit = 1.
w_basket-currency = 'GBP'.
*w_basket-vendor = '0000085999'.
w_basket-category_id = '4.08.15'.
APPEND w_basket TO i_basket.
CALL FUNCTION 'BBP_PD_SC_CREATE_EXTERNAL'
EXPORTING
user_name = p_user
TABLES
basket = i_basket
basket_back = i_basket_back
basket_errors = i_basket_errors
EXCEPTIONS
not_saved = 1
OTHERS = 2.
IF sy-subrc 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
LOOP AT i_basket_back INTO w_basket_back.
WRITE:/ w_basket_back-basket, w_basket_back-basket_number.
ENDLOOP.
LOOP AT i_basket_errors INTO w_basket_errors.
WRITE:/ w_basket_errors-line,
w_basket_errors-type,
w_basket_errors-code,
w_basket_errors-message,
w_basket_errors-log_no,
w_basket_errors-log_msg_no,
w_basket_errors-message_v1,
w_basket_errors-message_v2,
w_basket_errors-message_v3,
w_basket_errors-message_v4.
ENDLOOP.
Thanks
prasad.s
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You would need to use BAPI_SCEC_CREATE if you want build an interface to create shopping carts.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Check this thread.. this has all details
/thread/327554 [original link is broken]
Thanks
Geetha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.