Skip to Content

In Smartform Page No printing issue

Dear experts,

I have smartforms for Delivery note. The input field is delivery note no i.e LIKP-VBELN as select-option. When I am taking printout for one delivery note then the Page No i.e Page - &SFSY-PAGE&(&SFSY-FORMPAGES&) is showing correctly. But when I am giving a range of delivery note, for example - 803000075 to 803000085 then the page no is showing

as in 803000075 as Page - 1(11).

But it should be Page - 1(1) and if in this delivery note has more line items and it contains 2nd page then the page 2 should be Page - 1(2).

in 803000076 as Page - 2(11).

But it should be Page - 1(1) and if in this delivery note has more line items and it contains 2nd page then the page 2 should be Page - 1(2).

Like this...........

Please reply me how can it possible. The clients requirement is like this.

Thanks,

Sanjeeb

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

6 Answers

  • Posted on Jun 29, 2012 at 08:13 AM

    You cannot force change of SFSY-FORMPAGES in a SmartForm run as you can for SFSY-PAGE using General Attributes tab of the page node. The SFSY-PAGE is used "real time" when the SFSF-FROMPAGES is used "at late".

    So the easiest solution would be to call the form one document at a time in a loop as some members have already suggested.

    With much more effort you could "play" with saving data during normal processing and "some" code in late windows, but I never had the time to do this kind of development.

    Regards,

    Raymond

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 29, 2012 at 06:33 AM

    Hi,

    How do you calling the Smartform.

    if you are using a drive program and you are passing delivery number to smartform , pass the single del. number in loop to SF.

    that will work fine...

    Thanks

    Deeps

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 29, 2012 at 06:33 AM

    hi sanjeeb,

    its a standard format to display total number of pages in bracket and the page number you are on before the bracket starts.

    I dont think it is possible to display in reverse.

    regards

    uday

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 29, 2012 at 07:05 AM

    Hi,

    Is it a custom one.

    Regards,

    Madhu.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 29, 2012 at 08:01 AM

    hi Sanjeeb,

    Since you are passing the range of delivery documents in the driver program to the smartform, it will work like this only.

    As deepnedra said you have to call the smartform for each time in a loop. Then you will get as you required.

    Regards,

    Venkat

    Add a comment
    10|10000 characters needed characters exceeded

    • Dear Sanjeeb

      There is one work around for this. May be you try this..

      1. Find out how many line items the form is printing in a page. Take one big delivery note and find it.

      2. Suppose it prints 10 line items per page... for example

      3. In your driver program, estimte the number of pages required by dividng it by 10... Pass that variable to the smart form interface variable.

      4. Use that variable instead of SY-FORMPAGES

      Regards,

      Venkat

  • Posted on Jun 29, 2012 at 08:50 AM

    Dear Sanjeeb

    There is one work around for this. May be you try this..

    1. Find out how many line items the form is printing in a page. Take one big delivery note and find it.

    2. Suppose it prints 10 line items per page... for example

    3. In smartform code estimte the number of pages required by dividng it by 10.(example)..

    4. Use that variable instead of SY-FORMPAGES

    Regards,

    Venkat

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.