cancel
Showing results for 
Search instead for 
Did you mean: 

additional data B Custom fields is not getting copied into target doc

Former Member
0 Kudos

We had created custom fields (VBAP-ZZxxx) in additional data B tab for an Inquiry doc type, Quotation doc type, sales order doc type. They are created while append in VBAP.

My problem is:

While copying from

Inquiry doc type to sales order doc type &

Inquiry doc type to Quotation doc type

the data maintained in additional data B fields is not getting copied into target document.

I understand that this can be achieved by copying the routine ( standard) of copy control of line-items (VBAP) into the new routine, 9xx.

As this is the regular affair to meet custom needs, has anyone done this successfully before? Which routine shall I consider for modification?

Suggestions and opinions are welcome.

Prashant

Accepted Solutions (0)

Answers (10)

Answers (10)

Former Member
0 Kudos

Hi,

You have to Write a Data Transfer Routine for this.

We had a requirement for copying the additional data B fields from Quot to Order.

I created a new Routine 9** by copying the Routine 101 ( Bus Header data) for the header values .

VBAK-ZZLDATE = CVBAK-ZZLDATE.

Passing the values from CVBAK to VBAK will do the required work.

Assigned the same routine in the procedure.

Rgds,

Satish

Former Member
0 Kudos

Hi,

You have to Write a Data Transfer Routine for this.

We had a requirement for copying the additional data B fields from Quot to Order.

I created a new Routine 9** by copying the Routine 101 ( Bus Header data) for the header values .

VBAK-ZZLDATE = CVBAK-ZZLDATE.

Passing the values from CVBAK to VBAK will do the required work.

Assigned the same routine in the procedure.

Rgds,

Satish

Former Member
0 Kudos

Hi,

You have to Write a Data Transfer Routine for this.

We had a requirement for copying the additional data B fields from Quot to Order.

I created a new Routine 9** by copying the Routine 101 ( Bus Header data) for the header values .

VBAK-ZZLDATE = CVBAK-ZZLDATE.

Passing the values from CVBAK to VBAK will do the required work.

Assigned the same routine in the procedure.

Rgds,

Satish

Former Member
0 Kudos

Hi,

You have to Write a Data Transfer Routine for this.

We had a requirement for copying the additional data B fields from Quot to Order.

I created a new Routine 9** by copying the Routine 101 ( Bus Header data) for the header values .

VBAK-ZZLDATE = CVBAK-ZZLDATE.

Passing the values from CVBAK to VBAK will do the required work.

Assigned the same routine in the procedure.

Rgds,

Satish

Former Member
0 Kudos

Hi,

You have to Write a Data Transfer Routine for this.

We had a requirement for copying the additional data B fields from Quot to Order.

I created a new Routine 9** by copying the Routine 101 ( Bus Header data) for the header values .

VBAK-ZZLDATE = CVBAK-ZZLDATE.

Passing the values from CVBAK to VBAK will do the required work.

Assigned the same routine in the procedure.

Rgds,

Satish

Former Member
0 Kudos

Hi,

You have to Write a Data Transfer Routine for this.

We had a requirement for copying the additional data B fields from Quot to Order.

I created a new Routine 9** by copying the Routine 101 ( Bus Header data) for the header values .

VBAK-ZZLDATE = CVBAK-ZZLDATE.

Passing the values from CVBAK to VBAK will do the required work.

Assigned the same routine in the procedure.

Rgds,

Satish

Former Member
0 Kudos

Hi,

You have to Write a Data Transfer Routine for this.

We had a requirement for copying the additional data B fields from Quot to Order.

I created a new Routine 9** by copying the Routine 101 ( Bus Header data) for the header values .

VBAK-ZZLDATE = CVBAK-ZZLDATE.

Passing the values from CVBAK to VBAK will do the required work.

Assigned the same routine in the procedure.

Rgds,

Satish

former_member358181
Active Participant
0 Kudos

Hi,

We have done a similar requirement of adding additional fields in Quotation doc type at header and item level .

Also we have got the Reference data of the order being created to flow in to Additional Data B .

This is purely Abaper's Coding .when you add Additional Fields there is screen logic also to be coded for these screens .

to get the Reference order data logic has to be written in PBO of the screen which u have added additional fields .

the reference data will be validated with "VGBEL" field in VBAK table .If VGBEL is not initial then Query the VBAK table for this data in VGBEL into Internal table or work area and update the screen fields in additional data with these fields .

I have done the same and it is Working Wonderful .

Try this and Let me know Further. All the Best.

Thanks,

DevendraP.

marcin_milczynski
Contributor
0 Kudos

Hi,

You need to modify copying control routine 151 in VOFM (program FV45C151 in SE38) adding following line at the end of the form:


vbap-zzxxx = cvbap-zzxxx.

Kind regards,

Marcin

Former Member
0 Kudos

Hi

Thanks for the reply.

I did exactly the same as suggested by you i.e. modify copying control routine 151: vbap-zzxxx = cvbap-zzxxx. however when I did test for Inq Doc -


> Quotation Doc, It is not copying. For copying the data, Do I need to use user-exit?

Prashant

Former Member
0 Kudos

You can use either userexit or copy control routine , you need not use both for achieving this. You can ask your technical guy to copy field values from the previous document into this document at the form in the program MV45AFZZ.

Jelena
Active Contributor
0 Kudos

You have to run the program RV80HGEN after changing the copy routine.

marcin_milczynski
Contributor
0 Kudos

Hi,

The copying control routine should be sufficient. It is exaclty correct place for transfer of custom fields. Any selects in MV45AFZZ user-exits have usually impact on performance of order creation (very important i.e. when using CRM).

Are you sure you have the modified routine assinged to all item categories in VTAA?

Kind regards,

Marcin

former_member315051
Active Contributor
0 Kudos

Hi,

Yes, this is related to copy control problem i belive, for this you can try with Data Transfer routine - "151" in VTAA (Sales document to sales document ) item level.

Try and post your Feed back

Regards,

Ramesh