How to retrieve the item text from VL03 transaction .
How to retrieve the item text from VL03 transaction .
The requirement is like this, the item text thus retrieved should be printed in the script under the item.
Jagadieshwar,
Use <b>READ_TEXT</b> function module to get the proper item text of Delivery.
<b>ID</b>: Probably you want 0002 (Item Note), but it depends which text you want Item Note, Material Sales Text ,etc..
<b>NAME</b>: CONCATENATE Delivery Doc. Number + Delivery Item Number (e.g. 0080001729000010)
<b>OBJECT</b>: VBBP
<b>
LANGUAGE</b>: sy-langu or whatever you want.
Similar Messages
-
How to retrieve the long texts from purchase Info record (ME13)
Hi,
How do I retrieve the long texts data from the tab, Texts of the Purchase Info record(ME13). I want to retrieve the current long texts data(long text1, long text2 long text3, long text4) for a given purchase info record. These long texts points to the structure BRM06I.
So, now how do I fetch the data from the structure BRM06I. Is there any function module for the same..
Thanks.Hello,
Texts are stored in tables STXH & STXL (header and item). You can search these tables by selecting Text object = EINA and Text name = Info Rec #. The text ID's you will see are the ID for various texts maintained.
Cheers ! -
How to retrieve the parameter names from a JSP page ? Urgent Please
Hello,
Can anybody tell me how to retrieve the parameter names from the JSP
page. (without using getParameterNames() method.)
The problem with the getParameterNames() method is I get the Jumbled output.
I need it very badly
With regards
Ananth R
email:[email protected]
[email protected]Dear duffymo,
My primary intention is to convert the JSP form information into a XML file.
If I do not get the Parameter names in the correct order how can I maintain
tag order in XML file.
For ex: (JSP PAGE VIEW)
Name--
FirstName
MiddleName
LastName
Address--
Street1
Street2
City
Country
&so on
(XML File to be generated)
<Name>
<FirstName>Value</FirstName>
</Name>
<Address>
<street1>value</street1>
</Address>
& so on
If I use getParameterNames() to get all the parameter names(Which form the tag names in the XML file ) the Enumeration object it returns will not be in the same order as the text fields in JSP.From this I can not construct a meaningful XML file.
order means: Order of entry on the page, from top to bottom
That's it
Waiting for your responses -
How to retrieve the image back from the running CSS
how to retrieve the image back from the running CSS
Gilles,
Thank for your response.
But the version we use is sg0740107s and can not download from the Cisco Web site any more.
Does cisco have a archive site for all the image so that the user can download it?
sctorcss1# sh ver
Version: sg0740107s (07.40.1.07s)
Flash (Locked): 07.20.2.06
Flash (Operational): 07.40.1.03
Type: PRIMARY
Licensed Cmd Set(s): Standard Feature Set -
Fetching Item Texts from VL03N transaction
Hi All,
I have a requirement in my program in which I need to fetch Item Texts from VL03N transaction corresponding to a delivery Number.i.ie. the path is Select the Item, GOTO>ITEM>TEXTS.From there I need to get the Service Notification.Please let me know how to fetch this using the read_text function module.
Thanks,
Neethu.Hello,
You can fetch the item texts for VL03N transaction for the object VBBP.
If the text is Material sales text, then its id would be 0001.
For Item note, it is 0002.
You can call the read_text fm as below:
CALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT = SY-MANDT "client info
id = pi_id "id as 0001 or 0002 depending on the text
language = pi_spras "language key
name = pi_name
object = pi_object "Object Id
Hope this helps.
Thanks,
Sowmya -
How to Retrieve the Selected Values from selectOrderShuttle using ADF 11g
Hi Every One,
Does anyone has idea how to retrieve the selected Items using shuttle and Order of the items using 'SelectOrderShuttle' component ?
Thanksshuttle's valuechangeevent would fire when you shuttle items back and forth.
public void selectOrderShuttle1_valueChangeListener(ValueChangeEvent valueChangeEvent) {
ArrayList list = new ArrayList(Arrays.asList(valueChangeEvent.getNewValue()));
if (list != null){
for (int i=0; i<list.size(); i++) {
int l = list.size()-1;
val = list.get(l).toString(); //returns , delimited string
if (val != null){
val = val.replaceAll("[\\[\\]]", "");
StringTokenizer st = new StringTokenizer (val, ",");
int nto = st.countTokens ();
for (int j = 0; j < nto; j++)
String token = st.nextToken ();
.......... -
How to retrieve the max value from a cursor in procedure
Hi,
In a procedure, I defined a cursor:
cursor c_emp is select empno, ename, salary from emp where ename like 'J%';
but in the body part, I need to retrieve the max(salary) from the cursor.
could you please tell me how I can get the max value from the cursor in the procedure.
Thanks,
PaulHere is one sample but you should just get the max directly. Using bulk processing should be a last resort.
DECLARE
CURSOR c1 IS (SELECT * FROM emp where sal is not null);
TYPE typ_tbl IS TABLE OF c1%rowtype;
v typ_tbl;
max_sal number;
BEGIN
OPEN c1;
max_sal := -9999999999999;
LOOP --Loop added
FETCH c1 BULK COLLECT INTO v LIMIT 3; -- process 3 records at a time
-- process the records
DBMS_OUTPUT.PUT_LINE('Processing ' || v.COUNT || ' records.');
FOR i IN v.first..v.last LOOP
if v(i).sal > max_sal then
max_sal := v(i).sal;
end if;
DBMS_OUTPUT.PUT_LINE(v(i).empno);
END LOOP;
EXIT WHEN c1%NOTFOUND;
END LOOP;
DBMS_OUTPUT.PUT_LINE('Max salary was: ' || max_sal);
END;
Processing 3 records.
7369
7499
7521
Processing 3 records.
7566
7654
7698
Processing 3 records.
7782
7788
7839
Processing 3 records.
7844
7876
7900
Processing 2 records.
7902
7934
Max salary was: 5000 -
I want to make the item text of the combobox to be aligned vertically(Centred) . Actually I increased the height
of the combobox and after the increasing the combobox height, the text is not centred vertically.The code
snippet for increasing the height is as follows,
m_SpecifyCombo.SetItemHeight(-1,20);//CCombobox m_SpecifyCombo
After increasing the height the text in the combobox is not in the centre as shown in the below image,
But I want the text to be centred as shown in the below image.
Code snippet for owner drawn combobox:
#if !defined(AFX_CUSTCOMBOBOX_H__F8528B4F_396E_11D1_9384_00A0248F6145__INCLUDED_)
#define AFX_CUSTCOMBOBOX_H__F8528B4F_396E_11D1_9384_00A0248F6145__INCLUDED_
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
typedef enum {FONTS} STYLE; //Why have I enumerated, Cos, Maybe I might want something other than Fonts here
class COwnerDrawCombo : public CComboBox
// Construction
public:
COwnerDrawCombo();
COwnerDrawCombo (STYLE);
// Attributes
public:
void SetHilightColors (COLORREF hilight,COLORREF hilightText)
m_clrHilight = hilight;
m_clrHilightText = hilightText;
void SetNormalColors (COLORREF clrBkgnd,COLORREF clrText)
m_clrNormalText = clrText;
m_clrBkgnd = clrBkgnd;
static BOOL CALLBACK EnumFontProc (LPLOGFONT lplf, LPTEXTMETRIC lptm, DWORD dwType, LPARAM lpData);
void FillFonts ();
int GetSelFont (LOGFONT&);
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CCustComboBox)
public:
virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct);
virtual void MeasureItem(LPMEASUREITEMSTRUCT lpMeasureItemStruct);
protected:
virtual void PreSubclassWindow();
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~COwnerDrawCombo();
// Generated message map functions
protected:
STYLE m_enStyle;
COLORREF m_clrHilight;
COLORREF m_clrNormalText;
COLORREF m_clrHilightText;
COLORREF m_clrBkgnd;
BOOL m_bInitOver;
void DrawDefault (LPDRAWITEMSTRUCT);
void DrawFont(LPDRAWITEMSTRUCT);
void InitFonts ();
//{{AFX_MSG(CCustComboBox)
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnDestroy();
//}}AFX_MSG
afx_msg long OnInitFonts (WPARAM, LPARAM);
DECLARE_MESSAGE_MAP()
//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
#endif //!defined(AFX_CUSTCOMBOBOX_H__F8528B4F_396E_11D1_9384_00A0248F6145__INCLUDED_)
// OwnerDrawCombo.cpp : implementation file
#include "stdafx.h"
#include "combobox.h"
#include "OwnerDrawCombo.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
#define WM_INITFONTS (WM_USER + 123)
//I chose 123 cos nobody might use the same exact number.. I can improve this by use RegisterWindowMessage..
// COwnerDrawCombo
//Initial values of the text and highlight stuff
COwnerDrawCombo::COwnerDrawCombo()
m_enStyle = FONTS;
m_clrHilight = GetSysColor (COLOR_HIGHLIGHT);
m_clrNormalText = GetSysColor (COLOR_WINDOWTEXT);
m_clrHilightText = GetSysColor (COLOR_HIGHLIGHTTEXT);
m_clrBkgnd = GetSysColor (COLOR_WINDOW);
m_bInitOver = FALSE;
COwnerDrawCombo::COwnerDrawCombo (STYLE enStyle)
m_enStyle = enStyle;
m_clrHilight = GetSysColor (COLOR_HIGHLIGHT);
m_clrNormalText = GetSysColor (COLOR_WINDOWTEXT);
m_clrHilightText = GetSysColor (COLOR_HIGHLIGHTTEXT);
m_clrBkgnd = GetSysColor (COLOR_WINDOW);
m_bInitOver =FALSE;
COwnerDrawCombo::~COwnerDrawCombo()
BEGIN_MESSAGE_MAP(COwnerDrawCombo, CComboBox)
//{{AFX_MSG_MAP(COwnerDrawCombo)
ON_WM_CREATE()
ON_WM_DESTROY()
//}}AFX_MSG_MAP
ON_MESSAGE (WM_INITFONTS,OnInitFonts)
END_MESSAGE_MAP()
// COwnerDrawCombo message handlers
void COwnerDrawCombo::DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct)
//I might want to add something else someday
switch (m_enStyle)
case FONTS:
DrawFont(lpDrawItemStruct);
break;
//I dont need the MeasureItem to do anything. Whatever the system says, it stays
void COwnerDrawCombo::MeasureItem(LPMEASUREITEMSTRUCT lpMeasureItemStruct)
void COwnerDrawCombo::DrawFont(LPDRAWITEMSTRUCT lpDIS)
CDC* pDC = CDC::FromHandle(lpDIS->hDC);
CRect rect;
TRACE0 ("In Draw Font\n");
// draw the colored rectangle portion
rect.CopyRect(&lpDIS->rcItem);
pDC->SetBkMode( TRANSPARENT );
if (lpDIS->itemState & ODS_SELECTED)
pDC->FillSolidRect (rect,m_clrHilight);
pDC->SetTextColor (m_clrHilightText);
else
pDC->FillSolidRect (rect,m_clrBkgnd);
pDC->SetTextColor (m_clrNormalText);
if ((int)(lpDIS->itemID) < 0) // Well its negetive so no need to draw text
else
CString strText;
GetLBText (lpDIS->itemID,strText);
CFont newFont;
CFont *pOldFont;
((LOGFONT*)lpDIS->itemData)->lfHeight = 90; //9 point size
((LOGFONT*)lpDIS->itemData)->lfWidth = 0;
newFont.CreatePointFontIndirect ((LOGFONT*)lpDIS->itemData);
pOldFont = pDC->SelectObject (&newFont);
pDC->DrawText(strText, rect, DT_LEFT | DT_VCENTER | DT_SINGLELINE);
pDC->SelectObject (pOldFont);
newFont.DeleteObject ();
void COwnerDrawCombo::InitFonts ()
CDC *pDC = GetDC ();
ResetContent (); //Delete whatever is there
EnumFonts (pDC->GetSafeHdc(),NULL,(FONTENUMPROC) EnumFontProc,(LPARAM)this);//Enumerate
m_bInitOver = TRUE;
BOOL CALLBACK COwnerDrawCombo::EnumFontProc (LPLOGFONT lplf, LPTEXTMETRIC lptm, DWORD dwType, LPARAM lpData)
if (dwType == TRUETYPE_FONTTYPE) //Add only TTF fellows, If you want you can change it to check for others
int index = ((COwnerDrawCombo *) lpData)->AddString(lplf->lfFaceName);
LPLOGFONT lpLF;
lpLF = new LOGFONT;
CopyMemory ((PVOID) lpLF,(CONST VOID *) lplf,sizeof (LOGFONT));
((COwnerDrawCombo *) lpData)->SetItemData (index,(DWORD) lpLF);
return TRUE;
int COwnerDrawCombo::OnCreate(LPCREATESTRUCT lpCreateStruct)
if (CComboBox::OnCreate(lpCreateStruct) == -1)
return -1;
// TODO: Add your specialized creation code here
if (m_enStyle == FONTS)
//SetItemHeight(-1,30);
PostMessage (WM_INITFONTS,0,0);
return 0;
long COwnerDrawCombo::OnInitFonts (WPARAM, LPARAM)
InitFonts ();
return 0L;
void COwnerDrawCombo::OnDestroy()
if (m_enStyle == FONTS)
int nCount;
nCount = GetCount ();
for (int i = 0; i < nCount; i++)
delete ((LOGFONT*)GetItemData (i)); //delete the LOGFONTS actually created..
// TODO: Add your message handler code here
CComboBox::OnDestroy();
void COwnerDrawCombo::FillFonts ()
m_enStyle = FONTS;
PostMessage (WM_INITFONTS,0,0); //Process in one place
int COwnerDrawCombo::GetSelFont (LOGFONT& lf)
int index = GetCurSel ();
if (index == LB_ERR)
return LB_ERR;
LPLOGFONT lpLF = (LPLOGFONT) GetItemData (index);
CopyMemory ((PVOID)&lf, (CONST VOID *) lpLF, sizeof (LOGFONT));
return index; //return the index here.. Maybe the user needs it:-)
void COwnerDrawCombo::PreSubclassWindow()
// TODO: Add your specialized code here and/or call the base class
//Tried to do what Roger Onslow did for the button.. Did not work..?? Any R&D guys around :-)
Can anyone please let me know how can I achieve this.
Any help can be appreciated.
Thanks in advance
SivaVHi sivavuyyuru,
I cannot find a easy way to make this.
I think you may need to draw your own Combo Box control. And you could change the edit control more like static text. Check the article:
http://www.codeguru.com/cpp/controls/combobox/fontselectioncombos/article.php/c1795/Owner-Drawn-Font-Selection-Combobox.htm
In the resource editor, Owner draw -> variable , Has string->true, type->drop list.
The result:
Best regards,
Shu Hu
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. -
HOW TO TRANSPORT THE STANDARD TEXT FROM ONE SERVER TO ANOTHER?
After creating the standard text in SO10 transaction
it will not ask for any transport request no while saving ,
i want to transport the standard text from development to test server.
how can we do that?Hi Riaz,
To transport a Standard Text through a transport request , you need to attach the standard text through the transaction RSTXTRAN.
After executing the report RSTXTRAN , you can enter first the task name then the Object as TEXT , then the name of the standard text , ID as ST, then the language as EN or something else .then execute.
you cannot attach a standard text to an unassigned task.Firat you have to either activate a smartform or a script with that task then only you have to attach a standard text.
I think your query is almost answered .
Reward if you please.
Thanks & regards,
Ram -
Problem with retrieve the chinese text from oracle DB
my running enviroment is
Linux 6.0+ apache Jserv+java 1.1+oracle 8.05
my db character set is zhs16cgb231280.
when i retrieve the chinese text using servlet and forward to client browser. it doesnt display the text property.but if i transfer the data to an Applet. it will be ok.
my knowledge is oracle using unicode to communicate between db and JDBC.
So i dont know how to solve my problme.
Who can help me?
Thanks AdvancedHello,
What's the charset of your database? Mine is AMERICAN_AMERICA.UTF8
In this case, I could successfully insert and retrieve the Chinese characters without any encoding parameter in the getString() method. Perhaps you could try it. -
How to copy header/item text from Quotation to sales order?
Dear All,
On ECC 6, I am trying to get text copied from the quotation to the sales order (when the order is created with reference to the quote).
As of now, the order creation is fine with all the right items & partners etc. in it, but the text is missing.
The same text IDs have been assigned to both documents (at header & item levels).
Is the text content supposed to be copied by standard SAP? Is there any customizing needed for this? Please guide me on how I can achieve this.
Please help.
Thanks
Best regards,
Rohit L
Edited by: Rohit Lokray on Nov 26, 2009 10:49 AMHi Rohit,
Pls check this e.g.
Text Determination Procedure
You can define text for
Customer
Sales document
Delivery
Billing
1) Create new text types
(Menu Path: SPRO-IMG-Sales and distribution- Basic function-Text Control-Define text type). You can define new text type in this menu for your requirement for different objects (Customer, Sales document, Delivery and billing document). T-code: VOTXN
2) Assign the new text ID in the text determination procedure
(Menu Path: SPRO-IMG-Sales and distribution-Basic function- Text Control-Define text type). Click on change on application tool bar. Select text procedure created and double click on Text ID' s in text Procedure. Assign new text Id to Text determination procedure
3) Define and Assign an access sequence to the new text ID
(Menu Path: SPRO-IMG-Sales and distribution-Basic function-Text Control-Define access sequence for determining text).Access sequence can be defined only for sales document not for customer master. Select text procedure and double click on text id's in text procedure folder. Select text id and double click on access sequence and create new access sequence here.
4) Assign the Text determination procedure with the sales document type.
(Menu Path: SPRO-IMG-Sales and distribution-Basic function-Text Control-Define and assign text determination procedure) In this menu path you can assign text determination procedure to sales document type.
[http://help.sap.com/saphelp_erp60_sp/helpdata/en/90/758534c960a134e10000009b38f83b/frameset.htm] -
How to remove the item content from my alert Template (alerttemplates.xml) .
I have enabled alerts to be send from my enterprise wiki & announcement list. Currently the alert email, will display the item content inside the email (the wiki page content or the announcement list content), which i do not want to have. So is
there a way to remove the item content , so my alert message contains only the following info such as:-
Our Group Intranet
TestItem has been added
Modify my alert settings
|
View TestItem
|
View News & Announcements
|
Mobile ViewHi johnjohn123,
According to your description, my understanding is that you want to change the notification message in the alert template.
You can edit the ImmediateNotificationExcludedFields and DigestNotificationExcludedFields tags to achieve it. After editing the xml, remember apply the template
to your site using the command below.
execute command stsadm -o updatealerttemplates -filename <your modified xml file> -url <your site>
Also, It is not suggested to edit the alert template directly, I suggest you back up the template firstly before customization.
More information:
How to change alert email notification message:
http://dirkvandenberghe.com/2008/01/08/how-to-change-the-alert-email-notification-message-for-announcements.html
AlertTemplates schema:
http://msdn.microsoft.com/en-us/library/office/bb802961(v=office.15).aspx
Best regards,
Zhengyu Guo
Zhengyu Guo
TechNet Community Support -
How to delete the user text from the web gallery presets
How can I delete my user text in the label section from the web module. I can't find a way.
B MammitzschHi Sean,
no I mean the Site title or collecion title box. I hope you know what I mean.
Greetings from the cornish coast
B Mammitzsch -
How to retrieve the header texts for a contract
HI,
i think we need to use the FM read_text to get the header texts for a contract but dont know how to use the FM like what all the parameters are passed to that to get the header texts of a contract(va43).
any help is appreciated with points.
thanks
prasadHi,
Pls refer this code,
CALL FUNCTION 'READ_TEXT'
EXPORTING
client = sy-mandt
id = '0001'
language = sy-langu
name = v_textid
object = 'KNMT'
IMPORTING
header = t_header
TABLES
lines = t_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 EQ 0.
LOOP AT t_lines.
CONCATENATE w_arktx t_lines-tdline INTO w_arktx
SEPARATED BY space.
ENDLOOP.
ENDIF.
IF w_arktx NE space.
MOVE w_arktx+1(1583) TO t_lips-arktx.
ELSEIF w_arktx EQ space.
CLEAR w_text_name.
CLEAR v_textid.
wa_lips-matnr = t_lips-matnr.
wa_lips-vkorg = t_likp-vkorg.
wa_lips-vtweg = t_lips-vtweg.
w_text_name = wa_lips.
CLEAR w_arktx.
Retrieval of Sales Text
CALL FUNCTION 'READ_TEXT'
EXPORTING
client = sy-mandt
id = '0001'
language = sy-langu
name = w_text_name
object = 'MVKE'
IMPORTING
header = t_header
TABLES
lines = t_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 EQ 0.
LOOP AT t_lines.
CONCATENATE w_arktx t_lines-tdline INTO w_arktx
SEPARATED BY space.
ENDLOOP.
ENDIF.
IF w_arktx NE space.
MOVE w_arktx+1(1583) TO t_lips-arktx.
ELSE.
REgards
srinivas -
How to get the field texts from abap dictionary into screen Text fields
Hi SapAll.
here i have got to modify one zscreen by adding 1 more field,when i added one field in teh screen by just writng the code in program as SELECT-OPTIONS ilart FOR CAUFVD-ILART.
but iam unable to get the field text for the text field from teh table CAUFVD.
CAN ANY BODY HELP ME IN THIS.
regards.
varmaHi Varma,
Even if you want to personalise the Text also you can do without checking the DICTREF checkbox. Dirctly you can give the text in the Text elements by using the Menu GOTO -> Text Elemetns -> Selection Texts.
Regards
Thiru
Maybe you are looking for
-
My pictures won't show up on my Hard Drive when I try to view them from my MacBook Pro
I just came back from a trip and have been trying to get my pictures off my iPhone and other camera to put on my external hard drive (it's about 17 GB, so I don't want to waste the space by keeping them on my MacBook). I transferred all the pictures
-
i recently installed pny 3500 mem on my msi kt4v mobo it worked for 3 boots then it would not boot up so i replased it with old memory (2 x 256mg) that worked fine before,now i can boot up and run fine for three to four min. then my com runs very slo
-
How to make an organization specific request
Hi All, I am trying to build an application where, I need to send a organization specific shipping request to the third party application. i.e when I try to send a request the application should ask me from which organization request should be sent l
-
Optimum screen resolution?
I'm a newbie to using CS4 and I'm experimenting with the screen resolution on my 24" monitor. Dell recommends 1900x1200 but the text is too small to read comfortably at that resolution. I've read that 1024x768 is the minimum resolution suggested by
-
Replication of storage loaction issue from crm to ecc
HI Experts , I am facing issue while store location replication from CRM to ECC. I have create field "Hub Location" using AET on web ui and behind that store location search field is working . I have already created a Order . I have copied that or