Multiple line printing in SAPscript
Hello Friends,
I have problem in printing multiple lines on sap script. I have created a window. and i have creted a text eliment 'MULTIPLE it. Under this Text eliment i have code as below.
/E MULTIPLE
AS & internalTABLE-FIELD&
I have fetched data into TABLE in the driver program.
I looped at the table and and called the WRITE_form FM specifying the Element and Window.
In the ourput i am seeng only the last entry in the internal table, not all the entries.
Please advice.
Thanks,
Mohammed.
Hi
I hope you passing the entire internal table instead of that you loop to the WRITE_FORM for example
LOOP AT itab INTO Wa.
WRITE_FORM
EXPORTING
ELEMENT = 'WA'.
ENDLOOP.
in the driver program
Regards
Pavan
Similar Messages
-
Script issue with multiple lines printing
Dear All,
I'm trying to print multiple lines of my internal table in a script.
But only the last line is being printed all the time in all the lines.
Attached is my code.
CLEAR GS_REGUP.
LOOP AT GT_REGUP INTO GS_REGUP.
* Start the Form
CALL FUNCTION 'START_FORM'
EXPORTING
ARCHIVE_INDEX = TOA_DARA
FORM = 'ZFORM' "T042E-ZFORN
LANGUAGE = SY-LANGU "T001-SPRAS
STARTPAGE = 'FIRST'
PROGRAM = 'ZPROG'.
* Net Amount
CLEAR GV_NETWR.
GV_NETWR = ( GS_REGUP-WRBTR - GS_REGUP-PSSKT ).
* Print the Content
CALL FUNCTION 'WRITE_FORM'
EXPORTING
ELEMENT = '525' "Header
FUNCTION = 'APPEND'
TYPE = 'BODY'
WINDOW = 'MAIN'.
* End the Form
CALL FUNCTION 'END_FORM'
IMPORTING
RESULT = ITCPP.
IF ITCPP-TDPAGES EQ 0. "Print via RDI
ITCPP-TDPAGES = 1.
ENDIF.
ENDLOOP.
Please let me know the flaw in it.
Regards,
Deepu.KDear All,
As i Mentioned in my earlier post, the same coding working fine in Quality server --> Printing multiple lines in script output.
But now, I have the same reqt. in another window.
So, I did the same coding.
But, this time it's printing the last line of the internal table in all the lines.
This is happening in Quality Server only.
The only difference between the previous internal table and this int. table is:
1. The first int. table content is printing in MAIN Window. ---> working fine
2. The second int. table content is printing in VARIABLE window. ---> NOT WORKING.
Can any one tell me what's the issue with this ?
Regards,
Deepu.K -
PDF Multiple Line Print Function
I'm hoping to create a form that allows for multiple lines, but that can also be extended beyond the visible box (if the box allows for 20 lines and they want 30 then they can). I can do this for viewing purposes, but cannot get the content to print in this manner. Can anybody tell me how to print that area as well as allow it to be saved? Thank you!
Hi
Just give a check to the existing condition records under output type WE03 in MN23, you might have missed that record for WE03 output type assignment for WE/3 parameters. To my knowledge your requirement is already available in Std SAP.
Best regards -
Certificate of Origin with multiple line items in sapscript - Urgent Please
Hi Everyone,
Can you please help me with this issue in SAPSCRIPT.
This is for billing document with multiple items with each line item with different country of origin.Right now the form is printing only one country of origin even if it has 3 line items each with different country.It's getting first line item's country and printing......but it should diplay each country with comma separated... But in debug it is showing all 3 different countries but in print it is printing only first country of origin.
I have given text element as &VBDKR-TEXT& in form.
In ABAP program I am getting country of origin like this,
CLEAR : V_T005,VBRP , MARC .
LOOP AT TVBDPR.
SELECT SINGLE * FROM VBRP
WHERE VBELN = VBDKR-VBELN AND POSNR = TVBDPR-POSNR .
begin of addiiton for ppr 13661
CLEAR MCH1.
SELECT SINGLE HERKL FROM MCH1 INTO MCH1-HERKL WHERE MATNR = VBRP-MATNR
AND CHARG = VBdpR-CHARG.
IF MCH1-HERKL NE ' '.
CLEAR MARC-HERKL.
MARC-HERKL = MCH1-HERKL.
ELSE.
NAME = VBDKR-VBELN.
PERFORM HEADER_TEXT1 USING 'VBBK' 'Z065' NAME SY-LANGU.
IF SY-SUBRC EQ 0.
READ TABLE TEXT_LINES INDEX 1 .
IF SY-SUBRC EQ 0.
VBDKR-TEXT = TEXT_LINES-TDLINE.
ENDIF.
ELSE.
SELECT SINGLE * FROM MARC WHERE MATNR = VBRP-MATNR
AND WERKS = VBRP-WERKS.
ENDIF. "ppr 13661
ENDIF. "PPR 13661 ADD
CLEAR *T005T.
data:SEP(3) VALUE ' , '.
DATA: BEGIN OF ITAB OCCURS 100,
LANDX LIKE VBDKR-TEXT,
END OF ITAB.
clear ITAB.
SELECT LANDX FROM T005T INTO table itab WHERE SPRAS = SY-LANGU AND
LAND1 = MARC-HERKL.
LOOP AT itab.
VBDKR-TEXT = ITAB-LANDX.
*MOVE VBDKR-TEXT TO ZLAND.
AT NEW LANDX.
concatenate ITAB-LANDX sep into VBDKR-TEXT.
ENDAT.
modify ITAB.
VBDKR-TEXT = ITAB-LANDX.
ENDLOOP.
endloop.
Thanks in advance.Hi
It depends on the size of the main in the page, you can set the high of main in order to print max a certain number of rows (so items).
In this way you don't need the abap control, but the system automatically will print the first page with 15 row and the next with 25 -
Multiple line print in one document
Dear all,
I have created 1 GRN document with 3 line items..i have checked the collective slip check box also.
Now when i am trying to view the print in MB90...
It is showing the same material document with 3 line items, also when i am trying to take print, it is giving me in different print pages.
I want all line items to be printed in one page.
Do i have to take help of ABaper to ammend the smart form or it can be cotrolled via configuration.
Kindly help.
Regards
UtsavHi
Just give a check to the existing condition records under output type WE03 in MN23, you might have missed that record for WE03 output type assignment for WE/3 parameters. To my knowledge your requirement is already available in Std SAP.
Best regards -
Problem in printing multiple line items
Hi,
i designed a SAPSCRIPT FORM.When i execute the t-code MB01 by giving PO which has multiple line items , output type is invisible.
But when i iexecute the t-code MB01 by giving PO which has single item , output type is visible and form is printing.
Do i need to copy the print program and make changes in there or if i change elements in the form will that helps in printing multiple line items.
thanks.HI,
wat i understand is u r trying to loop at a variable window .but tht is not suggestable.
write a loop in program lines. read the values in to different variables and the try printing them as text elements that will solve the problem.
or else in other way use a template and that can also solve the problem. -
Printing of return delivery of multiple line items
Dear All,
I have a requirment to print return delivery material document with multiple line items of a PO. I tried with collectve slip in MIGO. but still line item will come in different pages. Message details are maintained for all line items. Print preview is seen from MB90. please suggest me to achieve this requirement.
Regards
MSRHi MSR,
Contact ur ABAPer and ask him to adjust the Sapscript Form / SMART Form.
Regards
Ramesh Ch -
Report Title Displaying in Multiple Lines on PDF Format when i Print in PDF
Report Title Displaying in Multiple Lines on PDF Format when i tried to print in PDF Format, is there any limit for Report Title Characters
Displaying Like -
LRDP
Open
Label
Paradigm
Forecast
Report
Any Info Appreciated
~SrixGot It .. Just need to chnage the Width Parameter.......!
-
How can I print multiple lines in my All Day Events (month view)?
Does anyone know if there is anyway to print multiple lines for all day events? When I print my iCal from a monthly view, my all day events (positioned as a header) only print the words that can fit into the daily box, instead of going into multiple lines and displaying the whole text.
For example:
Los Angeles County Fair, Don't forget to pick up John and Jen
will print as:
Los Angeles County Fa......Jen
Anyone have any idea how to solve this?
P.S. I have already tried meddling with fonts and page sizes to no avail.Welcome to Apple Discussions!
So far as I know, an allday event only ever shows a single line of text regardless of view.
Consequently, how much you can see is governed by the width of the day (or days) in that view. -
I have to design forms that are fillable electronically and by hand. The problem that I am running in to is supplying multiple lines that will print for people that are hand filling the form. I have tried to add an image of lines behind the text field, but these would get in the way when the form was filled in electronically.
I am using LiveCycle Designer ES2 v. 9.0 on a Windows machine.
Thanks.Ok.
Take a textfield
Go to Object | Allow multiple lines
Go to Layout | Height | activate "Expand to fit"
Go to the initialize-Event or readyform (You have to change the _ for your textfield) this.rawValue = "___________\n___________\n___________";
Go to the enter-Event this.rawValue = null;
Go to the exit-Event
if(this.rawValue == null)
this.rawValue = "___________\n___________\n___________";
}else{}
With this solution you can simulate the same as pattern see above.
I hope this is helpfull for you,
Mandy -
Transaction MM60 printing multiple lines for the same information
Transaction MM60 is printing the same information multiple times, meaning that the same materail is printing multiple times with the exact same information. Any ideas why?
It IS showing duplicate lines. The columns that I'm showing are:
Material
Plant
Val. Type
Material Description
Last Change
MTyp
Matl Group
Unit of measure
Purchasing group
ABC indicator
MRPType
Valuation Class
Price Control Indicator
Price
Currency
Price Unit
Created by
Every single field is identical and each material contains exactly eight rows of identical information. The interesting thing is that if I actually enter a material number, only one line shows (which is correct.) However, if I leave the material number blank and enter the material type, that's when we get multiple lines.
Any other ideas? -
Printing PDFs with Multiple lines enabled
Hi, I need some help with Designer. I have no clue how to really use it, I've been playing with it for a week, but some things I can't figure out.
I have a text field that fits about 1 line of text on it. I enabled multiple lines in the field, because people are going to be typing a lot. However, when I print it, only 1 of the lines shows up. Is there any way that I can fix the settings so that the box expands as the text is typed, and that if it can expand, the entire page shrinks to keep it to the same amount of page numbers instead of bumping everything down the page? If someone out there knows, please help!!!
Thanks!!!Hi,
Maybe this can help:
1 - Save your form as a Dynamic Form
2 - Place a subform with Flow content
3 - Place a text box with multiple line in the sub form. Make it expand to fit (layout tab) and Data Format XHTML (binding tab)
4 - Put the contents in the field
5- Click outside the field and print it.
regards -
Print fields with multiple lines
We set the field for multiple lines in a pdf form. When
entering info, a scroll bar appears so they can enter multiple
lines. However, the mutiple lines don't print. If we increase the
field height, the scroll displays when info is typed beyond the
height and we cannot turn off the scroll.
Also, the field is in the middle of a form and the rest of
the form needs to adjust to accommodate the number of lines entered
in the expandable field. How??I'm assuming you are authoring this pdf in Acrobat. If so,
double-click the text box field to open it's properties. In the
OPTIONS tab, select the "Multi-line" check box, but DESELECT the
"Scroll Long Text" check box. This will prevent folks from entering
more text than the box will allow (has space for). Therefore,
nothing will be hidden when the page is printed. If you DO want
folks to be able to put as much as they want in that box but are
limited in space on the page, printing will not be an option as the
printer will not realize text is hidden in that box. Hope this
helps! -
Printing Text with multiple Lines
Hello,
i want to print a list and in that is text with multiple lines.
In the PrintPreview and in the Printout i get only one line.
How is the best way to do this?
Thank you,
Markus
Private Function Print_Remarks_Control_Get(ByVal pstrText As String) As TextBox
Dim TextBox_Out As New TextBox
With TextBox_Out
.Text = pstrText
.HorizontalAlignment = Xaml.HorizontalAlignment.Left
.VerticalAlignment = Xaml.VerticalAlignment.Top
.FontSize = 16
.Margin = New Thickness(15)
.AcceptsReturn = True
.MinWidth = 800
.MinHeight = 600
End With
Return TextBox_Out
End Function
Sub PrintPageList_Prepare()
Dim i As Integer
Dim objVM As clsTextVM
Dim lstText_List As ObservableCollection(Of clsText)
Dim ctrPrint_StackPanel As StackPanel
Dim ctrPrint_Title As TextBox
Dim ctrPrint_Description As TextBox
Dim ctrPrint_Remarks As TextBox
Dim objText As clsText
mPrintPageList.Clear()
objVM = DirectCast(Me.DataContext, clsTextVM)
lstText_List = objVM.CustomClass_List
ctrPrint_StackPanel = Print_StackPanel_Get()
For i = 0 To lstText_List.Count - 1
objText = lstText_List.Item(i)
If objText.Name.Length > 0 Then
ctrPrint_Title = Print_Title_Control_Get(objText.Name)
ctrPrint_StackPanel.Children.Add(ctrPrint_Title)
End If
If objText.Description.Length > 0 Then
ctrPrint_Description = Print_Description_Control_Get(objText.Description)
ctrPrint_StackPanel.Children.Add(ctrPrint_Description)
End If
If objText.Remarks.Length > 0 Then
ctrPrint_Remarks = Print_Description_Control_Get(objText.Remarks)
ctrPrint_StackPanel.Children.Add(ctrPrint_Remarks)
End If
Next
mPrintPageList.Add(ctrPrint_StackPanel)
End Sub
Private Sub OnGetPreviewPage(sender As Object, e As GetPreviewPageEventArgs)
' Das ist die MessageBox
' Windows.UI.Popups.MessageDialog()
PrintPageList_Prepare()
mPrintDok.SetPreviewPage(e.PageNumber, Me.mPrintPageList(e.PageNumber - 1))
End SubYes, not only RichEditBox but also RichTextBlock can also do this. Besides TextBox also have TextWrapping functionality.
-James
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Multiple lines in text field will not print
I have created several text fields in a form that was created to be filled in and then printed. The text fields allow for multiple lines but when they are printed they only print the text that has been displayed. Is there any way to get Adobe to print all of the text in the field? Thanks! Teri
I am also having trouble with this. I am using LiveCycle Designer that came packaged with Adobe Pro. I have a form that has several one-line text fileds and checkboxes at the top and then the last field is a text field for comments. I need this text box to expand to a second page, if necessary. I am VERY new at this and I find the help features with the applicaiton hard to understand. I have the field set to "expand to fit" and I have checked the "allow multiple lines" and saved as dynamic form. It allows me to type as much as I want but it doesn't print. Just displays a + sign at the bottom. I looked at the sample purchase order form and that didn't help me. Can someone give me simple clear instruction on what to do?
Nay hekp would be ver much appreciated.
Thanks
Kathy
Maybe you are looking for
-
hello all, i have created a program to create inforecord using BDC. I do not pass the plant as I do not want it. but finally when the inforecord is created, it is created with plant. table EINE has plant also. do you have any guess as to how this is
-
Page breaks and 'Fit Page in Window' option
This may seem a stupid question but indulge me: when I add a page break InDesign is only showing me the very top of the text frame on the page the cursor has moved to. How do I get InDesign to honour the 'Fit Page to Window' option when I add page br
-
Employee Broadband contact details.
I was employed by BT and receiving the free employee broadband package. I am no longer receiving this and I have been billed incorrectly. I have contacted the BT billing team but they have told me to contact the Employee Broadband team. Having left t
-
My Keynote 6.0 chrashes repeatedly when working with themes.
After upgrading to Maverick and Keynote 6.0, I've a lot of trouble. Keynote chrashes often when I try to change themes, and it doesn't seem to possible to change themes in all slides in a presentation at once. All in all it seemes to be a mess! Anyon
-
N95 31.0.017 Firmware, another bug
After updating my N95 RM-159 to 31.0.017 Firware, I noticed that when recording a movie, after 5 seconds it start to make breaks and the red ligth flash also. did anyone have this bug? Solved! Go to Solution.