on 08-19-2009 2:28 PM
Hi all,
u2022 We have customized the BBP_SUSPO to ZBBP_SUSPO and made few changes.
u2022 Now My requirement is to display creator name and email of SRM shopping carts in place of the
P_FIRST -
>W_INFO----->TE_CONTACT
Contact name: creator of sc name
Email id: creator of sc mail id.
Is that possible to get the SRM shopping cart no in SUS smart form as I have logic to get the creator name if I have shopping cart details.
Is there any field in the BBPS_SF_SUSPO_OUTPUT structure?
Thanks in Advance,
Neelima
hi neelima,
yes it is possible. you can retrieve the SRM shopping cart number manually.
using the SRM PO number (sf_susdoc-header-src_object_id), do a remote call of FM BBP_PD_PO_GETDETAIL in SRM to get the reference shopping cart number in E_HEADER_REL.
then do a remote call of FM BPP_PD_SC_GETDETAIL in SRM to get the creator of the SRM shopping cart document.
CALL FUNCTION 'BBP_PD_PO_GETDETAIL' DESTINATION lv_destination
EXPORTING
i_object_id = lv_object_id_srmpo
IMPORTING
e_header = ls_header_srmpo
TABLES
e_header_rel = lt_header_rel_srmpo.
*** Shopping Cart
READ TABLE lt_header_rel_srmpo INTO ls_header_rel_srmpo WITH KEY objtype_a = 'BUS2121'.
IF sy-subrc = 0.
CALL FUNCTION 'BBP_PD_SC_GETDETAIL' DESTINATION lv_destination
EXPORTING
i_guid = ls_header_rel_srmpo-guid_a
IMPORTING
e_header = ls_header_shc.
gv_shc_doc = ls_header_shc-object_id.
ENDIF.
regards,
kezia
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hello neelima,
yes, whatever you code in your SUS PO smartform in SRM will be reflected in the SUS client.
but the smartform will be triggered in SUS client everytime you print or generate an output preview of your SUS PO form.
since the reference shopping cart number is not available in SUS client, then do a remote function call of BBP_PD_PO_GETDETAIL function module to get this in SRM client using the SRM PO number since this is available in SUS client.
let me know if you have questions.
regards,
kezia
it is not possible to get the shopping cart details from the SUS client .
Shopping cart details are stored in the SRM client.
Only way is to make RFC call --> to the SRM client --> using the Purchase order number --> and with those details get the shopping cart details.
It will be bit complcated because there is no direct link between SUS Purchase order and the shopping cart on SRM system.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.