Write Form in loop doubles 2nd item

Development SAPscript/ Smartforms

Moderators: Snowy, thx4allthefish, YuriT, Gothmog

Post Reply
rsmartinho
Posts: 23
Joined: Mon Feb 18, 2008 12:11 pm

Write Form in loop doubles 2nd item

Post by rsmartinho » Wed Aug 27, 2008 8:02 am

Hi all,

I have a Z* program that prints the content of a FI document.
I have a loop at i_bseg and then write form like:

CALL FUNCTION 'WRITE_FORM'
EXPORTING
element = 'L_IVA'
function = 'APPEND'
window = 'IVA'.

Is the append correct or not?
The document has 2 different lines and it appears the 2nd one repeated! If I take the append only one appears....

Please help!!!
Thks

wilhitern1
Posts: 135
Joined: Thu May 15, 2008 4:25 pm
Location: Butterball LLC., Goldsboro, NC, USA
Contact:

Re: Write Form in loop doubles 2nd item

Post by wilhitern1 » Tue Sep 02, 2008 3:47 pm

BSEG records are always paired a debit with a credit. Same document number. Same most everything.
Neal Wilhite (WilhiteRN1)Image

Post Reply