Many lines of codes into single line
I want to execute t-sql-query from VB.NET program. I wrote and successfully executed sql query in MANAGMENT-STUDIO-EXPRESS.. But the problem is that. The codes are of 10 lines. And i need single line code to paste in vb.net.. How is that possible
In qbasic i used to use COLON ":" to merge lines.
Is merging lines possible in SQL SERVER. If yes how?? Please help
Hi,
Like Rsingh, suggested create Stored Procedure -
http://support.microsoft.com/kb/309486
To combine multi line code -
http://msdn.microsoft.com/en-us/library/ba9sxbw4.aspx
http://stackoverflow.com/questions/461714/vb-net-single-statement-across-multiple-lines
http://blogs.msdn.com/b/bethmassi/archive/2007/10/23/avoid-underscores-in-your-multiline-strings.aspx
sathya - www.allaboutmssql.com ** Mark as answered if my post solved your problem and Vote as helpful if my post was useful **.
Similar Messages
-
Add Internal Table Multiple Lines into Single Line
Hi Gurus,
Before post this thread, i hav searched SDN but i could not find the exact solution.
I hav an internal table, i want to add the records of this internal table into single line (string variable), separated by tab operator.
can any one give me suggestions to solve this?
Thanks
MeherHi,
Program should be some thing like below:
REPORT ZTEST36.
*-- test program to concatenate internal table to string.
DATA:STRING TYPE STRING.
TYPES:BEGIN OF TY_ITAB,
WEEK(15),
END OF TY_ITAB.
DATA:GT_ITAB TYPE STANDARD TABLE OF TY_ITAB WITH HEADER LINE.
CLEAR GT_ITAB.
GT_ITAB-WEEK = 'SUNDAY'.
APPEND GT_ITAB.
CLEAR GT_ITAB.
GT_ITAB-WEEK = 'MONDAY'.
APPEND GT_ITAB.
CLEAR GT_ITAB.
GT_ITAB-WEEK = 'TUESDAY'.
APPEND GT_ITAB.
CLEAR GT_ITAB.
GT_ITAB-WEEK = 'WEDNESDAY'.
APPEND GT_ITAB.
CLEAR GT_ITAB.
GT_ITAB-WEEK = 'THURSDAY'.
APPEND GT_ITAB.
CLEAR GT_ITAB.
GT_ITAB-WEEK = 'FRIDAY'.
APPEND GT_ITAB.
CLEAR GT_ITAB.
GT_ITAB-WEEK = 'SATURDAY'.
APPEND GT_ITAB.
CLEAR:GT_ITAB, STRING.
LOOP AT GT_ITAB.
CONCATENATE STRING '/' GT_ITAB INTO STRING.
ENDLOOP.
WRITE: / STRING.
Regards
Ramesh.
Moderator message - Ramesh - please use code tags
Edited by: Rob Burbank on Jul 3, 2009 12:26 PM -
Posting multiple tax codes for single line order in MIRO
Hi all ,
I have received a request from my business colleagues to investigate the possibility of posting multiple tax codes against a single line order in MIRO.
This apparently can be a possibility for such things as training.
I have searched a number of forums and tried and tested different ways in my develoment client but am unable to find a solution. admittedly I am no real expert in this area and would be gratefu;lt of any ideas / assistance / etc..HI, There is a possible solution for this scenario.
1. Create 2 tax codes for VAT and SERVICE Tax at 12.5% and 12.36% respectively
2. While posting the Invoice (TRX - FB60) following steps need to be followed.
3. Amount has to be split into two line items
4. Ist Line Item should have the Vat amount + 70000/- and select relevant tax code that was
created for 12.5%
5. Similarly 2nd Line Item should have Service Tax amount + 30000/- and select relevant tax code that
was created for 12.36%.
Hope this would meet your requirement. If the solution is okay, kindly indicate the points.
Regards
K.Sanjai Babu -
How to configure Two Tax Codes for single line item in work order
Hi All,
Please do Review the below scenario and tell me how to solve it.
A) Certified Work Done Gross Bill Amt 100,000
Total Work Done Value 100,000
Less : Labour & Like Charges @ 30 % on Rs 100,000 = 30,000
Vat applicable Amount = 70,000
Add VAT @12.5% Chargeable on Taxable Turnover of Rs. 70,000.00 = 8750
Total Bill Value = 108750
Service Tax @ 12.36% on 33% Value of Rs. 100000 = 4079
G.Bill Amt = 112829
Total Amt Due for Payment = 112829HI, There is a possible solution for this scenario.
1. Create 2 tax codes for VAT and SERVICE Tax at 12.5% and 12.36% respectively
2. While posting the Invoice (TRX - FB60) following steps need to be followed.
3. Amount has to be split into two line items
4. Ist Line Item should have the Vat amount + 70000/- and select relevant tax code that was
created for 12.5%
5. Similarly 2nd Line Item should have Service Tax amount + 30000/- and select relevant tax code that
was created for 12.36%.
Hope this would meet your requirement. If the solution is okay, kindly indicate the points.
Regards
K.Sanjai Babu -
Download created XML File in batch mode // Parse XML file into single lines
Hello!
I upload a CSV file and based on that CSV file I create an XML "object". First I uploaded and downloaded it via gui frontendclass, but as it has to be run in a batch in the night I need to upload and download the data via OPEN DATASET.
The import and transformation of the CSV file works fine, also the transfer into an itab with the same structure as a CSV line is ok. I also create the XML file, which could be downloaded easily with gui-download but it is not permittet.
Import of data: I scan the folder and get the filenames into a itab, I loop over that itab and read the single files like this:
OPEN DATASET ls_convert_batch FOR INPUT IN TEXT MODE ENCODING DEFAULT.
CLEAR tab.
IF sy-subrc = 0.
DO.
READ DATASET ls_convert_batch INTO line.
IF sy-subrc <> 0.
EXIT.
ELSE.
CLEAR tmptab.
SPLIT line AT ';' INTO tmptab-product
tmptab-contract
tmptab-extagent.
APPEND tmptab TO tab.
ENDIF.
ENDDO.
ENDIF.
The XML file has a strucutre like
<file>
- <file formant_no="1.1" format_date="02.10.2003">
<status>V</status>
<number>001001025</numbner>
<name>Schmeisser,Christof</name>
- <details>
- <detail>
<contract>00000003494</contract>
<name>Schmeisser, Christof</name>
<invoice_no>000000003840</invoice_no>
<due_date>20100601</due_date>
<amount>140,00</amount>
</detail>
- <detail>
<contract>00000003495</contract>
<name>Schmeisser, Christof</name>
<invoice_no>000000003841</invoice_no>
<due_date>20100601</due_date>
<amount>130,00</amount>
</detail>
- </details>
<elements>2</elements>
<amount_overall>270</amount_overall>
</file>
At the moment I download it like this:
CALL METHOD cl_gui_frontend_services=>gui_download
EXPORTING
bin_filesize = l_xml_size
filename = filename
filetype = 'BIN'
* CONFIRM_OVERWRITE = '0'
CHANGING
data_tab = l_xml_table
EXCEPTIONS
OTHERS = 24.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ELSEIF sy-subrc = 0.
lv_create_counter = lv_create_counter + 1.
ENDIF.
But I need to download it via OPEN TRANSFER CLOSE Dataset as it has to run in batch mode.
Anyone has an idea? I am really desperate here. One idea would be to parse the single lines into a string and then create the XML file line by line as text and save it with ending XML, should work. But I don't know how!
Thank you very much in advance,
kind regards from Tallinn, Estonia,
Christof!
Edited by: Christof Schmeisser on Nov 25, 2010 7:51 PM
I edited the heading, would be too general and missleading!Tipos Pools
TYPE-POOLS: ixml.
CLASS cl_ixml DEFINITION LOAD.
TYPES: BEGIN OF xml_node_type,
node TYPE char50,
vlnode TYPE string,
END OF xml_node_type,
BEGIN OF xml_line_type,
data(256) TYPE x,
END OF xml_line_type.
Tabelas Internas
DATA: ti_xml_node TYPE TABLE OF xml_node_type.
Variáveis TYPE REF
*Type REF para utilizar no XML
DATA: ixml_type TYPE REF TO if_ixml,
streamfactory_type TYPE REF TO if_ixml_stream_factory,
ostream_type TYPE REF TO if_ixml_ostream,
istream_type TYPE REF TO if_ixml_istream,
parser_type TYPE REF TO if_ixml_parser,
renderer_type TYPE REF TO if_ixml_renderer,
document_type TYPE REF TO if_ixml_document,
encoding_type TYPE REF TO if_ixml_encoding,
node_type TYPE REF TO if_ixml_node,
element_dtrans_type TYPE REF TO if_ixml_element,
element_xml_in_type TYPE REF TO if_ixml_element,
element_roteiros_type TYPE REF TO if_ixml_element,
element_roteiro_type TYPE REF TO if_ixml_element,
element_vias_type TYPE REF TO if_ixml_element,
element_via_type TYPE REF TO if_ixml_element,
element_dummy_type TYPE REF TO if_ixml_element,
gw_xml_node TYPE TABLE OF xml_node_type,
gw_xml_node_ret TYPE TABLE OF xml_node_type,
gw_xml_node_err TYPE TABLE OF xml_node_type,
gw_xml_node_xml TYPE TABLE OF xml_node_type,
gw_xml_table TYPE TABLE OF xml_line_type,
gw_xml_table2 TYPE TABLE OF xml_line_type,
gs_xml_node TYPE xml_node_type, "WA para leitura do xml
gs_xml_node_ret TYPE xml_node_type, "WA para leitura do xml retorno
gs_xml_node_err TYPE xml_node_type, "WA para leitura do xml erro
gs_xml_node_xml TYPE xml_node_type, "WA para leitura do xml info sucesso
gs_xml_table2 TYPE xml_line_type. "WA para importar xml
Variáveis do Programa
DATA: l_value TYPE string,
l_rc TYPE i,
l_xml_size TYPE i,
cod_cartaorepom TYPE char20 VALUE '123456789',
v_caminho_exp TYPE string VALUE 'C:TEMP',
v_salvaarquivo TYPE string,
v_nomearquivo TYPE string,
w_nodetext TYPE string,
v_roteiros TYPE string,
v_roteiro TYPE string,
v_roteiro_codigo TYPE string,
v_percurso_codigo TYPE string,
v_percurso_descricao TYPE string,
v_cidade_origem TYPE string,
v_estado_origem TYPE string,
v_cidade_destino TYPE string,
v_estado_destino TYPE string,
v_transporte_tipo TYPE string,
v_cartao_taxa TYPE string,
v_cobra_taxa TYPE string.
Constants
CONSTANTS: cc_39 TYPE string VALUE '39', " Numero 39.
cc_dt_trans TYPE string VALUE 'data_transfer'," document_type(name)
cc_metodo_cod TYPE string VALUE 'metodo_codigo'," document_type(name)
cc_xml_in TYPE string VALUE 'xml_in'," document_type(name)
cc_ct_tx_ativ TYPE string VALUE 'cartao_taxa_ativacao'," document_type(name)
cc_cartao TYPE string VALUE 'cartao', " Parâmetro Perform.
cc_xml TYPE string VALUE '.XML'," extenção
cc_bin TYPE char10 VALUE 'BIN'." filetype
START-OF-SELECTION.
PERFORM yf_inicia_criacao_xml USING cc_39.
element_roteiro_type = document_type->create_simple_element(
name = cc_ct_tx_ativ
parent = element_xml_in_type ).
PERFORM yf_dummy_roteiro USING cod_cartaorepom cc_cartao.
PERFORM yf_finaliza_xml.
PERFORM yf_exporta_xml USING v_caminho_exp.
PERFORM yf_convert_xml_to_itab TABLES gw_xml_node_ret
USING v_salvaarquivo.
END-OF-SELECTION.
*& Form yf_inicia_criacao_xml
text
-->VALUE(P_0783) text
FORM yf_inicia_criacao_xml USING value(p_0783).
DATA: s_encoding_type TYPE string VALUE 'ISO-8859-1'.
Cria o ixml factory
ixml_type = cl_ixml=>create( ).
*Cria o objeto com modelo
document_type = ixml_type->create_document( ).
*Cria o cabeçalho encoding="iso-8859-1"
encoding_type = ixml_type->create_encoding( byte_order = 0
character_set = s_encoding_type ).
*Cria o root "DATA_TRANSFER"
element_dtrans_type = document_type->create_simple_element(
name = cc_dt_trans
parent = document_type ).
*Cria o node "METODO_CODIGO" e preenche com um valor passado no L_VALUE
l_value = p_0783.
CONDENSE l_value.
element_dummy_type = document_type->create_simple_element(
name = cc_metodo_cod
value = l_value
parent = element_dtrans_type ).
*Cria o node "XML_IN"
element_xml_in_type = document_type->create_simple_element(
name = cc_xml_in
parent = element_dtrans_type ).
ENDFORM. " yf_inicia_criacao_xml
*& Form yf_dummy_roteiro
text
-->VALUE(P_0996) text
-->VALUE(P_0997) text
FORM yf_dummy_roteiro USING value(p_0996)
value(p_0997).
l_value = p_0996.
CONDENSE l_value.
element_dummy_type = document_type->create_simple_element(
name = p_0997
value = l_value
parent = element_roteiro_type ).
ENDFORM. " yf_dummy_roteiro
*& Form yf_finaliza_xml
text
FORM yf_finaliza_xml.
*Cria o stream factory
streamfactory_type = ixml_type->create_stream_factory( ).
*Conecta a internal table de XML com o stream factory
ostream_type = streamfactory_type->create_ostream_itable( table = gw_xml_table ).
CALL METHOD ostream_type->set_encoding
EXPORTING
encoding = encoding_type.
*Rendering the document
renderer_type = ixml_type->create_renderer( ostream = ostream_type
document = document_type ).
l_rc = renderer_type->render( ).
*Salva o documento XML
l_xml_size = ostream_type->get_num_written_raw( ).
ENDFORM. " yf_finaliza_xml
*& Form yf_exporta_xml
text
-->VALUE(P_0783) text
FORM yf_exporta_xml USING value(p_0783).
CONCATENATE cod_cartaorepom
sy-datum
sy-uzeit
cc_xml
INTO v_nomearquivo.
CONCATENATE p_0783
v_nomearquivo
INTO v_salvaarquivo.
TRANSLATE v_nomearquivo TO UPPER CASE.
*Exporta o XML
CALL METHOD cl_gui_frontend_services=>gui_download
EXPORTING
bin_filesize = l_xml_size
filename = v_salvaarquivo
filetype = cc_bin
CHANGING
data_tab = gw_xml_table
EXCEPTIONS
OTHERS = 24.
IF sy-subrc = 0.
PERFORM yf_sapgui_progress_indicator USING cc_msg_xml_ok.
ELSE.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ENDFORM. " yf_exporta_xml
*& Form yf_convert_xml_to_itab
text
-->P_GW_XML_NODE_RET text
-->P_FILENAME text
FORM yf_convert_xml_to_itab TABLES p_gw_xml_node_ret LIKE gw_xml_node
USING p_filename.
DATA l_count.
ixml_type = cl_ixml=>create( ).
Now Create Stream Factory
streamfactory_type = ixml_type->create_stream_factory( ).
CALL METHOD cl_gui_frontend_services=>gui_upload
EXPORTING
filename = p_filename
filetype = cc_bin
IMPORTING
filelength = l_xml_size
CHANGING
data_tab = gw_xml_table2
EXCEPTIONS
OTHERS = 19.
IF sy-subrc = 0.
istream_type = streamfactory_type->create_istream_itable( table = gw_xml_table2
size = l_xml_size ).
document_type = ixml_type->create_document( ).
parser_type = ixml_type->create_parser( stream_factory = streamfactory_type
istream = istream_type
document = document_type ).
IF parser_type->parse( ) NE 0.
IF parser_type->num_errors( ) NE 0.
l_count = parser_type->num_errors( ).
ENDIF.
ENDIF.
CALL METHOD istream_type->close( ).
CLEAR istream_type.
node_type = document_type.
PERFORM yf_get_data USING node_type.
p_gw_xml_node_ret[] = gw_xml_node[].
CLEAR gw_xml_node[].
ENDIF.
ENDFORM. " yf_convert_xml_to_itab
*& Form yf_get_data
text
-->VALUE(X_NODE) text
FORM yf_get_data USING value(x_node) TYPE REF TO if_ixml_node.
DATA: indent TYPE i.
DATA: ptext TYPE REF TO if_ixml_text.
DATA: string TYPE string.
DATA: temp_string(100).
CASE x_node->get_type( ).
WHEN if_ixml_node=>co_node_element.
string = x_node->get_name( ).
w_nodetext = string.
CLEAR string.
string = x_node->get_value( ).
IF NOT w_nodetext IS INITIAL OR
NOT string IS INITIAL.
gs_xml_node-node = w_nodetext.
gs_xml_node-vlnode = string.
IF NOT gs_xml_node-vlnode IS INITIAL.
APPEND gs_xml_node TO gw_xml_node.
CLEAR gs_xml_node.
ENDIF.
ENDIF.
ENDCASE.
Get the next child
x_node = x_node->get_first_child( ).
Recurse
WHILE NOT x_node IS INITIAL.
PERFORM yf_get_data USING x_node.
x_node = x_node->get_next( ).
ENDWHILE.
ENDFORM. "yf_get_data -
Converting a line of code into something recognized by Animate
I'm trying to embed a LinkedIn profile on my Stage. However, due to the Same Origin policy for browsers, this has been difficult to achieve. However, after researching it, I've found what I believe to be the code that works. The only thing is that I'm having trouble formatting it correctly so that it works in Animate. The line of code is
<script type="IN/FullMemberProfile" data-id="Hv3V1lv4SQ" data-firstName="Eugene" data-lastName="O'Neill"></script>
I got it from this page, and it works there, so I figured it would be my best shot
JavaScript API Developer Console
(Note that it's the example for "Full Profile" in the "Member" section.)
I'm trying to get it to load into a Symbol called LIProfileContainer, so I tried
var liprofile = $("<iframe/>");
sym.$("LIProfileContainer").append(liprofile);
liprofile.attr('type','IN/FullMemberProfile');
liprofile.attr('width','640');
liprofile.attr('height','360');
liprofile.attr('data-firstName','Eugene');
liprofile.attr('data-lastName','ONeill');
liprofile.attr('data-id','Hv3V1lv4SQ');
liprofile.attr('frameborder','1');
liprofile.attr('allowfullscreen','0');
However, that doesn't work. (Since I'm primarily a designer, I apologize for my poor coding skills.) Any help getting this formatted would be appreciated.
Thanks!Looking at your link API, there is a button: "give me the Code". It returns:
It means you have to load a js file ("in.js") and give your api_key. -
Multiple invoice line items posted as single line item in FI
Dear Gurus,
My client has a specific requirement.
We are required to maintain a rebate condition at item level. In the invoice the values of rebate conditons are appearing as per the line item. This rebate condition has been maintained as statistical and accrual key has been assigend to it. Respective configuration has been done in VKOA. Accural check box has been activated for the rebate condition type.
Now when we are posting the invoice to FI, client requires that instead of line item wise posting of accrual amount it should post entire accrual amount in the single line item. In other words it is like posting of header amount directly, without any line item wise splitting.
Please help me ASAP.
Thanks in advance.
Regards
Piyush RanpuraDear Friends,
I am thankful for your replies. But probably I was not able to put the issue is the proper manner. Let us consider this example -
Mat. codes - M1, M2, M3 & M4 Rebate cond. - ABCD Accrual key - ABC GL - 12345678
In the invoice, rebate values are determined as follows for the each line item -
For Line item 10, Material M1
ZSHA - 100
For Line item 20, Material M2
ZSHA - 125
For Line item 30, Material M3
ZSHA - 100
For Line item 40, Material M4
ZSHA - 75
While the invoice is released for accounting follwing entries are there
xx 1 xx
xx 2 xx
xx 3 100 12345678
xx 4 125 12345678
xx 5 100 12345678
xx 6 75 12345678
xx 7 xx
xx 8 xx
But my requirement is
xx 1 xx
xx 2 xx
xx 3 400 12345678
xx 4 xx
xx 5 xx
How it could be done?
Thanks & Regards
Piyush Ranpura
Edited by: Piyush Ranpura on Sep 1, 2010 9:10 AM -
Multiple lines of data to single line
Hi All,
Need help on getting data in single line out of multiple lines from bex query based on condition.
Reporting using Crystal 2011 SP06
Please find the attachment.
Thanks
SanthoshHi Santosh,
Here's what you need to do:
1) Create a formula with this code:
If {Confirmed_Qty} > 0 then {Conf_Delivery_Date}
2) Go to Insert Summart > Choose the above formula field as the field to summarize > Choose 'Max' as the sum function > Under Summary Location chose Group section
3) You would also need to insert a Max function on the Confirmed Qty field and place the summary on the Group Section like all the other summaries.
-Abhilash -
Converting strings with line feeds to a single line with identifying chars
Hi, I dont want to re invent the wheel if there is something out there that does this already. I want to take some string with multiple
line feeds and convert it to a single line. For example:
"I want this string
to be changed to
a single line"
to this...
"I want this string\r\n to be changed tor\\n a single line"vsekvsek wrote:
OK, Hope this will make better sense. So right now a I have a routine that loads files like below:
"TEST\r\n TEST1\R\n TEST2"It's not clear to me at this point what you mean by that string.
After the initial word TEST, does that string have a backslash character followed by an r followed by another backslash followed by an n? Or does it have a carriage return followed by a line feed. (\r followed by \n)
We format it when loading in a way that it will look like this when queriing from the DB
"TEST
TEST1
TEST2"It doesn't look like anything "when querying from the DB." That part doesn't make any sense.
Either the string has a backslash followed by an r, in which case when you render in in a text editor or on a console it will look like a single line with a visible backslash character followed by an r, or it has a carriage return (\r) in which case it will look like multiple lines when rendered in a text editor or on a console.
Later I re-extract it to a file from the DB and What confuses me is when I inspect the string it looks like this
"TEST\r\n TEST1\R\n TEST2"How are you inspecting it? If it's in a debugger or similar tool, it's not uncommon for it to be showing a carriage return character (\r) as a visible backslash followed by an r, rather than interpreting it and rendering a new line. This is so that you can see exactly what characters are in there, rather than wondering about the specific whitespace.
>
but it extracts to my file like
"TEST
TEST1
TEST2"
So I guess there are some hidden cr's or something messing it up that I need to manipulate but not sure how to apprach it?I still don't know what you're trying to do, or if you even have an actual problem with your data or are simply not understanding what you're seeing. -
I need to combine a few thousand multi line txt files into individual lines in a master file.
I need to combine lots of text files into one file-but each file is 6 or 7 lines long, and I need to remove the line breaks so each file is an individual line in the output. I feel like I should be able to do this with CAT, but can't figure out how. Perhaps there's aother tool that would allow me to stip the line breaks before I cat them all together? (and perhaps this is a question that should be posted somewhere else?)
You can remove the line breaks with tr -d '\n', :
tr -d '\n' < file > newfile
If all the files are in the same directory, just use a loop:
for i in ~/Desktop/*.txt ; do tr -d '\n' < $i >> ~/Desktop/Untitled3.tmp; echo >> ~/Desktop/Untitled3.tmp; done
If in multiple directories, you can use find, but the files need similar names (i.e., Untitledxxx.xxx).
BTW, best place for this question would be the "Mac OS X Technologies" forum with a tag of UNIX
Tony -
Single line of text/email id to People or Group column
I have a list of employee details, along with their SharePoint email ID. I want to import this list along with a new People or Group column, where it reads the email id and picks the correct user from Active Directory. How to import this?
Hi Abul,
Based on your description, I did a test. When I used users' email address in excel table and imported it to SharePoint list, the column would be saved as Hyperlink or Picture type. If I used Domain\User, after importing it to SharePoint list, the column
would be saved as Single line of text type.
It seems that it only is converted into Single line of text or Hyperlink type when you import a table into SharePoint list, by default. There is not a way to convert the table column in excel file into People column in SharePoint list.
Thanks,
Wendy
Wendy Li
TechNet Community Support -
Help me in Converting textarea msg to single line string
Please help me in converting the textarea message with line breaks in to single line string. because i shud pass that to the Javascript which doesnot accept line breaks.
<%
StringBuffer text = new StringBuffer(request.getParameter("textarea1"));
int loc = (new String(text)).indexOf('\n');
while(loc > 0){
text.replace(loc, loc+1, "<BR>");
loc = (new String(text)).indexOf('\n');
out.println(text);
%>Hi,
i did not understood your problem. javascript supports \n character processing. so you should not get any error. Do one thing write a javascript function, that replaces all \n with "". this will solve your problem
funciton replaceNewLine(StringValue) {
StringValue.replace('\n','') (check replace() syntax once)
have fun!!
raj -
Transaction ME9E - Printing Single Line Schedule Agreement
We are trying to print a line item that has a different delivery address than that of the header. This is a single line document and the address is different. The problem we have is when the scheduling agreements has only one part number and the delivery address for the part number is different then the default company/plant address. This process is predominant when you have subcontract process. We are unable to print the address at the line level for a single line document but system does this correctly and prints this delivery address when there are two part numbers in scheduling agreement. How can we get this to work for us for single item documents? This is critical for our end user. We need to have the system access the text element ITEM_DELADDRESS in the MAIN window and not produce the address in the HEADER_DELADDRESS element in the CONSGNEE window.
Hello,
There are two possible status for schedule lines:
1- Fixed schedule lines : System doesn't change these schedule lines upon MRP run
2 Non fixed schedule lines : during MRP run, system deletes these schedule lines and creates new ones.
To make a schedule line fixed there are two possibilities:
1- User set manually the indicator fixed schedule line in transaction ME38
2- Schedule line lies within the firm period.
The firm period :
For each schedule agreement you can define the firm zone :
1- ME32L change schedule agreement
2- select the item then in toolbar> Item> More function-->additional data Scheduling control
enter the firm zone "number of days".
If schedule line lies whithin this zone system will kepp it and create new line for additional requirement
Best Regards -
-How to restrict Description into single row in the report
Hello Colleagues
I have a report which shows Material number versus Revenue. In the row, material is displayed with Technical name and description.
Here, the view of the report shows the description in single line. While, in the report, description of the report runs 3 to 4 lines though description contains 5 to 6 words (which can fit easily into single line).
Let me know how to restrict each row descrption into single line.
Regards,
NingarajuHello Colleagues
Please find the format it is currently appearing in the web reports.
Material Num Material Description Revenues (In Eur)
1000001 "SAP
ERP
Professsional
User" 111
Wanted to change above format into as below in which it has to show material description in single row.
Material Num Material Description Revenues (In Eur)
1000001 "SAP ERP Professsional User" 111
Regards,
Ningaraju -
How to add form values into a single line...
How can we add numerous form values (say surname, first name and middle initial) into a single line? thanks in advance^^
You can use the "+" operator which is both the addition (number) and concatenation (string) operator. JavaScript makes the decision about how this operator will work by the type of the value of being processed. Two numbers JavaScript performs addition, character string and number, number and character string, or 2 character strings then concatenation.
If you just use the '+' operator and spaces, you will get extra spaces unless you add code to allow for null fields and adjusting the spacing or other punctuation as needed. You may also need to force numeric values to character stings or you might end up with an addition and not concatenation.
Adobe provided a example of a funciton to properly join 3 fields with full versions of Acrobat:
function fillin(s1, s2, s3, sep) {
// Concatenate 3 strings with separators where needed
// convert passed strings to a string value
s1 = s1.toString();
s2 = s2.toString();
s3 = s3.toString();
// assign a numeric value for presence of a given string(s)
var test = 0; // no passed strings
if (s1 != "") test += 1; // s1 has a value
if (s2 != "") test += 2; // s2 has a value
if (s3 != "") test += 4; // s3 has a value
// return appropriate combination based on passed strings
if (test == 0) return ""; // no stings passed
if (test == 1) return s1; // s1 only
if (test == 2) return s2; // s2 only
if (test == 3) return s1 + sep + s2; // s1 and s2
if (test == 4) return s3; // s3 only
if (test == 5) return s1 + sep + s3; // s1 and s3
if (test == 6) return s2 + sep + s3; // s2 and s3
if (test == 7) return s1 + sep + s2 + sep + s3; // s1, s2, and s3
Maybe you are looking for
-
As I begin to sync music into my Nano I am alerted that my USB connection is 1.0 and I should connect to a USB 2.0 port to improve performance (speed). If theUSB ports on my computer are 1.0 port is it possible to upgrade to 2.0?
-
ABAP related issues in 4.7 to ECC 6.0 Upgrade
Hi All, We are in the process of upgrade of SAP 4.7 non unicode to ECC 6.0 non unicode system . Please let me know what are the things we need to check& what are the issues related to ABAP will encounter in this process. Please provide the touch poin
-
Installing Dialog Instances with ECC 6.0 and SQL Server 2005
Hi, I have my ECC 6.0 SAP Server, it is Central Instance, Database instance, all in one. My users are working fine, however we will be adding some new users (15) and we want add a Dialog Instance. Can I add one Dialog instance to my landscape without
-
Weblogic-I-Planet Bridge problems with JSP
Hello, Web Logic 5.1. allows only 3 different IP adresses = users. Now we use the NSAPI to Netscape I-Planet 4.0. The JSP Files should be redirected to the Weblogic server. When we start a simple Hello World JSP we get the correct result. Unfortunetl
-
Does the CWNumEdit Control has the property of "Transparent"?
Hi, Edit box in vc++ has the property of "Transparent", I wonder if the CWNumEdit Control in Measurement Studio 6.0 has this property. If yes, please tell me how to set it, thanks! Fourier