Skip to Content
author's profile photo Former Member
Former Member

To increment the value of a text symbol?

Hi SAP-Techies....

Need ur help in printng form.

(script-Rvorder01.)

To display Row1-item,matnr,price,qty,total.

Row2-Description,Bed,Ecs,Vat.

requirements:

1)To give/print index(serial no)to the records appearing in the main window.

I tried to define a text-symbol(&sapscript-counter_0&) and initialized it globally.placed it in text-element item_line ( as &sascript-counter_0(+)& )but... its not working.(its displaying same initailized value for all the records).

I hope I'm clear with my query.

Your valuable suggestions would be appriciated.

Regards...

Meraj.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Oct 22, 2006 at 07:31 PM

    Hi Meraj,

    What i suggest is instead of trying stunts in form ...try doing the same on driver program side..

    what you can do is in main window declare a variable for line item at the begin of line say for eg

    <b> &item_no& , &itab-matnr& , &itab-price&...</b>

    Now in driver program kep incrementing the value of item_no in side the loop

    loop at itab.

    item_no = item_no + 1.

    <i>* call ur form elements here..</i>

    endloop.

    This will definitely solve ur prob...

    let me know if u have any problem in implementing this...

    Enjoy SAP.

    Pankaj Singh

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 23, 2006 at 09:38 AM

    It works Check your spelling!

    santhosh

    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.