Duplicate field name in ResultSet
Hi!
I have a ResultSet which fetches data from Oracle Database with the following Select statement
Select a.id, a.title, b.title from article a, event b where a.eventid=b.id;
The problem is when I fire the command getString("title") of the resultset only the first "title" field is fetched. I want to fetch both the columns. I have tried to use field alias but it only produced the "InvalidColumnName" error. How can I do this?
Try this:
String aID, aTitle, bTitle = "";
ResultSet rs = stmt.executeQuery("Select a.id as aid, a.title as atitle, b.title as btitle from article a, event b where a.eventid=b.id");
while ( rs.next() )
aID = rs.getString("aid");
aTitle = rs.getString("atitle");
bTitle = rs.getString("btitle");
}
Similar Messages
-
How to automatically rename duplicate field names?
I'm trying to merge mutiple PDF files into one but some PDF files have duplicate field names. Is there a way that Acrobat can automatically rename those duplicate field names so that they remain unique during merging?
Ok I found it :-) how to create a template thx ++
I used that JS script with it (with my template name) :
var expTplt = getTemplate("ajout_suivi_therap");
expTplt.spawn(numPages,true,false);
This works perfectly (new page under the last one, new names for fields) when I test it on my acrobat 8, but it doesn't work anymore on reader 9. Here is (in french !) the error message I have from the console :
NotAllowedError: Les paramètres de protection interdisent l'accès à cette propriété ou à cette méthode.
Template.spawn:2:Field Ajouter_page:Mouse Down
If I try a translation of it :
NotAllowedError : Security settings prohibit access to this property or method.
Template.spawn :2:Field Ajouter_page:Mouse Down
Do you have an idea ?
Do I have to activate an option when saving the file ?
Thx !! -
Duplicate field names in File content conversion
Hi,
I need some details for csv to xml file conversion.I have configured the file content conversion adapter for these conversions.In source CSV file we will receive below details in single line.
0020000001000 0020000002000 0020000003000 0020000004000
Now i can successfully generate
<?xml version="1.0" encoding="utf-8" ?>
- <ns:MT_GLMast_out xmlns:ns="http://sap.com/PI/GLMast">
- <GLMasterData>
- <GLMAST>
<Customer1>0020000201000</Customer1>
<Customer2>0020000200000</Customer2>
<Customer3>0020000199000</Customer3>
<Customer4>0020000198000</Customer4>
</GLMAST>
</GLMasterData>
</ns:MT_GLMast_out>
with following parameters
GLMAST.fieldSeparator ,
GLMAST.fieldNames Customer1,Customer2,Customer3,Customer4
GLMAST.endSeparator 'nl'
Now the issue is customer wants to send 3000 customer number in single file.How to maintain the parameter to duplicate filednames just customer instead of customer1,customer2,customer3 etc...
<Customer>0020000201000</Customer>
<Customer>0020000200000</Customer>
<Customer>0020000199000</Customer>
<Customer>0020000198000</Customer>
This can be done if customer sends file like one customer number in one line.please help me how to process multiple customer number in single file separated with comma.
Thanks,
VijayFor this what you can do is, create the source and target data types as shown below
Source Data Type
<DTO_Customer>
<Records> 0..unbounded
<Customers> </Customers>0..1
</Records>
</DTO_Customer>
Target Data Type
<DTI_Customer>
<Records> 0..1
<Customer> </Customer> 0..unbounded
</Records>
</DTI_Customer>
Now since your data will come in a single string therefore do the FCC in sender channel as shown below
Records.fieldNames = Customers
Records.fieldSeparator = 'nl'
ignoreRecordsetName = true
So by doing this you will get the data into XI mapping in as single string. Now you need to write an UDF which will split this string into individual customers based on your delimiter in the string.
Now map the output of this UDF to <Customer> field.
You may need to do some other small fixes accordingly.
I hope this will solve your problem. -
I am getting PLS-00410 error - duplicate fields in RECORD, TABLE or argumen
Here is what I am doing. I have a package header and a package body. The package header compiles successfully and the above error is displayed while compiling the package body only.
Package Header :
create or replace package pkg_pms_print is
type c_ref_printer_list is REF CURSOR;
PROCEDURE sp_get_printerlist
p_team_id IN NUMBER,
printer_list_refcur OUT pkg_pms_print.c_ref_printer_list
end pkg_pms_print;
Package Body:
create or replace package body pkg_pms_print is
PROCEDURE sp_get_printerlist (
p_team_id IN NUMBER,
printer_list_refcur OUT pkg_pms_print.c_ref_printer_list
IS
printer_list_refcur pkg_pms_print.c_ref_printer_list;
v_printer_id pms_test_team_printer.printer_id%TYPE;
v_printer_name pms_test_team_printer.printer_name%TYPE;
v_default_printer pms_test_team_printer.default_printer%TYPE;
BEGIN
OPEN printer_list_refcur FOR SELECT printer_id, printer_name,default_printer FROM pms_test_team_printer WHERE team_id = p_team_id;
--DBMS_OUTPUT.PUT_LINE('EMPNO ENAME');
DBMS_OUTPUT.PUT_LINE('--- -------');
LOOP
FETCH printer_list_refcur INTO v_printer_id, v_printer_name,v_default_printer;
EXIT WHEN printer_list_refcur%NOTFOUND;
DBMS_OUTPUT.PUT_LINE(v_printer_id || '|'|| v_printer_name ||'|'|| v_default_printer);
END LOOP;
CLOSE printer_list_refcur;
END sp_get_printerlist;
END pkg_pms_print;
Apart from this error one error also shown as " PL/SQL: Item Ignored"
The compile points to the 3rd line in the package body for errors with the above mentioned error. There is no duplicate field name or argument name as the oracle error message says. It's a simple straight forward code. Can somebody help me if I am overlooking something?
Regards,
AgrawalVthis problem is solved but i am not getting output when i have tested this procedure in test window.
Program Continues upto 2nd DBMS call, means i am getting output upto 2nd DBMS call.
create or replace package body pkg_pms_print is
PROCEDURE sp_get_printerlist (
p_team_id IN NUMBER,
printer_list_refcur OUT pkg_pms_print.c_ref_printer_list
IS
-- printer_list_refcur pkg_pms_print.c_ref_printer_list;
v_printer_id pms_test_team_printer.printer_id%TYPE;
v_printer_name pms_test_team_printer.printer_name%TYPE;
v_default_printer pms_test_team_printer.default_printer%TYPE;
BEGIN
OPEN printer_list_refcur FOR SELECT printer_id, printer_name,default_printer FROM pms_test_team_printer WHERE team_id = p_team_id;
DBMS_OUTPUT.PUT_LINE('Printer ID Printer Name Default Printer');
DBMS_OUTPUT.PUT_LINE('----- ------- ------- ');
LOOP
FETCH printer_list_refcur INTO v_printer_id, v_printer_name,v_default_printer;
EXIT WHEN printer_list_refcur%NOTFOUND;
DBMS_OUTPUT.PUT_LINE(v_printer_id || v_printer_name || v_default_printer);
END LOOP;
CLOSE printer_list_refcur;
END sp_get_printerlist;
END pkg_pms_print; -
Problem with column/field names in Oracle resultset being UPPERCASE
Hi everyone,
I understand that Oracle DBMS returns all the field names in UPPERCASE in the result set. However this is undesired for my application and I was wondering if there is any workaround for getting the field names in the application in exactly the same format as your select query. Is there any set method which can be called before to control this behavior.
E.g. select ename as employeename from table_name;
ORACLE RETURNS --> EMPLOYEENAME
Required --> employeename
Please help me
..VinitVinit,
You can use column aliases in your query -- see Oracle SQL Reference for more details.
Then you can set some connection property in Oracle JDBC that allows you to obtain the column alias (I think). Check the Oracle JDBC User's Guide and Reference for more details.
Good Luck,
Avi. -
Field names Missing in the (Excel) Mail attachment
Hi ,
I am trying to send my ALV Grid Output as Excel Email attachment using the below code
The problem is that the field names are missing in the receivers Mail.
i.e
*Name* *Emp Code* * Branch* "this is missing
abc 123 ukp
I searched many threads but unable to find the solution for this.
Kindly suggest me regarding this issue.
loop at p_eadd.
if p_eadd-low <> space.
clear reclist.
reclist-rec_type = 'U'. "Internet-adress
reclist-receiver = p_eadd-low.
reclist-express = 'X'.
append reclist.
endif.
endloop.
* endif.
* Send the document
call function 'SO_NEW_DOCUMENT_SEND_API1'
exporting
document_type = 'RAW'
document_data = doc_chng
* PUT_IN_OUTBOX = 'X'
tables
object_content = objcont
receivers = reclist
exceptions
too_many_receivers = 1
document_not_sent = 2
operation_no_authorization = 4
others = 99.
ld_aplstat = '4'.
case sy-subrc.
when 0.
loop at reclist.
if reclist-receiver = space.
name = reclist-rec_id.
else.
name = reclist-receiver.
endif.
if reclist-retrn_code = 0.
write: / name, ': succesfully sent'.
else.
write: / name, ': error occured'.
endif.
endloop.
ld_aplstat = '0'.
when 1.
write: / 'Too many receivers specified !'.
when 2.
write: / 'No receiver got the document !'.
when 4.
write: / 'Missing send authority !'.
when others.
write: / 'Unexpected error occured !'.
endcase.
*.Tell workflow to go on
clear ls_scma_event.
ls_scma_event-wf_event = cs_wf_events-finished.
ls_scma_event-wf_witem = wf_witem.
ls_scma_event-wf_okey = wf_okey.
call function 'KPEP_MONI_CLOSE_RECORD'
exporting
ls_key = gs_key
ls_scma_event = ls_scma_event
changing
ld_aplstat = ld_aplstat
exceptions
no_id_given = 1
others = 2.
call function 'SAP_CONVERT_TO_XLS_FORMAT'
exporting
i_field_seperator = ' '
i_line_header = 'X'
i_filename = p_file
* I_APPL_KEEP = ' '
tables
i_tab_sap_data = it_final
* CHANGING
* I_TAB_CONVERTED_DATA =
exceptions
conversion_failed = 1
* OTHERS = 2
if sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
Thanks in Advance,
Mr. BenHi Ben,
Follow the code below....
Your internal table it_final will have the attachment data. After you got the attachment data do the following
gc_ret TYPE c VALUE cl_abap_char_utilities=>cr_lf.
lt_attachment TYPE TABLE OF solisti1 ,
gt_attach TYPE STANDARD TABLE OF solisti1 INITIAL SIZE 0 WITH HEADER LINE,
CLEAR:gs_attach. <this will have your attachment, declare a structure which contains fields of your excel sheet>
<before this you have to copy all the fields from your final internal table which should be attached to email to gs_attach>
For attaching field names
CONCATENATE gc_ret gs_attach INTO gs_attach.
gs_attach = gs_attach+1.
APPEND gs_attach TO gt_attach.
CLEAR:lt_attachment.
lt_attachment[] = gt_attach[].
SORT lt_attachment .
DELETE ADJACENT DUPLICATES FROM lt_attachment COMPARING ALL FIELDS.
CLEAR gs_attach.
CONCATENATE <field names >
INTO gs_attach SEPARATED BY gc_tab.
INSERT gs_attach INTO lt_attachment INDEX 1.
<field addition ends>
call function 'SO_NEW_DOCUMENT_SEND_API1'
exporting
document_type = 'RAW'
document_data = doc_chng
PUT_IN_OUTBOX = 'X'
tables
object_content = objcont
receivers = reclist
contents_bin = lt_attachment
exceptions
too_many_receivers = 1
document_not_sent = 2
operation_no_authorization = 4
if sy-subrc 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
Regards,
Aravind. -
Special Characters in a Field name
I am having trouble with creating a SQL statement for a field name that has special characters. I get SQL errors when I run the code below:
ResultSet rec = st.executeQuery(
"SELECT * " +
"FROM F55EXL1 " +
"WHERE " +
"(SK$#TY = 'UPC' AND " +
"SK$#MS = '7107-42' AND " +
"SK$#F1 = 'J468-4' AND " +
"SK$#F2 = 'JX67-4')");
while (rec.next()) {
upcCode = (rec.getString(3));
}What can I do to make it accept these field names?Hi
Can you try this..
ResultSet rec = st.executeQuery(
"SELECT * " +
"FROM F55EXL1 " +
"WHERE " +
"SK$#TY = \'UPC\' AND " +
"SK$#MS = \'7107-42\' AND " +
"SK$#F1 = \'J468-4\' AND " +
"SK$#F2 = \'JX67-4\' ");
while (rec.next()) {
upcCode = rec.getString(3);
}Thanks
Srinivas -
How to retrieve the Field Name of a Table
Hi guys,
I'm trying to retrieve the field name of a table in java, but i don't know how to do it. Could somebody help me?Let say i have a table name Itemmaster, then
i want to retrieve its field and display to dos prompt.
Example :
Item No.
Description
Quantity
It is possible to retrieve the fields?
What could be the possible command in java using packages Java.sql.*?
Thanks in advanced...
Best regards,
DharryThe ResultSet class, which is how query results are returned in JDBC, has methods to get at the metadata for the table queried, including column names:
ResultSet resultSet=statement.executeQuery("select * from table");
resultSetMetadata=resultSet.getMetaData();
resultSetMetadata.getColumnLabel(column+1); -
How can i get value when the field name is user's defined
Hi,
I have a one java method:
public ResultSet countUserDb(String id) {
ResultSet rs = null;
con = dbcon.connect();
String queryString = ("select count as count from
db_allocation where user_id='"+id+"'");
Statement stmt = con.createStatement();
rs = stmt.executeQuery(queryString);
When i call it in a jsp file.
ResultSet counter =db.countUserDb(request.getParameter("id"));
if(counter.next())
int x=rs.getInt("count");
Tomcat said incorrect column name.How can i get the result set when the field name is user's defined.
Best regards
RickyYou should give the user defined name in the ResultSet.getXXX method to retrieve the column value.
Example
SQL:
Select ename as employeename from emp;
You should say :
ResultSet.getString("employeename"); to get the value.
Alternatively you can retrieve it using column number:
ResultSet.getString(1);
Chandar -
Hi,
I have two classes (B, C) derived from the same base (A). Both of them have
a field called field1. I cannot put this field to the base class because
this would not make sence.
When I run the schema tool to initialize the database a duplicate coloumn
name FIELD1X exception is thrown.
The option to create a D class that is derived from A and make it as the
base class for B and C is very hard to do for me, bacause I have to reserve
the compatibility with my ODMG 3.0 database.
Do you have a resolution for this problem. I think it is related to the
single table inheritance. And I also know that multiple table inheritance is
no supported.
Is it possible that if my base class doesn't contain importatnt fields only
methods that I do not specify it as persistent-capable?
Thanks in advance, best regards
Gabor Kover
Scriptum Inc.Hello --
We do in fact have a workaround for the duplicate column problem. As
described in the kodo user guide chapter on customizing the database mapping
for classes, it is possible to tell Kodo to use a different name for a
field's database column. This is done through the metadata, like so:
<field name="repeatedField">
<extension vendor-name="tt" key="data-column" value="FOO"/>
</field>
So you can simply map the repeated field from one of the subclasses to a
different name.
Let us know if you have any further questions on this.
-- Abe White
Kodo Product Team
"Gabor Kover" <[email protected]> wrote in message
news:9mnjd8$5i2$[email protected]..
Hi,
I have two classes (B, C) derived from the same base (A). Both of themhave
a field called field1. I cannot put this field to the base class because
this would not make sence.
When I run the schema tool to initialize the database a duplicate coloumn
name FIELD1X exception is thrown.
The option to create a D class that is derived from A and make it as the
base class for B and C is very hard to do for me, bacause I have toreserve
the compatibility with my ODMG 3.0 database.
Do you have a resolution for this problem. I think it is related to the
single table inheritance. And I also know that multiple table inheritanceis
no supported.
Is it possible that if my base class doesn't contain importatnt fieldsonly
methods that I do not specify it as persistent-capable?
Thanks in advance, best regards
Gabor Kover
Scriptum Inc. -
How can i get the value when the field name is user defined
Hi,
I have a one java method:
public ResultSet countUserDb(String id) {
ResultSet rs = null;
con = dbcon.connect();
String queryString = ("select count(*) as count from
db_allocation where user_id='"+id+"'");
Statement stmt = con.createStatement();
rs = stmt.executeQuery(queryString);
When i call it in a jsp file.
ResultSet counter =db.countUserDb(request.getParameter("id"));
if(counter.next())
int x=rs.getInt("count");
Tomcat said incorrect column name.How can i get the result set when the field name is user's defined.
Best regards
RickyHi Ricky
To access pseudo columns you can specify an alias or use the index on the column (e.g. getInt(1)).
Chris
NB: you should use bind variables instead of concatenating the id to the SQL statement. -
Hi There,
In SAP GRC 10.0, our team had an issue where we could not add duplicate fields from separate table (see ERROR: Select Currency/UoM field for the selected analyzed fields). This was resolved by the SAP Note 1904313/ 1904314 (http://service.sap.com/sap/support/notes/1904313).
We upgraded our system to SAP GRC 10.1 SP05 and could now add the duplicate fields from separate tables. SAP Note 1904313/ 1904314 was part of SAP GRC 10.1 SP03 so it makes sense that we, in a higher version (SP05), would be able to do this.
The issue now is when we add the duplicate fields from different tables and run the Ad-hoc Query to test if the data source works correctly, the No Data Selected warning persists. This means that the data source provides no data for analysis, which is required to write our business rules.
Below is an example:
Basic data source with just one currency reference field EBAN-WAERS.
When you run the Ad-Hoc Query you receive data.
Basic data source with second currency reference field EKKO-WAERS.
When you run the Ad-Hoc Query no data is found.
Please also make reference to the following thread logged by my colleague (ERROR: Select Currency/UoM field for the selected analyzed fields)
Any assistance to receive data with duplicate fields from separate tables will be highly appreciated.
Thanking you in advance.
Regards
Gary KhanHi
following are the error messages from dump
hrtText
There is already a line with the same key.
hat happened?
Error in ABAP application program.
The current ABAP program "SAPLCKMS" had to be terminated because one of the
statements could not be executed.
This is probably due to an error in the ABAP program.
rror analysis
You wanted to add an entry to table "\FUNCTION-POOL=CKMS\DATA=T_DYN_CKMLCR",
which you declared
with a UNIQUE KEY. However, there was already an entry with the
same key.
This may have been in an INSERT or MOVE statement, or within a
SELECT ... INTO statement.
In particular, you cannot insert more than one initial line into a
table with a unique key using the INSERT INITIAL LINE... statement.
rigger Location of Runtime Error
Program SAPLCKMS
Include LCKMSF01
Row 226
Module type (FORM)
Module Name DYNAMIC_PERIOD_CLOSING
Source code where dump ocured
222
223 APPEND ht_ckmlpp TO t_add_ckmlpp.
224 APPEND LINES OF ht_ckmlcr TO t_add_ckmlcr.
225 INSERT ht_ckmlpp INTO TABLE t_dyn_ckmlpp.
>>>> INSERT LINES OF ht_ckmlcr INTO TABLE t_dyn_ckmlcr.
227 ENDWHILE.
Also I guess there is problem with material ledger in R/3 side
I have never worked on material ledger before so dont hav idea of Tcode and tables in SAP R/3 for material ledger.
Thanks
Navneet -
Hi all,
While I am writing a program for object model listing, I need to get "Short Description" for each fields. I can get Field name, Data Element, Length, Type, Decimal but not Short Description. I thought it is DD03T-DDTEXT. But cannot get the data. Can anyone tell me how can I get the data?
Regards,
Nathan
Will Reward if useful.hi .. here is the program to get the values and text of the domain
report Z_FIND_DOMAIN_FIXED_VALUES.
tables : DD03L . " txw_c_soex .
type-pools: slis.
TYPES : BEGIN OF ty_tables,
FIELDNAME LIKE DD03L-FIELDNAME ,
* include structure DD03L . "txw_c_soex.
END OF ty_tables.
TYPES : tt_xdfies TYPE TABLE OF dfies.
TYPES : tt_tables TYPE TABLE OF ty_tables.
DATA : gt_tables TYPE TABLE OF dd07v ,
gt_dart_tables TYPE tt_tables,
gs_tables LIKE LINE OF gt_tables,
gs_dart_tables LIKE LINE OF gt_dart_tables.
DATA : lt_values TYPE TABLE OF dd07v,
ls_values LIKE LINE OF lt_values ,
lt_values1 TYPE TABLE OF dd07v,
ls_values1 LIKE LINE OF lt_values1.
*ALV data declarations
data: fieldcatalog type slis_t_fieldcat_alv with header line,
gd_tab_group type slis_t_sp_group_alv,
gd_layout type slis_layout_alv,
gd_repid like sy-repid,
gt_events type slis_t_event,
gd_prntparams type slis_print_alv.
*select-options: s_struct for txw_c_soex-src_struct.
select-options: s_FIELD for DD03L-FIELDNAME.
*SELECT src_struct FROM txw_c_soex INTO TABLE gt_dart_tables Where
* src_struct in
*s_struct
select FIELDNAME from DD03L iNTO TABLE gt_dart_tables Where
FIELDNAME in
s_FIELD
SORT gt_dart_tables BY FIELDNAME . "src_struct.
DELETE ADJACENT DUPLICATES FROM gt_dart_tables COMPARING FIELDNAME .
"src_struct.
LOOP AT gt_dart_tables INTO gs_dart_tables.
* PERFORM get_checktable USING gs_dart_tables-FIELDNAME .
CALL FUNCTION 'DD_DOFV_GET'
EXPORTING
GET_STATE = 'M'
LANGU = SY-LANGU
* PRID = 0
WITHTEXT = 'X'
DOMAIN_NAME = gs_dart_tables-fieldname
" ls_xdfies-FIELDNAME
* IMPORTING
* GOT_STATE =
TABLES
DD07V_TAB_A = lt_values
DD07V_TAB_N = lt_values1
* EXCEPTIONS
* ILLEGAL_VALUE = 1
* OP_FAILURE = 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.
SORT Lt_values by DOMNAME DDLANGUAGE VALPOS .
loop at lt_values into ls_values .
move-corresponding ls_values to gs_tables .
append gs_tables to gt_tables .
endloop .
CLEAR : lt_values , ls_values , gs_tables .
SORT Lt_values1 by DOMNAME DDLANGUAGE VALPOS .
loop at lt_values1 into ls_values1 .
move-corresponding ls_values1 to gs_tables .
append gs_tables to gt_tables .
endloop .
CLEAR : lt_values1 , ls_values1 , gs_tables .
*endloop .
ENDLOOP.
SORT gt_tables BY DOMNAME DDLANGUAGE VALPOS .
DELETE ADJACENT DUPLICATES FROM gt_tables COMPARING DOMNAME VALPOS
DDLANGUAGE.
PERFORM display_data.
perforM ALV .
FORM display_data.
fieldcatalog-fieldname = 'DOMNAME'.
fieldcatalog-seltext_m = 'Domain name'.
fieldcatalog-col_pos = 0.
fieldcatalog-outputlen = 30.
fieldcatalog-key = 'X'.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
fieldcatalog-fieldname = 'VALPOS'.
fieldcatalog-seltext_m = 'Domain value key'.
fieldcatalog-col_pos = 1.
fieldcatalog-outputlen = 4.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
fieldcatalog-fieldname = 'DDLANGUAGE'.
fieldcatalog-seltext_m = 'Language key'.
fieldcatalog-col_pos = 2.
fieldcatalog-outputlen = 1.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
fieldcatalog-fieldname = 'DOMVALUE_L'.
fieldcatalog-seltext_m = 'Values for domains: Single value/upper
limit'.
fieldcatalog-col_pos = 3.
fieldcatalog-outputlen = 10.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
fieldcatalog-fieldname = 'DOMVALUE_H'.
fieldcatalog-seltext_m = 'Values for domains, upper limit'.
fieldcatalog-col_pos = 4.
fieldcatalog-outputlen = 10.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
fieldcatalog-fieldname = 'DDTEXT'.
fieldcatalog-seltext_m = 'Short text for fixed values'.
fieldcatalog-col_pos = 5.
fieldcatalog-outputlen = 60.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
ENDFORM. " display_data
*& Form ALV
* text
* --> p1 text
* <-- p2 text
FORM ALV.
gd_repid = sy-repid.
call function 'REUSE_ALV_GRID_DISPLAY'
exporting
i_callback_program = gd_repid
* i_grid_title = outtext
is_layout = gd_layout
it_fieldcat = fieldcatalog[]
* it_special_groups = gd_tabgroup
it_events = gt_events
is_print = gd_prntparams
i_save = 'X'
* is_variant = z_template
tables
t_outtab = gt_tables
exceptions
program_error = 1
others = 2.
if sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
ENDFORM. " ALV
reward points if it is usefull ....
Girish -
Field Name - Number on Activity overview screen
Hi Friends
Would appreciate if some one could let me know and clarify - field name "<b>NUMBER"</b> - Is this filed meant for assigning required <b>"Number of Persons"</b> to perform a assigned internal acivity in a work center?.
Looking forward to hear and would assign reward points suitably.
Thanks
SudhakarHi Sudhakar ,
Generally I would not recommend you to use this field, if it is not really needed. Without this field, you can reach other functionalities as well.
This field is normally used with the 'calcualtion key' together, which enable the user 'calculate the duration\works' based on the works\duration and the number of capacity. For example, if you duplicate the number of capacities, the duration will be reduced to 50 percent. It sounds fine, but from my point of view, it is less flexible.
Without the number of capacities, you can assign multiple persons to the activity too. It is not the prerequsite for the person assignments.
If you would like to assign the persons to activity, the HR master data has to be maintaned. I think, the info. type 001, 002, 007 and 035 are important.
The note 543362 should give you more information.
My suggestion: keep it as simple as possible in this area.
Please rewards poinits, if it is useful.
Kind regards,
Zhenbo -
Sharepoint 2010 Content Deployemnt Job issue with duplicate fields in User information List
Hi friends,
I am facing below issue with the content deployment job.
It was working earlier. But now since from couple of days all the content deployment jobs in production environment are failing with below error.
Field name already exists. The name used for this field is already used by another field in the list. Select another name and try again.
ObjectName="User Information List".
When I check the fields in User information list in targeted site, I found couple of columns are dupicate like "ask me about",first name","Last name" etc.
Do i Need to drop target site collection or recreate with fresh content deployment job.
Please suggest.
Please help .
Regards
SubratHi,
According to your post, my understanding is that you got duplicate field error.
Based on the error message, you can try to use the following code sample to remove duplicate records, and check whether it works:
http://social.msdn.microsoft.com/Forums/en-US/sharepointgeneralprevious/thread/41ee04bd-91fb-4bf9-932a-bac42c56c357
Here is a similar issue, you can also use the ‘RemoveDuplicateColumn64’ provided:
http://sharepointsurfer.wordpress.com/2012/04/27/how-to-fix-publishing-site-content-deployment-error-duplicate-first-name-column/
What’s more, as you had said, you can recreate a site with a fresh deployment job.
Thanks & Regards,
Jason
Jason Guo
TechNet Community Support
Maybe you are looking for
-
Updated version of Adobe Flash Player won't work...??
I am trying to upload the newest version of Adobe Flash Player. Though, after about 5 attempts of installing, uninstalling and reinstalling again, I still can't watch videos on youtube, hulu and other related sites. I also tried right-clicking the "I
-
Hi, I am developing applicationn in developer 6i and I am facing problem regarding displaying records in form. My query is select ename, edept from sale where city = 'NYK' suppose this query fetch 10 records and I dispalyed them in developer but prob
-
Configure logshipping for report server database
Hi All, Could some one please let me know the steps to be followed to configure logshipping for report server databases. Thanks in Advance, Regards, Kranthi
-
I have Cisco content engine 507 needs to be integrated with Trend Micro's Inter-Scan Web Security Suite, What is the best way that would speed up the internet access, Configure the CE in Nontransparent mode where all web clients through IE point to C
-
Cannot connect iMac to printer
Using Photosmart B110 series [80CDFF] and iMac 27 OS X 10.9.4 Wireless connection I have recently installed a new router (Virgin Super Hub 2ac). Initially all was well, then the connection failed intermitently and now after attempting to reconfig