cancel
Showing results for 
Search instead for 
Did you mean: 

doubt in SUS smart form

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

Thanks for a reply kezia.

I have my SRM client has S3D100 and SUS client as S3D200 . But what ever we code in S3D100 gets reflects in S3D200.

So please explain the above scenario in detail.

Thanks in Advance.

Neelima

Former Member
0 Kudos

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

khan_voyalpadusman
Active Contributor
0 Kudos

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.

Answers (0)