How to get the field name in the PAI
Hello All.
I have to run a FM on one of two fields in the screen.
I don't want to write two different moudles to these fields like this:
FIELD scr100-lenum1 MODULE check_lenum1 ON REQUEST.
FIELD scr100-lenum2 MODULE check_lenum2 ON REQUEST.
I want write one moudle that i could ask there - > from which field did i came, like this:
FIELD scr100-lenum1 MODULE check_lenum ON REQUEST.
FIELD scr100-lenum2 MODULE check_lenum ON REQUEST.
please advice..
thanks, Barak.
Use get cursor statement.
Ex:
GET CURSOR FIELD wa_field1.
u will get the filed name in wa_field1.
Reward points if helpfull.
Regards,
Gopi
Similar Messages
-
Is there any way to read the field name,through the property binded to it.
Hi
I want to know that,is there any method exits with which i can find the field names of the screen,if i have the property attribute with me.
as my req is to make the validation for the property attr,& check how many fields are binded with the single property attr,i have read the property attr dynamically,now need to find the fields linked,& need to check how many fields have not field value,& through the error msg.just read the attribute binded to properties using code wizard ( Control + F7).
Code generalted will be like :
DATA lo_nd_cn_check TYPE REF TO if_wd_context_node.
DATA lo_el_cn_check TYPE REF TO if_wd_context_element.
DATA ls_cn_check TYPE wd_this->element_cn_check.
DATA lv_ca_check LIKE ls_cn_check-ca_check.
navigate from <CONTEXT> to <CN_CHECK> via lead selection
lo_nd_cn_check = wd_context->get_child_node( name = wd_this->wdctx_cn_check ).
get element via lead selection
lo_el_cn_check = lo_nd_cn_check->get_element( ).
get single attribute
lo_el_cn_check->get_attribute(
EXPORTING
name = `CA_CHECK`
IMPORTING
value = lv_ca_check ).
Here i have read attribute CA_CHECK. -
I wish to modify the name of one of the field name in the sales order.
HELLO GURRRUS,
i wish to modify teh name of one of the field name in the sales ordder.
what is the procdure,path and steps involved in that.it would be of great help of me if u take some time and suggest me.
bye take care hav a happy and peaceful lifeHi Sameer,
If you want to change the name or description of the field in the Sales order,
you have to use the userexit MV45AFZZ and use the Form USEREXIT_FIELD_MODIFICATION.
Get the help of the ABAPer and decide where do you want to make the change in the Header or the Line items. Accordingly give the requirements to the ABAPer.
He will do it.
Thanks
Augustine Ponraj -
How to display header fields names in the next page in report6i
how to display repeat header field names into the next page in report6i urgent plz......
When i am runing report in 1st page only the header information is displaying in 2 page the header info is not displaying only records are displaying.So i want to display the header info in 2nd page also.
Plz help out.Hello,
Go to the report layout model and select those items/objects which are not getting display on next page and open the property pallet by pressing F4 key and set the property Print Object On to All Pages then it will display on all pages.
-Ammad -
How to get a server name through the load balancer
Hi.
I'd like to get the server name where is my application installed. There are some servers and clients access there throuth the load balancer. When I try to get it with request.getServerName(), I get the virtual address of the load balancer.
Any suggestions?
Thanks.Dear Sikindar;
THanks for your cooperation, but I believe that these Tcodes will eb helpful if I know the table name, actually we don't know its name and that's what I'm asking about, how can I get the table name for the ABAPer?
Appreciating your cooperation.
Best Regards;
Lobna -
How can i read the field name in the internal table
Hi friends
i want to read the internal table filed name.
my requirement is like this:
data: begin of t_header occurs 0,
extno(12),
priotiy(5),
ecnumber(10).
end of t_header.
loop at t_header.
if the field name is priority i want to write some other
logic here.....
endloop.
Please tell me how can i do this.data: wf_fld_cat type slis_t_fieldcat_alv .
data: wf_repid like sy-repid .
data: int_tab_name type slis_tabname .
move: sy-repid to wf_repid ,
'INT_OUTPUT' to int_tab_name .
call function 'REUSE_ALV_FIELDCATALOG_MERGE'
exporting
i_program_name = wf_repid
i_internal_tabname = int_tab_name
I_STRUCTURE_NAME =
I_CLIENT_NEVER_DISPLAY = 'X'
i_inclname = wf_repid
i_bypassing_buffer = 'X'
I_BUFFER_ACTIVE =
changing
ct_fieldcat = wf_fld_cat[]
exceptions
inconsistent_interface = 1
program_error = 2
others = 3
if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
wf_fld_cat[] will hold the itab definition.
Regards
Raja -
How to get ther servlet name from the Httprequest / servletContext
Hi,
How can I get the servlet name from the Http Request / Servlet conext?
ArthikI have a requirement to call the business logic either in local server / external server.
Local / External server
The original / main request is made to the server from the client and from the server if the main request requires some resource (second request from server side) available in the external server then I need to make a URL connection. If the requested resource is the local resource then I need to by-pass the HTTP call. So I need to verify the server name , port with the originally requested server.Then I need to check if the request servelt is available in local or not.
Can you please help me. -
How to get a field value in the report
hi all :-
i need to get the field value in the formate trigger inside a specified field in the report?please post your request in the report category forum
-
How to get value and name of the n'th parameter in a pl/sql funct./proced.
procedure test(name varchar2, birthdate date, zip number, country varchar2);
in procedure x I do
test('Michael Postmann', to_date('03.01.1983', 'DD.MM.YYYY'), 7461, 'AUSTRIA');
And this should htp.print the following:
test: name=Michael Postmann,birthdate=1983/01/03,zip=7461,country=AUSTRIA
In procedure test I want to know:
*) What is the name of myself (the procedure)
*) Optionally: Am I a procedure or a function?
*) How many Parameters do I have?
*) What are the values of them?
*) What are the names of them?
*) Optionally: What are the types of them?
What I actually want to do is:
I have a procedure for logging errors. So in my program I call this function frequently and I want it to log the current time, a string passed to the logging function, the client's ip, etc.... but it should also log a list of the parametrs and values of the procedure/function where the error occoured.
Is there any way to do this (I think in C this is done by argc and argv, but a string containing all the information (as you get it from the WebDb when something goes wrong) would be enough)?
Thx in advance,
Nomike aka Michael PostmannName of procedure or function can be retrieved using DBMS_UTILITY.FORMAT_CALL_STACK:
CREATE OR REPLACE FUNCTION fn_whoami (v_in varchar2)
RETURN varchar2
AS
v_stack varchar2(1000) DEFAULT DBMS_UTILITY.FORMAT_CALL_STACK;
v_job varchar2(500);
v_name varchar2(100);
BEGIN
v_job := SUBSTR(v_stack,INSTR(v_stack,'function'),256);
v_name := SUBSTR(v_job,1,INSTR(v_job,CHR(10))-1);
return v_name;
END fn_whoami;
select fn_whoami('1') from dual;
CREATE OR REPLACE PROCEDURE pr_whoami
AS
v_stack varchar2(1000) DEFAULT DBMS_UTILITY.FORMAT_CALL_STACK;
v_job varchar2(500);
v_name varchar2(100);
BEGIN
v_job := SUBSTR(v_stack,INSTR(v_stack,'procedure'),256);
v_name := SUBSTR(v_job,1,INSTR(v_job,CHR(10))-1);
dbms_output.put_line(v_name);
END pr_whoami;
exec pr_whoami; -
How to display the field name in the tabulated view for a content query web part
I have added a content query web part changed the web part file to include custom columns imported and reffered itemstyle.xsl
to include the tabulated view for the content query.
However the way it is displayed is such that only the content is displayed.
As i am using a tabular view wto display the data, i want to display their field names as well.Hi ,
According to your description, my understanding is that you need to display the field in the tabulated view for a content query web part.
For your issue, please refer to the code as below:
<xsl:template name="VendorCustomStyle" match="Row[@Style='VendorCustomStyle']" mode="itemstyle">
<html>
<table width="100%">
<xsl:if test="count(preceding-sibling::*)=0">
<tr>
<td width="8%" valign="top"><div class="item"><b>Vendor ID</b></div></td>
<td width="12%" valign="top"><div class="item"><b>Vendor Name</b></div></td>
<td width="50%" valign="top"><div class="item"><b>Vendor Description</b></div></td>
<td width="10%" valign="top"><div class="item"><b>Vendor Country</b></div></td>
<td width="10%" valign="top"><div class="item"><b>Vendor Date</b></div></td>
<td width="10%" valign="top"><div class="item"><b>Created By</b></div></td>
</tr>
</xsl:if>
<tr>
<td width="8%" valign="top"><div class="item"><xsl:value-of select="@VendorID" /></div></td>
<td width="12%" valign="top"><div class="item"><xsl:value-of select="@Title" /></div></td>
<td width="50%" valign="top"><div class="item"><xsl:value-of select="@Vendor_x005F_x0020_Description" disable-output-escaping="yes" /></div></td>
<td width="10%" valign="top"><div class="item"><xsl:value-of select="@Vendor_x005F_x0020_Country" /></div></td>
<td width="10%" valign="top"><div class="item"><xsl:value-of select="@Vendor_x005F_x0020_Date" /></div></td>
<td width="10%" valign="top"><div class="item"><xsl:value-of select="@Author" /></div></td>
</tr>
</table>
</html>
</xsl:template>
For more information, please have a look at the blog:
http://www.codeproject.com/Articles/756834/Customizing-the-Content-Query-Web-Part-and-Item-St
http://msdn.microsoft.com/en-us/library/ms497457.aspx
http://clarksteveb.hubpages.com/hub/Customized-Content-Query-Web-Part-CQWP-in-SharePoint-2007-with-results-Tabbed-Grouped-and-in-an-HTML-Table
http://blog.sharepointexperience.com/customitemstyle/
Best Regards,
Eric
Eric Tao
TechNet Community Support -
How to change a field name in the client web interface
Hello,
I need to change name of the field in the Shopping cart Basic data (field Location). Where could I do this?
Thank you in advance,
OlgaHi
<u>Which SRM Version are you using ?</u>
Incase you do not want the storage location fiels displayed in the item details then you can modify the template saplbbp_sc_ui_its_300.html to hide the field.
By creating screen variant in transcation SHD0 and implementing that screen variant in BBP_screenvariant BADI you can hide the fields.
Let me know the transaction and fields what you want to hide I can look at it.
<b>Related links -></b>
Hide field in SRM"Shopping Cart Status-> Finding shopping cart" html screen
Re: shide some search criteria in Shopping Cart Status
Note 974236 - Shopping Cart - Field control
Regards
- Atul -
Dynamically stating the field name in the WHERE clause
Hello All,
Consider the following select statement.
SELECT kunnr INTO TABLE gt_kunnr
FROM kna1
FOR ALL ENTRIES IN gt_table
WHERE kunnr = gt_table-<b>cust_id</b>.
Suppose there is a case where I do not know the name of the internal table field
(say, "cust_id" in the above case) with which comparison is to be done in the WHERE clause. Only at runtime that fieldname is available. So in the WHERE clause can I mention it dynamically?
I tried using the following.
lv_fieldname = 'cust_id'.
SELECT kunnr INTO TABLE gt_kunnr
FROM kna1
FOR ALL ENTRIES IN gt_table
WHERE kunnr = gt_table-<b>(lv_fieldname).</b>
But this is giving a syntax error.
Could anyone suggest an alternate approach?
Regards
Indrajit.Hi,
It is fine with Enterprise version but when I am trying to run the following code in Rel 4.6C, I am getting a syntax error.
TYPES: BEGIN OF ty_wherecond,
data(72) TYPE c,
END OF ty_wherecond.
DATA: gt_itab1 TYPE STANDARD TABLE OF kna1,
gt_itab2 TYPE STANDARD TABLE OF kna1.
DATA: BEGIN OF gt_kunnr OCCURS 0,
kunnr TYPE kunnr,
END OF gt_kunnr.
PERFORM fill_itabs TABLES gt_itab1
gt_itab2.
*& Form fill_itabs
text
-->P_T_TABLE text
FORM fill_itabs TABLES p_t_table
pt_table_dummy.
DATA: lv_fieldname(30) TYPE c VALUE 'pt_table_dummy-kunnr'.
DATA: lt_wherecond TYPE STANDARD TABLE OF ty_wherecond,
lt_condtab TYPE STANDARD TABLE OF hrcond,
ls_condtab TYPE hrcond.
FIELD-SYMBOLS <fs_wherecond> TYPE ty_wherecond.
pt_table_dummy[] = p_t_table[].
CLEAR ls_condtab.
REFRESH: lt_wherecond[],
lt_condtab[].
ls_condtab-field = 'KUNNR'.
ls_condtab-opera = 'EQ'.
ls_condtab-low = lv_fieldname.
APPEND ls_condtab TO lt_condtab.
CALL FUNCTION 'RH_DYNAMIC_WHERE_BUILD'
EXPORTING
dbtable = space " can be empty
TABLES
condtab = lt_condtab
where_clause = lt_wherecond
EXCEPTIONS
empty_condtab = 01
no_db_field = 02
unknown_db = 03
wrong_condition = 04.
LOOP AT lt_wherecond ASSIGNING <fs_wherecond>.
REPLACE '''' WITH '' INTO <fs_wherecond>-data.
REPLACE '''' WITH '' INTO <fs_wherecond>-data.
ENDLOOP.
SELECT kunnr INTO TABLE gt_kunnr
FROM kna1
FOR ALL ENTRIES IN pt_table_dummy
WHERE (lt_wherecond).
IF sy-subrc EQ 0.
ENDIF.
ENDFORM. "fill_itabs
The syntax error says "The WHERE condition does not refer to the FOR ALL ENTRIES table".
Even after using the FM 'RH_DYNAMIC_WHERE_BUILD' as suggested by you, the syntax error is coming.
Could you please suggest how to ignore this?
Regards
Indrajit. -
Can you change the field names in the address book?
Can you change the Pager field name to read 2nd cell?
No.
This add-on https://freeshell.de//~kaosmos/morecols-en.html allows you to modify the labels of the 4 custom fields of the contact card -
How to get custom field name and value in data table using csom
i am using using this code but iam not getting FieldValues property..
internal void ReadProjectCustomFields(string strProjectName)
string url = "https://techwhizepm.sharepoint.com/sites/rnd/";
using (ProjectContext projContext = new ProjectContext(url))
SecureString passWord = new SecureString();
foreach (char c in "Pass@word123".ToCharArray()) passWord.AppendChar(c);
projContext.Credentials = new SharePointOnlineCredentials("[email protected]", passWord);
projContext.Load(projContext.Projects, o => o.Where(i => i.Name == strProjectName));
projContext.ExecuteQuery();
foreach (PublishedProject _t in projContext.Projects)
DraftProject dftproj = _t.Draft;
//CustomFieldCollection custs = dftproj.CustomFields;
CustomFieldCollection custfs = dftproj.CustomFields;
projContext.Load(dftproj);
projContext.Load(custfs);
projContext.ExecuteQuery();
ddlcfields.Items.Clear();
if (!custfs.Count().Equals(0))
ddlcfields.DataSource = custfs.AsEnumerable().Select(o=>o.Name);
ddlcfields.DataBind();
DataTable dt = new DataTable();
dt.Columns.Add("Name", typeof(string));
dt.Columns.Add("InternalName", typeof(string));
dt.Columns.Add("FieldType", typeof(string));
//dt.Columns.Add("FinishDate", typeof(string));
DataRow dr = null;
foreach (CustomField _cust in dftproj.CustomFields)
dr = dt.NewRow();
dr["Name"] = _cust.Name;
string intername = _cust.InternalName;
dr["FieldValue"] = dftproj[intername].ToString();
//dr["FinishDate"] = _task.Finish;
dt.Rows.Add(dr);
GridView1.DataSource = dt;
GridView1.DataBind();I am looking through the API calls in FDM Workbench, but cannot see the table (tPOVPartitions) you mentioned listed. Is this the correct name? And do I just use the function listed in the object browser to run the query?
Furthermore (going back to my initial thoughts of using strFile), it appears that although the variable contains the .Dat filename and path, the actual file is non-existent when "BefExportToDat" is executed:
Error:
Error: Export failed.
Detail: File not found.
This would make sense, but it does make the variable "strFile" a little pointless since one cannot make use of the file in this particular event script. Do you please have any thoughts on this? -
Finding out the field name from the columns shown on the screen
Hi,
I am new to CRMOD.
I see a lot of columns shown on the screen, say in the Account object.
Is there a way to find out which column in the Detail screen maps to which exact field in the Admin page ?
Appreciate all the help
RegardsIf you go to Admin > Application Customization > Account > Account Field Setup, you will see the list of all the fields. If you have custom fields, then click on the Rename button on the top left corner of the page, and then Advanced and it will show you the ITAGs of the fields.
Since you are new to CRMOD, play around with it and also read the help file and you would understand the app a lot better
Udaya
Maybe you are looking for
-
Calling external C procedures from PL/SQL
Hello, The first two development steps for external C procedures are: 1. Create and compile the external procedure in 3GL. 2. Link the external procedure with the standard shared library at the operating system level. For others, for example for 3. C
-
Archivelink - How configure a printer ?
Hello, to use archivelink, need to configurate new printer or is possible to use de default printer ? I read that archivelink use a printer like a new unit logic, but how mean it ? tks, Roberto.
-
Hi, I believe this has been posted on the forum before, but when searching I never found an answer. I am wondering if anybody has heard any information on plans for SAP to release LiveCycle Designer 8.2 integrated with SAP? I believe there were pla
-
Remove "Edit" from contacts page
Hi All, I have attached "Contacts" Page to my room template , created lay out set for user not to add contacts and folder ie removed new contact and new folder. but on right corner of the page , edit button still there for user contacts page - where
-
OptimisticConcurrencyException with one user, one table
hi, I found this topic http://forums.bea.com/bea/message.jspa?messageID=202428380&tstart=90 where optimistic concurrancy is causing trouble on WLS 7.0. We're currently having sporadic OptimisticConcurrencyExceptions where only one user is working on