cancel
Showing results for 
Search instead for 
Did you mean: 

Problem in printing invoice number

Former Member
0 Kudos

Hi Friends,

Iam facing 1 problem in SAP script.I want to print Invoice number with leading zeros.In my print program the internal table is populating with leading zero,but when it comes to form it is having value without leading zero.for eg. Itab_remittance-invoice is 01000000 in print prog. when it come is to form its value is 100000.The datatype is char. of length 8. If i move the field to a temp.variable (N or I) the value is populating in print programing but it is not populating in the form. So help me to solve this problem.

Rgds,

Rama

View Entire Topic
Former Member
0 Kudos

Does it has any conversion routine associated with it? If so, remove the association, then it should work. Let us say if your Itab_remittance-invoice is defined 'LIKE VBRK-VBELN', then remove that reference and define it just as char(10).

Former Member
0 Kudos

Instead of INVOICE LIKE ZSAP_INVOICE-NEW_VBELN,Now i gave INVOICE(8) TYPE N.It is working.Srini Can you tell me the reason why it is not working with v_temp.

Former Member
0 Kudos

It will work with v_temp but I think v_temp is not a field on your sapscript form. I think you use the internal table field in the form.

If resolved, could you please reward and close the post.

Srinivas

Former Member
0 Kudos

In my form i gave &V_TEMP& But it is populating blank value whereas for &ITAB_REMITTANCE-INVOICE& it is populating 01000000.If possible mail me the reason so that i can close the issue by rewarding points to you.

Former Member
0 Kudos

Aren't you printing an internal table ITAB_REMITTANCE records? V_TEMP is not a field of an internal table, so in the loop, it probably doesn't know how to print it. I cannot really tell with just this information.