cancel
Showing results for 
Search instead for 
Did you mean: 

Wrong payer value while creating PRO FORMA invoice for multiple delivery

Former Member
0 Kudos

Hi experts,

I am trying to create PRO FORMA Invoice for multiple deliveries thru VF01.

The problem here is the payer value is copied as the value of payer for the first delivery to all invoices. All other fields are picked up properly.

Please help me to idenify the problem. Also if I create the invoices thru VF04 the invoices the created with correct payer.

Thanks in advance.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

It is due to the Copy Control Routine maintained in VTFL.At Header level, the Copying Req. should be 009 & at Item Level it should be 010.

Best Regards,

Ankur

Former Member
0 Kudos

Hi Ankur,

Thanx for the input.

Right now we have customized routine 909 for header level and std. routine 004 for item level.

Code for routine 909 is

FORM BEDINGUNG_PRUEFEN_909.

SY-SUBRC = 0.

  • Fakturasperre

IF LIKP-FAKSK NE SPACE.

SELECT SINGLE * FROM TVFSP WHERE FAKSP = LIKP-FAKSK

AND FKART = TVFK-FKART.

IF SY-SUBRC = 0.

PERFORM VBFS_HINZUFUEGEN USING '000000' '014' SPACE SPACE SPACE.

SY-SUBRC = 4.

EXIT.

ENDIF.

SY-SUBRC = 0.

ENDIF.

  • break-point.

SELECT * FROM VBFA WHERE VBELV = LIKP-VBELN.

IF VBFA-VBTYP_N = 'U' .

PERFORM VBFS_HINZUFUEGEN USING '000000' '148' LIKP-VBELN

SPACE SPACE.

SY-SUBRC = 4.

  • Insert + Unicode/Upgrade Project

  • STOP.

LEAVE SCREEN.

  • Insert - Unicode/Upgrade Project

ENDIF.

ENDSELECT.

ENDFORM.

can u please check n confirm if the wrong value is coming due to this code?

Thank in advance.