Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Script - Line items

Former Member
0 Likes
789

Hi all ,

In my scenario for scripts i need to print only 5 line items in my main window.I am printing material , material description and its price. At present 25 line items are printing in main window.

Also i need to arrange then in MAT MAT-DES PRICE. How to arrane it , as lik in reports we will give

/20MAT /30MAT-DES /40PRICE, likwise in scripts how i need to describe.

Kindly suggest me.

Regards,

Rakesh.

6 REPLIES 6
Read only

Former Member
0 Likes
767

Hi Rakesh,

That cannot be possible to print using the Screen co-ordinates.

You got to use the tabs and blank lines to scroll through the screen

Thanks,

Babu Kilari

Read only

Former Member
0 Likes
767

Hi Rakesh..

You can do this..

1. For positioning at particular places you may use TAB's concept in SAP script.

2. To print only 5 records per main window.. you can call 'CONTROL_FORM' and give the command 'NEW_PAGE' as below.

LOOP AT itab.

lv_count = lv_count + 1.

CALL FUNCTION 'WRITE_FORM' " THis is used to print data in the form.

IF lv_count EQ 5.

CALL FUNCTION 'CONTROL_FORM' " start on new page

EXPORTING

command = 'NEW-PAGE'.

CLEAR lv_count.

ENDIF.

ENDLOOP.

Best Regards,

Pradeep.

Read only

0 Likes
767

Dear pradeep ,

I had followed ur idea and got it correctly, can u say me about the TAB's concept in brief or any related forum for that. If any help regarding the space tab pls.

Thanks and regards,

Rakesh.

Read only

0 Likes
767

Hi Rakesh..

While defining the Paragraph Formats for a SAP Script, we have 4 options for each paragraph format:

1. Stardard 2. Font 3. Tabs 4. Outline.

We have to define Tabs in the 3rd option. Each tab is indicated by ,,(double comma), first tab space is ,, second tab space is ,,,, etc.

Best Regards,

Pradeep.

Read only

0 Likes
767

Dear Pradeep ,

The problem here with the tab is, if the length of the Mat or Mat-des is long the Line of the Mat-des or Price is extending to next line sometimes.

So kindly say me if any other ideas.

In script is ther any other option to use line number /10Mat,, /20Mat-des like that.

Thanks and regards,

Rakesh.

Read only

Former Member
0 Likes
767

Hi Rakesh,

Try this

MAT ,,,,MAT-DES,,,, PRICE

,, these are tabs, they are to be defined befor according to ur need.

Thanks and regards

Suraj S Nair