‎2007 Jun 07 7:30 AM
Hi Folks,
1.Can anyone here please let me know how to use control_form so that I can restrict the no.of records per page in a script.
2.dynamically printing the vertical line in a page as per the no.of records.How to achieve this?
Thanks,
K.Kiran.
‎2007 Jun 07 7:31 AM
Hello,
CONTROL_FORM
Use CONTROL_FORM to pass SAPscript control statements to the form.
Function call:
CALL FUNCTION 'CONTROL_FORM'
EXPORTING COMMAND = ?...
EXCEPTIONS UNOPENED =
UNSTARTED =
Export parameters:
COMMAND
Enter the SAPscript statement you want to execute in ITF format, but without the statement paragraph attribute '/:'.
Exceptions:
UNOPENED
The current form function could not be executed, since the form output was no yet initialized using OPEN_FORM.
UNSTARTED
No form was opened yet.
Possible reasons:
The form processing was started using OPEN_FORM without specifying a form name, but no form was opened yet using START_FORM.
The last used form was closed using END_FORM, but no new form was opened using START_FORM.
The last filled page of the current form has no subsequent page. In this case, the system automatically terminates form printing after this page. You need no explicit END_FORM call.
In the current form, no page contains a main window, but a text element shall be output in the main window.
Long Text:
If it s Z text, then you can create it in SO10 Transaction code.
If it is related to a Standard transaction text, then you need to create the text in that transaction only. i mean, lets take an Sales Order example, if you want to create the text, then Goto --> Header -> Text or Goto --> Item --> Texts to create the Texts.
so follow one of the above way to create the texts
Regards,
Sree
Message was edited by:
sree ram
‎2007 Jun 07 7:31 AM
Hello,
CONTROL_FORM
Use CONTROL_FORM to pass SAPscript control statements to the form.
Function call:
CALL FUNCTION 'CONTROL_FORM'
EXPORTING COMMAND = ?...
EXCEPTIONS UNOPENED =
UNSTARTED =
Export parameters:
COMMAND
Enter the SAPscript statement you want to execute in ITF format, but without the statement paragraph attribute '/:'.
Exceptions:
UNOPENED
The current form function could not be executed, since the form output was no yet initialized using OPEN_FORM.
UNSTARTED
No form was opened yet.
Possible reasons:
The form processing was started using OPEN_FORM without specifying a form name, but no form was opened yet using START_FORM.
The last used form was closed using END_FORM, but no new form was opened using START_FORM.
The last filled page of the current form has no subsequent page. In this case, the system automatically terminates form printing after this page. You need no explicit END_FORM call.
In the current form, no page contains a main window, but a text element shall be output in the main window.
Long Text:
If it s Z text, then you can create it in SO10 Transaction code.
If it is related to a Standard transaction text, then you need to create the text in that transaction only. i mean, lets take an Sales Order example, if you want to create the text, then Goto --> Header -> Text or Goto --> Item --> Texts to create the Texts.
so follow one of the above way to create the texts
Regards,
Sree
Message was edited by:
sree ram
‎2007 Jun 07 7:55 AM
hi
good
1->
The function module CONTROL_FORM can be used to create SapScript control statements from within an ABAP program.
Example:
call function CONTROL_FORM
EXPORTING COMMAND = PROTECT.
call function WRITE_FORM.....................
call function CONTROL_FORM
EXPORTING COMMAND = ENDPROTECT.
http://help.sap.com/saphelp_nw04/helpdata/en/d6/0dba68494511d182b70000e829fbfe/content.htm
thanks
mrutyun^
‎2007 Jun 07 7:58 AM
Hi,
Based on the Window size it will print the reocrds, you can resize the main window to fit N number of recrods in it.
You can use the BOX command to print the Vertical lines, use a Dynamic variable for the Height and increase it by 1 for every time for a Line item
Regards
Sudheer