cancel
Showing results for 
Search instead for 
Did you mean: 

Bid Invitation Attachment order

Former Member
0 Kudos

Hello experts,

In bid invitations and bids we attach documents using "documents and attachments" tab page. We add attachments in certain order and then we want to read these attachments from bid and display on another form in that order.

The problem is when we go to BBP_PD_QUOT_GETDETAIL function ET_ATTACH table the attachments are ordered in a way different than the adding order, and we cannot get the order we add the attachments.

Using CREATIONTIME field in ET_ATTACH table does not work. It is creation or saving time of the bid invitation or bid. So when i add 5 attachments in certain order and press save button CREATIONTIME is the same for all the attachments.

Can you please share your opinion how to get the attachments list in the added order.

Kind regards

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

What you can do is the following:

1. If you haven't, apply note "Note 1512079 - Attachments not passed in BBP_BID_CHANGE of DOC_CHANGE_BADI". After this, apply the same manually steps in the note to BBP_QUOT_CHANGE, which would ensure attachments are passed in and out of both Bid Invitations and Bids.

2. Implement BADI BBP_DOC_CHANGE_BADI for BBP_BID_CHANGE and BBP_QUOT_CHANGE, with the logic to count the order of the incoming attachment. Basically, you call FM BBP_PD_BID_GETDETAIL to find out how many attachments have been added to this Bid Invitation already. And then change the DESCRIPTION field to indicate the order of this incoming attachment, e.g. 2_attachment_doc. This way, you build up your own sorting criteria. Then DESCRIPTION field can be used later for your sorting purpose.