Skip to Content
author's profile photo Former Member
Former Member

doubt in SUS smart form

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Aug 19, 2009 at 04:37 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

    • 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.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.