cancel
Showing results for 
Search instead for 
Did you mean: 

How to send a Bid Invitation via XML

Former Member
0 Kudos

Hi,

Any suggestions on how to send a Bid Invitation via XML. Please suggest steps to do this or please send any documentation if available (email --> <removed by moderator>....)

Thanks,

Ashwani

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

See this thread for more pointers:

BR,

Disha.

DO reward points for useful answers.

Former Member
0 Kudos

Hi,

The following are the requirements to achieve this.

1. You need XI and this system should be maintained in Technical Setting - > Backend Systems with system type as XISAPXML1

2. Active the method call for Bid Invitations in IMS.

SAP Implementation Guide -> Supplier Relationship Management -> SRM Server -> Cross-Application Basic Settings -> Set Output Actions and Output Format -> Define Actions for Document Output

Here select "BBP_PD_BID" and double click "Action Definition". And in the ACtion settings choose "Process when saving document". And in "Processing Types" select "Method Call" as default.

This should send the bid invitations as XML to XI when the bid invitations are being published.

Note: You can also use the function module "BBP_RFQ_SEND" to send the bid invitation through custom development.

Best Regards

Kathirvel

Former Member
0 Kudos

Hi Kathirvel,

Thanks for your prompt reply. Can you let us know which method should we use for XML output. The only relevant method we see is BBP_BID_PUB (we are using SRM 4 with Classic Scenario)

Thanks,

Ashwani

Former Member
0 Kudos

Hi Kathirvel,

We have another question:

The method BBP_BID_PUB is a SAP delivered implementation. We have noticed that the corresponding code makes a call to BBP_RFQ_SEND but is commented out. We assume we must uncomment this code but wanted to ask if there is additional code we must add to this method. Could you please provide us the code for the BBP_BID_PUB implementation so that we can compare to what we have.

Here is the code delivered by SAP in this method:

method IF_EX_EXEC_METHODCALL_PPF~EXECUTE.

INCLUDE bbp_pd_con_cl.

INCLUDE bbp_pd_con_status.

DATA:

lo_application TYPE REF TO cl_proc_doc_bbp,

lv_guid TYPE crmt_object_guid,

lv_partner_no TYPE crmt_partner_no,

dummy(254) TYPE c, "#EC NEEDED

ls_header TYPE bbp_pds_bid_header_d,

lt_partner TYPE bbpt_pd_partner,

ls_partner TYPE bbp_pds_partner,

lv_partner_no_ppf TYPE ppfdpartno.

lo_application ?= io_appl_object.

lv_guid = lo_application->get_object_guid( ).

lv_partner_no_ppf = io_partner->get_partnno( ).

lv_partner_no = lv_partner_no_ppf.

CALL FUNCTION 'BBP_PD_BID_GETDETAIL'

EXPORTING

i_guid = lv_guid

IMPORTING

e_header = ls_header

TABLES

e_partner = lt_partner.

IF ls_header IS INITIAL.

MESSAGE e080(bbp_out) WITH lv_guid INTO dummy.

CALL METHOD cl_log_ppf=>add_message

EXPORTING

ip_problemclass = '1'

ip_handle = ip_application_log.

ENDIF.

READ TABLE lt_partner INTO ls_partner

WITH KEY partner_no = lv_partner_no.

IF sy-subrc = 0.

MESSAGE e087(bbp_out) WITH

ls_partner-firstname

INTO dummy.

CALL METHOD cl_log_ppf=>add_message

EXPORTING

ip_problemclass = '4'

ip_handle = ip_application_log.

ELSE.

MESSAGE e082(bbp_out) WITH

ls_header-object_id

lv_partner_no_ppf INTO dummy.

CALL METHOD cl_log_ppf=>add_message

EXPORTING

ip_problemclass = '1'

ip_handle = ip_application_log.

ENDIF.

  • CALL FUNCTION 'BBP_RFQ_SEND'

  • .

endmethod.

Thanks,

Ashwani

Former Member
0 Kudos

Hi,

We are in SRM 5.5 and SP08, I can see the call to that FM. Please check the below code. Hope this helps.



METHOD if_ex_exec_methodcall_ppf~execute.

*
*
"  From Line Number 171
  lv_system_type = bbppd_sy_ty_xisapxml1.

* Call the META to send the PO
  CALL FUNCTION 'BBP_RFQ_SEND'
    EXPORTING
      iv_guid        = lv_guid_16
      iv_object_type = ls_header-object_type
      iv_action_code = lv_action_code
      is_partner     = ls_bidder
    IMPORTING
      et_messages    = lt_message.

* We hope
  rp_status = '1'.
  LOOP AT lt_message INTO ls_message.
    MESSAGE ID ls_message-msgid
            TYPE ls_message-msgty
            NUMBER ls_message-msgno
            WITH
               ls_message-msgv1
               ls_message-msgv2
               ls_message-msgv3
               ls_message-msgv4
               INTO dummy.
    IF ls_message-msgty = bbppd_msgty_a
      OR ls_message-msgty = bbppd_msgty_e.
*     Hope was frustrated
      CALL METHOD cl_log_ppf=>add_message
        EXPORTING
          ip_problemclass = '1'
          ip_handle       = ip_application_log.
      rp_status = '2'.
    ELSE.
      CALL METHOD cl_log_ppf=>add_message
        EXPORTING
          ip_problemclass = '3'
          ip_handle       = ip_application_log.

    ENDIF.
  ENDLOOP.

ENDMETHOD.