How to transfer data of RFC into Internal Table inside a WD4A program?
Hi Experts,
I have created WD4A program. This program calls RFC. The output of RFC has to populate a UI table. THe different cells of the table should have different color based on data.
I have gone through following link:
http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/707fb792-c181-2d10-61bd-ce15d58b5cf1
The above link fetches data from directly from table. Then it passes the data into internal table.
If I am using RFC, then how I can insert data of RFC into a internal table in WD4A program (se80 In drop down Web Dynpro Comp / Intf)
My motto is to have table ouput whose different cells should have different color based on data.
Please help.
Regards,
Gary
Edited by: Jason Lax on Dec 28, 2011 2:52 PM (Fixed broken link)
Hi Experts,
I have resolved the issue. I have created WD4A program. This WD4A program calls the RFC.
The RFC has a structure as export parameters called 'RESULT_FINAL'. I have altered the associated type of this table export parameter. I added Component 'Color' of component type 'WDUI_TABLE_CELL_DESIGN'.
In the RFC I have added some code. The code is as below:
loop at it_t1.
select pernr from pa0000 into table it_t2 where pernr = it_t1-pernr and stat2 ='3'
and begda <= sy-datum AND endda >= sy-datum.
if sy-subrc = 0.
result_final-org_unit = result_objec-objid.
result_final-pernr = it_t1-pernr.
result_final-name = it_t1-name.
result_final-color = '02'. append result_final.
endif.
endloop.
The line result_final-color = '02'.
code returns Color.
In the WD4A program, I have changed the Cell Design property of selected table coloumn to Color.
This resolved the issue.
Thanks every one for the reply.
I have added above information for other SDN users.
I am closing this thread,
Regards,
Gary
Similar Messages
-
How to transfer data from a dynamic internal table
Hi All
I want to transfer data from a dynamic internal table<dyn_table>
to a non dynamic internal table itab which should have the same structure as <dyn_table>.
How can this be done?
Regards,
Harshit RungtaAs stated earlier this can be done only through field symbols...
You cannot create an non dynamic internal table with ANY structure...using DATA statement
If the strucutre is defined well and good...you can create an non-dynamic internal table...
If you do not know the structure then the internal table has to be dynamic...and to be generated using field symbols
DATA: lv_ref TYPE REF TO data.
FIELD-SYMBOLS: <fs_dyn_table> TYPE STANDARD TABLE.
* You create a dynamic internal table...
CREATE DATA lv_ref LIKE (your_dynamic_internal_table).
ASSIGN lv_ref->* TO <fs_dyn_table>.
Now...do the transfer.
<fs_dyn_table> = "your_dynamic_internal_Table
Hope it helps! -
How to store output of SQ01 into internal table.
Hello Experts
How to store output of SQ01 into internal table.
Thanks,
UmeshYou can't store the sq01 output into internal table.
Once you create the query it will generate the abap program, in that program you can see the contents.
Regards
Sasi -
How to bring data from 3 different internal table to one
hii all,
i have 3 internal table ls_mat,which has around 20 fields,it_stpo,which has 3 fields,and it_mast,i need to bring all these 3 table data in one tabel...how do i do...plzz help...Hi ,
Does this internal table have any fields in common in all the three.
If yes , then loop ls_mat
Declare a type will all the fields and create a structure and internal table with that type (for ex lx_final and lt_final respectively)
Loop at ls_mat into lx_mat.
1.copy all the fields of lx_mat to respective lx_final.
2.read table it_stpo into lx_stpo with key field = lx_mat-field.
3.Copy all fields of lx_stpo to respective lx_final.
4. read table it_mast into lx_mast with key field = lx_mat-field.
5. copy all fields of lx_mast to respective lx_final.
6. now append lx_final to lt_final.
Endloop.
now you can get all values inside lt_final.
Regards,
sivaganesh -
How to decompose a string with ';' into Internal table
Hello all,
I need your help for find a Function module or Abap code.
I have a file with the separator is the ';'
Example of the contains of my file :
521010;16;46048,00;;*Soucet*Odmena za
524012;41;103807,00;;Zdrav.p.organizace
524012;42;;18332,00;Zdrav.p.organizace
I want a module function which can separate all the String separate by a ';' into a internal table :
for example my internal table have 5 column :
Num......|.....CC.....|............Credit....|...........Debit........|.....Label
521010....|.....16.....|......46048,00.....|...........................|.....Soucet**Odmena za
524012....|.....41.....|......103807,00...|...........................|.....Zdrav.p.organizace
524012....|.....42.....|..........................|........18332,00....|.....Zdrav.p.organizace
For read the date of my file is not a problem with ABAP Code :
DO.
CLEAR : ws_facm.
break epetrini.
READ DATASET myFile INTO test.
IF sy-subrc EQ 0.
IF ws_facm-codenreg = 'D'.
APPEND ws_facm TO wt_facm.
ENDIF.
ELSE.
EXIT.
ENDIF.
ENDDO.
Thank you for your helps.
Best regards Emilien
Edited by: Emilien P. on Mar 31, 2010 4:30 PM
Edited by: Emilien P. on Mar 31, 2010 4:34 PM
Edited by: Emilien P. on Mar 31, 2010 4:35 PM
Edited by: Emilien P. on Mar 31, 2010 4:36 PMHi,
Try whith this:
DATA: str1 TYPE string,
str2 TYPE string,
str3 TYPE string,
itab TYPE TABLE OF string,
text TYPE string.
text = `What a drag it is getting old`.
SPLIT text AT space INTO: str1 str2 str3,
TABLE itab.
Let me know if it works.
Regards,
Moh. -
How and put data frrom DB into JFrame.tables ?
hello,
I tried to get rows from a DB into a table. Therefore I created a class(A) with a function(a1) throws SQLException. Connect and select rows from the DB runs perfectly. Now I want to put this data into a table. I created another class(B) extends JFrame with an inner class(icB1) extends AbstractTableModel. From here I tried call A.a1 to get the rows but
1. the return type should be StringArray, how should i declare a function returning type stringarray and
2. I tried to put the data into a String, so that the return value is String(Iwould try sort the data after returning values) like
" icB1 extends AbstractTableModel { A.a1(); }" then i get the error msg: "java.sql.SQLException; must caught or declared to be thrown". Then i tried with this: " try { statement } catch { statement }" but it also doesnt func .. So how put I data from a DB into a table ? the main idea is to show and manage DB tables from the web. Many Thanks
regards erkanHi Erkan
Here's parts of a simple tutorial style app that shows how to easily get data from a DB into a table. Note that the code is incomplete and may have typos.
public class SQLHandler {
public List getData(String sql, List headers) {
List result = new ArrayList();
ResultSet rs = connection.executeQuery(sql);
// Get column details
ResultSetMetaData rsmd = rs.getMetaData();
int columns = rsmd.getColumnCount();
for (int i=0;i<columns;i++) {
headers.add(rsmd.getColumnLabel(i+1));
while(rs.next()) {
Object array = new Object[columns];
for(int i=0;i<columns;i++) {
array[i] = rs.getObject(i+1);
list.add(array):
return result;
public class SQLDataTableModel implements AbstractTableModel {
private List data;
private List headers = new ArrayList();
public SQLDataTableModel(String sql) {
data = sqlHandler.getData(sql,headers);
// abstract methods
public int getRowCount() {
return list.size();
public int getColumnCount() {
return headers.size();
public Object getValueAt(int row, int column) {
Object[] array = data.get(row);
return array[column];
// Create JTable and assign a model
JTable table = new JTable();
table.setModel( new SQLDataTableModel("select * from table")):cheers
Dave -
How to read data from idoc to internal table?
Hi
How to get data from idoc segments to internal table?Hi
Check this ex
The following coding sample, shows how you may read a MATMAS IDoc and extract the data for the MARA and MARC segments to some internal variables and tables.
DATA: xmara LIKE mara.
DATA: tmarc LIKE marc
OCCURS 0
WITH HEADER LINE.
LOOP AT edidd.
CASE edidd-segnam.
WHEN 'E1MARAM'.
MOVE edidd-sdata TO xmara.
WHEN 'E1MARCM'.
MOVE edidd-sdata TO tmarc.
APPEND tmarc.
ENDCASE.
ENDLOOP.
now do something with xmara and tmarc.
hope this helps you...
Reward points if useful..
Regards
Sreenivas -
Data not getting into internal table
Hi experts,
I have a query as given below:
IF equipment_number IS NOT INITIAL.
SELECT eqart
equnr
invnr
FROM equi INTO table lt_equi
FOR ALL ENTRIES IN equipment_number
WHERE equnr = equipment_number-equipment_number.
IF lt_equi[] IS NOT INITIAL.
SELECT kunnr name1
FROM kna1
INTO CORRESPONDING FIELDS OF TABLE lt_kna1
FOR ALL ENTRIES IN lt_equi
WHERE kunnr = lt_equi-kunde.
ENDIF.
No data is coming in lt_kna1 table,
I have changed the data declaration of lt_kna1. Earlier it was declared sa TYPE SATNDARD TABLE of kna1,
and I changed it to:
types: begin of ty_kna1,
name1 type kna1-name1,
kunnr type kna1-kunnr,
end of ty_kna1.
data: lt_kna1 TYPE TABLE OF ty_kna1 with header line,
After doing this change, the problem started coming. Earlier the data was coming correct in it_kna1.
How to solve this issue?
Thanks,
Ajay.Hi Ajay,
Your field declaration is not in the sequence of the database table in KNA1. Please correct it & also refer to domain directly instead of referring to field. Just do as below :-
types: begin of ty_kna1,
KUNNR type KUNNR,
NAME1 type NAME1_GP,
end of ty_kna1.
Also check the value of the field KUNDE in lt_equi-kunde . It migh be because of CONVERSION EXIT .
Bohn
As to answer yuor query KUNDE in EQUI is same as KUNNR in KAN1.
Regards
Abhii -
How to pass data from list to internal table
Sir,
Please tell me how to pass data from list display to internal table. Some fields in the list display are input fields .These are added at run time and these added values should be stored in the internal tableFollow this code sample:
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = W_REPID
I_CALLBACK_PF_STATUS_SET = 'PF_STATUS'
I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
FORM USER_COMMAND USING P_UCOMM TYPE SY-UCOMM
P_SELFLD TYPE SLIS_SELFIELD.
case p_ucomm.
when '<Some user Action>'.
Data ref1 type ref to cl_gui_alv_grid.
CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
IMPORTING
E_GRID = ref1.
call method ref1->check_changed_data
* Your internal table will have the data
endcase.
ENDFORM.
Regards,
Ravi -
In SRM How to upload data from Excel to Internal Table
Hello Experts,
As seen the Function Module 'ALSM_EXCEL_TO_INTERNAL_TABLE' does not exists in SRM.
Is there any alternative to upload the data direct from excel to Internal table using any other FM. As seach did't get any relevant FM.
Please advice..
Thanks..did u try this
TEXT_CONVERT_XLS_TO_SAP
in this manner
CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
EXPORTING
i_line_header = 'X'
i_tab_raw_data = lt_raw
i_filename = p_path
TABLES
i_tab_converted_data = gt_output
EXCEPTIONS
conversion_failed = 1
OTHERS = 2.
this FM works on DOI
so
SAP document about DOI:
http://help.sap.com/saphelp_nw2004s/helpdata/EN/e9/0be775408e11d1893b0000e8323c4f/frameset.htm
SAP Demo Program about DOI: SAPRDEMOEXCELINTEGRATION.
the fm you mentioned works on OLE
so you could refer,
SAP document about OLE:
http://help.sap.com/saphelp_46c/helpdata/EN/59/ae3c98488f11d189490000e829fbbd/frameset.htm
Also you can refer this post
Download of SRM Contracts in Excel - Unit of Measurement Missing
Let me know if this works ..
Regards
Manthan.
Edited by: Manthan_R on Feb 23, 2010 12:18 PM -
How to save value in struture into internal table?
good day to everyone,
i have a prb with my coding below. i am trying to save the value tvbdpr-uecha into wa_zmas-uecha by using modify as shown below.
however, the value uecha is not successfully being transported/saved into it_zmas.
could anyone guide me?
tvbdpr - is a structure table
it_zmas - is an internal table
LOOP AT tvbdpr WHERE posnr = wa_zmas-posnr AND matnr = wa_zmas-matnr.
wa_zmas-uecha = tvbdpr-uecha.
MODIFY TABLE it_zmas FROM wa_zmas TRANSPORTING uecha.
thank you
regards,
swHi,
If the internal table is already having contents and u need to modify it for the field uecha, you can try the following
LOOP AT tvbdpr WHERE posnr = wa_zmas-posnr AND matnr = wa_zmas-matnr.
wa_zmas-uecha = tvbdpr-uecha.
READ TABLE it_zmas with KEY posnr = wa_zmas-posnr matnr = wa_zmas-matnr.
if sy-subrc = 0.
it_zmas-uecha = wa_zmas-uecha.
MODIFY it_zmas index sy-index.
clear it_zmas-uecha.
endif.
ENDLOOP.
Else if the internal table is empty and you are populating the field uecha, use append
LOOP AT tvbdpr WHERE posnr = wa_zmas-posnr AND matnr = wa_zmas-matnr.
wa_zmas-uecha = tvbdpr-uecha.
it_zmas-uecha = wa_zmas-uecha.
append it_zmas.
clear it_zmas.
ENDLOOP.
Regards,
Vik -
How to read data and load into a table
Hi,
I have a client requirement as below.
Client will send the xmlpayload, based on this xml I want to read the data and store it into a database table. Could you please let me know how to achieve this functionality.
sample xmlpayload:
<gesws:localeAndSend xmlns:gesws="https://services.gmail.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="https://services.gmail.com docs/xsd/localeandsend.xsd" schemaVersion="1.0">
<gesws:localer>
<gesws:divisionstate>localeD</gesws:divisionstate>
<gesws:division>Retail</gesws:division>
<gesws:attributes>
<gesws:attribute>
<gesws:name>email</gesws:name>
<gesws:value>[email protected]</gesws:value>
</gesws:attribute>
<gesws:attribute>
<gesws:name>firstName</gesws:name>
<gesws:value>Robin</gesws:value>
</gesws:attribute>
<gesws:attribute>
<gesws:name>lastName</gesws:name>
<gesws:value>Dan</gesws:value>
</gesws:attribute>
<gesws:attribute>
<gesws:name>postalCode</gesws:name>
<gesws:value>56302</gesws:value>
</gesws:attribute>
<gesws:attribute>
<gesws:name>Mobileapp</gesws:name>
<gesws:value>-6</gesws:value>
</gesws:attribute>
<gesws:attribute>
<gesws:name>CodedString</gesws:name>
<gesws:value>1550</gesws:value>
</gesws:attribute>
<gesws:attribute>
<gesws:name>CodedBoolean</gesws:name>
<gesws:value>true</gesws:value>
</gesws:attribute>
</gesws:attributes>
</gesws:localer>
<gesws:localerMessage>
<gesws:mId>120098</gesws:mId>
</gesws:localerMessage>
</gesws:localeAndSend>
Thanks in advanceYou can use XMLTABLE to extract data from your XMLTYPE datatype...
SQL> ed
Wrote file afiedt.buf
1 with t as (select xmltype('<gesws:localeAndSend xmlns:gesws="https://services.gmail.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2 xsi:schemaLocation="https://services.gmail.com docs/xsd/localeandsend.xsd" schemaVersion="1.0">
3 <gesws:localer>
4 <gesws:divisionstate>localeD</gesws:divisionstate>
5 <gesws:division>Retail</gesws:division>
6 <gesws:attributes>
7 <gesws:attribute>
8 <gesws:name>email</gesws:name>
9 <gesws:value>[email protected]</gesws:value>
10 </gesws:attribute>
11 <gesws:attribute>
12 <gesws:name>firstName</gesws:name>
13 <gesws:value>Robin</gesws:value>
14 </gesws:attribute>
15 <gesws:attribute>
16 <gesws:name>lastName</gesws:name>
17 <gesws:value>Dan</gesws:value>
18 </gesws:attribute>
19 <gesws:attribute>
20 <gesws:name>postalCode</gesws:name>
21 <gesws:value>56302</gesws:value>
22 </gesws:attribute>
23 <gesws:attribute>
24 <gesws:name>Mobileapp</gesws:name>
25 <gesws:value>-6</gesws:value>
26 </gesws:attribute>
27 <gesws:attribute>
28 <gesws:name>CodedString</gesws:name>
29 <gesws:value>1550</gesws:value>
30 </gesws:attribute>
31 <gesws:attribute>
32 <gesws:name>CodedBoolean</gesws:name>
33 <gesws:value>true</gesws:value>
34 </gesws:attribute>
35 </gesws:attributes>
36 </gesws:localer>
37 <gesws:localerMessage>
38 <gesws:mId>120098</gesws:mId>
39 </gesws:localerMessage>
40 </gesws:localeAndSend>') as xml from dual)
41 --
42 -- end of test data
43 --
44 select x.mID, x.divisionstate, x.division
45 ,y.att_name, y.att_val
46 from t
47 ,xmltable(xmlnamespaces('https://services.gmail.com' as "g")
48 ,'g:localeAndSend'
49 passing t.xml
50 columns mID number path './g:localerMessage/g:mId'
51 ,divisionstate varchar2(10) path './g:localer/g:divisionstate'
52 ,division varchar2(10) path './g:localer/g:division'
53 ,atts xmltype path './g:localer/g:attributes'
54 ) x
55 ,xmltable(xmlnamespaces('https://services.gmail.com' as "g")
56 ,'g:attributes/g:attribute'
57 passing x.atts
58 columns att_name varchar2(20) path './g:name'
59 ,att_val varchar2(20) path './g:value'
60* ) y
SQL> /
MID DIVISIONST DIVISION ATT_NAME ATT_VAL
120098 localeD Retail email [email protected]
120098 localeD Retail firstName Robin
120098 localeD Retail lastName Dan
120098 localeD Retail postalCode 56302
120098 localeD Retail Mobileapp -6
120098 localeD Retail CodedString 1550
120098 localeD Retail CodedBoolean true
7 rows selected.
SQL>Once you're getting the data out, you can do what you want with it, e.g. pivot it to a single row...
SQL> ed
Wrote file afiedt.buf
1 with t as (select xmltype('<gesws:localeAndSend xmlns:gesws="https://services.gmail.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2 xsi:schemaLocation="https://services.gmail.com docs/xsd/localeandsend.xsd" schemaVersion="1.0">
3 <gesws:localer>
4 <gesws:divisionstate>localeD</gesws:divisionstate>
5 <gesws:division>Retail</gesws:division>
6 <gesws:attributes>
7 <gesws:attribute>
8 <gesws:name>email</gesws:name>
9 <gesws:value>[email protected]</gesws:value>
10 </gesws:attribute>
11 <gesws:attribute>
12 <gesws:name>firstName</gesws:name>
13 <gesws:value>Robin</gesws:value>
14 </gesws:attribute>
15 <gesws:attribute>
16 <gesws:name>lastName</gesws:name>
17 <gesws:value>Dan</gesws:value>
18 </gesws:attribute>
19 <gesws:attribute>
20 <gesws:name>postalCode</gesws:name>
21 <gesws:value>56302</gesws:value>
22 </gesws:attribute>
23 <gesws:attribute>
24 <gesws:name>Mobileapp</gesws:name>
25 <gesws:value>-6</gesws:value>
26 </gesws:attribute>
27 <gesws:attribute>
28 <gesws:name>CodedString</gesws:name>
29 <gesws:value>1550</gesws:value>
30 </gesws:attribute>
31 <gesws:attribute>
32 <gesws:name>CodedBoolean</gesws:name>
33 <gesws:value>true</gesws:value>
34 </gesws:attribute>
35 </gesws:attributes>
36 </gesws:localer>
37 <gesws:localerMessage>
38 <gesws:mId>120098</gesws:mId>
39 </gesws:localerMessage>
40 </gesws:localeAndSend>') as xml from dual)
41 --
42 -- end of test data
43 --
44 select mID, divisionstate, division
45 ,max(decode(att_name, 'email', att_val)) as email
46 ,max(decode(att_name, 'firstName', att_val)) as firstname
47 ,max(decode(att_name, 'lastName', att_val)) as lastname
48 ,max(decode(att_name, 'postalCode', att_val)) as postalcode
49 ,max(decode(att_name, 'CodedString', att_val)) as codedstring
50 ,max(decode(att_name, 'CodedBoolean', att_val)) as codedboolean
51 from (
52 select x.mID, x.divisionstate, x.division
53 ,y.att_name, y.att_val
54 from t
55 ,xmltable(xmlnamespaces('https://services.gmail.com' as "g")
56 ,'g:localeAndSend'
57 passing t.xml
58 columns mID number path './g:localerMessage/g:mId'
59 ,divisionstate varchar2(10) path './g:localer/g:divisionstate'
60 ,division varchar2(10) path './g:localer/g:division'
61 ,atts xmltype path './g:localer/g:attributes'
62 ) x
63 ,xmltable(xmlnamespaces('https://services.gmail.com' as "g")
64 ,'g:attributes/g:attribute'
65 passing x.atts
66 columns att_name varchar2(20) path './g:name'
67 ,att_val varchar2(20) path './g:value'
68 ) y
69 )
70 group by mID, divisionstate, division
71* order by 1
SQL> /
MID DIVISIONST DIVISION EMAIL FIRSTNAME LASTNAME POSTALCODE CODEDSTRING CODEDBOOLEAN
120098 localeD Retail [email protected] Robin Dan 56302 1550 true -
How to import Data (For Dummies) into a table
I have a excel spreadsheet that is an export of an oracle database table. I want to now import that data into another Oracle Database (same table and format). What is the best way to do that. Someone told me t ouse SQL*Loader, but that is not as straightforward as I had hoped. I tried to use access, but I got an invalid argument on one attempt, and a Reserved Error (-2007) on another attempt.
Any help would be appreciated.Now it seemed to run w/o the INSERT error this time, but now when I look at the log, i see the following errors:
SQL*Loader: Release 9.2.0.1.0 - Production on Tue Jun 27 10:29:01 2006
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
Control File: sqlloader-ctrl.ctl
Data File: import.txt
Bad File: import.bad
Discard File: none specified
(Allow all discards)
Number to load: ALL
Number to skip: 0
Errors allowed: 50
Bind array: 64 rows, maximum of 256000 bytes
Continuation: none specified
Path used: Conventional
Table INQUIRIES, loaded from every logical record.
Insert option in effect for this table: APPEND
Column Name Position Len Term Encl Datatype
INQUIRYID FIRST * WHT O(") CHARACTER
PERSONID NEXT * WHT O(") CHARACTER
FIRSTNAME NEXT * WHT O(") CHARACTER
LASTNAME NEXT * WHT O(") CHARACTER
ADDRESS1 NEXT * WHT O(") CHARACTER
ADDRESS2 NEXT * WHT O(") CHARACTER
ADDRESS3 NEXT * WHT O(") CHARACTER
CITY NEXT * WHT O(") CHARACTER
STATE NEXT * WHT O(") CHARACTER
ZIPCODE NEXT * WHT O(") CHARACTER
COUNTRY NEXT * WHT O(") CHARACTER
SEX NEXT * WHT O(") CHARACTER
MATRICDATE NEXT * WHT O(") CHARACTER
DEGREEPROGRAM NEXT * WHT O(") CHARACTER
PACKETCODE NEXT * WHT O(") CHARACTER
SOURCECODE NEXT * WHT O(") CHARACTER
NONUS NEXT * WHT O(") CHARACTER
DUPLICATE NEXT * WHT O(") CHARACTER
EMAIL NEXT * WHT O(") CHARACTER
INQUIRYDATE NEXT * WHT O(") CHARACTER
NOTES NEXT * WHT O(") CHARACTER
GOODCANDIDATE NEXT * WHT O(") CHARACTER
POSTED NEXT * WHT O(") CHARACTER
LABELPRINTED NEXT * WHT O(") CHARACTER
PHONE NEXT * WHT O(") CHARACTER
PERMANENTRESIDENCE NEXT * WHT O(") CHARACTER
LABELPRINTDATE NEXT * WHT O(") CHARACTER
LASTMODIFIED NEXT * WHT O(") CHARACTER
MODIFYINGUSER NEXT * WHT O(") CHARACTER
APPRECEIVED NEXT * WHT O(") CHARACTER
INTERVIEWED NEXT * WHT O(") CHARACTER
INTERVIEWEDDATESCHEDULED NEXT * WHT O(") CHARACTER
INTERVIEWEDDATE NEXT * WHT O(") CHARACTER
INTERVIEWEDBY NEXT * WHT O(") CHARACTER
INTERVIEWEDRATING NEXT * WHT O(") CHARACTER
DUALDEGREE NEXT * WHT O(") CHARACTER
Record 1: Rejected - Error on table INQUIRIES, column LASTMODIFIED.
Column not found before end of logical record (use TRAILING NULLCOLS)
Record 2: Rejected - Error on table INQUIRIES, column LASTMODIFIED.
Column not found before end of logical record (use TRAILING NULLCOLS)
Record 3: Rejected - Error on table INQUIRIES, column LASTMODIFIED.
Column not found before end of logical record (use TRAILING NULLCOLS)
Record 4: Rejected - Error on table INQUIRIES, column LABELPRINTDATE.
Column not found before end of logical record (use TRAILING NULLCOLS)
Record 5: Rejected - Error on table INQUIRIES, column LABELPRINTDATE.
Column not found before end of logical record (use TRAILING NULLCOLS)
Record 6: Rejected - Error on table INQUIRIES, column MODIFYINGUSER.
Column not found before end of logical record (use TRAILING NULLCOLS)
Record 7: Rejected - Error on table INQUIRIES, column LABELPRINTDATE.
Column not found before end of logical record (use TRAILING NULLCOLS)
Record 8: Rejected - Error on table INQUIRIES, column LABELPRINTDATE.
Column not found before end of logical record (use TRAILING NULLCOLS)
Record 9: Rejected - Error on table INQUIRIES, column LASTMODIFIED.
Column not found before end of logical record (use TRAILING NULLCOLS)
Record 10: Rejected - Error on table INQUIRIES, column LABELPRINTDATE.
Column not found before end of logical record (use TRAILING NULLCOLS)
Record 11: Rejected - Error on table INQUIRIES, column LABELPRINTDATE.
Column not found before end of logical record (use TRAILING NULLCOLS)
Record 12: Rejected - Error on table INQUIRIES, column LASTMODIFIED.
Column not found before end of logical record (use TRAILING NULLCOLS)
Record 13: Rejected - Error on table INQUIRIES, column LASTMODIFIED.
Column not found before end of logical record (use TRAILING NULLCOLS)
Record 14: Rejected - Error on table INQUIRIES, column LASTMODIFIED.
Column not found before end of logical record (use TRAILING NULLCOLS)
Record 15: Rejected - Error on table INQUIRIES, column PERMANENTRESIDENCE.
Column not found before end of logical record (use TRAILING NULLCOLS)
Record 16: Rejected - Error on table INQUIRIES, column PHONE.
Column not found before end of logical record (use TRAILING NULLCOLS)
Record 17: Rejected - Error on table INQUIRIES, column LABELPRINTDATE.
Column not found before end of logical record (use TRAILING NULLCOLS)
Record 18: Rejected - Error on table INQUIRIES, column LASTMODIFIED.
Column not found before end of logical record (use TRAILING NULLCOLS)
Record 19: Rejected - Error on table INQUIRIES, column LASTMODIFIED.
Column not found before end of logical record (use TRAILING NULLCOLS)
Record 20: Rejected - Error on table INQUIRIES, column LASTMODIFIED.
Column not found before end of logical record (use TRAILING NULLCOLS)
Record 21: Rejected - Error on table INQUIRIES, column LASTMODIFIED.
Column not found before end of logical record (use TRAILING NULLCOLS)
Record 22: Rejected - Error on table INQUIRIES, column LASTMODIFIED.
Column not found before end of logical record (use TRAILING NULLCOLS)
Record 23: Rejected - Error on table INQUIRIES, column LABELPRINTDATE.
Column not found before end of logical record (use TRAILING NULLCOLS)
Record 24: Rejected - Error on table INQUIRIES, column LABELPRINTDATE.
Column not found before end of logical record (use TRAILING NULLCOLS)
Record 25: Rejected - Error on table INQUIRIES, column LASTMODIFIED.
Column not found before end of logical record (use TRAILING NULLCOLS)
Record 26: Rejected - Error on table INQUIRIES, column LASTMODIFIED.
Column not found before end of logical record (use TRAILING NULLCOLS)
Record 27: Rejected - Error on table INQUIRIES, column LASTMODIFIED.
Column not found before end of logical record (use TRAILING NULLCOLS)
Record 28: Rejected - Error on table INQUIRIES, column MODIFYINGUSER.
Column not found before end of logical record (use TRAILING NULLCOLS)
Record 29: Rejected - Error on table INQUIRIES, column LABELPRINTDATE.
Column not found before end of logical record (use TRAILING NULLCOLS)
Record 30: Rejected - Error on table INQUIRIES, column MODIFYINGUSER.
Column not found before end of logical record (use TRAILING NULLCOLS)
Record 31: Rejected - Error on table INQUIRIES, column MODIFYINGUSER.
Column not found before end of logical record (use TRAILING NULLCOLS)
Record 32: Rejected - Error on table INQUIRIES, column LASTMODIFIED.
Column not found before end of logical record (use TRAILING NULLCOLS)
Record 33: Rejected - Error on table INQUIRIES, column LABELPRINTDATE.
Column not found before end of logical record (use TRAILING NULLCOLS)
Record 34: Rejected - Error on table INQUIRIES, column LASTMODIFIED.
Column not found before end of logical record (use TRAILING NULLCOLS)
Record 35: Rejected - Error on table INQUIRIES, column LASTMODIFIED.
Column not found before end of logical record (use TRAILING NULLCOLS)
Record 36: Rejected - Error on table INQUIRIES, column LASTMODIFIED.
Column not found before end of logical record (use TRAILING NULLCOLS)
Record 37: Rejected - Error on table INQUIRIES, column LASTMODIFIED.
Column not found before end of logical record (use TRAILING NULLCOLS)
Record 38: Rejected - Error on table INQUIRIES, column LASTMODIFIED.
Column not found before end of logical record (use TRAILING NULLCOLS)
Record 39: Rejected - Error on table INQUIRIES, column LASTMODIFIED.
Column not found before end of logical record (use TRAILING NULLCOLS)
Record 40: Rejected - Error on table INQUIRIES, column MODIFYINGUSER.
Column not found before end of logical record (use TRAILING NULLCOLS)
Record 41: Rejected - Error on table INQUIRIES, column LABELPRINTDATE.
Column not found before end of logical record (use TRAILING NULLCOLS)
Record 42: Rejected - Error on table INQUIRIES, column LABELPRINTDATE.
Column not found before end of logical record (use TRAILING NULLCOLS)
Record 43: Rejected - Error on table INQUIRIES, column LABELPRINTDATE.
Column not found before end of logical record (use TRAILING NULLCOLS)
Record 44: Rejected - Error on table INQUIRIES, column LABELPRINTDATE.
Column not found before end of logical record (use TRAILING NULLCOLS)
Record 45: Rejected - Error on table INQUIRIES, column LABELPRINTDATE.
Column not found before end of logical record (use TRAILING NULLCOLS)
Record 46: Rejected - Error on table INQUIRIES, column LABELPRINTDATE.
Column not found before end of logical record (use TRAILING NULLCOLS)
Record 47: Rejected - Error on table INQUIRIES, column LABELPRINTDATE.
Column not found before end of logical record (use TRAILING NULLCOLS)
Record 48: Rejected - Error on table INQUIRIES, column LASTMODIFIED.
Column not found before end of logical record (use TRAILING NULLCOLS)
Record 49: Rejected - Error on table INQUIRIES, column LABELPRINTDATE.
Column not found before end of logical record (use TRAILING NULLCOLS)
Record 50: Rejected - Error on table INQUIRIES, column LABELPRINTDATE.
Column not found before end of logical record (use TRAILING NULLCOLS)
Record 51: Rejected - Error on table INQUIRIES, column LABELPRINTDATE.
Column not found before end of logical record (use TRAILING NULLCOLS)
MAXIMUM ERROR COUNT EXCEEDED - Above statistics reflect partial run.
Table INQUIRIES:
0 Rows successfully loaded.
51 Rows not loaded due to data errors.
0 Rows not loaded because all WHEN clauses were failed.
0 Rows not loaded because all fields were null.
Space allocated for bind array: 250776 bytes(27 rows)
Read buffer bytes: 1048576
Total logical records skipped: 0
Total logical records read: 51
Total logical records rejected: 51
Total logical records discarded: 0
Run began on Tue Jun 27 10:29:01 2006
Run ended on Tue Jun 27 10:29:01 2006
Elapsed time was: 00:00:00.21
CPU time was: 00:00:00.05
So now i need to do some google searching to see what those erros mean...... ahh the life of IT... ya gotta love it -
How to upload the flat file records into internal table by position?
Hi
I have a flat file which has 7 records in each row and they are NOT provided with CSV or Tab demilited...
They are continous text without spaces....
but i know the fixed length of each field Eg : 1st field 7 char and seconc field 3 char and so on...
How can i upload this file into internal table by reading positions of each field...I know we can use GUI_UPLOAD and Read dataset and Open dataset...
But please let me know to read the file with the fixed postions and load into internal table...
Thanks in advance
MMHi
As per my knowledge i dont think thr is some function module or so to read with a fixed positions.
You can use the below method if you think this is the best way.
Suppose your file has
types : begin of ty_itab,
field1 type char7,
field2 type char3,
field3 type chat3,
field4 type char3,
end of ty_itab.
types : begin of ty_upload,
str type string,
end of ty_upload.
data : it_itab type standatd table of ty_itab,
it_upload type standard table ot ty_upload,
wa_itab type ty_itab,
wa_upload type ty_upload.
use gui_upload.get the data in it_upload.
here you know that u have first 16 charcters makes a first row n then next 16 charcters next row
Loop at it_upload into wa_upload.
v_len = strlen ( wa_upload ).
v_len = v_len / 16.
You get number of rows per record ,if it is decimal value make it final value if 3.9 make to 4.
do v_len times.
wa_itab = wa_upload.
By this only first 16 characters are moved and respective fields will get a value.or else u can use offset
wa_upload+0(16).
append wa_itab to it_itab.
Now shift 16 characters using shift command in wa_upload.
enddo.
endloop.
Hope this syntax help you to resolve your issue.May be something i have missed .Right now i don't have sap system to send you the full correct syntax code.
Cheers
Joginder -
Transfer data from ALV to Z table
Hi,
I need to confirm the exact procedure to transfer data from ALV into z table.I am entering few values at runtime in the ALV & need to populate the z table with the same.
I created a z table,it has been assigned a internal table & work area.A loop is there on the internal table passed to fieldcatalog.
LOOP AT GIT_EKPO INTO GS_EKPO.
LS_ZPS005-EBELN = GS_EKPO-EBELN.
LS_ZPS005-EBELP = GS_EKPO-EBELP.
LS_ZPS005-ERECDAT = GS_EKPO-ERDAT. "this field is not passing value into z table
LS_ZPS005-LINEID = SY-TABIX.
LS_ZPS005-POQTY = GS_EKPO-POQTY.
LS_ZPS005-EREQTY = GS_EKPO-EREQTY. "this field is not passing value into z table
ENDLOOP.
INSERT INTO ZPS005 VALUES LS_ZPS005.
When I assign the values from Internal table into internal table of z table,the values in fields populated at runtime does not come.
Please help me with your suggestions on the same.
Thanks.Hi,
I tried the procedure,but do I need to include this before method set_table_for_first_display?
You can have a look at the whole code.Please let me know of a possible solution.Looking forward to an early reply.
Thanks.
TABLES: EKKO,
EKPO,
ZPS005.
INITIALIZATION.
PERFORM CREATE_FIELD_CATLOG.
Types Declaration *
*Structure for EKPO table
TYPES: BEGIN OF TYPE_EKPO,
EBELN TYPE EKPO-EBELN, "PURCHSE ORDER NUMBER
EBELP TYPE EKPO-EBELP, "Item Number of Purchasing Document
POQTY TYPE EKPO-MENGE, "Purchase Order Quantity
ERDAT TYPE SY-DATUM, "Date on Which Record Was Created
LINEID TYPE ZPS005-LINEID, "Unique identification of document line
EREQTY TYPE ZPS005-EREQTY, "Erection Quantity
END OF TYPE_EKPO.
Data *
Data Declaration for Internal Table & Work Area *
*INTERNAL TABLE FOR EKPO TABLE
DATA:LIT_EKPO TYPE TABLE OF EKPO,
LS_EKPO TYPE EKPO.
*SECOND INTERNAL TABLE FOR EKPO TABLE
DATA: GIT_EKPO TYPE TABLE OF TYPE_EKPO.
DATA: GS_EKPO TYPE TYPE_EKPO.
*INTERNAL TABLE FOR FIELD CATALOG
DATA: LIT_FIELDCAT TYPE lvc_t_fcat,
LS_FIELDCAT LIKE LINE OF LIT_FIELDCAT. "WORK AREA FOR FIELD CATALOG
*INTERNAL TABLE FOR Z TABLE ZPS005
DATA: LIT_ZPS005 TYPE TABLE OF ZPS005,
LS_ZPS005 TYPE ZPS005.
ALV GRID Data Declaration *
DATA: V_CONTAINER TYPE REF TO cl_gui_custom_CONTAINER.
data: grid TYPE REF TO cl_gui_alv_grid.
data: ok_code type sy-ucomm.
DATA: V_LAYOUT TYPE lvc_s_layo. " FOR LAYOUT
DATA: V_LINE TYPE I,
LINEID TYPE I.
DATA: V_INDEX TYPE SY-TABIX.
PARAMETER *
parameter : p_ebeln like ekko-ebeln.
START OF SELECTION *
START-OF-SELECTION.
SELECTION OF DATA *
CALL FUNCTION 'ME_PURCHASE_DOCUMENT_DATA_READ'
EXPORTING
I_EBELN = P_EBELN
I_TCODE = 'ME23'
I_NO_COMMIT = ' '
I_TRTYP = 'A'
I_NO_MESSAGING =
I_NO_MESSAGE_REQ =
I_NO_AUTHORITY_CHECK =
I_VORGA =
IMPORTING
E_EKKO =
TABLES
T_EKPO = LIT_EKPO
T_EKET =
T_EKKN =
T_KOMV =
EXCEPTIONS
NO_EBLNR = 1
EBLNR_NOT_FOUND = 2
NO_TCODE = 3
TCODE_NOT_ALLOWED = 4
NO_TRTYP = 5
INVALID_CALL_OF_FB = 6
OTHERS = 7
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
LOOP AT LIT_EKPO INTO LS_EKPO.
MOVE : LS_EKPO-EBELN TO GS_EKPO-EBELN,
LS_EKPO-EBELP TO GS_EKPO-EBELP,
LS_EKPO-MENGE TO GS_EKPO-POQTY.
APPEND GS_EKPO TO GIT_EKPO.
ENDLOOP.
End-of-selection.
perform field_catalog.
call screen 100.
END-OF-SELECTION *
MODULES FOR ALV DISPLAY *
*& Module STATUS_0100 OUTPUT
text
MODULE STATUS_0100 OUTPUT.
SET PF-STATUS 'PF-STAT'.
SET TITLEBAR 'TITLE'.
ENDMODULE. " STATUS_0100 OUTPUT
**& Module USER_COMMAND_0100 INPUT
text
MODULE USER_COMMAND_0100 INPUT.
CASE OK_CODE.
WHEN 'BACK'.
LEAVE PROGRAM.
WHEN 'EXIT'.
LEAVE TO SCREEN 0.
WHEN 'SWITCH'.
PERFORM switch_edit_mode.
WHEN 'SAVE'.
PERFORM FILL_TABLE.
ENDCASE.
ENDMODULE. " USER_COMMAND_0100 INPUT
**& Module layout_0100 OUTPUT
text
MODULE layout_0100 OUTPUT.
V_LAYOUT-grid_title = 'Purchase Order Erection Details'.
ENDMODULE. " layout_0100 OUTPUT
**& Module data_retrivaL OUTPUT
text
MODULE data_retrivaL OUTPUT.
IF V_CONTAINER IS INITIAL.
CREATE OBJECT V_CONTAINER
EXPORTING container_name = 'GRID'.
CREATE OBJECT grid
EXPORTING i_parent = V_CONTAINER.
ENDIF.
CALL METHOD GRID->SET_TABLE_FOR_FIRST_DISPLAY
EXPORTING
IS_LAYOUT = V_LAYOUT
CHANGING
IT_OUTTAB = GIT_EKPO
IT_FIELDCATALOG = LIT_FIELDCAT
EXCEPTIONS
INVALID_PARAMETER_COMBINATION = 1
PROGRAM_ERROR = 2
TOO_MANY_LINES = 3
others = 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.
ENDMODULE. " data_retrivaL OUTPUT
*& Module field_catalog OUTPUT
text
FORM field_catalog.
CLEAR LS_fieldcat.
LS_fieldcat-fieldname = 'EBELN'.
LS_fieldcat-ref_table = 'GIT_EKPO'.
LS_FIELDCAT-coltext = 'PURCHSE ORDER NUMBER'.
LS_FIELDCAT-col_pos = 0.
LS_FIELDCAT-EDIT = ' '.
ls_FIELDCAT-style = cl_gui_alv_grid=>mc_style_disabled.
INSERT LS_FIELDCAT INTO TABLE LIT_FIELDCAT.
APPEND LS_fieldcat TO LIT_fieldcat.
CLEAR LS_fieldcat.
LS_fieldcat-fieldname = 'EBELP'.
LS_fieldcat-ref_table = 'GIT_EKPO'.
LS_FIELDCAT-coltext = 'ITEM NUMBER'.
LS_FIELDCAT-col_pos = 1.
LS_FIELDCAT-EDIT = ' '.
ls_FIELDCAT-style = cl_gui_alv_grid=>mc_style_disabled.
INSERT LS_FIELDCAT INTO TABLE LIT_FIELDCAT.
APPEND LS_fieldcat TO LIT_fieldcat.
CLEAR LS_fieldcat.
LS_fieldcat-fieldname = 'POQTY'.
LS_fieldcat-ref_table = 'GIT_EKPO'.
LS_FIELDCAT-coltext = 'PURCHASE ORDER QUANTITY'.
LS_FIELDCAT-col_pos = 2.
LS_FIELDCAT-EDIT = ' '.
ls_FIELDCAT-style = cl_gui_alv_grid=>mc_style_disabled.
INSERT LS_FIELDCAT INTO TABLE LIT_FIELDCAT.
APPEND LS_fieldcat TO LIT_fieldcat.
CLEAR LS_fieldcat.
LS_fieldcat-fieldname = 'ERDAT'.
LS_fieldcat-ref_table = 'GIT_EKPO'.
LS_FIELDCAT-coltext = 'DATE OF ERECTION'.
LS_FIELDCAT-col_pos = 3.
LS_FIELDCAT-EDIT = 'X'.
ls_fieldcat-style = cl_gui_alv_grid=>mc_style_enabled.
INSERT LS_FIELDCAT INTO TABLE LIT_FIELDCAT.
APPEND LS_fieldcat TO LIT_fieldcat.
CLEAR LS_fieldcat.
LS_fieldcat-fieldname = 'EREQTY'.
LS_fieldcat-ref_table = 'GIT_EKPO'.
LS_FIELDCAT-coltext = 'ERECTION QUANTITY'.
LS_FIELDCAT-col_pos = 4.
LS_FIELDCAT-EDIT = 'X'.
ls_fieldcat-style = cl_gui_alv_grid=>mc_style_enabled.
INSERT LS_FIELDCAT INTO TABLE LIT_FIELDCAT.
APPEND LS_fieldcat TO LIT_fieldcat.
ENDFORM. " field_catalog OUTPUT
*& Form SWITCH_EDIT_MODE
text
--> p1 text
<-- p2 text
*FORM switch_edit_mode.
IF GRID->is_ready_for_input( ) eq 0.
set edit enabled cells ready for input
CALL METHOD GRID->set_ready_for_input
EXPORTING
i_ready_for_input = 1.
ELSE.
lock edit enabled cells against input
CALL METHOD GRID->set_ready_for_input
EXPORTING
i_ready_for_input = 0.
ENDIF.
*ENDFORM. " SWITCH_EDIT_MODE
*& Form FILL_TABLE
text
--> p1 text
<-- p2 text
FORM FILL_TABLE .
LOOP AT GIT_EKPO INTO GS_EKPO.
LS_ZPS005-EBELN = GS_EKPO-EBELN.
LS_ZPS005-EBELP = GS_EKPO-EBELP.
LS_ZPS005-POQTY = GS_EKPO-POQTY.
LS_ZPS005-ERECDAT = GS_EKPO-ERDAT.
LS_ZPS005-EREQTY = GS_EKPO-EREQTY.
ENDLOOP.
MODIFY ZPS005 FROM LS_ZPS005.
ENDFORM. " FILL_TABLE
Maybe you are looking for
-
How to create up-to-date Recovery Drive and Recovery Partition on Windows 8.1 U1.
I am running 8.1 and exploring the recovery options. I'm periodically creating recovery images, etc. but would like to do better than that. I'd like to know how to: Create an updated Recovery Partition that will restore to a Recovery Image (WIM) that
-
10.4.8 and cpu whine
Is there any difference with cpu whine after installing 10.4.8 patch?
-
Use of wildcard and case insensitive searches
Used the "Create form from a table" option. Have a customized form for this table to query, insert, update, and delete rows. My question is how can I allow a user to 1) search using a wildcard (%) from this form and 2) how can I make the search case
-
Hi All, I have a couple of question in regards to rogues and rf grouping. Does the controller count the rougues access points when calculating channels assignments in the network? The current setup has each floor in a separate RF group, does the APs
-
Default Automatic Association to "No" when using Outlook Integration
In R14 the Automatic Association was turned off (Set to "No"), in R15 it is turned "On" (Set to Yes) by default. Is there any way users can manually choose what default they would like to have.