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 Asleh
Well , 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
Similar Messages
-
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. -
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) -
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 -
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 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 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 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
-
System copy error when using DB depending methods
Hi,
I would like to do a system copy to transfer the database instance to another host.
My current system is ERP6.0 under NW 7.0 SR3 with DB2 9.1.7.
The kernel level is 7.20 REL running under windows 2003 R2 enterprise version.
I used the SPM 1.0 with database depended methods.
An error occurred when processing Grant Database Privileges On Tables under execute process.
Refer to below error taken from sapinst.log:
UPDATE COMMAND OPTIONS USING S OFF
DB20000I The UPDATE COMMAND OPTIONS command completed successfully.
UPDATE COMMAND OPTIONS USING A OFF
DB20000I The UPDATE COMMAND OPTIONS command completed successfully.
UPDATE COMMAND OPTIONS USING X ON
DB20000I The UPDATE COMMAND OPTIONS command completed successfully.
UPDATE COMMAND OPTIONS USING O OFF
ERROR 2014-08-05 14:41:39.29
MDB-01999 Error occured, first error is: <SQL0104N An unexpected token "" was found following ")". Expected tokens may >
ERROR 2014-08-05 14:41:39.169
MUT-03025 Caught ESAPinstException in module call: .
ERROR 2014-08-05 14:41:39.279
FCO-00011 The step drop_saptools with step key |NW_ABAP_DB|ind|ind|ind|ind|0|0|NW_CreateDBandLoad|ind|ind|ind|ind|createdbandload|0|NW_Postload|ind|ind|ind|ind|postload|0|NW_Postload_DB6|ind|ind|ind|ind|db6|0|drop_saptools was executed with status ERROR ( Last error reported by the step: Error occured, first error is: <SQL0104N An unexpected token "" was found following ")". Expected tokens may >).
INFO 2014-08-05 14:41:39.372
Creating file C:\Program Files\sapinst_instdir\BS2005\ERP60SR3\LM\COPY\DB6\SYSTEM\DISTRIBUTED\AS-ABAP\DB\__instana_tmp.xml.
INFO 2014-08-05 14:41:39.841
Removed file C:\Program Files\sapinst_instdir\BS2005\ERP60SR3\LM\COPY\DB6\SYSTEM\DISTRIBUTED\AS-ABAP\DB\instslana.xml.
INFO 2014-08-05 14:41:39.841
Creating file C:\Program Files\sapinst_instdir\BS2005\ERP60SR3\LM\COPY\DB6\SYSTEM\DISTRIBUTED\AS-ABAP\DB\instslana.xml.Hi Maria,
I backup the DB2 V9.1 using offline & restore it in V9.7 and then it will success when processing Grant
Database Privileges On Tables under execute process.
Thanks. -
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!
-
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* -
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
-
I have two forests with a transitive on-way trust between them: PROD -> TEST (test trusts PROD). I had previously had kerberos authentication working with winrm from PROD to machines in TEST. I have verified the trust is healthy, I also verified users
in TEST can use WINRM with kerberos just fine. Users from PROD cannot connect via kerberos to machines in TEST with winrm.
I have verified the service has registered the appropriate SPNs. I ran dcdiag against all my PROD and TEST domain controllers and didn't find anything that would prevent kerberos from happening. I even tried disabling the firewall entirely on my TEST dcs
but that didn't gain me anything.
I've enabled kerberos logging but only see the expected errors such as it couldn't find a PROD SPN for the machine, which it shouldn't from what I understand, it should go to the TEST domain and find the SPN from there.
I'm really out of next steps before I call PSS and hope someone here has run into this and could provide me some next steps.
PowerShell Error:
Connecting to remote server failed with the following error message : WinRM cannot process the request. The following error occured while using Kerberos authentication: The network path was not found.
Possible causes are:
-The user name or password specified are invalid.
-Kerberos is used when no authentication method and no user name are specified.
-Kerberos accepts domain user names, but not local user names.
-The Service Principal Name (SPN) for the remote computer name and port does not exist.
-The client and remote computers are in different domains and there is no trust between the two domains.
After checking for the above issues, try the following:
-Check the Event Viewer for events related to authentication.
-Change the authentication method; add the destination computer to the WinRM TrustedHosts configuration setting or use HTTPS transport.
Note that computers in the TrustedHosts list might not be authenticated.
-For more information about WinRM configuration, run the following command: winrm help config. For more information, see the about_Remote_Troubleshooting Help topic.
+ CategoryInfo : OpenError: (:) [], PSRemotingTransportException
+ FullyQualifiedErrorId : PSSessionStateBroken
winrs Error:
Winrs error:
WinRM cannot process the request. The following error occured while using Kerberos authentication: The network path was not found.
Possible causes are:
-The user name or password specified are invalid.
-Kerberos is used when no authentication method and no user name are specified.
-Kerberos accepts domain user names, but not local user names.
-The Service Principal Name (SPN) for the remote computer name and port does not exist.
-The client and remote computers are in different domains and there is no trust between the two domains.
After checking for the above issues, try the following:
-Check the Event Viewer for events related to authentication.
-Change the authentication method; add the destination computer to the WinRM TrustedHosts configuration setting or use HTTPS transport.
Note that computers in the TrustedHosts list might not be authenticated.
-For more information about WinRM configuration, run the following command: winrm help config.Hi Adam,
I'm a little unclear about which SPNs you were looking for, in which case could you confirm you were checking that on the computer object belonging to the actual destination host it has the following SPNs registered?
WSMAN/<NetBIOS name>
WSMAN/<FQDN>
If you were actually trying to use WinRM to connect to the remote forest's domain controllers, then what you said makes sense, but I was caught between assuming this was the case or you meant another member server in that remote forest.
Also, from the client trying to connect to this remote server, are you able to telnet to port 5985? (If you've used something other than the default, try that port)
If you can't, then you've got something else like a firewall (be that the Windows firewall on the destination or a hardware firewall somewhere in between) blocking you at the port level, or the listener on the remote box just isn't working as expected. I
just replied to your other winrm post with steps for checking the latter, so I won't repeat myself here.
If you can telnet to it and the SPNs exist, then you might be up against something called selective authentication which has to do with how the trust was defined. You can have a read of
this to learn a bit more about selective trusts and whether or not it's affecting you.
Cheers,
Lain
Maybe you are looking for
-
How to connect new Apple TV to analogue amplifier?
Hi, I can use HDMI to connect 2nd gen Apple TV to my HDTV, but would like to use separate stereo speakers. These speakers are connected to an amplifier that only has analogue inputs (no digital optical or HDMI). What is the easiest workaround for thi
-
Youview checking for updates failed
Im not to sure about this noticed my youview box checking for updates at start up also starting up very fast seeing i have it set to low power mode (ECO Mode High) seemed odd when i checked for updates manualy it says it failed to download no error c
-
Business Delegate Pattern?
What is the real use of Business Delegate pattern in a J2EE architecture design? I know it is to decouple the Presentation and Business Logic tiers. But all I can see is it just contains one method which basically accepts data (say Value Object) from
-
Unstable timeline movement using FireWire audio (MOTU 828mk3)
I'm using a 32 bit system with Windows 7 Home Premium and Service Pack 1. An AVI that I captured with my DV camera will not play in Premiere Elements. I can see the time line making a loop every 10 seconds or less whenever I use FireWire for audio. I
-
How to draw a shape with line tool then fill with colour
How can i draw a shape with the line tool and then fill it with colour