cancel
Showing results for 
Search instead for 
Did you mean: 

printing the check cum payment advice with invoice no using f-58

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,..

Some additional info..

Your subroutine will be like this..

PERFORM GET_ITEM_DATA IN PROGRAM ZFAPRF0139_EMERGENCY_CHQ

USING &REGUP-BELNR&

USING &REGUP-BUKRS&

USING &REGUP-GJAHR&

USING &REGUD-WRBTR&

USING &REGUD-WSKTO&

USING &REGUD-CHECT&

CHANGING &LV_STORE&

CHANGING &LV_DOCUMENT&

CHANGING &LV_TYPE&

CHANGING &LV_NETAMNT&

ENDPERFORM

Former Member
0 Kudos

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 &REGUP-BELNR&

USING &REGUP-GJAHR&

USING &REGUP-BUKRS&

USING &REGUP-BUZEI&

CHANGING &REGUP-REBZG&

CHANGING &REGUP-BLDAT&

CHANGING &REGUP-WRBTR&

CHANGING &REGUP-BUZEI&

ENDPERFORM

*&REGUP-REBZG&,,&REGUP-BLDAT&,,&REGUP-WRBTR(15)&,,&REGUD-SWABZ(12)&,,

*&REGUD-WNETT(14)&

please help me out asap

Former Member
0 Kudos

Hi Shiva,

If the check is clearing only one invoice then it will be called onl once. Or else that element will get repeately called for multiple invoices..

Regards

Ansari

Former Member
0 Kudos

Hi,

In f-58 while creating the check when you select the invoices for clearing , make sure to select more than one invoice..

Regards

Ansari

Former Member
0 Kudos

no its clearing multiple invoice at a time

but printing only first record.i send you that code which i wrote,but not going inside in that line item more than once

plz reply me

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi,

You are using the element 525 inside the main window right?

I did the same last week. IT worked fine.. Let me check it once.

Ansari

Former Member
0 Kudos

replay me plz. i am waiting for ur answer. if u want more info i'll explain it again

Former Member
0 Kudos

Hi,

Hope you have not made any changes to the std program. You have only made a custom subroutine?

Ansari

Former Member
0 Kudos

yes i write this code at 525 element of main window

Former Member
0 Kudos

yes i did not make changes in standard program.

my standard form name is f110_prenum_chk

Former Member
0 Kudos

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

Former Member
0 Kudos

hi ansari

plz solve this problem

Former Member
0 Kudos

Hi,

Sorry not the form name.. Check for the comapy code and the payment method.

Check wht is the value for the field ANZPO

Ansari

Former Member
0 Kudos

hi

in ANZPO FIELD IS EMPTY

Former Member
0 Kudos

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

Former Member
0 Kudos

hii

that field is empty. how to give that value there?

rply me

Former Member
0 Kudos

hi friend

yes solved the problem.

thanks for your help

shiva

Answers (2)

Answers (2)

Former Member
0 Kudos

Thank you Ansari , Probleb solved .

Former Member
0 Kudos

Hi,

For printing the chek you will be using copying the standard script layout and making changes to it. You will have an additional subroutine where you write your code.

The inovice number , year and company code is fetched by the standard program. You will have it in the item level in the main window. Element 525

Inside this element u need to write a subroutine and fetch the details from the tables. For eg BSIS..

Regards

Ansari