on 08-02-2013 9:31 AM
hi,
we can succesfuly create bids using BBP_PD_BID_CREATE
but they are not in release status.
how to create Bids in release status ?
thanks
Hi bhakti
Can you provide the input code for BBP_PD_BID_CREATE? I am a novice here, but we need to use this feature now.
Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I don't remember now but probably it was similar to this -
also uu can try putting ext break point there and create bid from frontend.
DATA: lo_exception TYPE REF TO cx_root,
ls_bapi_header TYPE bapi_sc_header_c,
ls_bapi_header_cust TYPE bapi_sc_header_cust_c,
lt_bapi_items TYPE TABLE OF bapi_sc_item_c,
lt_bapi_items_cust TYPE TABLE OF bapi_sc_item_cust_c,
ls_bapi_items_cust TYPE bapi_sc_item_cust_c,
lt_bapi_action TYPE TABLE OF bbps_extreq_action,
lt_bapi_acc TYPE TABLE OF bapi_acc_c,
lt_bapi_acc_cust TYPE TABLE OF bapi_acc_cust_c,
lt_bapi_bup TYPE TABLE OF bapi_bup_c,
lt_bapi_limit TYPE TABLE OF bapi_limit_c,
lt_bapi_org TYPE TABLE OF bapi_org_c,
lt_bapi_texts TYPE TABLE OF bapi_text_i,
lt_bapi_attach TYPE TABLE OF bapi_att_c,
lt_bapi_return TYPE TABLE OF bapiret2,
ai_fault_data TYPE bbpx_exchange_fault_data.
TRY.
* Map the Proxy Structures to BAPI Structures
CALL FUNCTION 'BBP_EXTREQ_CRT_IN_MAPD'
EXPORTING
is_external_requirement = is_external_requirement
IMPORTING
es_header = ls_bapi_header
es_header_cust = ls_bapi_header_cust
TABLES
et_items = lt_bapi_items
et_items_cust = lt_bapi_items_cust
et_action = lt_bapi_action
et_acc = lt_bapi_acc
et_acc_cust = lt_bapi_acc_cust
et_bup = lt_bapi_bup
et_limit = lt_bapi_limit
et_org = lt_bapi_org
et_texts = lt_bapi_texts
et_attach = lt_bapi_attach.
DATA: ls_bapi_items TYPE bapi_sc_item_c.
READ TABLE lt_bapi_items INTO ls_bapi_items INDEX 1.
READ TABLE lt_bapi_items_cust INTO ls_bapi_items_cust INDEX 1.
ls_bapi_items-be_plant = ls_req_item-storage_location.
ls_bapi_items-rev_lev = ls_bapi_items_cust-z_revision.
PERFORM log_entry USING ls_bapi_items.
MODIFY lt_bapi_items FROM ls_bapi_items INDEX 1.
* Call the BAPI
CALL FUNCTION 'BBP_EXTREQ_INBOUND'
EXPORTING
i_header = ls_bapi_header
i_header_cust = ls_bapi_header_cust
TABLES
i_items = lt_bapi_items
i_items_cust = lt_bapi_items_cust
i_action = lt_bapi_action
i_acc = lt_bapi_acc
i_acc_cust = lt_bapi_acc_cust
i_limit = lt_bapi_limit
i_texts = lt_bapi_texts
i_bup = lt_bapi_bup
i_org = lt_bapi_org
i_attach = lt_bapi_attach
return = lt_bapi_return.
return[] = lt_bapi_return[].
DELETE return WHERE type = 'W'.
* Throw an exception if there are E or A messages
CALL FUNCTION 'BBP_AI_BAPIRET_TO_EXCEPTION'
EXPORTING
i_e_and_a_msg_to_exception = 'X'
TABLES
i_bapi_return = lt_bapi_return.
* Everything OK
COMMIT WORK.
* Catch BBP PD ABORT exception
CATCH cx_bbp_pd_abort INTO lo_exception.
* Something went wrong
ROLLBACK WORK.
* Catch all exceptions
CATCH cx_root INTO lo_exception.
* Something went wrong
ROLLBACK WORK.
ENDTRY.
Hi Bhakti,
You can use the fm BBP_PD_BID_STATUS_CHANGE_DIR to publish your bid
Thanks
Smita Sahay
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi Karthik
with i_save flag also its not getting in publsih status
im trying to debug from frontend to figure out code for publishing
also trying BBP_BID_INV_PUBLISH
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi Karthik
i am getting below messages for this BBP_PD_BID_STATUS_CHANGE.
Organization O 5XXXXXX9 is not a purchasing group; inform system administration
System of purchasing organization O 5XXXXXX8 and purchasing group O 5XXXXXX9 differ
Partner 000000015X not found with partner function type Bidder
Active status of document RFx 3XXXXXX6 is Incomplete . No changes are possible
I am trying to remove the purchasing group mapping
because when I create bid from frontened, only submision date and bidder no. is enough to publish the Bid
could you pls tel me abt the last message about Active Status ?
thanks
Hi Karthik,
for Org information use data from tables hrt5500 and hrp5500 , check below sample code
SELECT SINGLE * FROM hrt5500 INTO wa_hrt5500 WHERE ekgrp = wa_orgdata-PROC_GROUP_ID.
SELECT SINGLE * FROM hrp5500 INTO wa_hrp5500 WHERE tabnr = wa_hrt5500-tabnr.
wa_orgdata-PROC_ORG_RESP_OT = wa_hrp5500-OTYPE.
wa_orgdata-PROC_GROUP_OT = wa_hrp5500-OTYPE.
wa_orgdata-PROC_GROUP_ID = wa_hrp5500-objid.
wa_orgdata-PROC_ORG_RESP_ID = wa_hrp5500-objid.
append wa_orgdata to i_orgdata.
let me know still your getting any error.
Thanks,
Venkat
Hi,
You have two flags I_SAVE and I_PARK.
Pass I_SAVE = 'X' and I_PART = ' '.
You should be able to create the Bid in release status unless it is waiting for any approval.
Regards,
karthik Babu.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.