cancel
Showing results for 
Search instead for 
Did you mean: 

Regarding External Req Number in SRM

Former Member
0 Kudos

Hi,

1.

We have an interesting issue..

The external req no that comes to the shopping cart is not passed to the followon doc Bid invitation in the table BBP_PDIGP - EXT-DEMID..

So when we are using the doc change badi to change the description of the Bid Invitation as the Req no + the date in the export interface it is not picking up the Req number from the BBP_PDIGP as there is know value. We can actually create a Ztable to populate the req numbers and then use this in the Badi..

But just wondering y the data is not passed from the SC to the Bid invitaiton.How do we pass the data from the Shopping cart to the Bid invitation. Is there a standard Badi to do this.

2.

The other issue is autocreation of Bid invitaion for the Product Categories.

For all the Product Categories we wanted a Auto creation of Bid invitation and did the Sourcing configuration accordingly.

It works fine for some Product Categories but with few instead of Auto Bid it goes and sits in the Sourcing Cockpit waiting for us to push it to create a bid invitaion with Erro in transmission in the SC history.

Any suggestions.

Regards

Manoj A.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Manoj,

is your SC created from a R/3 PR ? (external requirement scenario)

This is the only case where EXT_DEMID is used.

If this field is not taken back during the BID INV creation, you can still use the SC-->BID INV link to read this data in your BADI (look at BID INV item data BBP_PDIGP-SRC_GUID), instead of using Z tables.....

There is no specific BADI for the automatic RFQ creation from SC.

Rgds

Christophe

Former Member
0 Kudos

Hi Chris,

Thanks for the hint. I will surely try this out and let you know.

Regards

Manoj A.

Former Member
0 Kudos

Hi Chris,

We have implemented the logic but doesnt show up in the Description. We have set up break points in the badi but when we create a shopping cart which creates a Auto bid invitation it goes to the badi for sure but doesnot stop there as this is being done in the background.

i am attaching the Badi here.. could you give me somemore inputs on it..

method IF_EX_BBP_DOC_CHANGE_BADI~BBP_BID_CHANGE.

data: wa_item like line of it_item.

data: wa_req type BBP_PDS_BID_ITEM_ICU-EXT_DEMID.

data: w_guid type bbp_pdigp-SRC_GUID.

loop at it_item into wa_item.

select src_guid into w_guid from bbp_pdigp

where guid = wa_item-guid.

endselect.

if sy-subrc = 0.

select ext_demid into wa_item-EXT_DEMID from BBP_PDIGP

where guid = w_guid.

endselect.

endif.

if not wa_item-ext_demid is initial.

exit.

endif.

endloop.

*CHECK NOT wa_item-EXT_DEMID IS INITIAL.

ES_HEADER-DESCRIPTION = wa_item-EXT_DEMID.

concatenate ES_HEADER-DESCRIPTION sy-datum into ES_HEADER-DESCRIPTION

separated by '--'.

ES_HEADER-GUID = IS_HEADER-GUID.

ES_HEADER-BID_TYPE = IS_HEADER-BID_TYPE.

ES_HEADER-OPEN_TIME = IS_HEADER-OPEN_TIME.

ES_HEADER-APPLIC_BY = IS_HEADER-APPLIC_BY.

ES_HEADER-QUOT_DEAD = IS_HEADER-QUOT_DEAD.

ES_HEADER-QUOT_DEAD_TIME = IS_HEADER-QUOT_DEAD_TIME.

ES_HEADER-BINDG_PER = IS_HEADER-BINDG_PER.

ES_HEADER-CATEGORY = IS_HEADER-CATEGORY.

ES_HEADER-CATEGORY_ID = IS_HEADER-CATEGORY_ID.

ES_HEADER-CURRENCY = IS_HEADER-CURRENCY.

ET_PARTNER = IT_PARTNER.

ET_ORGDATA = IT_ORGDATA.

ET_DYN_ATTR = IT_DYN_ATTR.

ET_HCF = IT_HCF.

ET_ICF = IT_ICF.

endmethod.

Only the date shows up but the Ext req number doesnot.

Regards

Manoj.

Former Member
0 Kudos

Hi Manoj,

In your code, you update working structure wa_item, but I don't see where you update back ET_ITEM.

Rgds

Christophe

Former Member
0 Kudos

Hi Chris,

It looks like the importing interface has no data to work with.

If i am not wrong the doc_change badi will kick in when called to create the Bid invitaion with importing data and then populate the database tables with the export interface (bbp_pdigp etc)..or is my concept wrong..

as we tried to pick up the Bid invitation GUID and then work with that to pull up the Ext req id ...

but we saw that the import GUID is a reference GUID 0000000003 which is different from the GUID it populates in the table BBP_PDIG.

Is there a way to debug this auto creation of bid invitation.

Rgds

Manoj A.

Message was edited by: manoj anakapalli

Former Member
0 Kudos

Manoj,

I think that during the first call of the BADI, during BID INV creation, the BID INV GUID could not be the definitive one. But we don't care, as what we need is the SRC_GUID of the SC. This one is a real one. So you could be able to read SC item data from this item source guid, change BID INV item data accordingly, and export it in ET_ITEM table of this BADI.

Rgds

Christophe

Former Member
0 Kudos

Dear Manoj

for option 2 we can go to BBP_PD and input the object id and there below it describes the error what error occurs can you give more details for the error in transmission.

In BBP_PD all error details are given below.

regards,

Nimish sheth