‎2009 Mar 27 9:30 AM
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.
‎2009 Mar 27 9:33 AM
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
‎2009 Mar 27 9:42 AM
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.
‎2009 Mar 27 11:07 AM
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.
‎2009 Mar 27 11:26 AM
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.
‎2009 Mar 27 12:38 PM
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.
‎2009 Mar 27 10:12 AM
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