Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

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

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



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

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question