How To Use OATS To Pull Data From DB And Insert Data Back To DB
Hi All,
My requirement is little different.
I'll explain the scenario,
I am working on OTM application, as far as I have read OAST supports OTM and already test scripts are ready.
My situation is as follows bellow,
I need to pull data of a field for 18,000 shipments.
I have an excel sheet in the format as bellow
Shipment_Number
Stop_Number
Planed_Arrival_Date
Planed_Departure_Date
1
1
1
2
1
3
2
1
2
2
I was able to write script in OATS so that it logins to OTM and searches for the specified shipment number and capture the Planed_Arrival_Date and Planed_Departure_Date for the specific stop.
But the problem is I am not able to save the date back to the excel.
Solution Expecting:
Some way to save the captured data back to excel.
Some way to save the captured data back to a column in a table. if this is possible then some way to make OATS reade the shipment number from a column in database.
Thanks,
Vishwamber Shetty
Hi Vishwamber,
Try using Datatable in OATS. Using datatable you can read and write to Excel.
Regards,
Deepu Muraleedharan
Similar Messages
-
How to use macro to pull data from custom infotype?
Hi all,
Is rp_provide_from_last p9004 space pn-begda pn-endda. works?
i am getting all zeros .
is using macros possible pull data from custom infotype? or only select?
Regards
sas
For LDB PNPCE
get peras:Hi,
Try the following Macro it will solve out your problem,
DEFINE rp_provide_from_last.
rp_found = '0'.
clear: rp_tabix.
loop at &1.
if &2 ne space.
check &1-subty eq &2.
endif.
if &1-begda le &4 and &1-endda ge &4.
rp_found = '1'.
exit.
endif.
if &1-begda le &4 and &1-endda ge &3.
rp_tabix = sy-tabix.
endif.
endloop.
if rp_found eq '0'.
if rp_tabix ne 0 .
rp_found = '1'.
read table &1 index rp_tabix.
else.
clear: &1.
endif.
endif.
END-OF-DEFINITION.
rp_provide_from_last <p????> space <begda> <endda>.
Best Regards,
Faisal -
I used to have a web page in mobile me and now is closed. How can I get my webpage data back?
Your web pages on MobileMe have been deleted. If you were using iWeb you wouldn't have been able to open them anyway.
As long as you have the iWeb 'Domain' file in your user Library, or whatever the program you are using stores the information in, on your Mac you can publish to another hosting service - there are plenty to choose from. More information here:
http://rfwilmut.net/missing2 -
How to use clob or blob data type in OWB
how to use clob or blob data type in OWB?
if OWB not surport these data type,how can i extract the large data type from data sourceThe same question was asked just two days ago No Data Found: ORA-22992
Nikolai Rochnik -
How to create automatic creation of BP from customer and vendor master data
Hi gurus,
can any one tell how to create automatic creation of BP from customer and vendor master data.
Please give me the steps.
Thanks
Sasikanth.HI,
Goto SPRO\ Cross application components \ Master data synchronization \ Synchronization control.
Assign account groups of customer and vendors to respective BP grouping. This setting is enough to create BP in background while creating customer / vendor. But the fields groups are very much important, ensure mandatory fields should be sync.
rgds,
Srini -
How to use the DLLs which created from c++ in Java?
And How to use the DLLs which created from JNI in C++?
Huh?
Are you asking how to do JNI - you should read the tutorial.
Are you asking how to load it - then use System.loadLibrary()
Are you asking what to do with the output from javah - put it in a C file and write some code, compile it into a dll. -
How to use TRUNC function with dates in Expression Builder in OBIEE.
Hi There,
How to use TRUNC function with dates in Expression Builder in OBIEE.
TRUNC (SYSDATE, 'MM') returns '07/01/2010' where sysdate is '07/15/2010' in SQL. I need to use the same thing in expression builder in BMM layer logical column.
Thanks in advanceuse this instead:
TIMESTAMPADD(SQL_TSI_DAY, ( DAYOFMONTH(CURRENT_DATE) * -1) + 1, CURRENT_DATE) -
How to use Reference type of Data Element
Hi guys, is there anyone could give me a trace how to use reference type of data element.
More details i'm going to reach is:
I create 2 tables:
eq.
1. table ZFIRST has field X with data element ZFX (Data element i declared).
2. table ZSECOND has field Y.
Here at field Y (second table) I'm going to declare a new data element say it ZFY, but in ZFY I'm going to use the data element as i declared before (ZFX). Is it possible if I do it using reference type data element (SE11)?
I already did this way, but I got error :
Field Y: Reference ZFX to class w/o interface cannot be used in DB table ZSECOND
What does it mean?. Did I miss something about using reference data element type?.
This error occurs when I activate ZSECOND table. However in creating ZFY (reference) to data element ZFX, there is no error occur.
The point is I need to RE-declared existing data element and ot put existing data element(ZFX) to my current table (ZSECOND).
Any helpful will be highly appreciated.
Thanks.
Edited by: dinivian dondi on Nov 4, 2010 8:30 AMField Y: Reference ZFX to class w/o interface cannot be used in DB table ZSECOND
What does it mean?. Did I miss something about using reference data element type?.
Apparently system doesn't allow you to type a transparent table field with deep type. This refers to references and tables types as components. The RDBMS (Relational DB Management System) cannot interpret this componenets correclty and mapp them to TABLEs in DB.
So I am affraid you won't be able to type table component with reference to other data element.
The point is I need to RE-declared existing data element and ot put existing data element(ZFX) to my current table (ZSECOND).
Sorry but I don't get it, could you please explain this more clearly. Maybe then we can think of some workaround for you.
Regards
Marcin -
i had nokia n8 and now i want to transfer my contacts from nokia to my new i phone 5, i set up i tune and i cloud account but i don't know how to use do it. i have windows 7 and no outlook
If I wiped my phone I wouldn't have the contacts on my phone to send to my self. I would need to take just the contacts from my back up. I would have to do this through iTunes and I don't see how I can just extract the contacts only from my back up. From what I can figure out it is all or nothing
-
Hello ! pls give some ti[ps how to use bapi's for data uploading?
hello !
pls give some ti[ps how to use bapi's for data uploading?
regards,
ArjunHi,
See the below report extract:
where it_data is having uploaded data.
LOOP AT<b> it_data</b> INTO wa_data.
line_count = sy-tabix.
"Date Validation
CONCATENATE wa_data-uplft_date4(4) wa_data-uplft_date2(2) wa_data-uplft_date+0(2)
INTO wa_data-uplft_date.
"READ TABLE it_ekko INTO wa_ekko WITH KEY lifnr = wa_data-vendor.
LOOP AT it_ekko_temp INTO wa_ekko_temp WHERE lifnr = wa_data-vendor.
IF wa_ekko_temp-kdatb <= wa_data-uplft_date AND wa_ekko_temp-kdate >= wa_data-uplft_date.
MOVE-CORRESPONDING wa_ekko_temp TO wa_ekko.
APPEND wa_ekko TO it_ekko.
ENDIF.
ENDLOOP.
"IF sy-subrc = 0 AND wa_ekko-kdatb <= wa_data-uplft_date AND wa_ekko-kdate >= wa_data-uplft_date.
LOOP AT it_ekko INTO wa_ekko.
wa_data_header-pstng_date = wa_data-uplft_date.
wa_data_header-doc_date = sy-datum.
wa_data_header-bill_of_lading = wa_data-bill_of_lad.
wa_data_header-ref_doc_no = wa_data-del_no.
CONCATENATE wa_data-header_text1 '-'
wa_data-header_text2 '-'
wa_data-header_text3 '-'
wa_data-header_text4
into wa_data_header-HEADER_TXT.
IF wa_data-indicator = 'Y'.
wa_data_item-material = '000000000000200568'.
ELSE.
wa_data_item-material = '000000000000200566'.
ENDIF.
LOOP AT it_ekpo INTO wa_ekpo WHERE ebeln = wa_ekko-ebeln AND matnr = wa_data_item-material.
"Collect Item Level Data
wa_data_item-plant = '1000'.
wa_data_item-stge_loc = '1001'.
wa_data_item-move_type = '101'.
wa_data_item-vendor = wa_data-vendor.
wa_data-qnty = wa_data-qnty / 1000.
wa_data_item-entry_qnt = wa_data-qnty.
wa_data_item-po_pr_qnt = wa_data-qnty.
wa_data_item-entry_uom = 'KL'.
wa_data_item-entry_uom_iso = 'KL'.
wa_data_item-orderpr_un = 'KL'.
wa_data_item-orderpr_un_iso = 'KL'.
wa_data_item-no_more_gr = 'X'.
wa_data_item-po_number = wa_ekpo-ebeln.
wa_data_item-po_item = wa_ekpo-ebelp.
wa_data_item-unload_pt = wa_data-unload_pt.
wa_data_item-mvt_ind = 'B'.
APPEND wa_data_item TO it_data_item.
CLEAR wa_data_item.
ENDLOOP.
CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
EXPORTING
goodsmvt_header = wa_data_header
goodsmvt_code = goodsmvt_code
testrun = 'X'
TABLES
goodsmvt_item = it_data_item
return = return.
READ TABLE return INTO wa_return WITH KEY type = 'S'.
IF sy-subrc <> 0.
DESCRIBE TABLE return LINES sy-tfill.
IF sy-tfill = 0.
CALL FUNCTION <b>'BAPI_GOODSMVT_CREATE'</b>
EXPORTING
goodsmvt_header = wa_data_header
goodsmvt_code = goodsmvt_code
testrun = ' '
TABLES
goodsmvt_item = it_data_item
return = return.
CALL FUNCTION <b>'BAPI_TRANSACTION_COMMIT'</b>
EXPORTING
WAIT = 'X'
IMPORTING
RETURN =
ENDIF.
ENDIF.
LOOP AT return INTO wa_return.
WRITE: 'Messsage TYPE ', wa_return-type,
/,'ID ', wa_return-id,
/, 'Number ', wa_return-number,
/, 'Message ', wa_return-message,
/, 'Long Text ', wa_return-message_v1,
wa_return-message_v2,
wa_return-message_v3,
wa_return-message_v4,
/, 'Failed at line', line_count.
ENDLOOP.
CLEAR: wa_ekko, wa_ekpo, wa_data, it_data_item[], wa_data_header.
ENDLOOP.
Reward if useful! -
how to use ADO(Microsoft ActiveX Data Objective 2.8 Library) to execute the store procedure of database in SQL server?
Does any body can tell me about this?
thanks
[email protected]Hi
Did you succeed to execute the procedure?
How ?
Thanks
Shimon Zerbib -
Got a new ipod nano 7. Have music on both Windows 7 laptop and mac. How do i pull music from both and put them on my ipod. Thanks
Yes.
tomfromlong beech wrote:
"Remember one one level of subfolders is allowed." Does this mean that you can have as many subfolders as you want, but they can only be one level deep under the main folder? -
How to extract data from xml and insert into Oracle table
Hi,
I have a large xml file. which will have hundreds of the following transaction tags having column names and there values.
There is a table one of the schema with coulums "actualCostRate","billRate"....etc.
I need to extract the values of these columns and insert into the table
<Transaction actualCostRate="0" billRate="0" chargeable="1" clientID="NikuUK" chargeCode="LCOCD1" externalID="L-RESCODE_UK1-PROJ_UK_CNT_GBP-37289-8" importStatus="N" projectID="TESTPROJ" resourceID="admin" transactionDate="2002-02-12" transactionType="L" units="11" taskID="5017601" inputTypeCode="SALES" groupId="123" voucherNumber="ABCVDD" transactionClass="ABCD"/>
<Transaction actualCostRate="0" billRate="0" chargeable="1" clientID="NikuEU" chargeCode="LCOCD1" externalID="L-RESCODE_US1-PROJ_EU_STD2-37291-4" importStatus="N" projectID="TESTPROJ" resourceID="admin" transactionDate="2002-02-04" transactionType="L" units="4" taskID="5017601" inputTypeCode="SALES" groupId="124" voucherNumber="EEE222" transactionClass="DEFG"/>Re: Insert from XML to relational table
http://www.google.ae/search?hl=ar&q=extract+data+from+xml+and+insert+into+Oracle+table+&btnG=%D8%A8%D8%AD%D8%AB+Google&meta= -
I synced my iphone with an older computer to update the computer, but the iphone ended up with all the old data (phone numbers, etc). How do I get the newer data back?
Connect to iTunes on the computer you usually Sync with and Restore...
http://support.apple.com/kb/HT1414 -
Problem with reading data from screen and inserting in table
hi ther,
im new to abap-webdyn pro. can anyone suggest how to read data from screen and insert into table when press 'ADD' button.
i done screen gui , table creation but problems with action. what the content of acton add.
is ther any link that helps me or tut??
thankx in advance!
regardsHi,
Create a context node for the screen fields for which you want to enter the values with cardinality 1.1.....
Now in the layout of your view bind the screen input fields to that context node(attributes) to the value property of the input fields...
Now in the action of ADD button....
--> go the wizard and select the read node button and select the node which you have created it generates the auto code for you.....
for example if the node is contains aone attribute like MATNR
reading the node from wizard will generate the code as....
DATA lo_nd_matnr TYPE REF TO if_wd_context_node.
DATA lo_el_matnr TYPE REF TO if_wd_context_element.
DATA ls_matnr TYPE wd_this->element_matnr.
DATA lv_matnr TYPE wd_this->element_matnr-matnr.
* navigate from <CONTEXT> to <MATNR> via lead selection
lo_nd_matnr = wd_context->get_child_node( name = wd_this->wdctx_matnr ).
* @TODO handle non existant child
* IF lo_nd_matnr IS INITIAL.
* ENDIF.
* get element via lead selection
lo_el_matnr = lo_nd_matnr->get_element( ).
* @TODO handle not set lead selection
IF lo_el_matnr IS INITIAL.
ENDIF.
* get single attribute
lo_el_matnr->get_attribute(
EXPORTING
name = `MATNR`
IMPORTING
value = lv_matnr ).
here the variable lv_matnr will contain the entered value......
now you can use this value for further process.
Thanks,
Shailaja Ainala.
Maybe you are looking for
-
SAP BP Master data amendment to send Auto mail to customer to inform the changes
Hi, Need advise for my requirement to send an auto mail to customer whenever any amendment is made on customer data. As i read in SAP help there are some standard workflows which will help to perform this task. Names of Standard workflows. Need urgen
-
Troubleshooting speakers and microphone
Hi, My 06 2 GHz Intel Core Duo iMac's (running 10.6.8) speakers and internal microphone just stopped working afew hours ago. I have not loaded anything new or changed any settings. I checked the "Sound" settings under Hardware in System Preferences
-
How to run terminal with different locales than system default?
I use fi_FI,UTF-8 as default, and I want have one window in tmux that would use iso-8859-1. If I type command "export LANG="fi_FI.iso88591"" in term, it won't change or atleast doesn't work properly. But if I start new instance of xterm (or other ter
-
Not sure what I've done but clicking on my Mail icon doesn't open my email. Any ideas?
Looking for help. The mail icon is showing a light. When i click on it doesn't open email - does nothing. Not sure what I've done or what i need to do. Help please.
-
Hardware mínimo para escenario vpdn (LAC&LNS)
Buenos días, ¿Alguno de ustedes sabría decirme cuál es la plataforma mínima para realizar funciones de LAC y LNS? ¿Y la versión de IOS requerida? Necesitaría poder soportar un máximo de 25 túneles de usuario. Muchas gracias.