Create SQL run by batch -certain record
hi all , i have created one program , and i have execute more than 40000 record. the problem is, when i run this background job with 40000 record, i got DBIF_RSQL_INVALID_RSQL error. if i run 100 record it will display.
how i want to modified my pgram which is , its run 100 record by 100 record until 40000 record, then it is will i have the same problem? DBIF_RSQL_INVALID_RSQL?
yeah..u can handle your select -options with less number of records like this:
s_guidt[] = s_guid[].
REFRESH s_guid[].
LOOP AT s_guidt .
MOVE-CORRESPONDING s_guidt TO s_guid .
APPEND s_guid .
cnt = cnt + 1 .
IF cnt > 50 .
cnt = 0.
PERFORM get_header.
REFRESH s_guid[].
ENDIF.
ENDLOOP .
Similar Messages
-
Running scripts in SQL developer in batch mode (windows 7)
Hi
Can anybody share the steps to run a set of SQLs in SQL developer in batch mode in Windows 7
Regards
-Learnsequel
Edited by: 910874 on Jul 25, 2012 9:13 AM910874 wrote:
was thinking of something like this
1) Create a .txt file name 'mysqlfile.txt' in desktop which contains the below statements
Create table A
Create table B
2) Create a .bat file name 'run.bat' and kept in desktop which contains the below statements ( syntax may not be correct though)
sqlplus -s <DBusername>/<pwd>@//<Hostname>:<port>/<SID>@<C:\Users\<username>\Desktop/mysqlfile.txt>
3) Double click 'run.bat'
Any thought?
Regards
-Learnsequelit can be made to work;
but it is a run ONCE file since errors get throw on second & subsequent runs -
LSMW Batch Input Recording for Create BOM
Dear All,
I want to do LSMW for Creating BOM using Batch Input Recording,
I know that i have to make 2 time Recording, first for the BOM Header and second for the BOM item
For the BOM header i have done it, but for the BOM item i got some trouble with the item number (POSNR),
when i run the LSMW, for the first item (item 0010) was success, but for the item 0020, it can't work and i got error
message " NO BATCH INPUT FOR SAPLCSDI 0150"
How is the recording step by step for BOM Item so the Item number can increase well?
Very need your help,
Regards,
MarufatHello Santosh,
Thanks for the reply,
I already check in SM35 where i also thought that the main problem is about adding the new item number,
but when i tried to do repeat recording, i can not find any entry for adding the line item, so the line item after 0010 cannot be input
Is there any solution?
Regards,
Marufat -
Run sql query through batch file
how to create a batch file so that on running the batch file,
I should get into the database using username and password and create the table and insert values inside that tablekindly, if you are using windows you can create 2 files as following:
a.bat
b.sql
put the files under spacific folder for example d:\bat folder
-first file a.bat will contain the following:
sqlplus apps/apps@yourdb @d:\bat\B.sql
exit
-second file b.sql will contain any sql statments you want as following:
create table a (a1 number, a2 varchar2(100))
insert into a (a1,a2) values(1,'Test')
commit
exit;
hope this help you
Regards ...
Edited by: shedo76 on 28/04/2012 03:14 ص -
Batch master record not created automatically during Goods Receive
Hi,
When Goods Receipt is performed in central ERP, the batch master records will be auto created. However, if we turn on the decentralize warehouse management functionality, we observed that the batch master records are no longer be auto created during GR. Is this a known SAP bug? Is there any user exits available?
TracyHi Tracy.
Can you just confirm the process...
Inbound delivery created in ERP and replicated to Decentral - With Batch?
Decentral puts batch into warehouse and post GR back to ERP
ERP receipt posted but batch master not updated.
What values are not updated in ERP or is it the entire record?. Within the IDOC transfer settings of ERP you can enable/disable certain IDOC field which prevent update (HUM etc). This may be the issue
Let me know some more information
Regards
Steve -
HOW TO create a temp table or a record group at run time
i have a a tabular form and i dont want to allow the user entering duplicate
records while he is in insert mode and the inserted records are new and not exsisting in the database.
so i want to know how to create a temp table or a record group at run time to hold the inserted valuse and compare if they are exsiting in previous rows or no.
please help!As was stated above, there are better ways to do it. But if you still wish to create a temporary block to hold the inserted records, then you can do this:
Create a non-database block with items that have the same data types as the database table. When the user creates a new record, insert the record in the non-database block. Then, before the commit, compare the records in the non-database block with those in the database block, one at a time, item by item. If the record is not a duplicate, copy the record to the database block. Commit the records, and delete the records in the non-database block. -
I want to know how to create a new script that can be run in batch proces in Photoshop Element 11 ?
Have a look at the menu file/process multiple files. You can choose to add your signature (or the caption) to the image and export the new files.
If that solution is not flexible enough, consider using the very affordable (12$) Elements+ add-on which offers a 'meta stamp' script :
http://elementsplus.net/v5/en/meta-stamp.htm
Otherwise, have a look at other free and good solutions like Faststone Photoresizer, Xnview... -
Run sql statement from batch file
How can we execute SQL Statement using Batch file???
I did a test.
create batch file test.bat
sqlplus "username@db /pass" @\script.sql
script.sql file has following statement
select sysdate from dual;
exit
it is working but I want to call sql statement in the same batch file instead of calling .sql script file. how can I do that any idea..This is very easy in unix shell scripting, but AFAIK, not available with Windows. It's a function of how the shell/command processor handles input redirection.
-
Running oracle sql scripts by batch.
Hi. I need to run a batch of sql scripts. How do I do this using dos batch file.
Thanks.
Message was edited by:
Chaelin your createtable.sql you can spool the output
set serveroutput on
spool c:\yourspoolfile.txt
select statements....
spool off
exit
for more information you can checkt the sqlplus reference:
http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14357/toc.htm
regards -
FK01- Vendor created using LSMW (batch input recording)
Hi,
I have created an LSMW for Creating vendor. While doing the recording I gave the telephone number 2 TELF2 dield also. But when I upload the vendors, that field is coming blank. Is there any specific reason for that? Appreciate your help.
Thanks and Regards
Madhu VutukuriHI,
Check the fields you have created in 'Source Structure and file you are attaching columns' if it exactly matching then check in 'Maintain Field Mapping and Conversion Rules'.
Try once and assign points if useful.
Sarma BH -
How to find if certain record exists from stored procedure
Hello
I am not an expert in this and am trying simple thing. I want to find if certain record exists in a table and if so set some boolean variable.
create or replace procedure findit(param)
AS
return_group boolean;
BEGIN
myflag := false;
--here goes my question
-- say I have SELECT WHATEVER FROM TABLE WHERE BLA = param
--if it returns at least one record set myflag to true;
END;Any idea?THanks Satyaki_De,
However, when I put simple SELECT statement in the body of my procedure it does not compile. Actually I should have said that before. So here is my code and where it breaks:
create or replace procedure close_subjects(study_id varchar2)
AS
return_group boolean;
BEGIN
dbms_output.enable(1000000);
FOR current_group IN(
SELECT DISTINCT group_id from groups WHERE study_id=study_id
) LOOP
FOR current_subject IN(
SELECT individual_id from groups WHERE group_id=current_group.group_id AND study_id=study_id
) LOOP
return_group := true;
SELECT INDIVIDUAL_ID FROM ASSIGN WHERE DATE_TIME_ASSIGNED = ( SELECT MAX(DATE_TIME_ASSIGNED) FROM ASSIGN WHERE INDIVIDUAL_ID = current_subject.individual_id ) AND ASSIGN_STATUS_ID = 'A';
IF SQL%RowCount = 0 THEN
return_group := false;
dbms_output.put_line(current_subject.individual_id);
END IF;
END LOOP;
END LOOP;
END;
/If I comment out SELECT statement and leave dbms_output for testing purposes it works well. As I said I am faaaar from expert and seems to me that I cannot have SELECT in procedure BODY? -
Exel to SQL DFTask loads some Null records
I have an SSIS package to import Excel data into SQL. When I look at Excel I dont see ANY Null rows. However when I run the SSIS package and check SQL, It loads some NULL RECORDS IN SQL. WHy is that It loads Null records in SQL, When i cannot see the Null
recs In Excel?That's because the person who created the Excel file and added the data to it pressed the "Enter" key on some of the empty cells under that specific column. In excel, such a row might look like any other empty, non-data row but for SSIS, its an
actual data row except that it doesn't have any value. SSIS treats a missing data value as a DBNULL and that's what you saw.
There are multiple ways of fixing this.
1. Educate the creator of the excel to be more careful at the time of data entry.
2. Make that target column in the DB table as NOT NULL.
3. Handle such "empty" data values as exception inside your SSIS (using a data flow task and ignoring such rows).
4. Switch to using CSV file format instead of excel format.
5. All of the above :)
Hope this helps.
Cheers!
Muqadder. -
Hi,
Can someone please guide me with what is the use of creation of batch master records using tcode MSC1????
When we can create batches during PO creation or GR.
What is the difference?
Thanks & Regards,
SmithaHI,
Normally certain materials like chemicals need to be produced or procured in batches.For those materials you have to activate the batch management in the material master. check the purchasing or mrp view.there will be a check box.
for thosse materials system will create batches automatically while receiving or producing.
if the material is having the shelf life you need to give in the material master.
MSC1N facilitates to create the batch manually.you can create a batch at this transaction code and enter this batch at MIGO screen while receiving.
For more details check this link.
http://help.sap.com/erp2005_ehp_04/helpdata/EN/25/283be44f7811d18a150000e816ae6e/frameset.htm
Regards, -
Lsmw (batch input recording)
explain step by step procedure for uplodig master data through lsmw (batch input recording) method. please explain settings for auto field mapping in 5th step
Hi Neela,
These are the steps to be followed while doing a Batch Input Recording.
LSMW STEPS (Batch Input Recording)
1. Maintain Attributes:
Here you have to choose the second option and you can do the recording how this should work. Then assign the same to the Batch Input Recording name.
2. Maintain Source structure:
Create a structure name
3. Maintain Source field:
Create a structure like the Input File
eg:
Name - LIFNR
Description - Account number or Vendor Number
4. Maintain structure relations:
This will link the structure to the input file.
5. Maintain field mapping and conversion rules:
You can choose the Auto Filed Mapping under Extras Menu. Yopu can also do coding, depending upon the code you have written or assignment you have done the values will get picked up from the file and get processed.
6. Maintain field mapping and conversion rules:
If you have any fixed values you can define here.
7. Specify files:
Specify the input file path and type.
8. Assign files:
This will assign ur file to the Input file
9. Read Data:
This will read ur data from teh file.
10. Dispaly Read Data:
You can see the uploaded data
11. Convert Data
This will convert the data to the corresponding format for processing
12. Display Converted data:
13. Create batch input session
Here this will create a batch input session for processing
14. Run Batch Input session:
By clicking on the session and process (Back ground or Display Errors)
Refer the Below Links
http://www.sapbrain.com/TOOLS/LSMW/SAP_LSMW_steps_introduction.html
/people/hema.rao/blog/2006/09/14/lsmw--step-by-step
http://help.sap.com/bp_blv1500/BL_US/documentation/LSMW_EN_US.doc
http://esnips.com/doc/8e732760-5548-44cc-a0bb-5982c9424f17/lsmw_sp.ppt
http://esnips.com/doc/f55fef40-fb82-4e89-9000-88316699c323/Data-Transfer-Using-LSMW.zip
http://esnips.com/doc/1cd73c19-4263-42a4-9d6f-ac5487b0ebcb/LSMW-with-Idocs.ppt
http://esnips.com/doc/ef04c89f-f3a2-473c-beee-6db5bb3dbb0e/LSMW-with-BAPI.ppt
http://esnips.com/doc/7582d072-6663-4388-803b-4b2b94d7f85e/LSMW.pdf
http://help.sap.com/saphelp_erp2005/helpdata/en/e1/c6d30210e6cf4eac7b054a73f8fb1d/frameset.htm
Reward Points if Useful
Regards
Gokul -
I've got a batch of scripts to run.
I've run batches of scripts many times but I'm looking for a smarter way of doing it.
I would like to be able to create a sql script that will run a batch of other scripts - but pass in the connection string.
At the moment I use a script like this:
set echo on
spool cr_run_all
conn cat1/cat1
--tables
@./cr_table_x_cat1.sql
@./cr_table_y_cat2.sql
@./cr_table_x_cat1.sql
@./cr_table_y_cat2.sql
--indexes
@./cr_index_x_p_cat1.sql
@./cr_index_y_p_cat2.sql
--function
@./cr_fn_x_cat1.sql
@./cr_fn_x_cat2.sql
--procedures
@./cr_pr_x_cat1.sql
@./cr_pr_y_cat1.sql
@./cr_pr_z_cat1.sql
--packages
@./cr_pk_x_cat1.sql
@./cr_pk_x_cat2.sql
@./cr_pk_y_cat1.sql
@./cr_pk_y_cat2.sql
spool off
exit
Each script in turn has it's own connect string as the scripts are connecting as different users - cat1 & cat2 - I would like to make each script connect to a particular instance.
Is it possible to create a sql script to run the other scripts that could pass the connect string for the instance to the scripts?
This would save me having to put the connect string into each and every script.Hi
You can call connect between scripts:
@./cr_table_y_cat2.sql
--indexes
conn cat2/cat2
@./cr_index_x_p_cat1.sql
Or
conn cat1/cat1
@./all_script.sql
conn cat2/cat2
@./all_script.sql
Ott Karesz
http://www.trendo-kft.hu
Maybe you are looking for
-
Hi all .. I need ur help .. on PROBLEM Problem is ... 1. Customer purchase(A/R invoice) an item with the cost 2080..rs with qty. 1 2.we received the partial payment against this invoice for Rs 2000.(balance due 80 Rs) 3. Then i release that ... the p
-
hi, i recently upgraded my databse from 9i to 10g adnafter that i am getting this error select dbms_lob.getlength(BFILENAME('/appltest/apps/prodcomn/admin/out/TEST_test', 'o2647920.out')) fro dual; ERROR at line 1: ORA-00972: identifier is too long O
-
ADFS3.0 - WIA returning 404 externally
Hi, Interesting scenario: ADFS farm behind a load balancing cluster for internal and external connections. Works as expected internally. Windows auth used for all standard browsers, internally and externally. No ADFS proxies Domain joined laptop "wor
-
Can I run iMovie 09 and 11 on the same Mac?
I recently upgraded to a Mac Mini with iMovie 11 - from a MBP with iMovie 09, but it seems I can't edit any of the projects from 09 in 11. Is this correct? I can't even open them. The MBP can't cope with the movies I'm working on - which was one reas
-
How to download an image from java server
Hi, I have created a program which allows me to upload images to Java Server thru Multipart. How can i receive an image from server and download it to iPhone app.Is there any way apart from NSURL i can download the image. Base64 Encoding & Decodin