Retrieve data with restrict document number
hi,
i want to retrieve the data from table into internal table, where the document number start with 19********.
so how an i going to code it so that anything start from 19***** will be taken only, and others are not?
thanks
Use
SELECT * FROM dbtab WHERE docnum LIKE '19%'
Similar Messages
-
Custom master data for Sales Document Number
Is it possible to create master data for "sales document number" as a custom field and/or table in R/3? We have a need to record the "end user" customer of an order but this data may be updated a long time after the order and sale is complete. IT seems that loading to BW/BI may be simpler if this is treated as document attributes rather than transactional data since no delta will be trigger by changes to this field. Does anyone have experience with this approach?
Hi,
it is possible to create attributes for this InfoObject. Add the Attributes you need in BW. You can use the attributes even if the sales doc is line item dimension of your cube.
On Sourcesystem side you have to create a generic extractor in SBIW. I think a table view on VBAK or VBAP may fullfill your needs. Of course the tables are not the smallest ones but maybe u can use the timestamp to implement a generic delta. Check whether the timestamp is set when the 'end user' is set. Not every change in the sales document leads to an entry in the delta queue of logistic, but the timestamp should be set.
After that replicate the datasource to BI and connect it to the attributes of 0SALES_DOC
I had a similar enhancement at one customer reading the actual transport routes to the sales documents and it worked fine.
Hope that helps
Christoph Vortkamp -
Unbale to create new document part with same document number
Number range assigned to the X Document Type is internal. I have created new document (0001) with Document Part 000 & Version 00. For same Document Number when i tried to create New Document part by mentioning Document Numner 0001, Document Part 001 and Version 00, it says Document Type X can be assigned to internal number range only.
Even I tried with following selection....
Document Number = Blank
Document Part = 001
Document Version = 00
Template:
Document = 0001
Document Part = 000
Document Version = 00
Now system is creating document with new number i.e. 0002. But we want to create another document part with same Document Number. What is the problem with internal number range for Document Number?Hi Pradeep,
Following are the config parameter of the document type.
CM Relevnce = blank
Number assignmt= 01
Internal Number Range =02
External Number Range= blank
Number Exit =MCDOKZNR
Vers. No. Incr. =0
Version Sequence = blank
AlternativeScreen = blank
Let me know if you need anything more.
Edited by: JJSingh76 on Dec 7, 2010 7:25 PM -
Accouting Document Number along with Invoice Document Number
Hi All,
I want to see the Accouting Document Number along with Invoice Document Number
while Posting the invoice in MIRO.
Regards
ArjunCheck
miro (invoiced document number & account documber number) -
GL account text with account document number
Hi Experts,
In my requirement i need to create report with following fields
Company code,Account Document number,Doctype,Fiscal year,Entry date,posting date,currency,posted by,Document header text.-BKPF
GL account,Amount-BSEG/BSIS??(which table is preferable)
GL account Text-SKAT??
I am trying to create Adhoc report with data base SDF and Added table SKAT
but i am getting error in below code
select single * from skat
where spras = sy-langu
and ktopl = ?
and saknr = bseg-saknr
In the above code what i should mention to ktopl field
Please guide me table to fetch GL account text,or tell me Logical data base from where i can get even GL account text with out adding table SAKT to logical data base SDF.
Which table is preferable to add document item amount with GL account-BSIS/BSEG(cluster table)
Thanks&Regards,
narasimha.Hi ,
I didnot found GL Account Text in both BRF and BRM.
Even in BSEG we can find only GL account number not its text. .
I know That KTOPL is chart of accounts which we can see in SKAT but my question is there any field to match KTOPL of SKAT to any Account Document tables field so we can retreive records as expected.
Regards,
narasimha -
EBS - MT940 - Auto Clearing with payment document number
Hi
I am getting the MT940 bank statement with the payment document number alongwith company code and year at line 86. For example:
900012345678902014?21
9000 - company code
1234567890 - Payment document number
2014 - Year
?21 - Not sure
I created a new search string as below:
( |^)#####################( |$)
At tag, I left only the 10 digits for the document number and removed the other values ie for company code, year etc
Assigned this search string for the bank account with interpretation algorithm 020 (document number search)and target field is Note to payee.
But, the system is not able to clear by looking at the payment document. Instead, it is trying to clear with the amount.
Could you please suggest me on this.
Thanks and Regards
AshokHi Ashok,
Did you try with entring this BELNR number(1234567890) in FF_5 screen?
Regards,
Mohammed -
How to get the document structure with the document number"?"
Hello experts,
I have now a big trouble. There is a document with the number '?' in our syste. And for this document a document structure was builded. Now I can't acess the document structure, because the system doesn't accept '?' as a document number...
Can you help me?
Thanks a lot!
best regards,
YingHi Sarita,
thank you very much! My problem is now solved, and the documents in the structure are free again _
best regards,
Ying -
System showing Wrong Billing Date of Billing Document number
Hi,
We have created a Billing Document Number 2010352872 on today dtd. 18/11/2010 but system is showing its Billing Date 17/11/2010. Why??
Please help...Hi,
Billing date is different from the Creation date.
Document creation date is the date on which the Billing was created and it would be 18th in your case and
Billing date is the Date proposed from the Actual GI date from the Delivery Document and it was 17th In your case
Billing date can be taken into consideration while creating the Billing documents collectively
Billing date is the date on which the Accounting document should post
regards,
santosh -
How to retrieve data from restricted views
Hi,
i want to query data from PO_LINES_V , but no data retrieved, i m using R12 please provide the solutiion
Thanks
NQAs you mention in your title it's some sort of a restricted view. That's for a reason I guess.
Since I don't know the definition of your PO_LINES_V, there is no way to tell why you are not allowed to retrieve data from the view. Check the WHERE clause of this view. -
Hello!
Does anyone know of a BTE where the accounting document number of a posted document is available?
I need the BTE to be triggered immediately after the document is posted.
Appreciate you help.
Salai.HI,
Sivaprakesh,
I am new to BTE i have worked out on one scenario i was successfully completed but, after reading your question may intention is to do more scenarios on BTE but unfortunately i couldn't find any scenario on BTE i very much thank ful to u if u can send Your requirement /scenario documentation.
Thank u,
Shabeer ahmed. -
my given query return only date but i need date with time. my datatype is date format so i cant use the to_char function in my procedure bcz returning should be date format....
select to_date(sysdate, 'dd-mon-yyyy hh24:mi:ss') from dual;SANCHIT GUPTA wrote:
my given query return only date but i need date with time. my datatype is date format so i cant use the to_char function in my procedure bcz returning should be date format....
select to_date(sysdate, 'dd-mon-yyyy hh24:mi:ss') from dual;It is absolutely pointless (and often dangerous) to feed a DATE datatype to to_date. to_date is expecting character string, so feeding it a date just causes a double implicit conversion.
DATE type always include time, whether it is displayed or not.
Where are you using the value after it is returned? I think you are confusing data value with data presentation.
See http://edstevensdba.wordpress.com/2011/04/07/nls_date_format/ -
Hi All,
I want to retrieve total number of records returned by a SQL query with the actual data. Is there a way or SQL keyword to get both in one execution. Here I cant use group by coz' some of the columns in the query contain uniquie records..
Following is a dummy query to make my problem more understandable -
SELECT myrownum, nm_cntnt_id, vc_ttl, vc_othr_clmns FROM (SELECT ROWNUM myrownum, nm_cntnt_id, vc_ttl, vc_othr_clmns
FROM CNTNT_TABLE
ORDER BY vc_ttl ASC )
WHERE myrownum <= 20 AND myrownum >= 11Above query first retrieve all the records from the database and then the upper most query filters it to retrieve 10 rows. I wanna to get the actual number of rows retrieved by the inner query with the result.
I am using Oracle9i and Java EJB's for the application. Can anybody help me out for this.
Thanx.This the version of what I use :
mds Version 5.5.34.46
Built on 2006-Nov-18
Client Interface Version 1.0.00.00
Interface CRC=0xd8012b4a
Console Interface Version 1.0.00.00
Interface CRC=0x7553e3d9
Web Interface Version 5.5.34.06
-Interface CRC=0x9e584ed6
The core dump is a memory core dump.
regards -
Retrieve Classification with Vendor's number
Hi,
I created classes and classifications with the CT04 transaction and I assigned vendors to these classifications.
I would like to retrieve these classifications with a specific program, just when I specify the vendor's number (LIFNR).
Do you known a MF or BAPI to do this?
Thanks.
Mickael.Hi!
First I used some FM-s, but they were so slow and unsure, I stopped using them.
I suggest you to use the AUSP, CABN and CABNT tables instead.
Regards
Tamá -
Force storing of address data with sales documents?
Can anyone tell me if there is a configuration option available to force ECC to copy and store address information with each sales document?
Current Situation:
ECC sales document partner address information is linked in VBPA. Default behavior is to create references to master data addresses (VBPA-ADRDA type 'A' or 'D'). If an address is later changed in master data and I reprint an old invoice it will have the new updated address rather than the address at time the invoice was generated. This leads to all sorts of problems printing historical documents.
Desired Outcome:
I would like ECC to always store copies of addresses for certain document types. There should be no VBPA pointers to master data addresses. This would remove the current problem of document reprints using newer data.
SAP clearly supports this functionality since during order entry if an address is changed, SAP creates a new ADRC record and links it with VBPA-ADRDA type 'E'. This same behavior happens with one-time addresses. I would like this behavior to occur in all sales document creates.
Can anyone tell me if there is basic configuration available to make this happen or do I need to have some ABAPers do development in the user exit prior to sales document save? This is for an ECC 5.0 system though we would also be interested in doing it for a 4.6C system.
thx
GregThanks for the reply. The requirement is only that the historical document content is accurate. Changed fonts and layouts on the printed document is not an issue. I'm researching this as an alternative to archiving terabytes worth of spool outputs like you note.
I'm thinking at worst it should be possible to adjust the VOFM data transfer routines when creating Delivery and/or Billing documents to cause them to create new ADRC records if VBPA-ADRDA points to master data. This would still allow the Order document to point to master data though.
If I were to make Quote documents mandatory and generate Order documents from them then I should be able to lock down the Order document with a similar VOFM data transfer adjustment.
Although the prefferable solution would be to get the address dereferenced from master data in the original Order document. -
Retrieving datas with ArrayList
Below, im trying to get 6 columned records from the access database.
//PNL 1:
PNL1=new JPanel();
PNL1.setLayout(new BorderLayout(15,15));
java.awt.List veri;
ArrayList veri2;
lblABaslik=new JLabel("Arama Sonuclari :");
String[] sutunAdlari={"Tarih","Arac","Kategori","Aciklama","Detay","Miktar"};
int sayac=-1;
java.util.Date tarih;int arac;int kategori;int aciklama;String detay;int tutar;
try {
String url="jdbc:odbc:Driver={MicroSoft Access Driver (*.mdb)};DBQ=..\\bekir.mdb";
String query="select * from harcamalar where tarih between # 2003-11-14 # and #2003-12-14 #";
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con=DriverManager.getConnection(url,"serdar","serdar");
Statement stmt=con.createStatement();
ResultSet rs = stmt.executeQuery(query);
veri=new java.awt.List(6);
veri2=new ArrayList();
String ekle;
while(rs.next()) {
ekle=new String(rs.getString("tarih"));
veri.add(ekle);
ekle=new String(rs.getString("arac_id"));
veri.add(ekle);
ekle=new String(rs.getString("kategori_id"));
veri.add(ekle);
ekle=new String(rs.getString("aciklama_id"));
veri.add(ekle);
ekle=new String(rs.getString("detay"));
veri.add(ekle);
ekle=new String(rs.getString("miktar"));
veri.add(ekle);
veri2.add(veri);
rs.close();
stmt.close();
con.close();
catch (ClassNotFoundException e2){
e2.printStackTrace(System.err);
catch (SQLException e2){
System.err.println("SQL state: " + e2.getSQLState());
System.err.println("SQL error: " + e2.getErrorCode());
e2.printStackTrace(System.err);
table=new JTable(veri2,sutunAdlari);
table.setPreferredScrollableViewportSize(new Dimension(600,100));
JScrollPane scrollpane=new JScrollPane(table);
PNL1.add("North",lblABaslik);
PNL1.add("Center",scrollpane);
table.addMouseListener(new MouseAdapter() {
public void mouseClicked(MouseEvent e) {
System.out.println(table.getSelectedRow());
but i get the error :
"BekirAna2.java": cannot resolve symbol: constructor JTable (java.util.ArrayList,java.lang.String[])in class javax.swing.JTable at line 1928, column 55
which represents the line :
table=new JTable(veri2,sutunAdlari);
thanxi changed the codes with Vector definitions;
//PNL1 :
PNL1=new JPanel();
PNL1.setLayout(new BorderLayout(15,15));
Vector veri;
Vector veri2;
//ArrayList veri2;
lblABaslik=new JLabel("Arama Sonuclari :");
//Object[][] veri=new Object[10][7];
//veri[0][0] = new String("foo"); //etc.
String[] sutunAdlari={"Tarih","Arac","Kategori","Aciklama","Detay","Miktar"};
int sayac=-1;
java.util.Date tarih;int arac;int kategori;int aciklama;String detay;int tutar;
try {
String url="jdbc:odbc:Driver={MicroSoft Access Driver (*.mdb)};DBQ=..\\bekir.mdb";
//String query="select * from harcamalar";
String query="select * from harcamalar where tarih between # 2003-11-14 # and #2003-12-14 #";
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con=DriverManager.getConnection(url,"serdar","serdar");
Statement stmt=con.createStatement();
ResultSet rs = stmt.executeQuery(query);
veri=new Vector();
//veri2=new ArrayList();
veri2 = new Vector();
String ekle;
while(rs.next()) {
ekle=new String(rs.getString("tarih"));
veri.add(ekle);
ekle=new String(rs.getString("arac_id"));
veri.add(ekle);
ekle=new String(rs.getString("kategori_id"));
veri.add(ekle);
ekle=new String(rs.getString("aciklama_id"));
veri.add(ekle);
ekle=new String(rs.getString("detay"));
veri.add(ekle);
ekle=new String(rs.getString("miktar"));
veri.add(ekle);
veri2.add(veri);
rs.close();
stmt.close();
con.close();
catch (ClassNotFoundException e2){
e2.printStackTrace(System.err);
catch (SQLException e2){
System.err.println("SQL state: " + e2.getSQLState());
System.err.println("SQL error: " + e2.getErrorCode());
e2.printStackTrace(System.err);
//table=new JTable(veri,sutunAdlari);
table=new JTable(veri2,sutunAdlari);
table.setPreferredScrollableViewportSize(new Dimension(600,100));
JScrollPane scrollpane=new JScrollPane(table);
PNL1.add("North",lblABaslik);
PNL1.add("Center",scrollpane);
table.addMouseListener(new MouseAdapter() {
public void mouseClicked(MouseEvent e) {
System.out.println(table.getSelectedRow());
});but i still get the error alike:
"BekirAna2.java": cannot resolve symbol: constructor JTable (java.util.Vector,java.lang.String[])in class javax.swing.JTable at line 1931, column 55
pointing the line;
table=new JTable(veri2,sutunAdlari);
Maybe you are looking for
-
cannot open pictures in Window 8.1...getting message 'the remote procedure call failed". What is the solution? I recently bought a new HP computuer and uploaded Window 8.1. I then transfered photo files from old computer to new computer using a por
-
I am using the Order Analysis Toolkit and want to get more information about the compensation for "Reference Signal Processing", which is scarce in the manuals, the website and the examples installed with the toolkit. In particular, I am analyzing th
-
I have been banging on about ping latency for quite a long while because as a avid gamer i obviously want the ping as low as possible and have come across a post on a different forum stating that BT can provision FTTC lines. Match the way a line is m
-
hi to all, how to pass select-options in function module. in our program one select-option iz dere. this select-option must pass to one exporting parameter in standard function module. reagrds satya
-
Get next BusinessPartners Code/Key
Hi together, I am looking for a way to get the next CardCode of a BusinessPartner to add a new one by DIApi. I tried it by using some Code like this, but it does not work fine: Dim oSeriesService As SAPbobsCOM.BusinessPartnersService = cmpService.Get