on 08-22-2009 8:54 AM
hi friends
i am facing a problem while printing a check using f-58 through script. here i should print invoice no with invoice amount,check amount,deduction,total....
while i am posting using f-58, system automatically generated document no .but i am unable to find related invoice no and print it.
maximum 5 invoice nos will be there under one document no.
please help me out.
thanks
Shiva
Hi,..
Some additional info..
Your subroutine will be like this..
PERFORM GET_ITEM_DATA IN PROGRAM ZFAPRF0139_EMERGENCY_CHQ
USING ®UP-BELNR&
USING ®UP-BUKRS&
USING ®UP-GJAHR&
USING ®UD-WRBTR&
USING ®UD-WSKTO&
USING ®UD-CHECT&
CHANGING &LV_STORE&
CHANGING &LV_DOCUMENT&
CHANGING &LV_TYPE&
CHANGING &LV_NETAMNT&
ENDPERFORM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi i wrote this code at element 525 BUT that element is not looping more than once in debugging mode
PERFORM LINE_ITEM IN PROGRAM ZLINE_ITEM
USING ®UP-BELNR&
USING ®UP-GJAHR&
USING ®UP-BUKRS&
USING ®UP-BUZEI&
CHANGING ®UP-REBZG&
CHANGING ®UP-BLDAT&
CHANGING ®UP-WRBTR&
CHANGING ®UP-BUZEI&
ENDPERFORM
*®UP-REBZG&,,®UP-BLDAT&,,®UP-WRBTR(15)&,,®UD-SWABZ(12)&,,
*®UD-WNETT(14)&
please help me out asap
yes there is multiple invoice at f-58.even that invoice nos are showing at database table.but only picking first record.
here i am printing total.but its giving perfect result.
i am telling you in details, in debugging mode,for 525 (line-item) element its looping once for first record,and then directly goes to
element 530(sum-total) and printing total amount not triggering 525 element again.
rply me plz
Hi Shiva,
I think so i understood the issue what u r facing..
I also had the same issue. It was printing only one line..
The reason is go to table T042E and check for your form name there
There is a field in the table which says number of line item per form.
See what is the entry given for your form. It should be given as 99..
Let me know what is the entry in the table
Regards
Ansari
Hi,
Yes this is exactly the problem why your form is not looping properly. It is a customising issue. You need to ask you functinal consultant to correct this..
If you go to customising and see where the form is attached you can change this.. I dont remember exactly the tcode for that.
But you can ask the FC . They wil lbe able to resolve this issue..
Hope this helps.
Ansari
User | Count |
---|---|
75 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.