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 PM
FM 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.
Similar Messages
-
How could i get the material description in cost esti itemization view?
Hi Gurus,
I have created the process order (T.Code COR1) and calculate the cost & get the material costing details.but i required to see the material description (Packaging material) rather than the material code (PK01-1204) in costing itemization view.
E.g.
SAP Material Code: PK01-1204 - Description - Packaging material.
while checking the costing view i had see the Material code PK01-1204 in itemization.but i required the material description (Packaging material) in itemization view.
Please help me to overcome this issue......
Regards,
Dhananjay R.Dear Dhananjay,
You can have Material description in Itemization by following way :
Go to Itemization screen -
> Change layout ( On top you will find icon for this , below Display Itemization text)
In change layout you will see Filter icon ---> select Plant / Material Text by dropdown in it and save it so you will find material description in itemization.
Try above which will resolve your issue.
Revert in case any problem.
HOpe this helps.
Regards,
Tejas -
Display of material description in classificatio tab on while doing MM01
Hi All
I have to dispaly material description when I select a class in classification tab, In this class we have created 1 to 6 fields and one field is material description. can I display this material description when I select the class automatically from material description of basic data 1 tab through the BADI BADI_MATERIAL_REF.
if yes could you send me the sample code as what parameters to be passed else any other way to do it.
thanks
bobbyRic,
LOOP AT ITCDPOS.
CLEAR V_STLNR.
V_STLNR = ITCDPOS-OBJECTID+4(11).
1.Check the records of ITCDPOS.
2.You are taking a part of OBJECTID and moving it to V_STLNR.Make it sure that any material exists with such a value.
3.Check the data in object id in cdpos and comapre it with materails in mara table.
4.check the value of v_stlnr in the where clause of the select statement you are using to fetch the matnr and maktx.
K.Kiran. -
SAP standards for retriving the Material Master Data
Can someone provide me list of all SAP standards for retriving the Material Master Data with respect to views.
Standard Reports
Function Modules
RFC's
BAPI's.
T.codes
Sample code's
useful answers will surely be awarded.
Regards
VinayakHi,
These are the standard BAPI's for Material master.
BAPI_MATERIAL_DELETE Flag Material for Deletion
BAPI_MATERIAL_DISPLAY Display Material
BAPI_MATERIAL_EDIT Change Material
BAPI_RETAILMATERIAL_CREATE Create Material
BAPI_RETAILMATERIAL_DELETE Discontinue Material
BAPI_STANDARDMATERIAL_CREATE Create/Extend Material
BAPI_MATERIAL_SAVEREPLICA BAPI for Mass Maintenance of Material Data
BAPI_MATERIAL_SAVEDATA Create and Change Material Master Data
BAPI_MATERIAL_EXISTENCECHECK Check Existence of Material
BAPI_MATERIAL_GETBATCHCERT Create Quality Certificate for Batch in Portable Document Format (PDF)
BAPI_MATERIAL_GETBATCHES Create Batch List for a Material
BAPI_MATERIAL_GETCHARMERCHHIER Supply Characteristics of Retail Material for Material Group Hierarchy
BAPI_MATERIAL_GETINTNUMBER Assign New Internal Numbers for a Material Type
BAPI_MATERIAL_GETINTNUMBERRET Assign New Internal Numbers for a Material Type for Retail Materials
BAPI_MATERIAL_GETLIST Supply List of Materials for Search Criteria Transferred
Thanks., -
Does SAP have report display the history of dunning
Dear Expert,
Would like to seek for your help,Does SAP have report display the history of dunning for AR module and what are the T-code and report?
Please help.
Regards,
KHHi
Dunning status is updated in customer master,you can get the required data from Table LFB5
hope this will help to some extent
Thanks
Kameshwar Rao -
Display the material details in alv grid based on material(in mara)
hi,
display the material details when get input of material from user in mara table using alv-grid display.
give some examples.
Thanks of advance.Hi
For your help i am just giving you few hints.
1. Create a selection screen.
2. Select matnr from mara into an internal table.
3. use fm Reuse_Alv_grid_display to display your entries from the internal table
Please read about all of this step by step in the forum. -
In PM order, can we change the material description for item category N?
Hi,
In Plant Maintenance work order, is there a way to change the material description while purchasing material (item category N) using a material master number? In config. the material description field is open for input. However on the work order components screen it becomes grey as soon as one enters a material master number.
Background: We want to maintain generic material master records in the system and use them for purchasing materials (item category N) on work orders so that the purchasing data defaults from the material master. But we need to be able to change the description per the specific requirement.
Similar functionality works on sales orders. Are we missing anything?Hi there,
One solution would be to have some generic materials created and used them during work order processing. These generic materials needs to be extended to all the required plants.
Hope this works,
Cheers !!! -
Find the SAP Script name for the Output type RD00 and Appli V3
Hi Gurus,
My requirement was to copy the Std SAP Script for the output type RD00 and application name V3 and to do some modification.
Please any one suggest me how to find the Std SAP script based on the above Output type and Appl ?
Regards
paulHi,
The script Name is LB_BIL_INVOICE
You can find byNACE>V3>Output Types>RD00-->Processing Routines
In thje output type Press Change button and select New entries.
Regards
Sandipan
Edited by: Sandipan Ghosh on Mar 31, 2008 12:06 PM -
The Material description on sales order for a particular item is red text
Hi friends,
When I key-in a sales order for a specific material, the material description on the sales order appears in red text. What could be the reason?
SreedharHi Sreedhar
First of all Welcome to SDN forum
Coming to your query , As the material description maintained in MMR is coming in red colour in sales order , First of all check in which colour you maintained the text in MMR . Secondly check the MAKT table .
As you are telling for a specific material , check for other materials and their material texts & colour in sales order also
Regards
Srinath -
Display the webdynpro screen in two languages?
Hi Gurus,
I have requirement to display the webdynpro screen in two language(English & Arabic)
what is the steps involved to achieve this requirement.Hallo Dharani,
NOTE: you cannot switch the session locale of a running Web Dynpro Java application in the same browser window. The only solution is to start a new Web Dynpro application "from scratch" by executing a new browser instance NOT "browser window" instance. So with Browser -> File menu -> new window you will keep the same session locale even when passing another locale-parameter with the URL-param sap-locale. Sorry, but this is an unsolved restriction in Web Dynpro.
Regards, Bertram -
Howrto display the webdynpro screen in two language?
Hi Gurus,
I have requirement to display the webdynpro screen in two language(English & Arabic).
User can switch the language (between English& Arabic)
Whenevr he chose English all the Text in the webdynpro screen should be in english and if he chose Arabic all the text in the webdynpro screen should be in Arabic.
what is the steps involved to achieve this requirement.
Thanks in Advance,
DharaniHallo Dharani,
NOTE: you cannot switch the session locale of a running Web Dynpro Java application in the same browser window. The only solution is to start a new Web Dynpro application "from scratch" by executing a new browser instance NOT "browser window" instance. So with Browser -> File menu -> new window you will keep the same session locale even when passing another locale-parameter with the URL-param sap-locale. Sorry, but this is an unsolved restriction in Web Dynpro.
Regards, Bertram -
How to display the entire application in two different languages in apex
Hi,
How to display the entire application in two different languages in apex...
For example i need to display each item in both English and Hindi..
To achieve this initially i have the select the language otherwise the item label alone ll be displayed in both languages ...
Anyhow how it ll be apex is it possible
Regards,
PavanHi pars,
http://www.packtpub.com/sites/default/files/1346-chapter-6-creating-multilingual-apex-applications.pdf?utm_source=packtp…
In this link also i struck in
In page 10 of that document
The application is now ready to be translated. Everything is in place to run it in any language imaginable.To ca ll the application in another language, change the URL of your application to the following:
http://yourdomain:port/pls/apex/f?p=&APP_ID.:&PAGE_ID.:&SESSION_ID.:LANG:NO::FSP_LANGUAGE_PREFERENCE:nl
This example will call the chosen page in the application and show it in the Dutch language instead of in English. To select another language change the property nl at the end of the URL to your desired language code.
Thanks alot for ur suggestions.kindly provide more inputs.............. -
How to display the column header in two rows?
Hi Experts,
I am using ALV_LIST_DISPLAY i neeed to display the column header in two rows.. How can i do that?
Ex: purchase order i need to display "purchase" in one row and "order" in second row.
Thanks in advance,
Sarath.jREPORT zpwtest .
TYPE-POOLS slis .
DATA : layout TYPE slis_layout_alv .
CONSTANTS : c_len TYPE i VALUE 20 .
TYPES : BEGIN OF ty_t100 ,
sprsl TYPE t100-sprsl ,
arbgb TYPE t100-arbgb ,
msgnr TYPE t100-msgnr ,
text TYPE t100-text ,
fline TYPE t100-text ,
END OF ty_t100 .
TYPES : BEGIN OF ty_wrd ,
text TYPE char20 ,
END OF ty_wrd .
DATA : it_t100 TYPE TABLE OF ty_t100 ,
it_sentence TYPE TABLE OF ty_wrd ,
wa_t100 TYPE ty_t100 ,
wa_word TYPE ty_wrd ,
v_repid TYPE syst-repid ,
v_tabix TYPE syst-tabix .
DATA : it_fld TYPE slis_t_fieldcat_alv ,
it_evt TYPE slis_t_event ,
wa_fld TYPE slis_fieldcat_alv ,
wa_evt TYPE slis_alv_event .
INITIALIZATION .
v_repid = sy-repid .
START-OF-SELECTION .
* Get data
SELECT *
INTO TABLE it_t100
FROM t100
WHERE sprsl = 'EN'
AND arbgb = '00' .
LOOP AT it_t100 INTO wa_t100 .
v_tabix = sy-tabix .
CLEAR : it_sentence .
CALL FUNCTION 'RKD_WORD_WRAP'
EXPORTING
textline = wa_t100-text
outputlen = c_len
TABLES
out_lines = it_sentence.
IF NOT it_sentence IS INITIAL .
READ TABLE it_sentence INTO wa_word INDEX 1 .
wa_t100-fline = wa_word-text .
MODIFY it_t100 FROM wa_t100 INDEX v_tabix .
ENDIF.
ENDLOOP.
* Prepare fieldcatelog
CLEAR wa_fld .
wa_fld-fieldname = 'SPRSL' .
wa_fld-ref_tabname = 'T100' .
wa_fld-ref_fieldname = 'SPRSL' .
APPEND wa_fld TO it_fld .
CLEAR wa_fld .
wa_fld-fieldname = 'ARBGB' .
wa_fld-ref_tabname = 'T100' .
wa_fld-ref_fieldname = 'ARBGB' .
APPEND wa_fld TO it_fld .
CLEAR wa_fld .
wa_fld-fieldname = 'MSGNR' .
wa_fld-ref_tabname = 'T100' .
wa_fld-ref_fieldname = 'MSGNR' .
APPEND wa_fld TO it_fld .
CLEAR wa_fld .
wa_fld-fieldname = 'FLINE' .
wa_fld-inttype = 'CHAR' .
wa_fld-outputlen = 20 .
wa_fld-intlen = 20.
wa_fld-seltext_l = 'Text' .
wa_fld-ddictxt = 'L' .
APPEND wa_fld TO it_fld .
* Get event.. we will handle BOFORE and AFTER line output
CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
IMPORTING
et_events = it_evt.
READ TABLE it_evt INTO wa_evt
WITH KEY name = slis_ev_after_line_output .
wa_evt-form = slis_ev_after_line_output .
MODIFY it_evt FROM wa_evt INDEX sy-tabix .
READ TABLE it_evt INTO wa_evt
WITH KEY name = slis_ev_top_of_page .
wa_evt-form = slis_ev_top_of_page .
MODIFY it_evt FROM wa_evt INDEX sy-tabix .
layout-no_colhead = 'X' .
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
i_callback_program = v_repid
it_fieldcat = it_fld
is_layout = layout
it_events = it_evt
TABLES
t_outtab = it_t100.
* FORM top_of_page *
FORM top_of_page .
uline .
WRITE: / sy-vline ,
10 sy-vline ,
11 'line1' ,
31 sy-vline ,
37 sy-vline ,
58 sy-vline .
WRITE: / sy-vline ,
10 sy-vline ,
11 'line2' ,
31 sy-vline ,
37 sy-vline ,
58 sy-vline .
WRITE: / sy-vline ,
10 sy-vline ,
11 'line3' ,
31 sy-vline ,
37 sy-vline ,
58 sy-vline .
ENDFORM.
* FORM AFTER_LINE_OUTPUT *
FORM after_line_output USING rs_lineinfo TYPE slis_lineinfo .
CLEAR : it_sentence ,
wa_t100 .
READ TABLE it_t100 INTO wa_t100 INDEX rs_lineinfo-tabindex .
CHECK sy-subrc = 0 .
CALL FUNCTION 'RKD_WORD_WRAP'
EXPORTING
textline = wa_t100-text
outputlen = c_len
TABLES
out_lines = it_sentence.
DESCRIBE TABLE it_sentence LINES v_tabix .
CHECK v_tabix > 1 .
LOOP AT it_sentence INTO wa_word FROM 2 .
WRITE: / sy-vline ,
10 sy-vline ,
31 sy-vline ,
37 sy-vline ,
38 wa_word-text ,
58 sy-vline .
ENDLOOP.
ENDFORM . -
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 -
Problems finding the interception point of two lines
Hi there,
I've written a class "Linie", which extends the Line2D.Float class, and added a method to determine the interception point of two lines.
One of the two lines can be anything except horizontal and vertical, the other one (which is the one that is passed to the method) can only be horizontal or vertical (I hoped this would make it easier).
public Point schneidet(Linie l){
Point schnitt = new Point();
float m = (y1-y2)/(x1-x2);
int n = Math.round(y1-(x1*m));
if (l.y1==l.y2){ // Is line l horizontal?
int poX = Math.round((l.y1-n)/m);
schnitt.setLocation(poX,(int)l.y1);
else if (l.x1==l.x2){ // Is line l vertical?
int poY = Math.round((m*l.x1)+n);
schnitt.setLocation((int)l.x1,poY);
return schnitt;
}The equation of a line is
y = m*x + n.
Because the line l can only be horizontal or vertical, one coordinate of the interception point is always clear from the beginning, the other one is supposed to be calculated and stored in poX or poY.
But this is where the method doesn't do what it's supposed to. There must be some mistake inside the calculation with the slope (m) and n. Any ideas?Why so complicated? Are the lines real lines (straight connections between 2 points) or curves? If they are lines, you just need to inspect the coordinates of all 4 points (2 * 2 end points) and show if the points are "within" the other points ...
Intersection point of two lines
Line Intersection and its Applications
SIMPLE ALGORITHMS I - INTERSECTION OF LINES
Maybe you are looking for
-
How do you get your information, that's on your icloud, something was taken off my notes that should be back-up in my icloud. Help
-
Anyone know how to change user info in logic pro 9?
Want to know if it is possible to change the user information in logic pro 9...tried all the options in preferences and nothing...any ideas? Running on lion...
-
Two IDs on Table1 and One ID ont Table2 - Must display 4 Columns as Output
Hi, I'm quite lost in to doing a query with two tables. I have the following. Table: RELATED Column 1: course_id Column 2: course_id_related_to Table: COURSES Column 1 : id Column 2 : course_name Table COURSES joins column [id] with columns: [course_
-
Os x won't download on my mac. what do I do?
t download on my mac. what do I do?
-
Hi I created two projects: server and client. I used the DSC . Server and Client are on two PC. Server received the data and then log its in Citadel. Client read the date from Citadel. I used Read Alarms and Read Trace. The Read Alarms is working wit