on 03-09-2010 6:21 AM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.