Changing ALV list field name
Hi
In webdynpro application the ALV list display the field name which is in table description i want to put my preferable field name. Do u all have any idea how is it possible
Hello,
U could bult the fildcatalog like this:
* Sales Order Number
CLEAR L_FIELDCAT.
L_FIELDCAT-TABNAME = 'G_T_OUTTAB'.
L_FIELDCAT-FIELDNAME = 'VBELN'.
L_FIELDCAT-SELTEXT_M = TEXT-002. " Ur own text
L_FIELDCAT-COL_POS = 1.
L_FIELDCAT-KEY = 'X'.
APPEND L_FIELDCAT TO IT_FIELDCAT.
CLEAR L_FIELDCAT.
If useful reward.
Vasanth
Similar Messages
-
ALV List - Field Catalog - Change Column width
Hi Friends,
I am using Alv list to display the output of a report program. I have generated the field catalog using REUSE_ALV_FIELDCATALOG_MERGE function and to display the alv REUSE_ALV_LIST_DISPLAY.
My Internal table has few fields like "text1 type string". So after generating the Fieldcatalog from internal table i have changed the field description, but i don't know how to change the column output display width. I have tried by changing OUTPUTLEN parameter to 50 but in the output it is taking only 10 characters instead of 50 characters.
How can i change the field length(FOR STRING TYPE) for output display ??
Which parameter do i need to change in field catalog for String type fields..
Regards,
Raju.
Message was edited by: Narayana Raju SampathiraoHi narayana,
1. the STRING type is causing the problem.
2. what u can do is,
(i suppose u are modifying the alv field catalogue)
One workaround is :
and it works fantastic !
3. BOLD is important.
(this will take care of the length)
LOOP AT alvfc INTO alvwa.
IF alvwa-fieldname = 'A'.
alvwa-outputlen = '100'.
<b> alvwa-inttype = 'CHAR'.</b>
MODIFY alvfc FROM alvwa.
ENDIF.
ENDLOOP.
4. To get a TASTE of what i m saying,
just copy paste in new program :
REPORT abc.
TYPE-POOLS : slis.
Data
DATA : BEGIN OF itab OCCURS 0,
a TYPE string.
INCLUDE STRUCTURE t001.
DATA : END OF itab.
DATA : alvfc TYPE slis_t_fieldcat_alv.
DATA : alvwa TYPE slis_fieldcat_alv.
Select
SELECT * FROM t001 INTO CORRESPONDING FIELDS OF TABLE itab.
LOOP AT itab.
itab-a = 'pppppppppppppppppppppp'.
MODIFY itab.
ENDLOOP.
*------- Field Catalogue
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
i_program_name = sy-repid
i_internal_tabname = 'ITAB'
i_inclname = sy-repid
CHANGING
ct_fieldcat = alvfc
EXCEPTIONS
inconsistent_interface = 1
program_error = 2
OTHERS = 3.
LOOP AT alvfc INTO alvwa.
IF alvwa-fieldname = 'A'.
alvwa-outputlen = '100'.
alvwa-inttype = 'CHAR'.
MODIFY alvfc FROM alvwa.
ENDIF.
ENDLOOP.
Display
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
it_fieldcat = alvfc
TABLES
t_outtab = itab
EXCEPTIONS
program_error = 1
OTHERS = 2.
regards,
amit m. -
Changing a text field name in an existing PDF via VBA
Using OLE, I am accessing a given form with the following code:
Function GetTextFieldNames(strFormName As String, strFieldName)
Dim myApp As AcroApp
Dim acForm As Acrobat.AcroPDDoc
Dim jso As Object
Dim strTest As String
Dim Field As Object
'Set the object references
Set myApp = CreateObject("AcroExch.App")
Set acForm = CreateObject("AcroExch.PDDoc")
acForm.Open (strFormName)
Set jso = acForm.GetJSObject
Set Field = jso.getField(strFieldName)
'Clean up
acForm.Close
myApp.Exit
Set myApp = Nothing
Set acForm = Nothing
End Function
The two items that I would like to achieve are:
1. Getting a list of fieldnames on the form referenced
2. Changing the field name (in this case, a textbox or checkbox) programmatically.
However, I have not had any success in retrieving a list of available field names, nor have I been able to modify the name of the field. Any ideas?
i.e. It would be nice one could say
For i = 0 to acForm.[FieldCount]
Set Field = jso.GetField(i)
Print Field.Name
Next i
...and
Field.Name = "NewFieldName"
I hope that helps to explain what I am trying to accomplish. Any ideas are appreciated. Thank you!Have you consulted the documentation in the SDK about what methods are available? It will show you how to get the list of fields and/or the proper count for iteration.
IIRC you can't change the name via VBA -
Using Javascript to change multiple text field names
I have a pdf with multiple text fields. I need to change all the text field names (General -> Name) so that they are unique so that when I combine multiple pdfs together, the text fields will stay intact. Is there anyway to do this using javascript? Thanks!
I'm new to javascript too...it will be very helpfull for me too...Thanks
poltrone
prodotti chimici -
Change Confirmation list field order
Hello Gurus
@IW41 transaction code I want to change order of fields as listed in Time Confirmation Table Control. How can I change order of fields in table control?
Thanks
Mehmet AvsarHi,
I'm not sure what exact table control you reference in IW41. Do you mean IW42 ?
Generally you can click on the column heading and move it to the required position. Use the configuration icon in the top-right of the table to create a variant for the revised layout.
-Paul -
How to dynamically list field names
Hello,
I have a DB Link to a SQL 2000 Server and can connect and retrieve using Heterogenous Servives.
Let say I issued a Select (eg., Select * from tab@remote1), how do I dynamically list each field name from the result?
Thank you.The best way to deal with dynamic column names from a SQL result is to use a cursor describe interface.
A SQL SELECT may not select all the columns from a table. It may join tables. It may add derived and calculated columns to the result.
None of these will be seen when using the data dictionary. Also, using a remote heterogeneous data dictionary? That does not sound like a sensible approach to me.
In PL/SQL, one can create DBMS_SQL cursors. These cursors can be "described" - i.e. the describe interface for a cursor tells you what the contents are, the column names, the data types, the precision, etc.
Using DBMS_SQL allows you to describe any result set from any SELECT statememt. A far superior and accurate method than to go data dictionary hunting to determine just which column could be in a result set. -
Web Service XML Changes Return Table Field Names
I am writing a Web service to return a employee information from SAP using .Net Connector. My Webservice XML changes return table column names with few escape characters. Does anyone know why this happens? and How to prevent it?
Every column name is changed: e.g. PERS_NO to PERS_--5fNO
NCo -> 2.0
RFC- > Custom Function module
RFC Return Type -> ZFPSYNC
VS.Net -> VS Studio 2003, ( C# Web service)
Here is part of XML document:
<?xml version="1.0" encoding="utf-8" ?>
- <ArrayOfZFPSYNC xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://tempuri.org/">
- <ZFPSYNC>
<PERS_5fNO>00100001</PERS_5fNO>
<PDS_5fEMPID>00054740</PDS_5fEMPID>
<SSN>001380261</SSN>
<NAME_--5fPFX />
<FIRST_5fNAME>Tuesday</FIRST_5fNAME>
<LAST_5fNAME>October</LAST_5fNAME>
<NAME_--5fSFX />
<PRIOR_5fNAME>Tuesday October</PRIOR_5fNAME>
<NICKNAME />
<CO_5fCODE>TAX</CO_5fCODE>
<CO_5fCODE_5fT>Tax LLP</CO_5fCODE_5fT>
<CO_5fCTRY>US</CO_5fCTRY>
<ORG_5fUNIT>50191687</ORG_5fUNIT>
<ORG_5fUNIT_5fT>Northeast Region Lead Tax</ORG_5fUNIT_5fT>
<EE_5fLEVEL>C1</EE_5fLEVEL>
<EE_5fLEVEL_5fT>Firm Director</EE_5fLEVEL_5fT>
<SRV_5fAREA>TAX</SRV_5fAREA>
<SRV_5fAREA_5fT>Tax</SRV_5fAREA_5fT>
<JOB_5fFAM>CS-TAX</JOB_5fFAM>
<JOB_5fFAM_5fT>CS - Tax</JOB_5fFAM_5fT>
<PER_5fAREA>BOSX</PER_5fAREA>
<PER_5fAREA_5fT>Boston-Berkeley St-TAX</PER_5fAREA_5fT>
<PER_5fADDR>200 Berkeley Street</PER_5fADDR>Please install patch from OSS note 506603. This should correct the problem.
-
Change value of field name while debugging
Hello,
i need to debug the user exit . i made the break points .
the problem that i got is , while executing the t-code kgi2 , i get like 100 records in a table and i have to check for the particular value at number 50 and 70 .
But when i debug , the debugging starts from number 1 and it takes lot of time to reach to number 50 .
I wanted to chnage the value of the field while debugging . i tried to click on the pencil on the right and chnage the value but i get the message "no authorization for replace".
Anybody knows how i can reach to number 50 directly without going to all 49 values .
please help sap gurus .........
Sumit
Edited by: sumit123 on Apr 15, 2010 11:48 AMHi summit,
In the dubugging
click on watch point button.. you will gte a poupup
asking for fieldname ie : which field value u want to check
say in your internal table matnr is one of the field and if you have 1000 records and if you want to check for a particular value
then given as below
in the field name = wa_itab-matnr
option = = ( euqal )
value = 200 ( your rquired value )
click on ok button
wtach point will be create now press f8 it will stoed at that particular loop pass ie : when your condition is met.
Let me know if you need any further info
Regards
Satish Boguda -
Hierarchical alv list field catalog
hi, i am diplaying a hierarchical list through ooalv.
i am using the cl_salv_hierseq_table=>factory method.
CALL METHOD cl_salv_hierseq_table=>factory
EXPORTING
t_binding_level1_level2 = lt_binding
IMPORTING
r_hierseq = gr_table
CHANGING
t_table_level1 = T_HEADER
t_table_level2 = T_ITEM.
Could anyone please tell me how do i pass a FIELD CATALOG in the above function.
I checked the parameters of the above function and it has only 4 parameters
as used above.When you create the ALV using the SALV OM, system creates the Field Catalog and some default setting based on the table columns. So, change any of the column properties, you have to get the Column object and process the column.
Check the program SALV_DEMO_HIERSEQ_COLUMN.
Regards,
Naimesh Patel -
Changing address book field name with automator
can anyone advise how to change a field in multiple contacts using automator, ie i need to change either the 'work mobile', or 'home mobile' field to the simple 'mobile' so as to fix the phone book error i now have on my sony p900 since the recent 10.4.6 update rebuilt the phone version of my addressbook,
the mobile now will not recognise the changed fields as mobile phones but as land lines, making the sending of sms etc difficult.
As i have over 400 contacts this is a pain indeed....
any genius scripters out there who can both help and explain?
thanks
simonHi,
According to your description, the name of a address list container is changed through Exchange management tool. However, Outlook clients still show the old name.
In this case, I recommend you recreate a new profile to check the result. I test it and the address list updates in Outlook client only after I recreate the profile.
If you have any question, please feel free to let me know.
Thanks,
Angela Shi
TechNet Community Support -
Displaying Field Names in a list on the next page
In my BIP template I have a table that lists field names and underneath I have a for-each statement that lists values.
Is there anyway that I can list the field names on the next page when the number of records start to run onto the next page?
Thanks
SteveSelect the field names row, right click -> table properties and check the 'Repeat as header row at the top of each page'
-
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 -
After changing the field name in BM layer, drilldown field is not in order
We have an organization hierarchy region->branch used in our HBD dashboard report. When we drilldown to branch level report by clicking the region field, the result is OK but branch field is not in order. The branch level order was working fine before we changed this BRANCH field name in BM layer from Team/Branch to Branch.
I have confirmed that I know the user who originally posted this to Metalink. This issue is no longer a problem. Rebooting resulted in the order displaying properly.
-
E-recruiting: Requisition management - Possible to change the field names??
Hi to all e-recruiting experts,
Need some assistance pertaining to the requisition management portion in e-recruiting.
We have showed the standard SAP E-recruiting requisition bsp pages to our client and they have requested changes to the field names as they feel that the standard names are not intuitive enough.
For instance,
The field - "Hierarchy Level" - They have requested to change to "Job Grade"
and the field "Functional Area" to "Type of Work".
Is there any way that i can change the name of the field through configurations?
I understand that in a infotype, we can change the field name through translation. But can we change it in BSP? I was told to explore on how to configure via OTR.
Can anyone share on the steps involved?
Many thanks in advance.Well quite easy,
create a context for an otr text (E-Recruiting are in package PAOC_RCF_UI). You will find that in SOTR_EDIT.
Activate this context with implementing BADI BTFR_CONTEXT.
After doing this, adjust context in SOTR_EDIT with Go To -> Context -> Adjust.
Eventually refresh otr buffer with Transaction /$otr
For one text there can be more than one OTR Text in backend, so you might change more than one.
Regards -
Display Technical Field Names within a Transaction Screen
Hi All,
Someone once showed me how to do this and for the life of me I cannot figure out how to do it in ECC 6.0.
I would like to display the technical field names of all fields in a transaction. It is important to note that I am not looking for the <b>F1...Technical Details</b> solution. I am well aware that the technical field name can be retrieved by this method. I am really looking to see all the technical names of the fields in a particular transaction without a lot of clicking and searching.
When I saw this before you could quickly change from technical field names to short field names and vise versa.
I know this could also be accomplished in SE11 or SE16 - but that is not exactly what I am looking for.
Can anyone help??Hi Christopher,
you know that Rollin Stones thing?
You can't always get what you want.
There is no such functionality for standard transactions.
Regards,
Clemens
Maybe you are looking for
-
Performance degradation with addition of unicasting option
We have been using the multi-casting protocol for setting up the data grid between the application nodes with the vm arguments as *-Dtangosol.coherence.clusteraddress=${Broadcast Address} -Dtangosol.coherence.clusterport=${Broadcast port}* As the cer
-
Creation of inspection type (mm02 insp.setup) in mass
Hi All, Is there a way of creating inspection type for all materials via mass update. It is in the Quality management view of mm02. Thanks Venkat
-
How do you choose your video folder so itunes can see it?
For some reason, itunes is not seeing my video folder on my laptop. How can I point it to the correct folder so I can sync some videos to my iphone?
-
XI to AS/400 DB2 connectivity_doubt
Hi, has anyone connected to an AS/400 DB2 from XI's Sender JDBC Adapter? if so, can you please suggest the procedure and the <b>driver</b> that was used. Regards, Balaji.M
-
I have a Mac Mini and would like to network it to my G5. What do I do to do this? Can I connect with Firewire? thanks