Upload IT1002 description auto break lines
Hello,
I am using LSMW to upload IT1002 - description.
Below is free text I need to transfer.
"Develop, manage and implement all Brand research projects requiring support and leadership.
<br>Specifically manage research requirements arising from pre-launch and post-launch phase which will include qualitative and quantitative projects. <br> Working alongside the team and in collaboration with all Group Brand stockholders.
I would like to break the text into several lines when below conditions match -
1. when text length = 79
2. when '<br>' string is found.
Any idea?
Thanks a lot.
closed.
Similar Messages
-
SAP Script : to display the material description in two lines
Hi All,
I'm working on scripts.
the material description field is been passed from my driver program ..into the script..
Ex: &gs_final-maktx& ..
There r a number of other fields to be displayed ...after this field ....
Is there any option to split the 'Material description into two lines'?
Ex: at present it is :
This is material description
Requirement is:
This is material
description
I mean that there a number of field berfore and after this field......in the same line
I need to jst split the materia description ...& make it to appear in two lines.....!!
Expecting your suggestions....
Edited by: vidya vidya on Nov 11, 2008 3:17 PM
Edited by: vidya vidya on Nov 11, 2008 3:20 PMFM TEXT_SPLIT ?
..but i handled this by code.
DATA: zzboldsx(18) TYPE c,
zzboldsx2(18) TYPE c,
zzboldsx3(18) TYPE c,
zzboldsx4(18) TYPE c.
DATA: i_lines TYPE STANDARD TABLE OF tline WITH HEADER LINE ,
r_lines TYPE tline,
v_cnt LIKE sy-tabix.
CALL FUNCTION 'READ_TEXT'
EXPORTING
client = sy-mandt
id = stxh-tdid
language = stxh-tdspras
name = name
object = stxh-tdobject
TABLES
lines = i_lines[]
EXCEPTIONS
id = 1
language = 2
name = 3
not_found = 4
object = 5
reference_check = 6
wrong_access_to_archive = 7
OTHERS = 8.
IF sy-subrc = 0.
* Only 4 lines of Header text supported. Can add if needed
LOOP AT i_lines INTO r_lines.
CONDENSE r_lines-tdline NO-GAPS.
v_cnt = v_cnt + 1.
CASE v_cnt.
WHEN 1.
zzboldsx = r_lines-tdline.
WHEN 2.
zzboldsx2 = r_lines-tdline.
WHEN 3.
zzboldsx3 = r_lines-tdline.
WHEN 4.
zzboldsx4 = r_lines-tdline.
WHEN OTHERS.
EXIT.
ENDCASE.
* zzbolDSX = i_lines-tdline .
ENDLOOP. -
Parameter description in two lines
hi All,
i need to have a big description for one of the parameter.
how can i have the description in two line for the same parameter.
I have use Coment statement for the parameter.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT (45) text-002 FOR FIELD p_devatn.
PARAMETER: p_devatn(13) TYPE c DEFAULT '0.01'.
SELECTION-SCREEN END OF LINE.
kindly suggest me a way to get the description in two lines.
Description of parameter input filed of the parameter
This is paramerter for
value range
many thanks,
Anuj.
Edited by: Anuj112143 on Nov 24, 2010 4:33 AMHello Anuj ,
I dont think you can have the description of the parameter on 2 lines , may be what you can do is to use comment for the 2nd line .
E.g.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT (45) text-001 FOR FIELD p_matnr.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT (45) text-002 FOR FIELD p_matnr.
parameters : p_matnr type mara-matnr.
SELECTION-SCREEN END OF LINE.
Regards,
Arun -
ALV report : to display description in two lines.
Hi all,
In a ALV grid display, I want to print description(40 characters) of a field in two lines(20 characters in each).
Please suggest me how to achive the same.
Thanks in advance.make the description field of 20 char legth in your final internal table.
while passing data to your final internal table, pass all fields along with 20chars from description to one line of final table and in the same loop add another row with all fields blank but the description with rest of the fields..
loop at it_1 into it_s.
is_final-desc = it_s-desc+0(20).
apppend is_fianl to it_final.
clear is_final.
is_fianl-desc = it_1-desc+20(20).
apppend is_fianl to it_final.
clear it_s.
endloop. -
Upload material description in mm02
i want to upload material description in mm02 using bdc but i dont know how to upload it. Moderator Message: This is not a training forum and we cant help you there
my text file is like
2000251 AF A12345
2000251 AR B12345
2000251 BG C12345
2000252 AF F12345
2000252 AR G12345
2000252 AF H12345
in same material number there r more then one text then how can i upload .
'SKTEXT-MAKTX(02)'.
clear COUNTER.
counter = 1.
LOOP AT IT_TAB INTO WA_TAB WHERE MATNR = WA_ITAB-MATNR.
counter = counter + 1.
CONCATENATE 'MAKT-SPRAS(0' COUNTER ')' INTO V_CHAR. "(02)
PERFORM BDC_FIELD USING V_CHAR
WA_TAB-SPRAS.
CLEAR V_CHAR.
CONCATENATE 'MAKT-MAKTX(0' COUNTER ')' INTO V_CHAR. "(02)
perform bdc_field using V_CHAR
WA_TAB-MAKTX.
*perform bdc_field using 'SKTEXT-SPRAS(02)'
'AF'.
*perform bdc_field using 'SKTEXT-SPRAS(03)'
'BG'.
*perform bdc_field using 'SKTEXT-SPRAS(04)'
'CS'.
*perform bdc_field using 'SKTEXT-MAKTX(02)'
'avani'.
*perform bdc_field using 'SKTEXT-MAKTX(03)'
'avani1'.
*perform bdc_field using 'SKTEXT-MAKTX(04)'
'avani2'.
clear wa_tab.
ENDLOOP.
Edited by: kishan P on Nov 13, 2010 2:32 PMin mm02 Basic Data -> additional data -> material description and language
i want to upload language and material description -
Insert a break line in a content of a variable
Hi all, my problem is:
I want to put a break line at position 40 of a string (where exist a space), for example.
DATA: v_string TYPE string.
v_string = 'testline1_testline1_testline1_testline1 testline2_testline2_testline2_testline2'.
Because i want a result like this
testline1_testline1_testline1_testline1
testline2_testline2_testline2_testline2.
I tried with cl_abap_char_utilities=>cr_lf but are printing testline1_testline1_testline1_testline1##testline2_testline2_testline2_testline2.
I tried too with cl_abap_char_utilities=>new_line but don´t work.
Tks to all.Hi sadavisa,
follow my program:
start----
DATA: gv_string TYPE string,
gv_result TYPE string,
gv_len TYPE i,
gv_div TYPE f,
gv_num_lin TYPE i,
gv_len_upd type i,
gv_position type i,
gv_count type i,
gv_40(1) type c,
gv_39(1) type c,
gv_38(1) type c,
gv_37(1) type c,
gv_36(1) type c,
gv_35(1) type c.
gv_string = 'testline1_testline1_testline1_testline1 testline2_testline2_testline2_testline2'.
gv_len = STRLEN( gv_string ).
IF gv_len <= 40.
WRITE gv_string.
ELSE.
gv_div = gv_len / 40.
gv_num_lin = CEIL( gv_div ).
gv_count = 1.
WHILE gv_num_lin => gv_count.
IF gv_num_lin = sy-index. "this code is executed only in the last time
CONCATENATE gv_result gv_string INTO gv_result.
gv_count = gv_count + 1.
CONTINUE.
ENDIF.
gv_40 = gv_string+40(1).
gv_39 = gv_string+39(1).
gv_38 = gv_string+38(1).
gv_37 = gv_string+37(1).
gv_36 = gv_string+36(1).
gv_35 = gv_string+35(1).
IF gv_40 = space.
gv_position = 40.
PERFORM update_variables USING gv_position.
continue.
ELSEIF gv_39 = space.
gv_position = 39.
PERFORM update_variables USING gv_position.
continue.
ELSEIF gv_38 = space.
gv_position = 38.
PERFORM update_variables USING gv_position.
continue.
ELSEIF gv_37 = space.
gv_position = 37.
PERFORM update_variables USING gv_position.
continue.
ELSEIF gv_36 = space.
gv_position = 36.
PERFORM update_variables USING gv_position.
continue.
ELSEIF gv_35 = space.
gv_position = 35.
PERFORM update_variables USING gv_position.
continue.
endif.
gv_count = gv_count + 1.
ENDWHILE.
ENDIF.
write gv_result.
*& Form UPDATE_VARIABLES
Update variables
-->P_POSITION text
form UPDATE_VARIABLES using p_position type i.
CONCATENATE gv_result gv_string(p_position) cl_abap_char_utilities=>cr_lf INTO gv_result.
gv_len_upd = gv_len - p_position.
gv_string = gv_string+p_position(gv_len_upd).
CONDENSE gv_string.
gv_count = gv_count + 1.
endform. " UPDATE_VARIABLES
end----
So my question is why when i write CR_LF on file text go right and when i join into a variable and then write on screen go wrong.
Tks. -
Make changes to auto generated line items when posting invoice thru MIRO?
Hi All,
My requirement is to make some changes in line items data when posting invoice through MIRO transaction.
I have written a substitution for the same, The issue is that some line items get automaticaly created (i.e inter company posting). I need to make changes to these line items as well but substitution is not being triggered for these auto generated line items.Is there any way by which I can update in these line items as well ?
further do we have any internal table which holds all the line items at runtime....to which I can refer and make the changes. I have searched but could not find one.
Can anybody provide some inputs on this.
Thanks,
Lucky.Hi Kaushik,
Thanks for your reply.
I am using BADI INVOICE_UPDATE but here we will not be having line items which are auto generated.
When we do inter company posting, line items are automatically created and these are not avaliable in the BADI. I am not sure if we can trap these line items any where.....the possible alternative which I can think of is to use memory reference and modify the internal table which holds all the items but unfortunately I am not able to find any such internal table to refer to at run time ...have u got any idea on this?
Thanks,
Lucky. -
How do I set the column content to automatic break lines
Hello Guys,
I have a problem with the column width and the column content of a standard report. Within the report are hugh entries which aren't interrupted by an space character. I set my column width to a special value by usingen "css style: display block; width: 300px;". Now the problem is that some of the column entries have a longer width than the column width is setted. So they overlock the entries of the column next to them.
My question is: How do I set the column content to automatic break lines after a certain count of characters?
After researching a couple of websites and discussion thread I found maybe a reference to the solution. I hope it help you to give me an answer.
COLUMN LAST_NAME FORMAT A4
regards
wderrWderr,
PDFs are another animal entirely. Try adjusting the width of the column under the Print Attributes tab of the report.
If that doesn't work you'll probably need to create custom XSL-FO layouts which, depending on the tools you have at your disposal, could take some time.
Regards,
Dan
Blog: http://DanielMcGhan.us/
Work: http://SkillBuilders.com/ -
Send e-mail with a file as attachment - Break line problems
Hi
I use the function SO_NEW_DOCUMENT_ATT_SEND_API1 to send an e-mail from ABAP program.
With SAP4.5B, all work good, but since we have 4.6C, the attached file is malformatted.
An automatic CRLF break line is generated all 1022 char!
The eattachment is create from content of internal table with a line of 255 char.
How can I avoid the automatic CRLF char or how can I to send a good file ?
ThankHi,
look here:
Re: How to email an attachment with more than 255 characters?
Andreas -
How to add new price break lines to existing PO quotations?
Hi,
I am using a custom interface (to insert quotations data into PO headers/lines interface tables) and PO documents open interface to create PO Quotations in Oracle.
I need to modify this interface to:
1. Update existing price break lines for a quotation line.
2. Add new price break lines to existing quotation line(which may/may not have exsiting price break lines).
Please let me know:
1. What modifications need to be done to the existing code.
2. What values needs to be passed to the action columns in PO_HEADERS_INTERFACE and PO_LINES_INTERFACE for above scenarios?
Any ideas/help will be appreciated.
Thanks
ImranHi Imran,
I have done a similar exercise for BPA price breakup.. Let me know if you need that as reference. I can share that :).. Please provide your personal mail id..
Regards,
S.P DASH -
Uploading Job Description in an Infotype
I just wanted to know how do i upload job description for a position in an infotype.
Or if there is some other way to show a job description for each position in Org Structure.Dear Nidhi,
You could use either LSMW Tool or Custom Program (BDC or BAPI).
LSMW has the following Options:
1. Direct Input
2. Batch Input
3. BAPI
4. IDOC
For information regarding LSMW steps visit the following link:
/people/hema.rao/blog/2006/09/14/lsmw--step-by-step
http://help.sap.com/bp_blv1500/BL_US/html/dataconv_lsmw.htm
You could also develop a custom program using BDC or BAPI.
Visit the following link:
Re: sap general
Where you would find more information regarding BDC and LSMW.
Regards,
Naveen. -
How to break lines in JLabel?
I can use html code to break lines for swing compoent, for example:
JLabel label = new JLabel("<html>ABC<br>DEF</html>");The thing is that I need to read the content of JLabel from a text file. It doesn't work if I defined the text file as "<html>ABC<br>DEF</html>". How can I let the JLabel support html code which is read from text or property files?The origin of the string is irrelevant.
It make no difference if you get the html from a file ot directly in your code as literal. HTML support in JLabel always works -
Displaying 2 parameters with descriptions in same line of Selection-Screen
Hi All,
I want to know how can we display 2 parameters with descriptions in same line of Selection-Screen.
Means in selection screen first we will give comment as
<b>Material no</b> then <b>parameter box as MARA-MATNR</b>, In the same line description as <b>Plant</b> then <b>parameter box as T001W-WERKS</b>.
Material No - BOX - Plant - BOX.
Can any body tell me how can we do it.
Thanks in advance.
Thanks & Regards,
Rayeez.Hi shaik,
1. define two TEXT-SYMBOLS :
001 Material
002 Plant
and Activate
2. use this code (just copy paste)
REPORT abc LINE-SIZE 80.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 1(10) text-001 FOR FIELD p_matnr.
PARAMETERS : p_matnr TYPE mara-matnr.
SELECTION-SCREEN COMMENT 35(10) text-002 FOR FIELD p_werks.
PARAMETERS: p_werks TYPE t001w-werks.
SELECTION-SCREEN END OF LINE.
regards,
amit m. -
Break line - Interactive report
Hi,
The interactive report does not show the ||utl_tcp.crlf||, is there a way to make this line break shown on interactive report? is there any thing I can use to break line will be shown in IR?
thanks,
Fadi.nferreri wrote:
This good and all until you try exporting to CSV and see a bunch of <br> in your data. :(
Going to continue searching to see if there is another option... would like to get line breaks (char 10) working so it's nice in exports but interactive report columns dont allow for CSS formatting either.See +{message:id=10404268}+
But please: DO NOT post follow-ups to closed/ancient threads.
Posting follow-ups to ancient threads/departed users is NOT an effective way of getting help:
<li>Other users may ignore the thread if it is closed.
<li>Your assumption that the questions are related may be incorrect, leading to confusion about the nature of the problem and potential solutions.
<li>Watches on the thread will have expired, so the original participants are totally unaware of the new post. They may no longer be active on the forum.
<li>You have no ability to mark posts as helpful or correct.
Post your requirements as a new thread, including at least the following information:
<li>Full APEX version
<li>Full DB/version/edition/host OS
<li>Web server architecture (EPG, OHS or APEX listener/host OS)
<li>Browser(s) and version(s) used
<li>Links to related posts and threads (using the methods in the FAQ) -
Break line in sending mail program
Hi All,
I am creating sending mail program, its working fine but for that i have problem in break line.
my code is below:
doc_chng-obj_descr = 'SAP test mail'.
Mail Contents
loop at itab..
CONCATENATE 'sap test mail UPDATED:' ''
INTO it_objtxt SEPARATED BY space.
APPEND it_objtxt.
CONCATENATE 'test1:' SPACE itab-KOKRS
INTO it_objtxt SEPARATED BY space.
APPEND it_objtxt.
CONCATENATE 'test2:' SPACE itab-KSTAR
INTO it_objtxt SEPARATED BY space.
APPEND it_objtxt.
if int = 16.
CONCATENATE 'test3:' space itab-objnr
INTO it_objtxt SEPARATED BY space.
APPEND it_objtxt.
endif.
endloop.
output is:
sap test mail
test1:5000
test2:0000600100
test3:371040
sap test mail
test1:5000
test2:0000600100
test3:362040
but i want blank line after 1 entry like below
sap test mail
test1:5000
test2:0000600100
test3:371040
sap test mail
test1:5000
test2:0000600100
test3:362040
so please guide me.... i used skip and new-line statement but its not working...
Thanks in advance
zeniAdd a blank line at the end of the loop.
loop at itab..
CONCATENATE 'sap test mail UPDATED:' ''
INTO it_objtxt SEPARATED BY space.
APPEND it_objtxt.
CONCATENATE 'test1:' SPACE itab-KOKRS
INTO it_objtxt SEPARATED BY space.
APPEND it_objtxt.
CONCATENATE 'test2:' SPACE itab-KSTAR
INTO it_objtxt SEPARATED BY space.
APPEND it_objtxt.
if int = 16.
CONCATENATE 'test3:' space itab-objnr
INTO it_objtxt SEPARATED BY space.
APPEND it_objtxt.
endif.
* Add a blank line
clear lt_objtxt.
append it_objtxt.
endloop.
Regards,
Rich Heilman
Maybe you are looking for
-
All Scheduled Appointments gone - Outlook 2003
I updated Itunes to latest version and all my standing appointments with re-occuring features are now GONE!!! ANyone know how to revert data back so I can get my yearsd of birthdays, anniversaries, etc back. For Outlook 2003
-
I am using system 10.7.3 and my I photo 9.2.3 keeps crashing upon start up. Does anyone know how to correct this without losing my photos?
-
On the initial install, everything worked. However since then Vibe Desktop refuses to launch. It does not show up in the tray either. I have uninstalled, rebooted, installed. I have re-installed java, updated. I have deleted all folder structures, un
-
Adobe PDF viewer in MFC Hangs while using in Child Dialog
Hi, I am using Adobe PDF viewer ActiveX control in one of my application made in MFC. The PDF viewer Loads PDF and Work well when i place it in a Parent Dialog. But, If i use it in Dialog that is embedded as a Child dialog to another dialog, i
-
NEW GL's Changed Tables mapping
Hi, I Need to know more about new GL's Changed Tables mapping . Warm Regards, Sachin Darekar