cancel
Showing results for 
Search instead for 
Did you mean: 

Billing: refer to preceding document number

former_member440871
Participant
0 Kudos

Hi All,

I tried to set in copy control for reference number in billing document is: B- Sales Order document.

My creating document process as below:

Contract --> Normal sales order: number AAAAA1  - Billing: number 100000 -->Sales order for Credit note request: number BBBBB1--> Credit note: number 20000

I set in copy control of Billing is B. But in credit note, reference field is AAAAA1. I want reference number is preceding document, in here it should be BBBBB1.

When Abaper uses BAPI to create so everything is ok but when I use SAP GUI, the reference number for credit note above is always normal sales order.

Do you have any idea to solve this thing? I really appreciate your support.

Best regards.

Nguyen Pham.

Accepted Solutions (1)

Accepted Solutions (1)

eduardo_hinojosa
Active Contributor
0 Kudos

Hi

Check the subroutines (VOFM) in tcodes for copy control (VTAA, VTAF, VTFA and so on). You can create your own subroutines with tcode VOFM.

I hope this helps you

Regards

Eduardo

former_member440871
Participant
0 Kudos

Hi Eduardo,

I do not want to write subroutines. I just concern why I use BAPI, the ref doc num is as I want but why I create by SAP GUI, it's not.

I really appreciate your support all. Still looking forward.

BR.

Nguyen Pham

eduardo_hinojosa
Active Contributor
0 Kudos

Hi

What BAPI are you using?. Set a break-point and check the logs in table RETURN (structure BAPIRET2), although I think you don't have errors. I suggest you to check your VOFM in your copy rules as a way to know the reason your GUI processing set the number for the preceding document.

Regards

Eduardo

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello,

Before going to proceed further, Plz check & confirm your presettings in transcation Code: NACE.

Regards,

Akg

former_member440871
Participant
0 Kudos

Sorry AKG,

I do not know why you suggest checking condition for output here? Pls answer more clearly, really appreicate.

BR.