cancel
Showing results for 
Search instead for 
Did you mean: 

how to copy transaction no. into follow-up transaction document

Former Member
0 Kudos

Hello experts,

I have a Sales Order which is created as a follow-up from a Contract.

I need to copy the Contract no. (field OBJECT_ID) into the Sales Order.

I have the following questions regarding this.

(a) Is the field "Ext. Reference" (PO_NUMBER_SOLD) most appropriate field in the Sales Order to copy the Contract Transaction no.?

If answer is 'no', which is the most appropriate field in Sales Order where the Contract transaction no. should be copied as a best practice.

(b) How this copying can be achieved - Is a copying routine required?

I understand that by using spro path "copying control of business transactions"

"source transaction type -> target transaction type", there is a field "Copy PO data".

If I keep this box checked, will the external reference no. of preceding transaction (contract) get copied into target transaction (sales order) ?

I am using CRM 7.0 version

Accepted Solutions (1)

Accepted Solutions (1)

robert_kunstelj
Active Contributor
0 Kudos

Hi.

Yes, I would recommend to use "Ext. Reference" field. I'm using it also in my scenario where we want to have referenc ID of opportunity in the sales order. In that case you will also have this ID available in ERP, because it is transfered via middleware.

About how to achive this. Yes, copy routine is the good approach. To set the value use the if_ex_crm_copy_badi~sales method and fill the value in cs_sales_badi-po_number_sold

Answers (0)