GETWA_NOT_ASSIGNED error occured when using FM REUSE_ALV_GRID_DISPLAY
Hi All,
I am using the Fm REUSE_ALV_GRID_DISPLAY to display output in the ALV grid.
I am getting the following error
"Field symbol has not yet been assigned."
Error analysis
You attempted to access an unassigned field symbol
(data segment 32820).
This error may occur for any of the following reasons:
- You address a typed field symbol before it is set using ASSIGN
- You address a field symbol that points to a line in an internal table
that has been deleted
- You address a field symbol that had previously been reset using
UNASSIGN, or that pointed to a local field that no longer exists
- You address a global function interface parameter, even
though the relevant function module is not active,
that is it is not in the list of active calls. You can get the list
of active calls from the this short dump.
I used the Fm as :
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_INTERFACE_CHECK = ' '
I_BYPASSING_BUFFER = 'X'
I_BUFFER_ACTIVE = ' '
I_CALLBACK_PROGRAM = sy-repid
I_CALLBACK_PF_STATUS_SET = ' '
I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
I_CALLBACK_TOP_OF_PAGE = 'TOP_OF_PAGE'
I_CALLBACK_HTML_TOP_OF_PAGE = ' '
I_CALLBACK_HTML_END_OF_LIST = ' '
I_STRUCTURE_NAME =
I_BACKGROUND_ID = ' '
I_GRID_TITLE =
I_GRID_SETTINGS =
IS_LAYOUT = t_layout
IT_FIELDCAT = ls_slis_fieldcat
IT_EXCLUDING =
IT_SPECIAL_GROUPS =
IT_SORT =
IT_FILTER =
IS_SEL_HIDE =
I_DEFAULT = 'X'
I_SAVE = 'A'
IS_VARIANT =
IT_EVENTS =
IT_EVENT_EXIT =
IS_PRINT =
IS_REPREP_ID =
I_SCREEN_START_COLUMN = 0
I_SCREEN_START_LINE = 0
I_SCREEN_END_COLUMN = 0
I_SCREEN_END_LINE = 0
I_HTML_HEIGHT_TOP = 0
I_HTML_HEIGHT_END = 0
IT_ALV_GRAPHICS =
IT_HYPERLINK =
IT_ADD_FIELDCAT =
IT_EXCEPT_QINFO =
IR_SALV_FULLSCREEN_ADAPTER =
IMPORTING
E_EXIT_CAUSED_BY_CALLER =
ES_EXIT_CAUSED_BY_USER =
TABLES
t_outtab = gt_output
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.
Any help on this would be appreciated,
Thanks in advance.
Sharat.
This is the error i get when i try to read the input data entered on the ALV grid. The code shown is from the class cl_gui_alv_grid.
183 translate ls_cells_temp-value to upper case. "#EC TRANSLANG
184 assign ls_cells_temp-value to <l_currency>.
185 else.
186 assign ls_cells_temp-value to <l_currency>.
187 clear <l_currency>.
188 endif.
189 if <l_currency> is initial.
190 assign component ls_fieldcat-qfieldname
191 of structure <ls_wa> to <l_currency>.
192 endif.
193 if <l_currency> is initial.
194 assign ls_fieldcat-QUANTITY to <l_currency>.
195 if sy-subrc ne 0.
196 assign space to <l_currency>.
197 endif.
198 endif.
199 endif.
200 else.
201 if not ls_fieldcat-currency is initial.
202 assign ls_fieldcat-currency to <l_currency>.
203 elseif not ls_fieldcat-quantity is initial.
204 assign ls_fieldcat-quantity to <l_currency>.
205 else.
206 assign space to <l_currency>.
207 endif.
208 endif.
209
210 * If field has not DDIC referencen
211 if ls_fieldcat-ref_table is initial.
212 *-- Formal field check without DDIC reference
>>>> call method me->formal_field_check_no_ddic
214 exporting
215 i_currency = <l_currency>
216 i_value = ls_cells-value
217 i_row_id = ls_cells-row_id
218 i_tabix = l_tabix
219 is_fieldcat = ls_fieldcat
220 importing
221 eflg_invalid = eflg_invalid
222 changing
223 c_field = <l_field>
224 ct_good_cells = et_good_cells
225 ct_mod_cells = et_mod_cells.
226 else.
227 *-- Formal field check with DDIC reference
228 call method me->formal_field_check_ddic
229 exporting
230 i_currency = <l_currency>
231 i_value = ls_cells-value
232 i_row_id = ls_cells-row_id
Similar Messages
-
TNS-12666 error occures when using database link
When I am trying to use database link
defined in my database the following error occures:
TNS-12666 Dedicated server: outbound transport protocol different from inbound.
In documentation is stated to resolve such an error to
specify the same protocol in the SQL*Net connect string or alias for the outbound connection as that used for the inbound connection.
I have in tnsnames.ora defined network service name
by which I can connect to such a database by SQL*Plus
without any problems, why can I not do such a thing
via database link?
Thanks a lot for advise, ...Could you change the following entry in your 'sqlnet.ora' file and try?
SQLNET.AUTHENTICATION_SERVICES = (NONE) -
Runtime error occurs when using DropdownByKey
I run into a runtime error when I use the DropDowByKey with fixed value set: the value seletedKey = "001" in DropDownByKey "DDBK_APP_STATE" does not exist in the value list and is not initial either. But I have already added the value pair of the selectedKey using
"NODE_INFO->SET_ATTRIBUTE_VALUE_SET(
NAME = 'APP_STATE'
VALUE_SET = LT_VALUESET )." and I can select it from view. But when I use the attribute bound to the dropdownbykey in select statement as where condition and bind result into table. Before the screen reflash , the error occurs.I have two dropdownbykeys, DROP1(bound to attribute APP_AGENT),DROP2( bound to attribute APP_STATE). Selecting the first will change the content of the other.
The code in the onSelect event of the drop1, which will change the select list of DROP2:
DATA:NODE_INFO TYPE REF TO IF_WD_CONTEXT_NODE_INFO.
DATA: LT_VALUESET TYPE WDY_KEY_VALUE_TABLE,
L_VALUE TYPE WDY_KEY_VALUE.
NODE_INFO = WD_CONTEXT->GET_NODE_INFO( ).
NODE_INFO = NODE_INFO->GET_CHILD_NODE( 'NODE_SEARCH' ).
"**************************set value set for drop down***************
DATA lo_nd_node_search TYPE REF TO if_wd_context_node.
DATA lo_el_node_search TYPE REF TO if_wd_context_element.
DATA ls_node_search TYPE wd_this->element_node_search.
DATA lv_app_agent LIKE ls_node_search-app_agent.
DATA lv_app_state LIKE ls_node_search-app_state.
navigate from <CONTEXT> to <NODE_SEARCH> via lead selection
lo_nd_node_search = wd_context->get_child_node( name = wd_this->wdctx_node_search ).
get element via lead selection
lo_el_node_search = lo_nd_node_search->get_element( ).
lo_el_node_search->get_attribute(
EXPORTING
name = `APP_STATE`
IMPORTING
value = lv_app_state ).
get single attribute
lo_el_node_search->get_attribute(
EXPORTING
name = `APP_AGENT`
IMPORTING
value = lv_app_agent ). -
get the value of DROP1
clear the selected value of drop down
lo_el_node_search->set_attribute(
EXPORTING
name = `APP_STATE`
value = '' ).----
I want to clear the selected value of DROP2
IF lv_app_agent IS INITIAL.
L_VALUE-VALUE = 'SUBMIT'.
CLEAR L_VALUE-KEY .
INSERT L_VALUE INTO TABLE LT_VALUESET.
NODE_INFO->SET_ATTRIBUTE_VALUE_SET(
NAME = 'APP_STATE'
VALUE_SET = LT_VALUESET ).
exit.
ENDIF.
CASE lv_app_agent .----
there are 2 cases
WHEN 'SUPP_APP'.
L_VALUE-VALUE = 'APPROVE'.
L_VALUE-KEY = '1'.
INSERT L_VALUE INTO TABLE LT_VALUESET.
L_VALUE-VALUE = 'INITIAL'.
L_VALUE-KEY = '0'.
INSERT L_VALUE INTO TABLE LT_VALUESET.
WHEN OTHERS.
L_VALUE-VALUE = 'APPROVE'.
L_VALUE-KEY = '1'.
INSERT L_VALUE INTO TABLE LT_VALUESET.
L_VALUE-VALUE = 'INITIAL'.
"CLEAR L_VALUE-KEY.
L_VALUE-KEY = '000'.
INSERT L_VALUE INTO TABLE LT_VALUESET.
L_VALUE-VALUE = 'REJECT'.
L_VALUE-KEY = '2'.
INSERT L_VALUE INTO TABLE LT_VALUESET.
ENDCASE.
NODE_INFO->SET_ATTRIBUTE_VALUE_SET(
NAME = 'APP_STATE'
VALUE_SET = LT_VALUESET ).
Then in the another method, I will fetch the value of attribute APP_STATE. I can successfully get the value and put it into where clause and get result. But I will get a runtime error then. -
Error occurred when using db link in procedure
Hi
I have a problem. As COLL_OWNER, I failed to compile this procedure.
CREATE OR REPLACE PROCEDURE Arch_Session_Order_Queue
IS
-- declarations
BEGIN
-- many lines
SELECT COUNT (1)
INTO v_wols_count
FROM [email protected];
-- many lines
END;
The error says "PL/SQL: ORA-00980: synonym translation is no longer valid"
But when I run it as COLL_OWNER like that,
SELECT COUNT (1) FROM [email protected]
I get the result.
Why that happens? How to resolve the problem?
Appreciate your advice.
KevinHi Jens
Here is the result
SELECT * FROM [email protected] WHERE synonym_name='ORDER_QUEUE;
OWNER SYNONYM_NAME TABLE_OWNER TABLE_NAME DB_LINK
OMDBPP_OWNER ORDER_QUEUE ORDER_QUEUE WOLSPP.WORLD
SELECT owner, object_name, object_type, status
FROM [email protected] WHERE object_name='ORDER_QUEUE';
OWNER OBJECT_NAME OBJECT_TYPE STATUS
OMDBPP_OWNER ORDER_QUEUE SYNONYM VALID
The ORDER_QUEUE on O9IPRD.WORLD is a synonym that points to the real table.
The way that happen is that we have Oracle 10g. The business logic needs to use Oracle 8.1.5 database. Oracle10g cannot talk to Oracle8.1.5. We created an Oracle 9i database having the synonym that points to the real table of Oracle 8.1.5.
I am wondering why I can get the result in SQL but failed to get procedure work.
Thanks,
Kevin -
Error occurs when using the LeCroy Waverunner driver.
Hi
I downloaded a Lecroy Waverunner driver in Instrument Driver Network and installed it. However, when I used it in block diagram. An error message "lcltxxxx_32.DLL is not a 32-bit DLL" appeared. What's the matter with that?
Bill.Hello Bill,
It sounds like you have the wrong IVI engine installed. The current LeCroy Waverunner software on the website requires the 1.83 IVI Engine and NI-VISA 2.5 or later. If you have old versions of the IVI engine and/or NI-VISA, remember to delete the old versions before reinstalling.
Regards,
Ray Kong -
Error occured when using flash 9 in firefox
I installed Flash CS3 Professional (trial) for doing
assignment. After that, I think flash player also be upgraded to
version 9. It's no problem in IE, but when browsing website with
using firefox, it keeps pop up windows which ask
"Where is the debugger or host application running?", you can
choose localhost or other machine. Actually, i run it in my hom pc,
so it should be "localhost".After keep answering the same
question(it seems be asked for each flash), then it pop up "A
connection to the Debugger or Profiler cound not be established by
Adobe Flash Player 9."
how can I fix this problem??
please give me a hand. Thanks a lot.Sorry, there is a bug in the developer guide on page 183, it says to use " and you need to use '. Hopefully The specified item was not found. or Thomas Jung will get it fixed.
The code below activates successfully.
John
context test2 {
entity table1
key field1 : String(10);
field2 : String(10) default 'dummy'; -
Error occured when using javap (Java Class File Disassembler)
Hi,
I have tried to use Java Class File Disassembler by using javap and i'm getting the error shown below,
C:\> javap abc.class
ERROR: Could not find abc.class
abc.class present in C:\ drive.
Please let me know how to solve the problem
Thanks in Advance
SoundarHi,
Thanks for your information, it works fine. Please let me know is there any option to display the method and variable implemation in abc.class.
I have tried javap abc it displays the method name only.
Thanks in advance,
Soundar -
Error occurs when using DBDataSource.SetValue method in sales order
Is it possiable to use the DBDataSource.SetValue method to update a cell in the Sales Order document
My code , but I am getting an error
Dim oDBDataSource As SAPbouiCOM.DBDataSource
oDBDataSource = oform.DataSources.DBDataSources.Item("RDR1")
oDBDataSource.SetValue("Price", 1, "111.22")
The following code works, but I do not want to use it because the cursor need to move to the cell before changing the value.
oMatrix.Columns.Item("14").Cells.Item(RowNum).Specific.value = 111.22
Sincerely yours
Riade AslehWell , I do not want to do it this way
I want to change the value using the setvalue method of the DBDatasource Object
I want to avoid the cursor from going to the cell for update or read.
Refer to orignal question (first question)
Sincerely yours
Riade Asleh -
Error occurred when use foreign Jms server[JMSClientExceptions:055142].
I want to use a foreign Jms server(Tibco EMS), after I have config the JNDI of foreign server,connectionfactory and destinations, the correct JNDI name can be find on the JNDI tree.
Then I deploy a demo mdb ear on the weblogic(version is 10.3),there's warnning tag on the ear application, and there is error message in the log:
<2011-1-10 上午10时15分07秒 CST> <Warning> <EJB> <BEA-010061> <The Message-Drive
n EJB: MDBDemo is unable to connect to the JMS destination: NotifyAlertAlertQueue. The Error was:
weblogic.jms.common.InvalidDestinationException: [JMSClientExceptions:055142]Foreign destination, Queue[notify.alert.alertQueue]>
NotifyAlertAlertQueue is the JNDI name of the destination defined on the weblogic console,and the same as ems jndi name for queue notify.alert.alertQueue.
It seems that the application has find the queue correctly, but why it throw that exception[JMSClientExceptions:055142]?
Thanks for any help.
Edited by: 826761 on 2011-1-9 下午6:40I suspect that somehow your configuration is messed up and the MDB ended up using a WebLogic connection to access a TIBCO EMS destination.
Please make sure that your JMS server configuration maps a TIBCO connection factory jndi name to a jndi name in WebLogic server JNDI tree, a TIBCO destination jndi name to a jndi name in WebLogic server JNDI tree, and your MDB configuration refers to the jndi names in the WebLogic JNDI tree.
Regards. -
Answer to question about "Error Occurring when convertion is tried for PDF to Word Document"
There are about ten questions about the "Error Occurring" when using Abode Reader XLto convert a PDF to a Word Doc, but no one has the answer? It has something to do with "signing in the wrong address". I have been working on this three days Now! Soimeone has the answer? Cataloochee
You must be kidding to say, "Adobe doesn't convert any version of Adobe Reader."' I must be in another world! When i move an Adobe Reader file pdf that goes to a wIndow that the top line says,'' Adobe reader X1 1001 Early Dutch History. pdf ". Then i click on the far left yellow marked icon that is used to move 1001 Early Dutch History.pdf to thye far right into a gray colored slot that reads "1001 Early Dutch History.pdf'. Under the file above or down below, the selected File for conversionis, a selection gray slot that ask if you want to convert this file(pdf) to a .docx.,.doc, tex. or Excell. After I make the selection and click onto Convert, a message comes into view where the word convert was that reads "An Error Occurred wilth Signing In OK" Even the use of another pdf file with a complete different address produces the same message. There are eight chapters in Dutch that I need to convert to word document by tommorrow or the class i teach "the Origin of Golf" will have to listen in Dutch and I can't speak Dutch. Cataloochee
-
I set up a playlist in itunes and when I try so sync it to my iphone, I get an error message "itunes could not copy "x" to the iphone "x" because a timeout error occurred. Using itunes 10.5.2.11 and Windows Vista 64. Any help? Thanks in advance!
I have the same question and the only reply I've found on the forum was "change the USB hub", which HASN'T worked. So I am accepting new suggestions. Tks!
-
Another "An error occurred when attempting to change modules" error
Hello all:
After using Adobe Photoshop Lightroom on Mac OSX trouble free for the past 6 months, I opened up Lightroom today and received the following error: "An error occurred when attempting to change modules." I had not made any changes in between when it worked normally and when the error started to occur. I beleive the last thing I did before this error occurred was to go into the Print Module.
Other information--I keep all my RAW .NEF files on an external Firewire (800) 750 GB drive. This is on Mac OS X 10.5 running Adobe Photoshop Lightroom 1.3 and also with 1.4.1. I'm running an iMac 20" with dual-core 2.2 Ghz Intel processors and 4 GB of RAM. I have around 25k images total.
When I noticed this problem, I was on Lightroom 1.3. I immediately upgraded to 1.4.1, which did not solve the problem. I have also tried many suggestions in the forums including uninstalling the application and removing the .plist file.
I thought I had come up with a solution by creating a new catalog, then importing the former into it. While this seems to work immediately after the import process, as soon as I close it, the problem manifests itself again.
More details that may or (likely) may not help:
- Going to the Develop and Print Modules gives me no problems. However, when I click on Library, Slideshow, or Web, I see the error.
- I upgraded my Mac to the latest patch level after observing this error to no avail.
So it looks like my choices are to create a new file and reimport every single time, or lose all of the work I've done for the past 6 months on thousands of images.
Can anyone please help???? I promise to post the solution when we fix this darn thing so others may benefit. I'd be happy to run through any troubleshooting that y'all would suggest outside of switching to a Canon.
Thanks!!!!
MattI'd first check for the existence of a file ending in .lock, which should be present when LR is in use, but if it exists when LR is quit, it can cause problems, and should be deleted.
Please post back your results. -
PL/SQL: ORA-04052: error occurred when looking up remote object.
Hi All,
I'm getting the following error message while executing a PL/SQL Block.
PL/SQL: ORA-04052: error occurred when looking up remote object UPLDUSER.filestatushistory@FTS
ORA-00604: error occurred at recursive SQL level 1
ORA-03106: fatal two-task communication protocol error
ORA-02063: preceding line from FTSStatement
declare
v_coun number;
begin
select count(*) into v_coun
from updluser.filestatushistory@fts;
end;Back ground of the situation as follows,
My DataBase version 10.2.0.3 DB Name :DB1
Table Owner : UPLDUSER
Table Name : FILESTATUSHISTORY
I have a report user on the same database and I have grant all on the above table to report user
Report User : RPT_FTS
SQL> GRANT ALL ON FILESTATUSHISTORY_V TO RPT_FTS;Now Please find the below database details where I'm getting subjected error.
Database version : 9.2.0.8
DB Name : DB2
User Name : RPT_REPORTS
I Have create a dblink from RPT_REPORTS to RPT_FTS on DB1 and the dblink works fine. But getting the above error while running it.
but When I do the same other 10.2.0.3 db , the above PL/SQL block works fine without any problem.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Now the strange about this is that I have Created a new table on DB1 db like below;
SQL> CREATE TABLE UPLDUSER.ABC AS SELECT * FROM FILESTATUSHISTORY;and retry my code on DB2 (9.2.0.8) after changing the table to ABC and it worked. Now I don't know whats wrong with a original table(FILESTATUSHISTORY).
To over come the problem and a work-a-round method I create a view on the DB1 (RPT_FTS) like the below
SQL> CREATE VIEW FILESTATUSHISTORY AS SELECT * FROM UPLDUSER.FILESTATUSHISTORY;and was able to run the PL/SQL block Remotely.
Just wants To know what whould have been the cause for this .
Cheers
KanchanaHi Kanchana,
Perhaps following link of google search has answer to your query
ORA-04052. The search result contains some useful articles whose URLs I shan't post in the forums.
HTH!
*009* -
I have Lightroom 5 installed on my iMac which I downloaded (uploaded?) to my MacBook Air (via wi-fi) but unlike the iMac, I'm unable to use the program on the MacBook Air. When I open the program on the iMac and click 'file', (as people using the program would know) there are 21 options - import pics, export, etc, etc - however, in the version on the MacBook Air, opening 'file' gives me four options - New Catalogue, Open Catalogue, Page Setup and Printer - and with that comes the pop-up message "An error occurred when attempting to change modules". Any ideas please?
A forum thread from 3 years ago talking about LR 1.x which had this problem seems to need permissions fixed or new folders created with the corrected permissions. You might try doing a repair permissions for your user and/or run LR as an administrator user. I am a PC person so cannot tell you exactly how to do that.
https://forums.adobe.com/message/1457020 -
Error in executing ABAP program. Error occurred when creating dataset
hi,
when I use LKM SAP ERP to Oracle (SQLLDR) to extract data from SAP ERP server. I execute my interface, and it's stop at extract data step.
This is message:
java.lang.RuntimeException: Error occured in open tool execute method...Error in executing ABAP program...Error in executing ABAP program...Error occurred when creating dataset/abc/ZODI_13001_6001_GLOBAL.txt
I tried others path name, tried slash or backslash. This is content in code tab
OdiSAPAbapExecute "-UPLOAD=1" "-EXECUTE=1" "-EXECUTEBASE_RKM=0" "-ZRFC_RUN_INSTALL=1" "-ABAP_PROGRAM_NAME=ZODI_13001_6001" "-HOST=10.86.87.24" "-USER=sv_hoa" "-PASSWORD=<@=snpRef.getInfo("SRC_PASS") @>" "-SAP_CLIENT=800" "-SAP_LANGUAGE=EN" "-SAP_SYSTEM_NUMBER=02" "-SAP_FUNCTION_GROUP_NAME=ZODI_FGR_13001" "-CONNECTION_POOL_NAME=SAP_ODI_ERP_POOL_10.86.87.24" "-CONNECTION_POOL_SIZE=10" "-FILE_DELIMITER=<@=""+(char)8@>" "-FILE_NAME=ZODI_13001_6001_GLOBAL.txt" "-FTP_HOST=10.86.82.108" "-FTP_USER=anh" "-FTP_PASSWORD=<@=sFtpPassword@>" "-FTP_PASSIVE_MODE=1" "-FTP_TRANSFER_TIMEOUT=100000" "-ODI_VARIABLE_NAMES=" "-ODI_VARIABLE_VALUES=" "-USER_ABAP_PARAMETER_NAMES=IV_DELIMITER,CHAR3;IV_FILENAME,CHAR255;IV_USER,CHAR35;IV_PWD,CHAR35;IV_HOST,CHAR35;IV_HASHVALUE,CHAR35;IV_PATH,CHAR35;IV_MAX_ROW_CNT,SYTABIX;IV_FETCH_BATCH_SIZE,SYTABIX;" "-USER_ABAP_PARAMETER_VALUES=<Value>" "-USER_ABAP_PARAMETER_SEPARATOR=<Value>" "-ABAP_TABLE_PARAMETERS=RETURN,BAPIRETURN;ET_FILE_RETURN,BAPIRET2" "-ABAP_EXPORT_PARAMETERS=ERRORMESSAGE;SY-MSGV1" "-LOG_FILE_NAME=C:\Users\anh\AppData\Local\Temp\SapAbapExecuteOpenTool_13001.log" "-FTP_PATH=/abc/" "-DEV_CLASS=ZODI_DEVCLASS" "-MAX_ROW_COUNT=" "-FETCH_BATCH_SIZE=100000" "-HASH_VALUE_MARKER=HVM" "-ABAP_PROGRAM_BODY=
*Final Type declarations
TYPES : BEGIN OF ty_final,
Y03HOCSINH_HOCSINH_ID TYPE
Y03HOCSINH-HOCSINH_ID,
Y03HOCSINH_MA_HOC_SINH TYPE
Y03HOCSINH-MA_HOC_SINH,
Y03HOCSINH_TEN_HOC_SINH TYPE
Y03HOCSINH-TEN_HOC_SINH,
Y03HOCSINH_GIOI_TINH TYPE
Y03HOCSINH-GIOI_TINH,
Y03HOCSINH_DIA_CHI TYPE
Y03HOCSINH-DIA_CHI,
Y03HOCSINH_GHI_CHU TYPE
Y03HOCSINH-GHI_CHU,
END OF ty_final.
*Final Temp Type Declarations
TYPES : BEGIN OF ty_final_tmp,
Y03HOCSINH_HOCSINH_ID TYPE
Y03HOCSINH-HOCSINH_ID ,
Y03HOCSINH_MA_HOC_SINH TYPE
Y03HOCSINH-MA_HOC_SINH ,
Y03HOCSINH_TEN_HOC_SINH TYPE
Y03HOCSINH-TEN_HOC_SINH ,
Y03HOCSINH_GIOI_TINH TYPE
Y03HOCSINH-GIOI_TINH ,
Y03HOCSINH_DIA_CHI TYPE
Y03HOCSINH-DIA_CHI ,
Y03HOCSINH_GHI_CHU TYPE
Y03HOCSINH-GHI_CHU ,
END OF ty_final_tmp.
*Final Target Type Declarations
TYPES : BEGIN OF ty_final_target,
C0_Y03HOCSINH_HOCSINH_ID TYPE
Y03HOCSINH-HOCSINH_ID,
C1_Y03HOCSINH_MA_HOC_SINH TYPE
Y03HOCSINH-MA_HOC_SINH,
C2_Y03HOCSINH_TEN_HOC_SINH TYPE
Y03HOCSINH-TEN_HOC_SINH,
C3_Y03HOCSINH_GIOI_TINH TYPE
Y03HOCSINH-GIOI_TINH,
C4_Y03HOCSINH_DIA_CHI TYPE
Y03HOCSINH-DIA_CHI,
C5_Y03HOCSINH_GHI_CHU TYPE
Y03HOCSINH-GHI_CHU,
END OF ty_final_target.
* Table type for Y03HOCSINH
TYPES : BEGIN OF ty_Y03HOCSINH,
HOCSINH_ID TYPE
Y03HOCSINH-HOCSINH_ID,
MA_HOC_SINH TYPE
Y03HOCSINH-MA_HOC_SINH,
TEN_HOC_SINH TYPE
Y03HOCSINH-TEN_HOC_SINH,
GIOI_TINH TYPE
Y03HOCSINH-GIOI_TINH,
DIA_CHI TYPE
Y03HOCSINH-DIA_CHI,
GHI_CHU TYPE
Y03HOCSINH-GHI_CHU,
END OF ty_Y03HOCSINH.
TYPES: BEGIN OF gs_text,
line(843) TYPE c,
END OF gs_text.
*Structure Declarations
DATA: wa_final_string TYPE string,
wa_final TYPE ty_final,
wa_final_target TYPE ty_final_target,
wa_Y03HOCSINH TYPE ty_Y03HOCSINH,
*Table Declarations
tt_final TYPE STANDARD TABLE OF ty_final,
tt_Y03HOCSINH TYPE STANDARD TABLE OF ty_Y03HOCSINH,
tt_final_target TYPE STANDARD TABLE
OF ty_final_target,
tt_final_tmp TYPE STANDARD TABLE OF ty_final_tmp,
tt_final_tmp1 TYPE STANDARD TABLE OF ty_final,
gt_result TYPE STANDARD TABLE OF gs_text,
*Variable Declarations
lv_path TYPE string,
lv_flag TYPE char1,
C0_Y03HOCSINH_HOCSINH_ID TYPE
STRING,
C1_Y03HOCSINH_MA_HOC_SINH TYPE
STRING,
C2_Y03HOCSINH_TEN_HOC_SINH TYPE
STRING,
C3_Y03HOCSINH_GIOI_TINH TYPE
STRING,
C4_Y03HOCSINH_DIA_CHI TYPE
STRING,
C5_Y03HOCSINH_GHI_CHU TYPE
STRING,
wa_final_tmp TYPE ty_final_tmp,
lv_file TYPE string,
lv_datum TYPE sy-datum,
lv_date TYPE char10,
wa_result TYPE string,
lv_delimiter type string,
lv_cnt TYPE sytabix,
*-Cursor Declaration
lv_Y03HOCSINH_dbcur TYPE cursor,
lv_tabix_frm TYPE sy-tabix.
lv_delimiter = iv_delimiter.
IF iv_hashvalue = 'HVM'.
*Open/delete output file
CONCATENATE iv_path iv_filename INTO lv_path.
*Check for file existence, if found, delete it
OPEN DATASET lv_path FOR INPUT
IN TEXT MODE
ENCODING DEFAULT.
IF sy-subrc EQ 0.
DELETE DATASET lv_path.
ENDIF.
*Open/create output file
OPEN DATASET lv_path FOR APPENDING
IN TEXT MODE
ENCODING DEFAULT.
IF sy-subrc EQ 0.
*Batch Processing
OPEN CURSOR WITH HOLD lv_Y03HOCSINH_dbcur FOR
SELECT HOCSINH_ID
MA_HOC_SINH
TEN_HOC_SINH
GIOI_TINH
DIA_CHI
GHI_CHU
FROM Y03HOCSINH.
DO.
*Check for the counter, only for first batch
*process new line is required...
lv_cnt = lv_cnt + 1.
REFRESH tt_Y03HOCSINH.
FETCH NEXT CURSOR lv_Y03HOCSINH_dbcur
APPENDING TABLE tt_Y03HOCSINH
PACKAGE SIZE IV_FETCH_BATCH_SIZE.
IF NOT tt_Y03HOCSINH IS INITIAL.
ELSE.
EXIT.
ENDIF.
LOOP AT tt_Y03HOCSINH INTO wa_Y03HOCSINH.
MOVE wa_Y03HOCSINH-HOCSINH_ID
TO wa_final_tmp-Y03HOCSINH_HOCSINH_ID.
MOVE wa_Y03HOCSINH-MA_HOC_SINH
TO wa_final_tmp-Y03HOCSINH_MA_HOC_SINH.
MOVE wa_Y03HOCSINH-TEN_HOC_SINH
TO wa_final_tmp-Y03HOCSINH_TEN_HOC_SINH.
MOVE wa_Y03HOCSINH-GIOI_TINH
TO wa_final_tmp-Y03HOCSINH_GIOI_TINH.
MOVE wa_Y03HOCSINH-DIA_CHI
TO wa_final_tmp-Y03HOCSINH_DIA_CHI.
MOVE wa_Y03HOCSINH-GHI_CHU
TO wa_final_tmp-Y03HOCSINH_GHI_CHU.
APPEND wa_final_tmp TO tt_final_tmp.
ENDLOOP.
free : tt_Y03HOCSINH.
LOOP AT tt_final_tmp INTO wa_final_tmp.
MOVE wa_final_tmp-Y03HOCSINH_HOCSINH_ID
TO wa_final_target-C0_Y03HOCSINH_HOCSINH_ID.
MOVE wa_final_tmp-Y03HOCSINH_MA_HOC_SINH
TO wa_final_target-C1_Y03HOCSINH_MA_HOC_SINH.
MOVE wa_final_tmp-Y03HOCSINH_TEN_HOC_SINH
TO wa_final_target-C2_Y03HOCSINH_TEN_HOC_SINH.
MOVE wa_final_tmp-Y03HOCSINH_GIOI_TINH
TO wa_final_target-C3_Y03HOCSINH_GIOI_TINH.
MOVE wa_final_tmp-Y03HOCSINH_DIA_CHI
TO wa_final_target-C4_Y03HOCSINH_DIA_CHI.
MOVE wa_final_tmp-Y03HOCSINH_GHI_CHU
TO wa_final_target-C5_Y03HOCSINH_GHI_CHU.
Append wa_final_target to tt_final_target.
ENDLOOP.
free : tt_final_tmp.
Clear wa_final_target.
IF NOT iv_max_row_cnt IS INITIAL.
Loop at tt_final_target into
wa_final_target TO iv_max_row_cnt.
MOVE wa_final_target-C0_Y03HOCSINH_HOCSINH_ID
TO C0_Y03HOCSINH_HOCSINH_ID.
MOVE wa_final_target-C1_Y03HOCSINH_MA_HOC_SINH
TO C1_Y03HOCSINH_MA_HOC_SINH.
MOVE wa_final_target-C2_Y03HOCSINH_TEN_HOC_SINH
TO C2_Y03HOCSINH_TEN_HOC_SINH.
MOVE wa_final_target-C3_Y03HOCSINH_GIOI_TINH
TO C3_Y03HOCSINH_GIOI_TINH.
MOVE wa_final_target-C4_Y03HOCSINH_DIA_CHI
TO C4_Y03HOCSINH_DIA_CHI.
MOVE wa_final_target-C5_Y03HOCSINH_GHI_CHU
TO C5_Y03HOCSINH_GHI_CHU.
CONCATENATE
C0_Y03HOCSINH_HOCSINH_ID
C1_Y03HOCSINH_MA_HOC_SINH
C2_Y03HOCSINH_TEN_HOC_SINH
C3_Y03HOCSINH_GIOI_TINH
C4_Y03HOCSINH_DIA_CHI
C5_Y03HOCSINH_GHI_CHU
INTO wa_final_string
SEPARATED BY lv_delimiter.
IF sy-tabix EQ 1 AND lv_cnt EQ 1.
CONCATENATE wa_final_string
lv_delimiter INTO wa_final_string.
ELSE.
CONCATENATE '<@=""+(char)8@>' lv_delimiter wa_final_string
lv_delimiter INTO wa_final_string.
ENDIF.
APPEND wa_final_string TO gt_result.
CLEAR : C0_Y03HOCSINH_HOCSINH_ID,
C1_Y03HOCSINH_MA_HOC_SINH,
C2_Y03HOCSINH_TEN_HOC_SINH,
C3_Y03HOCSINH_GIOI_TINH,
C4_Y03HOCSINH_DIA_CHI,
C5_Y03HOCSINH_GHI_CHU.
ENDLOOP.
ELSE.
Loop at tt_final_target into wa_final_target.
MOVE wa_final_target-C0_Y03HOCSINH_HOCSINH_ID
TO C0_Y03HOCSINH_HOCSINH_ID.
MOVE wa_final_target-C1_Y03HOCSINH_MA_HOC_SINH
TO C1_Y03HOCSINH_MA_HOC_SINH.
MOVE wa_final_target-C2_Y03HOCSINH_TEN_HOC_SINH
TO C2_Y03HOCSINH_TEN_HOC_SINH.
MOVE wa_final_target-C3_Y03HOCSINH_GIOI_TINH
TO C3_Y03HOCSINH_GIOI_TINH.
MOVE wa_final_target-C4_Y03HOCSINH_DIA_CHI
TO C4_Y03HOCSINH_DIA_CHI.
MOVE wa_final_target-C5_Y03HOCSINH_GHI_CHU
TO C5_Y03HOCSINH_GHI_CHU.
CONCATENATE
C0_Y03HOCSINH_HOCSINH_ID
C1_Y03HOCSINH_MA_HOC_SINH
C2_Y03HOCSINH_TEN_HOC_SINH
C3_Y03HOCSINH_GIOI_TINH
C4_Y03HOCSINH_DIA_CHI
C5_Y03HOCSINH_GHI_CHU
INTO wa_final_string
SEPARATED BY lv_delimiter.
IF sy-tabix EQ 1 AND lv_cnt EQ 1.
CONCATENATE wa_final_string
lv_delimiter INTO wa_final_string.
ELSE.
CONCATENATE '<@=""+(char)8@>' lv_delimiter wa_final_string
lv_delimiter INTO wa_final_string.
ENDIF.
APPEND wa_final_string TO gt_result.
CLEAR : C0_Y03HOCSINH_HOCSINH_ID,
C1_Y03HOCSINH_MA_HOC_SINH,
C2_Y03HOCSINH_TEN_HOC_SINH,
C3_Y03HOCSINH_GIOI_TINH,
C4_Y03HOCSINH_DIA_CHI,
C5_Y03HOCSINH_GHI_CHU.
ENDLOOP.
ENDIF.
free : tt_final_target.
IF NOT gt_result IS INITIAL.
CLEAR wa_result.
LOOP AT gt_result INTO wa_result.
TRANSFER wa_result TO lv_path.
ENDLOOP.
ENDIF.
REFRESH gt_result.
*End of main loop for batching
ENDDO.
*Close dataset
CLOSE DATASET lv_path.
CLOSE CURSOR lv_Y03HOCSINH_dbcur.
ELSE.
DATA: lv_mesg TYPE string.
CLEAR et_file_return.
et_file_return-type = 'E'.
CONCATENATE
'Error occurred when creating dataset' lv_path
INTO lv_mesg.
et_file_return-message = lv_mesg.
Append et_file_return.
ENDIF.
ELSE.
CLEAR et_file_return.
et_file_return-type = 'E'.
et_file_return-message =
'Installed ABAP program does not match interface definition'.
APPEND et_file_return.
ENDIF.
Thanks for helpr u able to figure it out..........i got the same error .......can someone help me fix this issue
Maybe you are looking for
-
How do I use Back to My Mac with a new Time Capsule if I don't have a MobileMe account?
I just got a new time capsule and I'm trying to set it up so that I can remotely access the files when I'm at work/on the go etc. Now I have an iCloud account, but I don't have a MobileMe account. I do have an @me.com address because I enabled Mail t
-
Hi guys I just bught a WVC210 Wireless-G PTZ Internet Camera I need to install it so that I can view it from any where in the world. I have no Idea how to do this. I would like if some one can send me a video tutorial on how to do it. I have a websit
-
TS1292 digital copy for The Lone Ranger the code in the box doesn't work
The code inside redeem digital copy doesn't work
-
Just installed Photoshop CS5 and cannot figure out tablet sensitivity...
Hi everyone. Previously with my computer running Photoshop Elements 7, I had no problems using the brush tool with my Tooya Pro tablet. The harder I pressed, the thicker the line would become up to the full diameter of the brush selected. Just yester
-
BDC for Hiring a Employee through hiring action
Hi Experts, We have done BDC for hiring action. We do have PA & OM integrated. T77S0 PLOGI ORGA "X". After hiring is compelted through BDC holder relationship is not appearing for position. But when we are individually hiring an employee, position is