cancel
Showing results for 
Search instead for 
Did you mean: 

copy controls

Former Member
0 Kudos

i ncopy controls i want to copy qt to or , how do i do it and what are the setting i hav eto do in tcose VTAA , PLS GUIDE

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

hi sunnia,

standard settings arer there for qt to or in STD SAP.just follow those settings

unless u want to really change something.

reward points if u think this useful.

Best regards,

R.Srinivasan

Former Member
0 Kudos

hi sunaina,

VTAA is the t-code to do it. there is already a copy ctrl defined from order type QT to OR. if you want to do it for custom sales docs----open it in change mode and and copy the header level copy control from qt to or.....change teh names of the doc types and choose copy all optin in the next step. save it. plz also cchek that item lvel and schedule lines are also copied. if some is missing do it yourself again by copying an standard entity.

saurabh

Former Member
0 Kudos

Hai

In copy controls you can copy the data from one doc to other document. If your requirement is to copy data from one sales doc (qt) to other doc(or) you have to use the tc vtaa

Then it will ask for the data to be copied

i.e Header level data, item level or schedule line

You have to key in the from and to fields and also you can specify copying requirements in copy controls, Copying requirements act as a precursor when you need certain data to be copied only when the data satisfies the requirement eg if you want the data in quotation to be copied to order, you can specify the requirement as sold -to - party shld be same before copying

regards

kishore

Former Member
0 Kudos

Hi Sunaina

In your header structure, set like this:

hdr-REF_DOC = i_order-vbeln. "assign quotation # to sales order

hdr-REFDOC_CAT = 'B'. "assign Quotation to VBTYP_N.

For each line item, set as follows:

  • Assigning ref doc to create line item entries in VBFA.

itm-REF_DOC = i_order-vbeln. "quote number

itm-REF_DOC_IT = i_vbap-posnr. "quote line item #

itm-REF_DOC_CA = 'B'.

data: ret_text type BAPIRET2.

CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'

EXPORTING

ORDER_HEADER_IN = hdr

convert = 'X'

IMPORTING

SALESDOCUMENT = salesdoc

TABLES

return = ret_tbl

ORDER_ITEMS_IN = itm

ORDER_PARTNERS = prtnr

ORDER_ITEMS_inx = itmx

ORDER_CONDITIONS_IN = conds

ORDER_CONDITIONS_INX = condsx

order_schedules_in = schd_lin.

Reward if useful to u

former_member227476
Active Contributor
0 Kudos

dear sunaina

yes Tcode VTAA will resolve your issue

rewards if it helps

siva

Former Member
0 Kudos

iN vtaa , what should be given as source and target i want to copy date from qt to or , pls guide what all should be filled in teh field header and item , so that even sales office i copied into the sales order

Former Member
0 Kudos

hi,

source shud be qt (qoutation doc ) and target or (sale order docs). but i repeat that thess are std SAP docs and there is already a copy ctrl defined for them.

saurabh