Sales documents missing from data base
Hi
Their is this unique problem, we have created sales order 'OR' and saved it, system has generate some document no xxxx
as soon as we go for billing, system message is
SD document xxxxxx is not in the database or has been archived
Message no. V1302
Diagnosis
This message is issued if no document header (VBAK) can be found
(discrepancies in R/3) for a sales requirement single record.
System Response
In the initial sales order supply, the following error message appears
'Document xxxxxx not available' V1 302.
Procedure
If an error occurs in initial data supply in APO, discrepancies have
occurred between the requirements and sales documents in R/3. This
discrepance can be corrected in R/3 using report SDRQCR21.
we have checked after running the report as well, we have chaged the material ans sold and ship to part as well, noting is happening, advice what can be done
regards
Niti Narayan
hi,
this is to inform you that,
please check MRP config settigns for the same.
please check if there is any discrepencies in MRP views of MMR.
please check from sales order requriment is getting generated in MD04.
and finally
run the report to check and correct the discrepencies in SE38,SDRQCR21.
regards,
balajia.
Similar Messages
-
When to refresh Servlet data from Data Base
Hello all,
I have a servlet that retrive few hundreds thousands records from data base table.
The data in data base table being updated once or twice in every week.
Since same servlet instance serve all users, that access the servlet many times a day.
I would like to avoid retriving the data from data base on each servlet access.
and make the users use same data already retrieved and kept in servlet members.
First, what is the best way to avoid data retrive from data base on each servlet access?
and how could I have some kind of trigger that will refresh servlet data from data base every few days?
Thanks in advance for every idea.
AmiJava_A wrote:
Thanks Saish for your reply.
I'm not using DAO in my application but retrive the data from BI data base using a web service. response time querying the BI data base is not quick enuogh.
Since, I wouldn't want to query the BI server on each servlet access.
Because the data I retrived at the begining using the web service contains all required data for all servlet requests, I thought to store the data (~200K rows) once in the servlet which will be using for all requests.
Why not store the results locally in your own database after you fetch them?
This still leave me with the questions: in which event should I query the BI data, and also when or in which event should I update the data again from BI server?
Query at startup, an user demand, when data becomes stale. It depends on your requirements.
>
Thanks
Ami- Saish -
Is it possible to combine an address list with a Pages 5.1 document and a data base in Numbers 3.1, the equivelent of Microsoft "Mail Merge"?
It is possible in Pages 09 and Numbers 09 but not in the versions you name.
-
Util class to extract Data from Data base Table.
Is there any Util class to extract all records from Data base table into DAT file.For example(get all amployees from EMPLOYEE table in to employee.DAT )
What is a DAT file?
Anyway, this can be achieved using a shot of JDBC [1] and some business logic [2] to populate/group/concat the data together in a DAT format and writing [3] it to that DAT file.
[1] JDBC tutorial: http://www.google.com/search?q=jdbc+tutorial+site:sun.com
[2] Use your brains and things you ever learnt in maths and basic Java tutorials/books.
[3] I/O tutorial: http://www.google.com/search?q=io+tutorial+site:sun.com -
Get Sales Document number from Project Defintion,WBS,N/w,N/w Activity
dear all,
I am working in PS module ,
I need to get the sales document no from Project definition ,WBS element ,N/w and N/w activity .
plz let me know any FM or the table relatio to get the Sales document Number .
Note :
In AFKO table i have a field called RMANR(sales Docu) this field is always empty . Kindly
give any other solution .
Regards,
Vinoth.vHi Vinoth ,
Please refer the below link for Some of the SAP-PS Master and transaction tables.
[http://www.sapfans.com/sapfans/forum/logps/messages/1347.html]
Project and Sales Doc Number Relation
AFKO and PROJ linked with field PRONR.
WBS and Sales Doc Number relation
VBAK PS_PSP_PNR PRPS
VBAP PS_PSP_PNR PRPS
You can use the Program RSPRTBEZ to get those relation between the tables. Above mentioned table details have been taken through the same. -
Sales Document: Delivery: POD Data
Hi gurus,
I have to extract data from Sales Document: Delivery: which is on POD(Proof of delivery).Datain R/3 is stored in TVPOD table, i searched for the extractor for this but i could not find. Can anyone please tell what is the data source for TVPOD table.
Thanks in advance.
AnanthHi Ananth,
Refer this link on IS-OIL.
http://help.sap.com/saphelp_nw04/helpdata/en/91/ede53782e8da23e10000009b38f889/frameset.htm
Bye
Dinesh
(Do not forget to assign points!!) -
Sales document created from CRM 4.0 needs to be updated from ECC 6.0
Hello experts,
When I create one sales document from CRM 4.0 this document is moved to ECC 6.0. But updating sales document from ECC 6.0 I receive message
"Process the original document in the CRM system"
and updates are not moved to CRM.
How could I avoid this ?
Usually I need update some fields from ECC 6.0 and move the information to CRM.
Regards
JuanHi Juan,
Please check the Note 541113 - Data exchange scenarios for orders (CRM-R/3) in which as per your requirement its the scenario Z i.e you want some data to flow from ECC to CRM for which below are the settings that needs to be done to make it effective.
Activation of the scenario in table CRMPAROLTP of the R/3 plug-in:
PARNAME: CRM_SCENARIO
PARNAME2: UPLOAD_ORDER
PARVAL1: Z
Go to SM30 and give the table name and put in the above values.
And if you want to make amutual change situation then proceed as follows:
Settings in the CRM Server: Table SMOFPARSFA
Key: R3A_SALES
Parameter Name 1: INT_CHANGE_ORDER
Parameter Name 2: <sales document type> , for example TA
Parameter Value 1: Z
Settings in the R/3 system: table CRMPAROLTP
Parameter Name: CRM_SCENARIO
Parameter Name 2: INT_CHANGE_ORDER
Parameter Name 3: <sales document type> , for example TA
Parameter Value: Z
Hope it helps.
Regards
Sidd -
Sales Document Number from billing document
Dear all,
How can i get the corresponding sales document number form a billing document number?
I currently have data from VBRK and VBAK tables.
so is it possible to get the corresponding sales order number for that billing doc no?
Plz let me know.
Regards
Rahul.Dear Rahul
If you want to see for a particular billing document the corresponding sale order reference, go to VF03, input the billing document and click on Document Flow
If you want to see sale order references for multiple billing documents, go to SE16, input table VBFA, paste the billing document references in [Follow on doc] and C in [Prec doc categ] and execute.
thanks
G. Lakshmipathi -
Performance problem in select data from data base
hello all,
could you please suggest me which select statement is good for fetch data form data base if data base contain more than 10 lac records.
i am using SELECT PACKAGE SIZE n statement, but it's taking lot of time .
with best regards
srinivas rathodHi Srinivas,
if you have huge data and selecting ,you could decrease little bit time if you use better techniques.
I do not think SELECT PACKAGE SIZE will give good performance
see the below examples :
ABAP Code Samples for Simple Performance Tuning Techniques
1. Query including select and sorting functionality
tables: mara, mast.
data: begin of itab_new occurs 0,
matnr like mara-matnr,
ernam like mara-ernam,
mtart like mara-mtart,
matkl like mara-matkl,
werks like mast-werks,
aenam like mast-aenam,
stlal like mast-stlal,
end of itab_new.
select fmatnr fernam fmtart fmatkl gwerks gaenam g~stlal
into table itab_new from mara as f inner join mast as g on
fmatnr = gmatnr where gstlal = '01' order by fernam.
Code B
tables: mara, mast.
data: begin of itab_new occurs 0,
matnr like mara-matnr,
ernam like mara-ernam,
mtart like mara-mtart,
matkl like mara-matkl,
werks like mast-werks,
aenam like mast-aenam,
stlal like mast-stlal,
end of itab_new.
select fmatnr fernam fmtart fmatkl gwerks gaenam g~stlal
into table itab_new from mara as f inner join mast as g on f~matnr =
gmatnr where gstlal = '01'.
sort itab_new by ernam.
Both the above codes essentially do the same function, but the execution time for code B is considerably lesser than that of Code A. Reason: The Order by clause associated with a select statement increases the execution time of the statement, so it is profitable to sort the internal table once after selecting the data.
2. Performance Improvement Due to Identical Statements Execution Plan
Consider the below queries and their levels of efficiencies is saving the execution
tables: mara, mast.
data: begin of itab_new occurs 0,
matnr like mara-matnr,
ernam like mara-ernam,
mtart like mara-mtart,
matkl like mara-matkl,
werks like mast-werks,
aenam like mast-aenam,
stlal like mast-stlal,
end of itab_new.
select fmatnr fernam fmtart fmatkl gwerks gaenam g~stlal
into table itab_new from mara as f inner join mast as g on f~matnr =
gmatnr where gstlal = '01' .
sort itab_new.
select fmatnr fernam
fmtart fmatkl gwerks gaenam g~stlal
into table itab_new from mara as
f inner join mast as g on f~matnr =
gmatnr where gstlal
= '01' .
Code D (Identical Select Statements)
tables: mara, mast.
data: begin of itab_new occurs 0,
matnr like mara-matnr,
ernam like mara-ernam,
mtart like mara-mtart,
matkl like mara-matkl,
werks like mast-werks,
aenam like mast-aenam,
stlal like mast-stlal,
end of itab_new.
select fmatnr fernam fmtart fmatkl gwerks gaenam g~stlal
into table itab_new from mara as f inner join mast as g on f~matnr =
gmatnr where gstlal = '01' .
sort itab_new.
select fmatnr fernam fmtart fmatkl gwerks gaenam g~stlal
into table itab_new from mara as f inner join mast as g on f~matnr =
gmatnr where gstlal = '01' .
Both the above codes essentially do the same function, but the execution time for code B is considerably lesser than that of Code A. Reason: Each SQL statement during the process of execution is converted into a series of database operation phases. In the second phase of conversion (Prepare phase) an execution plan is determined for the current SQL statement and it is stored, if in the program any identical select statement is used, then the same execution plan is reused to save time. So retain the structure of the select statement as the same when it is used more than once in the program.
3. Reducing Parse Time Using Aliasing
A statement which does not have a cached execution plan should be parsed before execution; this parsing phase is a highly time and resource consuming, so parsing time for any sql query must include an alias name in it for the following reason.
1. Providing the alias name will enable the query engine to resolve the tables to which the specified fields belong to.
2. Providing a short alias name, (a single character alias name) is more efficient that providing a big alias name.
Code E
select jmatnr jernam jmtart jmatkl
gwerks gaenam g~stlal into table itab_new from mara as
j inner join mast as g on jmatnr = gmatnr where
g~stlal = '01' .
In the above code the alias name used is j .
4. Performance Tuning Using Order by Clause
If in a SQL query you are going to read a particular database record based on some key values mentioned in the select statement, then the read query can be very well optimized by ordering the fields in the same order in which we are going to read them in the read query.
Code F
tables: mara, mast.
data: begin of itab_new occurs 0,
matnr like mara-matnr,
ernam like mara-ernam,
mtart like mara-mtart,
matkl like mara-matkl,
end of itab_new.
select MATNR ERNAM MTART MATKL from mara into table itab_new where
MTART = 'HAWA' ORDER BY MATNR ERNAM MTART MATKL.
read table itab_new with key MATNR = 'PAINT1' ERNAM = 'RAMANUM'
MTART = 'HAWA' MATKL = 'OFFICE'.
Code G
tables: mara, mast.
data: begin of itab_new occurs 0,
matnr like mara-matnr,
ernam like mara-ernam,
mtart like mara-mtart,
matkl like mara-matkl,
end of itab_new.
select MATNR ERNAM MTART MATKL from mara into table itab_new where
MTART = 'HAWA' ORDER BY ERNAM MATKL MATNR MTART.
read table itab_new with key MATNR = 'PAINT1' ERNAM = 'RAMANUM'
MTART = 'HAWA' MATKL = 'OFFICE'.
In the above code F, the read statement following the select statement is having the order of the keys as MATNR, ERNAM, MTART, MATKL. So it is less time intensive if the internal table is ordered in the same order as that of the keys in the read statement.
5. Performance Tuning Using Binary Search
A very simple but useful method of fine tuning performance of a read statement is using Binary search addition to it. If the internal table consists of more than 20 entries then the traditional linear search method proves to be more time intensive.
Code H
select * from mara into corresponding fields of table intab.
sort intab.
read table intab with key matnr = '11530' binary search.
Code I
select * from mara into corresponding fields of table intab.
sort intab.
read table intab with key matnr = '11530'.
Thanks
Seshu -
Create the file from data base
iam trying to upload material master data using direct input method in lsmw. i want one input text file which contains the information about material master data.
can any one pls help me how to create this material master txt file from the data base.
thanks,
pandu.I have used so many times below data for testing purpose :
Keep the file data as comma delimter and use only basic data view.
material industrial sector material type material desc Unit of meas Matl group
A004 M COUP test A004 KG 01
a005 M COUP test a005 KG 01
remove the header and basic data view - keep constant while mapping.
Thanks
Seshu -
Call function from data base with clob input parameter.
Hello,
In this project I use Jdev 11g.
I call function from database.
create or replace function get_fa_list (
p_fa_id_list in clob
return sys_refcursor
is
vCursor sys_refcursor;
begin
put_msg ('begin');
if p_fa_id_list is null then
put_msg ('CLOB is null!');
else
put_msg ('size CLOB: ' || dbms_lob.getlength (p_fa_id_list));
end if;
put_msg ('Save');
open vCursor for
select rownum as id, s.*
from (
select f.latitude, f.longitude, count (distinct f.res_id) as res_count, count (*) as fa_count, 16711680 as color, res_concat_distinct (f.res_id) as station_list
from mv_frequency_assignment f, table (SplitClob (p_fa_id_list, ',')) l
where f.ext_system = 'BI' and
f.ext_sys_id = l.column_value
group by f.latitude, f.longitude
) s;
put_msg ('Open and End');
return vCursor;
end get_fa_list;
I use TopLink in ejb.
i use follow code for call function and get result.
public List<TmpResPoints> findAllPointsBI(String p_id){
UnitOfWork uow = getSessionFactory().acquireUnitOfWork();
uow.beginEarlyTransaction();
StoredFunctionCall call = new StoredFunctionCall();
call.setProcedureName("get_fa_list");
call.useUnnamedCursorOutputAsResultSet();
ClobDomain c = new ClobDomain(p_id);
//System.out.println(c.toString());
call.addNamedArgumentValue("p_fa_id_list", c);
ReadAllQuery query = new ReadAllQuery();
query.setReferenceClass(TmpResPoints.class);
query.setCall(call);
List<TmpResPoints> result = (List<TmpResPoints>)uow.executeQuery(query);
uow.commit();
uow.release();
return result;
But size parameter "p_fa_id_list" is 0. (geting from temp table in Data base). this code in function >>
if p_fa_id_list is null then
put_msg ('CLOB is null!');
else
put_msg ('size CLOB: ' || dbms_lob.getlength (p_fa_id_list));
end if;)
How I can call this function from dataBase and get result?
thx,
Demka.What is the SQL generated?
The argument should just be the Clob value (a String) not the domain object.
Also try addNamedArgument, and then pass the named argument to the query.
James : http://www.eclipselink.org -
How to retrive images from data base
I am facing problem to retriving image data from
DATABASE
and how can i so that retrived image into web page
plz help meLook at the URL below:
How to store/retrieve image to/from SQLServer
http://www.java-tips.org/content/view/203/29/
Example below fetch pdf doc from database and show in browser, in order to show image the only difference would be setting the content type to
response.setContentType("image/jpeg");
How to view XLS documents loaded from database in the web browser
http://www.java-tips.org/content/view/844/29/ -
Dear Experts
How we can delete the Planned order & also Production order from the DATA base sothat they will not display again.
i have already setup the deletion Flag on all production order And also planned order were also deleted from the Delete button.
so i need to delete it from the Data Base sothat it will not appear in the data.
Rgds
Pankaj AgarwalDear,
What is error you are getting?
See also SAP notes 540834
CO78 is a one stop transaction for production order setting deletion flag, deletion indicator, archiving and finally deleting. Please follow these step,
Generally we schedule the following programs in background in the sequence below,
1. PPARCHP1 for Setting Deletion Flag
2. PPARCHP1 for Setting Deletion Indicator (Once set cannot be revoked- so care should be taken in selection of orders)
3. PPARCHA1 for archiving the production order with Deletion Indicator active. Basis should set the database/storage space for archiving/storing the records.
4. PPARCHD1 for Deleting the records from SAP database.
Regards,
R.Brahmankar -
Disable sales document type from COPA? Is it possible?
Hello gurus
We have a situation where we dont wish system to create Profitability Analysis segments for items belonging to the quotes that we are creating?
Is is possible to disable PA assignments by a sales document type and or item categories?
Many thanks
JaiThe best person to guide for this would be your FICO consultant.
Anyhow, check following thread for some understanding:
How to deactivate COPA
Note: Check all possible result before deactivating it on your system.
Check Following link for understanding
[Business Area Vs. Profit Center Vs. Profitability Segment|http://sapdocs.info/sap/fico/business-area-vs-profit-center-vs-profitability-segment/]
[Profit Center Default In Sales Order|http://www.sap-img.com/sap-sd/profit-center-default-in-sales-order.htm]
Thanks & Regards
JP -
Attach document from Data Base Table Document in email attachment Option
HI Friends,
i have create an email option in my application .i have a table CRM_DOC_FILE.this table have collection of all document file.
i want to send an email with attchment but i want to attch file from my table Named CRM_DOC_FILE ,so i have created an report region with list of all documents .i want jus a button in last column in this report when i click on this button then corresponding document should be attch ,i want to attch more then one document .
How can i attch a button in last column in report where i would be click on this button to attch documents.
How can i attch documents click on Attch button.
how can i do this.
i have ctreated a Dummy Application
Workspace: SKILLS IMPROVE
User: [email protected]
Password :desomu
Application: 42370
page No 4 For Sending email .
Thanks
Edited by: 805629 on Nov 28, 2010 11:36 PMPLEASE DO NOT POST THE SAME QUESTION MULTIPLE TIMES.... Please see the OTHER version of this question for a possible solution. Please close one of these questions, so others do NOT waste their time answering multiple versions of your questions..
Thank you,
Tony Miller
Webster, TX
Maybe you are looking for
-
Smart quotes replacement STILL doesn't work
Smart Quotes replacement in Pages STILL isn't fixed (after today's update). I sent Apple Feedback twice (about two months ago), I called them, I filed tickets-what does it take to fix a menu that DOESN'T WORK? Seriously, try this- Create a document w
-
Upgraded to Snow Leopard and now I can't back up
Recently I upgraded to Snow Leopard after my hard drive crashed in my MacPro. I had the hard drive replaced and then imported the old information to the new one via Time Machine. All went well. I have been backing up on a Lacie 160 GB external hard d
-
Problem in Summing the value in one internal table. Its very urgent.
Hi Experts, I have 10 fields in one internal table and based on the 8th field changing, I have to sum the 3rd field. I am unable to use AT END OF <FIELD8>, because any of the fields from 1 to 7 are changing, then this control break statement triggeri
-
My bb 9860 is showing the app error 200
hi, my phone is not working properly its occuring the error and doing self restarting, and in restarting i have to wait for 1 or 2 hour what should i do. my phone has allready 1 replacement before but still same problem..
-
How do I shut down Microsoft Database Daemon SyncServicesAgent - Installer wants it shut down in order to proceed with the installation of Microsoft MAC Office 2011.