How to add a line using JTextArea?
I want to add the message to a component from row start. which method can I use to add as line?
sirius
Thank you very much. Just now I try to append the control char in the end of str. It is successful. see the follow:
String CRLF = System.getProperty("line.separator")
//here the CRLF is control char.
while (true) {
JTextArea.append(Str + CRLF);
//next time the string can be appended from a new line. :)
//bow
Similar Messages
-
How to add new line item using BAPI BAPI_CONTRACT_CHANGE for contract-ME32K
HI Experts,
how to add new line item using BAPI: BAPI_CONTRACT_CHANGE for existing contract.
Requirement:
Already the contract having two line items using ME31K.
Custom program has to add new line items in existing contract.
Thanks,
SendilI got the solution:
We can do like this:
1. Get all details using details, BAPI_CONTRACT_GETDETAIL.
2. After getting results, append new line item. Then use your BAPI.
Check this posting program.. where this bapi is used, use the same coding technique.
IDOC_INPUT_PURCONTRACT_CHANGE -
How to add new line in message on my S890
My stock keyboard in Lenovo S890 doesn't have enter key, is this normal ? How to add new line ?
However this happened only in messages, while using whatsapp the enter key present.Hi,
the fact that your question is posted in Order Management section, does the move order automatically generated by OM?
nevertheless, i don't think you should (or allowed, in this case) to add a new line in transact move order. Transact move order only queries (not create records) the move order lines eligible to allocate and transact.
So, I don't see why you need to add a new line in transact move order.
You can, however, add a new line in the allocation of the lines, where for instance, you need to have half of the line allocated to one locator, and the other half to another locator
Thanks -
Cannot Add new line using BI IP query
Hi All,
We have created a planning application (BI IP Query) and used it in VC 7.1 model using BI Query Wizard service. Now we are able to customize existing rows ( existing rows are using flat file upload)... we can able to change the existing record values and save it.
But we are not able to add new line... its going to dump... We are able to add new line using WAD with same query but not in VC 7.1
This issue is same as below 2 threads...
Re: How to create new records through a VC form in an input-ready query??
Re: Cannot add new records through VC form when consuming IP write back query?
Thanks,
PradeePIts working now... SAP has given the fix (patch) for this issue when we deployed it, everything is working fine... I think they will release this fix (patch)soon...
Raise an Sap OSS message for solution -
How to add classification view using BAPI_MATERIAL_SAVEDATA
Hi,
Please any one let me know how to add classification view using BAPI_MATERIAL_SAVEDATA to the material master.
Thanks,
shekarWe use this bapi on a regular basis as well as classification of materials. We have success doing this in 2 steps. First step is to save the material using BAPI_MATERIAL_SAVEDATA, second step is to save classification using BAPI_OBJCL_CHANGE (this can be used for both create and change) Also look at Function Group CLBPA . there are several bapi's in that group dealing with object classification, including the one I mentioned..
-
hai Friends , i've some problems, i really don't know how to add new line when typing
ThanksSorry you feel that way. It is still a new platform and is improving with every update. Hopefully the next update will make things better for you then.
If you want to thank someone for their comment, do so by clicking the Thumbs Up icon.
If your issue is resolved, don't forget to click the Solution button on the resolution! -
How to draw a line using JSP?
Does anyone know how to draw a line using a JSP? Any help is much appreciated.
Regards,
Navin Pathuru.Graphics classes are useless in JSP files; you can only output HTML tags to the client browser.
You should be able to give just about any presentation look that you need with HTML and CSS. Have you played with styles? Here's a simple example that works in IE 5+ and Netscape 4.7:
<HTML>
<HEAD>
<STYLE>
.box {
border-style:solid;
border-color:black;
border-right-width: 1px;
border-top-width: 1px;
border-left-width: 1px;
border-bottom-width: 1px;
.line {
border-right-width: 1px;
border-top-width: 0px;
border-left-width: 0px;
border-bottom-width: 0px;
border-style: solid;
border-color: red;
width:1pt;
height:100%;
</STYLE>
</HEAD>
<BODY>
<TABLE CELLPADDING=1 CELLSPACING=0 WIDTH=100>
<TR><TD ALIGN=CENTER><SPAN CLASS="box">Field One</SPAN></TD></TR>
<TR HEIGHT=50><TD ALIGN=CENTER><SPAN CLASS="line">�</SPAN></TD></TR>
<TR><TD ALIGN=CENTER><SPAN CLASS="box">Field Two</SPAN></TD></TR>
<TR HEIGHT=50><TD ALIGN=CENTER WIDTH=50%><SPAN CLASS="line">�</SPAN></TD></TR>
<TR><TD ALIGN=CENTER><SPAN CLASS="box">Field Three</SPAN></TD></TR>
</TABLE>
</BODY>
</HTML>
Have fun! -
How to add new line item to PO using BAPI_PO_CREATE1
Hi,
I have a purchase order with 2 line items, now i want to add new line item to the same PO using BAPI_PO_CREATE1.
Here new line item should be created with reference PR line item.But this PR line item is Dynamic it get generated once the Sales order line item get changed.
Please let me know how can i pass the PR doc no, PR line item no as reference to create the new PO line item.
Thanks
BhuvanaHi,
I think you need to use BAPI: BAPI_PO_GETDETAIL, then BAPI:BAPI_PO_CHANGE.
BAPI_PO_CREATE1 equals ME21N, but adding new line item needs to be done in ME22N.
Cheers, -
How to add header line in a file from XI system using file adapters
Hi All,
I need to add header line (Column names) in a file coming from XI system.
I am using file adapters.
Thanks & Regards,
Gaurav MittalThe Receiver File Adapter is configured, using the following settings:
1) Choose File Content Conversion as the Message Protocol.
2) You give the addHeaderLine parameter as 1
3) For the fieldSeparator parameter you need to give field separator for both list and substructure (referring to the data type above). For eg: it may be a , (comma) for substructure in a comma separated file.
4) The endSeparator parameter needs to given for substructure only. For eg: it may be a nl (new line)
5) Give the file name, the directory and the Construction mode. Activate all the settings. Receiver File Adapter with F.C.C. is configured.
please visit the blog.
/people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
/people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
/people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2 -
How to add new line item to SO using BAPI_SALESORDER_CREATEFROMDAT2
Hi,
I have sales order A with 1 line item, now i want to add new line item with material x and quantity y to the existing sales order A
using BAPI_SALESORDER_CREATEFROMDAT2.
Line item no for new line item should be generated by SAP internally.Please let me know the mandatory parameters to be passed to the BAPI to fulfill the requirement.
DATA: order_header TYPE bapisdhd1,
order_inx TYPE bapisdhd1x,
partners TYPE TABLE OF bapiparnr,
wa_partners TYPE bapiparnr.
CLEAR: salesdocument,order_header_inx,wa_in, wa_inx.
REFRESH: item_in, item_inx.
salesdocument = wa_vbup-vbeln.
order_header_inx-updateflag = 'X'.
wa_in-itm_number = ' '.
wa_in-material = p_nmatnr.
wa_in-target_qty = gv_menge - gv_wemng.
APPEND wa_in TO item_in.
wa_inx-itm_number = ' '.
wa_inx-updateflag = 'U'.
wa_inx-target_qty = 'X'.
APPEND wa_inx TO item_inx.
CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'
EXPORTING
salesdocumentin = salesdocument
order_header_in = order_header
order_header_inx = order_inx
IMPORTING
salesdocument = salesdocument
TABLES
return = return
order_items_in = item_in
order_items_inx = item_inx
order_partners = partners.
Thanks
BhuvanaHello,
You can use FM: BAPI_SALESORDER_CHANGE with update indicator I (insert)
call function 'BAPI_SALESORDER_CHANGE'
exporting
salesdocument = l_vbeln
order_header_inx = l_wa_order_header_inx
simulation = l_simulation
tables
return = l_i_return
order_item_in = l_i_order_item
order_item_inx = l_i_order_item_inx
partners = l_i_partners
schedule_lines = l_i_schedule_lines
schedule_linesx = l_i_schedule_linesx
extensionin = l_i_extensionin.
Thanks
Subhankar -
How to add additional lines to the Order Form template?
I purchased and installed Acrobat Pro 9 because of its ability to create forms and found the Order Form template is just perfect for what I need, why reinvent the wheel, right? Except I found I can't figure out how to add additional object that duplicate what is already there. I highlighted an entire row and tried to just copy and paste but the past function put the copied objects at the bottom of the form in what looks like a group, all out of order. I tried looking in the online help for a possible key combination that would inset an additional row of objects but couldn't find any.
Also the form doesn't move down and create a new page keeping all the other elements in line, it moves to the bottom of the current page and stops. Thought the template was based on a table so I was going to insert additional rows thinking once it reached the bottom of the current page it would automatically break to a new page and continue, but it's not a table. So my question is, how can I add duplicate object that match the Order Form templates Item, Description, etc. objects? I've come to realize learning to use this product is not going to be as simple a proposition as I was lead to believe. O well, live and learn!
If someone can point me in the right direction, any help is greatly appreciated.
Tony RodriguezThanks, Barney! It's even easier than the solution I came to: copying and pasting into the field.
-
How to add ALV button using OO in module pool program using ALV grid
Hello Gurus!!!
Want some tips related how to add button using ALV Grid(OO).
I want to display the button for search, sort ....
Please suggest the step -by-step procedure for implementation of these button.
I am designing the code for transaction FB03. Header data has been displayed but want to display the line items.
Kindly suggest your answers.
Thanks,
SachinHi,
CLASS SELSCR_APPLICATION DEFINITION DEFERRED.
CLASS SELSCR_APPLICATION DEFINITION.
PUBLIC SECTION.
METHODS:
HANDLE_TOOLBAR
FOR EVENT TOOLBAR OF CL_GUI_ALV_GRID
IMPORTING E_OBJECT E_INTERACTIVE,
HANDLE_USER_COMMAND
FOR EVENT USER_COMMAND OF CL_GUI_ALV_GRID
IMPORTING E_UCOMM.
ENDCLASS. "SELSCR_APPLICATION DEFINITION
CLASS SELSCR_APPLICATION IMPLEMENTATION.
METHOD HANDLE_TOOLBAR.
DATA: LS_TOOLBAR TYPE STB_BUTTON.
append SAVE icon
CLEAR LS_TOOLBAR.
MOVE 'SAVE' TO LS_TOOLBAR-FUNCTION.
MOVE ICON_SYSTEM_SAVE TO LS_TOOLBAR-ICON.
MOVE 'Save' TO LS_TOOLBAR-QUICKINFO.
MOVE ' ' TO LS_TOOLBAR-DISABLED.
APPEND LS_TOOLBAR TO E_OBJECT->MT_TOOLBAR.
CLEAR LS_TOOLBAR.
ENDMETHOD. "handle_toolbar
METHOD HANDLE_USER_COMMAND.
CASE E_UCOMM.
WHEN 'SAVE'.
PERFORM UPDATE_FIELDS.
ENDCASE.
ENDMETHOD.
ENDCLASS. "SELSCR_APPLICATION IMPLEMENTATION
these lines should be after calling method SET_TABLE_FOR_FIRST_DISPLAY
SET HANDLER G_APPLICATION1->HANDLE_TOOLBAR FOR GRID1.
CALL METHOD grid1->set_toolbar_interactive.
rgds,
bharat. -
Oe_order_pub.process_Order - how to add a line to order
Hi,
I have an existing order that I need to add a line to. How do I do this? Does anyone have some example code?
Is it an update or a create?
Currently, I'm receiving the return code of: U and the message: FND
Any ideas are greatly appreciated.
Thanks
andyProcess Order API needs the environment variables initialized. Use FND_GLOBAL.apps_initialize before calling the api.
Also u need to initialize the parameters variables using G_MISS.... atleast those that u r using.
Provide the header id in the header_rec parameter
and provide the line details in the line_tbl parameter with action as create.
Hopefully it should succeed. Also there are several other queries where sample code for process order is given in this forum. Try searching for them and compare your code.
Regards,
Nitin S. Darji -
How to add new line in transact move order line
Hi,
i am able to update locaotr in Transact move order.
But i want to add two locators for the same line.
I tried to insert one more record in data base, but getting error unique index error.
so how can we add new line in transact move order line .
please help to slove this isse.
Thanks In Advance
Venu.Hi,
the fact that your question is posted in Order Management section, does the move order automatically generated by OM?
nevertheless, i don't think you should (or allowed, in this case) to add a new line in transact move order. Transact move order only queries (not create records) the move order lines eligible to allocate and transact.
So, I don't see why you need to add a new line in transact move order.
You can, however, add a new line in the allocation of the lines, where for instance, you need to have half of the line allocated to one locator, and the other half to another locator
Thanks -
How to add 100 line item in sales order at one time
Hello Guru's
My requirement is to add 100 line items in sales order at once.
what can be good approach to overcome this situation.Is there some kind of tool which can be useful?
Let me know your suggestions
Thanks a lot in AdvanceHi,
do configuration for Proposal Items tab - like -
then create sales order using with Propose items button - VA01 - then system will accept more than 50 line of materials at a time
Please Use BAPI -- creation of Sales order
Thanking you
Regards
Mahesh
Maybe you are looking for
-
How do I make the picture look grainy?
I want to go for an old film look. Specifically, a grainy effect if possible. How would I do that? Thanks for your help!
-
SSRS 2008 R2 - COUNTDISTINCT By Group
Hello, Thanks for the help in advance. I have some a results set that gives some numbers by country. The countries selected are controlled by a parameter which is 'Multi Select'. There could be one or many countries selected. My 'Detail' level dat
-
VS 2005 Design Environment - CR v10 CrystalReportsViewer Problem
I have a Design time VS 2005 web page which has a CrystalReportsViewer control which references a CrystalReportSource control which has a FileName property that points to an external file which is a Crystal .rpt file of a report created by CR v10 Dev
-
Issue with dynamic selection in SAP Query
Hi, I have a doubt in SAP QUERY i used that for creating Customer Master Report 2 fields i have added in dynamic selection from knvv table. if i try to excute based on the value in that 2 fields i'm not getting output records based on that pls help
-
Lookup Column Issue - List View Threshold exceeded
We use Sharepoint Foundation 2010 and we have 2 Lists in a site. Those are: 1. Customers List. 2. Sale Invoices List. Customers List has Title field as Unique & Indexed Column. Sale Invoices List has a lookup column (i.e., Customer) from the Customer