SAP type and Text type in SQL server
Hello,
Is there a type in ABAP that will create a text type in MS SQL ??
The biggest column I can create cannot be more tha n32000 length (LCHR 32000).
regards.
Quentin
Hi,
Dictionary: datatype RAWSTRING or STRING. Will be mapped to varbinary(max) or (n)varchar(max).
Regards,
Guenther
Similar Messages
-
How to populate image and text field in SQL Server
I want to populate a table, i.e insert images in a table in SQL Server. I am using Java(JSP/Servlet). Can any one suggest me how to populate the image and text fields in SQL Server...of course, using Java. If possible, could you please give me a piece of code?
Regards -
SamitHi,
Please check the following link for information on inserting images in to sql server database.
http://www.databasejournal.com/features/mssql/article.php/1475641
Cheers,
vidyut -
SAP query error - 1). [Microsoft][SQL Server Native Client 10.0][SQL Server]Conversion failed when converting date and/or time from character string. 'Received Alerts' (OAIB)
SELECT
CASE WHEN T0.DocStatus = 'O' THEN 'OPEN'
WHEN T0.DocStatus = 'C' THEN 'CLOSED' END AS 'Document Status',
T0.DocDate AS 'Posting Date',
T0.DocNum AS 'Doc.No',
T0.NumAtCard,
T0.TransId AS 'Trans. No.',
T0.Comments AS 'Remarks',
T0.CardCode AS 'Offset Acct',
T0.CardName AS 'Offset Acct Name',
sum(T0.DocTotal) + (T0.WTSum) as 'DocTotal',
T3.DueDate AS 'Cheque Date',
T3.CheckSum AS 'Amount'
FROM ODPO AS T0 LEFT OUTER JOIN
VPM2 AS T1 ON T0.ObjType = T1.InvType AND T0.DocEntry = T1.DocEntry LEFT OUTER JOIN
OVPM AS T2 ON T2.DocEntry = T1.DocNum LEFT OUTER JOIN
VPM1 AS T3 ON T2.DocEntry = T3.DocNum
where T0.DocDate>='[%0]' and T0.DocDate<='[%1]'Hi,
Try this:
SELECT
CASE WHEN T0.DocStatus = 'O' THEN 'OPEN'
WHEN T0.DocStatus = 'C' THEN 'CLOSED' END AS 'Document Status',
T0.DocDate AS 'Posting Date',
T0.DocNum AS 'Doc.No',
T0.NumAtCard,
T0.TransId AS 'Trans. No.',
T0.Comments AS 'Remarks',
T0.CardCode AS 'Offset Acct',
T0.CardName AS 'Offset Acct Name',
sum(T0.DocTotal) + (T0.WTSum) as 'DocTotal',
T3.DueDate AS 'Cheque Date',
T3.CheckSum AS 'Amount'
FROM ODPO T0 LEFT OUTER JOIN
VPM2 T1 ON T0.ObjType = T1.InvType AND T0.DocEntry = T1.DocEntry
LEFT OUTER JOIN
OVPM T2 ON T2.DocEntry = T1.DocNum LEFT OUTER JOIN
VPM1 T3 ON T2.DocEntry = T3.DocNum
where T0.DocDate >= '[%0]' and T0.DocDate <='[%1]'
group by T0.DocStatus,T0.DocDate ,
T0.DocNum ,
T0.NumAtCard,
T0.TransId ,
T0.Comments ,
T0.CardCode,
T0.CardName ,
T0.WTSum ,
T3.DueDate ,
T3.CheckSum
Thanks & Regards,
Nagarajan -
Lines around type and other type/text problems in Dreamweaver CS3
Dear Dreamweaver forum:
Good news/bad news,
First the good news…
My thanks to a forum member by the name of Mylenium. With Mylenium's advice I have improved my halo problem by including a black background when I save type in Illustrator CS3 as part of importing it into Dreamweaver CS3.
However, the bad news, is that I’m still having type and text problems.
Problem area 1
Now, in Dreamweaver, I’m getting lines appearing around the type.
I am dragging and dropping the .gif type file into a Dreamweaver Div Tag.
How do I get rid of the lines around the type so that they do not show up in the Safari browser?
(Please see below)
Problem area 2
I cannot drag and drop text from a Word .doc file into a Dreamweaver div tag.
I also cannot copy and paste Word .doc text into a div tag.
How do I include text on my webpage without having to manually type it in?
(Please see below)
Any help would be appreciated. Thanks!
From within Dreamweaver CS3, how do I place text? Dragging and droppign the file does not work.
This is screenshot of what I see so far when I use Safari to test what I have made so far in Dreamweaver CS3.
I get lines around type.........not usually a good thing.........How do I fix it?
The way I created the portfolio type in IllustratorCS3 using the File > Save for Web and Devices. I then imported the resulting .gif file so that it was within my root folder within the Files panel within Dreamweaver CS3.
Am I doing this right?Hi
The problems you are experiencing with the image text, (why are you using image text, these days?) is probably cause by the image having a border when created in illustrator, or the image size being set incorrectly.
As for the word text if you are using windows, see http://livedocs.adobe.com/en_US/Dreamweaver/9.0/help.html?content=WSc78c5058ca073340dcda91 10b1f693f21-7ce6.html.
On the mac it is a little more complex, save your word doc as html, then apply the 'clean up word html files', (see - http://livedocs.adobe.com/en_US/Dreamweaver/9.0/help.html?content=WSc78c5058ca073340dcda91 10b1f693f21-7ef5.html) copy the relevant text and mark-up from the word html file, and paste into your html document in the required position.
PZ
www.pziecina.com -
TPM12 Report not shwoing Product Type and Product Type Text
Hi ,
After we went live with a upgrade the report TPM12 which is run by the Treasury department every day, is now showing the blank values for "Product Type", "Product Type Text", "Transaction Type", and "Transaction Type Text".
Which was not the case earlier.
Any adivce please.
Thanks,
VenkatGood day
We have a similar issue.
In our system the line item type for the CW product was IDCW. When we however split them by batch into two sub-lines, the new lines defaulted to IDLV (instead of the expected IDCW).
So I think Alexander's diagnosis is spot on?
My question though... What logic does EWM use to derive the item type for the sub-lines? Because surely it should be the same as the 'parent' line item (IDCW in the case) ?
Please advise
Callie -
Workarounds for searching a text field in SQL Server 2000
Hi,
I have a need to search within a text field in SQL Server 2000. In the
limitations section it notes that this is not possible. Is there a
recommended workaround for this in terms of performance? I have no way
of knowing the length of the text field in advance, and this could be
fairly large. Also, the number of objects that could contain the text
can be fairly large as well.
Thanks in advance,
KhamsoukNote that some databases (or Oracle, at least) provide alternatives to
LIKE '%foo%' that are more efficient for large text blocks, given that
you have the appropriate indexing plugins etc. etc.
To use one of those types of search operators, you'd have to put
together a custom extension.
-Fred
Fred Lucas <[email protected]> wrote:
I'm assuming that when you say 'a text field', you're referring to a
SQLServer TEXT field, as opposed to just any old field that contains
text.
Like I said, I'm by no means a SQLServer pro, but I just ran:
SELECT CLOBSTRINGX
FROM LOCATORTESTOBJECTX
WHERE CLOBSTRINGX LIKE '%o%';
and got back my test row with 'foo' in the CLOBSTRINGX column.
CLOBSTRINGX is a TEXT column.
So, it is possible that our stringContains() extension will just work.
But then again, maybe not. I'm guessing it will.
Give it a try and, if you get an error, post the generated SQL (turn on
SQL output by setting the com.solarmetric.kodo.Logger property to
'stdout') and the error that you get. Also, try executing the generated
SQL directly against your data store to see if it works there.
-Fred
Khamsouk Souvanlasy <[email protected]> wrote:
Basically I just want to use kodo's extended stringContains syntax on a
text field. Is this possible?
Khamsouk
Fred Lucas wrote:
I'm not intimitely familiar with SQLServer's text searching
capabilities, but I'm confident that you could create a query extension
that would do what you need it to do.
What is the SQL that you are trying to generate?
-Fred
Khamsouk Souvanlasy <[email protected]> wrote:
Hi,
I have a need to search within a text field in SQL Server 2000. In the
limitations section it notes that this is not possible. Is there a
recommended workaround for this in terms of performance? I have no way
of knowing the length of the text field in advance, and this could be
fairly large. Also, the number of objects that could contain the text
can be fairly large as well.
Thanks in advance,
Khamsouk
Fred Lucas
SolarMetric Inc.
202-595-2064 x1122
http://www.solarmetric.com -
SAP ECC6.0 cannot connect to SQL Server Database after recreating DB server
We had a disaster with our ECC 6.0 Development system a few days ago. The system is called “DEV”. The SQL Server database server got wiped out and we didn’t have a backup. Luckily, we did have a backup of the database. Our system engineers rebuilt the server and our DBA reinstalled SQL Server and restored the database. The database came up fine, but when we try to start SAP, it fails. “R3trans –d” also fails. The database is SQL Server 2008R2 10.50.2769. The OS is Windows Server 2008R2.
We verified that the “devadm” and “SAPServiceDEV” accounts have permissions on the on the server. We set the following Environment Variables for the devadm account on the database server:
DBMS_TYPE = mss
MSSQL_DBNAME = DEV
MSSQL_SCHEMA = dev
MSSQL_SERVER = <database server name>
SAPLOCALHOST = <database server name>
SAPSYSTEMNAME = DEV
We also set the following Registry Key:
HKEY_LOCAL_MACHINE/Software/SAP/DEV
Type: REG_SZ
Value: AdmUser
String: <database server name>\devadm
We didn’t install any kind of SAP software on the database server.
Is there any kind of SAP components we need to install on the database server? Do we need to run the SAP installer on the database server to get everything setup correctly? I looked at another one of our SQL Server database servers and it has SAP Management Console installed and there is a C:\Program Files\SAP\hostcntl folder. I don't know what that is or it has anything to do with SAP being able to connect to the database.
Here is the error message in the R3trans log file:
4 ETW000 [ dev trc,00000] Wed Apr 29 09:44:39 2015 1501385 1.531756
4 ETW000 [ dev trc,00000] ERROR: -1 in function ExecuteAndFlush (SQLExecDirect) [line 6702] 35 1.531791
4 ETW000 [ dev trc,00000] (102) [42000] [Microsoft][SQL Server Native Client 10.0][SQL Server]Incorrect syntax near 'execute.'.
4 ETW000 22 1.531813
4 ETW000 [ dev trc,00000] <if user_name() != 'dev' execute as login = suser_sname(suser_sid('dev')) with no revert> failed -- connect terminated
4 ETW000 38 1.531851
4 ETW000 [ dblink ,00000] ***LOG BY2=>sql error 102 performing CON 56 1.531907
4 ETW000 [ dblink ,00000] ***LOG BY0=>[Microsoft][SQL Server Native Client 10.0][SQL Server]Incorrect syntax near 'execute.'.
4 ETW000 30 1.531937
2EETW169 no connect possible: "DBMS = MSSQL --- SERVER = '<db server name>' DBNAME = 'DEV'"
Please let me know what we need to do to get SAP to connect to the database.
Thanks,
JerryHere it is: 4 ETW000 R3trans version 6.22 (release 720 - 18.11.11 - 11:29:00). 4 ETW000 unicode enabled version 4 ETW000 =============================================== 4 ETW000 4 ETW000 date&time : 29.04.2015 - 19:33:01 4 ETW000 control file: 4 ETW000 R3trans was called as follows: R3trans -d 4 ETW000 trace at level 2 opened for a given file pointer 4 ETW000 [ dev trc,00000] Wed Apr 29 19:33:01 2015 83 0.000083 4 ETW000 [ dev trc,00000] db_con_init called 28 0.000111 4 ETW000 [ dev trc,00000] set_use_ext_con_info(): rsdb/ssfs_connect not set => ssfs not used 31 0.000142 4 ETW000 [ dev trc,00000] determine_block_commit: no con_hdl found as blocked for con_name = R/3 4 ETW000 20 0.000162 4 ETW000 [ dev trc,00000] create_con (con_name=R/3) 10 0.000172 4 ETW000 [ dev trc,00000] Loading DB library 'dbmssslib.dll' ... 31 0.000203 4 ETW000 [ dev trc,00000] DlLoadLib success: LoadLibrary("dbmssslib.dll"), hdl 0, addr 000007FEEE6D0000 4 ETW000 1865 0.002068 4 ETW000 [ dev trc,00000] using "D:\usr\sap\DEV\SYS\exe\uc\NTAMD64\dbmssslib.dll" 14 0.002082 4 ETW000 [ dev trc,00000] Library 'dbmssslib.dll' loaded 13 0.002095 4 ETW000 [ dev trc,00000] function DbSlExpFuns loaded from library dbmssslib.dll 15 0.002110 4 ETW000 [ dev trc,00000] Version of 'dbmssslib.dll' is "720.00", patchlevel (0.200) 84 0.002194 4 ETW000 [ dev trc,00000] function dsql_db_init loaded from library dbmssslib.dll 16 0.002210 4 ETW000 [ dev trc,00000] function dbdd_exp_funs loaded from library dbmssslib.dll 11 0.002221 4 ETW000 [ dev trc,00000] New connection 0 created 29 0.002250 4 ETW000 [ dev trc,00000] 0: name = R/3, con_id = -000000001, state = DISCONNECTED, tx = NO , bc = NO , hc = NO , perm = YES, reco = NO , frco = NO , timeout = 000, con_max = 255, con_opt = 255, occ = NO , prog = 4 ETW000 29 0.002279 4 ETW000 [ dev trc,00000] db_con_connect (con_name=R/3) 12 0.002291 4 ETW000 [ dev trc,00000] determine_block_commit: no con_hdl found as blocked for con_name = R/3 4 ETW000 16 0.002307 4 ETW000 [ dev trc,00000] find_con_by_name found the following connection: 9 0.002316 4 ETW000 [ dev trc,00000] 0: name = R/3, con_id = 000000000, state = DISCONNECTED, tx = NO , bc = NO , hc = NO , perm = YES, reco = NO , frco = NO , timeout = 000, con_max = 255, con_opt = 255, occ = NO , prog = 4 ETW000 21 0.002337 4 ETW000 [ dev trc,00000] Thread ID:3492 594 0.002931 4 ETW000 [ dev trc,00000] Thank You for using the SLODBC-interface 17 0.002948 4 ETW000 [ dev trc,00000] Using dynamic link library 'D:\usr\sap\DEV\SYS\exe\uc\NTAMD64\dbmssslib.dll' 4 ETW000 21 0.002969 4 ETW000 [ dev trc,00000] dbmssslib.dll patch info 27 0.002996 4 ETW000 [ dev trc,00000] SAP patchlevel 0 12 0.003008 4 ETW000 [ dev trc,00000] SAP patchno 200 92 0.003100 4 ETW000 [ dev trc,00000] Last MSSQL DBSL patchlevel 0 20 0.003120 4 ETW000 [ dev trc,00000] Last MSSQL DBSL patchno 200 14 0.003134 4 ETW000 [ dev trc,00000] Last MSSQL DBSL patchcomment Take care of warnings during database connect (1600066) 4 ETW000 18 0.003152 4 ETW000 [ dev trc,00000] ODBC Driver chosen: SQL Server Native Client 10.0 native 273 0.003425 4 ETW000 [ dev trc,00000] Network connection used from XXSAPDEV01 to XXSQLSAPDEV01 using tcp:XXSQLSAPDEV01 4 ETW000 128 0.003553 4 ETW000 [ dev trc,00000] Network connection used from XXSAPDEV01 to XXSQLSAPDEV01 using tcp:XXSQLSAPDEV01 4 ETW000 20908 0.024461 4 ETW000 [ dev trc,00000] Network connection used from XXSAPDEV01 to XXSQLSAPDEV01 using tcp:XXSQLSAPDEV01 4 ETW000 3485 0.027946 4 ETW000 [ dev trc,00000] Driver: sqlncli10.dll Driver release: 10.50.2769 3695 0.031641 4 ETW000 [ dev trc,00000] GetDbRelease: 10.50.2769.00 475 0.032116 4 ETW000 [ dev trc,00000] GetDbRelease: Got DB release numbers (10,50,2769,0) 18 0.032134 4 ETW000 [ dev trc,00000] ERROR: -1 in function ExecuteAndFlush (SQLExecDirect) [line 6702] 6505 0.038639 4 ETW000 [ dev trc,00000] (102) [42000] [Microsoft][SQL Server Native Client 10.0][SQL Server]Incorrect syntax near 'execute.'. 4 ETW000 27 0.038666 4 ETW000 [ dev trc,00000] failed -- connect terminated 4 ETW000 31 0.038697 4 ETW000 [ dblink ,00000] ***LOG BY2=>sql error 102 performing CON 49 0.038746 4 ETW000 [ dblink ,00000] ***LOG BY0=>[Microsoft][SQL Server Native Client 10.0][SQL Server]Incorrect syntax near 'execute.'. 4 ETW000 27 0.038773 2EETW169 no connect possible: "DBMS = MSSQL --- SERVER = 'XXSQLSAPDEV01' DBNAME = 'DEV'"
-
hi,
i need the list of message types and idoc types for edi.
can any one of u pls send it.Hi,
Check the OSS notes 104606.
The following list maps the logical messages and IDoc types to the corresponding ANSI X12 transaction sets.That is, the logical message can be copied to the transaction sets named.
204 Motor carrier shipment information
The logical message is SHPMNT or IFTMIN, the IDoc type SHPMNT03.
214 Transportation carrier shipment status message
The logical message is TRXSTA, the IDoc type TRXSTA01. Inbound processing is supported.
304 Shipping instructions
The logical message is SHPMNT or IFTMIN, the IDoc type SHPMNT03.
810 Invoice or billing document (also 880)
The logical message is INVOIC, the IDoc type INVOIC01.
812 Credit and debit advice
The logical messages are CREADV or DEBADV, the IDoc types PEXR2001 and PEXR2002.
820 Payment order and credit advice
For the payment order, the logical message is PAYEXT (REMADV), the IDoc types PEXR2001 and PEXR2002.
For the credit advice (ERS - Evaluated Receipt Settlement), the logical message is GSVERF, the IDoc type GSVERF01.
823 Lockbox
The logical message is LOCKBX, the IDoc type FINSTA01. Inbound processing is supported.
830 Delivery schedule (LAB)
The logic message is DELINS (from the EDI standard ODETTE) or DELFOR the IDOC type DELFOR01.
832 Price catalog (also 879, 888, 889)
The logical message is PRICAT, the IDoc type PRICAT01. Outbound processing is supported.
834 Benefit enrollment and maintenance
The logical message is BENREP, the IDoc type BENEFIT1. Outbound processing is supported.
840 Request
The logical message is REQOTE, the IDoc types ORDERS01 to ORDERS04.
843 Quotation
The logical message is QUOTES, the IDoc types ORDERS01 to ORDERS04.Outbound processing is supported.
850 Purchase order or order (also 875)
The logical message is ORDERS, the IDoc types ORDERS01 to ORDERS04.
852 Stock and sale data
The logical message is PROACT, the IDoc type PROACT01.
855 Order confirmation (also 865)
The logical message is ORDRSP, the IDoc types ORDERS01 to ORDERS04.
856 Transport and shipping notification (ASN - Advanced Ship Notification)
For transport in the SAP application, the logical message is SHPMNT or SHPADV, the IDoc types SHPMNT01 to SHPMNT03.
For the delivery in the SAP application, the logic message is DESADV, the IDoc types DESADV01 (to be discontinued), DELVRY01 and DELVRY02.
860 Ordering modification (also 876)
The logical message is ORDCHG, the IDoc types ORDERS01 to ORDERS04.
861 Credit advice (ERS - Evaluated Receipt Settlement)
The logical message is GSVERF, the IDoc type GSVERF01.
862 Delivery schedule (FAB)
The logic message is DELINS (from the EDI standard ODETTE) or DELJIT, the IDOC type DELFOR01.
864 Text message
The logical message is TXTRAW, the IDoc type TXTRAW01. Inbound processing is supported.
940 Shipping order and stock order
The logical message is SHPORD or WHSORD, the IDOC type DELVRY01.
945 Shipping confirmation and stock confirmation
The logical message is SHPCON or WHSCON, the IDoc type DELVRY01.
997 Functional acknowledgment
This is a technical confirmation. This is not exchanged via an individual message but the status report for IDoc processing. The status values used are:
"22" Shipping OK, acknowledgment has yet to come
"16" Functional acknowledgment positive
"17" Functional acknowledgment negative
The status values "14" and "15" are available for the Interchange Acknowledgment accordingly. Source code corrections
Cheers
VJ -
Message type and IDoc type to update a sales order
I can create sales order at WE19 by the message type SALESORDER_CREATEFROMDAT2 and IDoc type SALESORDER_CREATEFROMDAT202 . Can I use the same message type and IDoc type to update a sales document (sales order) and also how can I do (I mean, which structures should I use; at E1BPSDHD1X - UPDATEFLAG what should I enter? Put an X to update a document or etsc?)? I enter the "E1BPSDHD1X - UPDATEFLAG" as X, "E1BP_SENDER - LOG_SYSTEM", "E1BPSDITM - ITM_NUMBER", " E1BPSDITM - MATERIAL", "E1BPPARNR - PARTN_ROLE", "E1BPPARNR - PARTN_NUMB" and "E1BPSCHDL - REQ_QTY". The sales order quantity is at "E1BPSCHDL - REQ_QTY" and it is the field that I want to update. When I look at the transaction code BD87, I see the status text as "Enter a document number between 0005000000 and 0005999999". I cannot update the order. How can I update it? Canybody explain me in a detailed manner?
Thanks in advance....
Edited by: Hikmet Akcali on Oct 21, 2009 4:00 PMAt the IDoc type pop-up selection, there are 3 types. These are: ORD_ID01, ORDERS05 and /NFM/ORDERS05. SAP system component version is SAP ECC 6.0 . I choose ORD_ID01. There are structures EDI_Z1, EDI_Z3, EDI_Z5, EDI_Z9 and EDI_Z53. Where should I enter the number of the sales document to be updated? Also, which function module should I choose?
Edited by: Hikmet Akcali on Oct 21, 2009 5:34 PM -
No archive information found for object type and document type
Hi All,
When i try to view the print preview for a perticular doc type, system is giving the error as "No archive information found for object type and document type"
Diagnosis
No information was found about optical archiving. This may be due to
either of the following reasons:
1. No valid archiving parameters were passed
2. Your system is not configured for optical archiving
System Response
Processing is cancelled.
Procedure
Specify valid archiving parameters or check whether your system is configured for optical archiving
Regds,
CBHello,
You are trying to Print & also archive by selecting the option Print & Archive.
You have to do archivelink configurations and then create document type and assign to the object type with content repository with archivelink table.
If you want to archive the spool or output then you have to use object type as DRAW. If you are archiving invoice document or letters or so on then you have to know the object type/Business object of the transaction.
Please note that for archivelink configuration, attachment will be either stored in archive server or in SAP database table based on business requirement.
Hope this will give you some understanding on archiving area.
-Thanks,
Ajay -
Write the DDL to construct the Facebook User and Post tables in SQL server.
Write the DDL to construct the Facebook User and Post tables in SQL server. You need to populate the user table with the user’s information provided as in Figure 1 and additional attributes may be needed for the design. Use the ID in the excel file to
identify the other Facebook user. For example ID 612831408762037 is David Cunliffe. Import the excel sheets to SQL server and then write effective SQL to merge the two tables into the Post table. Ensure the relationship is maintained between entities. Submit
the SQL scripts that create the database and tables, import the excel sheets and populate the tables such that one can re-create the database and tables with all the data by running the script.IF NOT EXISTS(SELECT * FROM sys.databases WHERE name = N'xxx')
CREATE DATABASE xxx
GO
USE xxx
IF EXISTS(SELECT * FROM sys.tables WHERE name = N'DAVID')
DROP TABLE DAVID;
IF EXISTS(SELECT * FROM sys.tables WHERE name = N'JOHN')
DROP TABLE JOHN;
IF EXISTS(SELECT * FROM sys.tables WHERE name = N'NEWDAVID')
DROP TABLE NEWDAVID;
IF EXISTS(SELECT * FROM sys.tables WHERE name = N'NEWJOHN')
DROP TABLE NEWJOHN;
IF EXISTS(SELECT * FROM sys.tables WHERE name = N'USER')
DROP TABLE [USER];
IF EXISTS(SELECT * FROM sys.tables WHERE name = N'POST')
DROP TABLE POST;
CREATE TABLE DAVID(
ID VARCHAR(100),
[MESSAGE] VARCHAR(MAX),
[TYPE] VARCHAR(MAX),
CREATED_TIME VARCHAR(MAX),
UPDATED_TIME VARCHAR(MAX),
SHARES_COUNT VARCHAR(MAX),
[COUNT OF LIKES NAME] VARCHAR(MAX),
[COUNT OF COMMENTS MESSAGE] VARCHAR(MAX),
LINK VARCHAR(MAX),
NAME VARCHAR(MAX),
[DESCRIPTION] VARCHAR(MAX),
CREATE TABLE JOHN(
ID VARCHAR(100),
LINK VARCHAR(MAX),
NAME VARCHAR(MAX),
[DESCRIPTION] VARCHAR(MAX),
[TYPE] VARCHAR(MAX),
CREATED_TIME VARCHAR(MAX),
UPDATED_TIME VARCHAR(MAX),
[COUNT OF LIKES NAME] VARCHAR(MAX),
[COUNT OF COMMENTS MESSAGE] VARCHAR(MAX),
[MESSAGE] VARCHAR(MAX),
SHARES_COUNT VARCHAR(MAX),
EXECUTE (N'BULK INSERT DAVID FROM ''' + 'datapath' + N'david.csv''
WITH (
CHECK_CONSTRAINTS,
CODEPAGE=''ACP'',
DATAFILETYPE = ''char'',
FIELDTERMINATOR= '','',
ROWTERMINATOR = ''\n'',
KEEPIDENTITY,
TABLOCK
EXECUTE (N'BULK INSERT JOHN FROM ''' + 'datapath' + N'john.csv''
WITH (
CHECK_CONSTRAINTS,
CODEPAGE=''ACP'',
DATAFILETYPE = ''char'',
FIELDTERMINATOR= '','',
ROWTERMINATOR = ''\n'',
KEEPIDENTITY,
TABLOCK
SELECT * FROM DAVID
SELECT * FROM JOHN
CREATE TABLE NEWDAVID(
POST_ID VARCHAR(100),
[USER_ID] VARCHAR(100),
CREATED_DATE VARCHAR(MAX),
CREATED_YEAR VARCHAR(MAX),
CREATED_MONTH VARCHAR(MAX),
UPDATED_DATE VARCHAR(MAX),
UPDATED_YAER VARCHAR(MAX),
UPDATED_MONTH VARCHAR(MAX),
[MESSAGE] VARCHAR(MAX),
SHARES_COUNT VARCHAR(MAX),
[COUNT OF LIKES NAME] VARCHAR(MAX),
[COUNT OF COMMENTS MESSAGE] VARCHAR(MAX),
NAME VARCHAR(MAX),
[TYPE] VARCHAR(MAX),
LINK VARCHAR(MAX),
[DESCRIPTION] VARCHAR(MAX),
CREATE TABLE NEWJOHN(
POST_ID VARCHAR(100),
[USER_ID] VARCHAR(100),
CREATED_DATE VARCHAR(MAX),
CREATED_YEAR VARCHAR(MAX),
CREATED_MONTH VARCHAR(MAX),
UPDATED_DATE VARCHAR(MAX),
UPDATED_YAER VARCHAR(MAX),
UPDATED_MONTH VARCHAR(MAX),
[MESSAGE] VARCHAR(MAX),
SHARES_COUNT VARCHAR(MAX),
[COUNT OF LIKES NAME] VARCHAR(MAX),
[COUNT OF COMMENTS MESSAGE] VARCHAR(MAX),
NAME VARCHAR(MAX),
[TYPE] VARCHAR(MAX),
LINK VARCHAR(MAX),
[DESCRIPTION] VARCHAR(MAX),
INSERT INTO NEWJOHN
SELECT SUBSTRING(ID, CHARINDEX('_', ID) + 1, LEN(ID) - CHARINDEX('_', ID)) AS POST_ID,
SUBSTRING(ID, 1, CHARINDEX('_', ID) -1) AS [USER_ID],
SUBSTRING(CREATED_TIME, 1, 10) AS CREATED_DATE,
SUBSTRING(CREATED_TIME, 1, 4) AS CREATED_YEAR,
SUBSTRING(CREATED_TIME, 6, 2) AS CREATED_MONTH,
SUBSTRING(UPDATED_TIME, 1, 10) AS UPDATED_DATE,
SUBSTRING(UPDATED_TIME, 1, 4) AS UPDATED_YEAR,
SUBSTRING(UPDATED_TIME, 6, 2) AS UPDATED_MONTH,
[MESSAGE], SHARES_COUNT, [COUNT OF LIKES NAME], [COUNT OF COMMENTS MESSAGE], NAME, [TYPE], LINK, [DESCRIPTION]
FROM JOHN
INSERT INTO NEWDAVID
SELECT SUBSTRING(ID, CHARINDEX('_', ID) + 1, LEN(ID) - CHARINDEX('_', ID)) AS POST_ID,
SUBSTRING(ID, 1, CHARINDEX('_', ID) -1) AS [USER_ID],
SUBSTRING(CREATED_TIME, 1, 10) AS CREATED_DATE,
SUBSTRING(CREATED_TIME, 1, 4) AS CREATED_YEAR,
SUBSTRING(CREATED_TIME, 6, 2) AS CREATED_MONTH,
SUBSTRING(UPDATED_TIME, 1, 10) AS UPDATED_DATE,
SUBSTRING(UPDATED_TIME, 1, 4) AS UPDATED_YEAR,
SUBSTRING(UPDATED_TIME, 6, 2) AS UPDATED_MONTH,
[MESSAGE], SHARES_COUNT, [COUNT OF LIKES NAME], [COUNT OF COMMENTS MESSAGE], NAME, [TYPE], LINK, [DESCRIPTION]
FROM DAVID
SELECT * FROM NEWDAVID
SELECT * FROM NEWJOHN
CREATE TABLE POST (
POST_ID VARCHAR(100) NOT NULL,
[USER_ID] VARCHAR(100),
CREATED_DATE VARCHAR(MAX),
CREATED_YEAR VARCHAR(MAX),
CREATED_MONTH VARCHAR(MAX),
UPDATED_DATE VARCHAR(MAX),
UPDATED_YAER VARCHAR(MAX),
UPDATED_MONTH VARCHAR(MAX),
[MESSAGE] VARCHAR(MAX),
SHARES_COUNT VARCHAR(MAX),
[COUNT OF LIKES NAME] VARCHAR(MAX),
[COUNT OF COMMENTS MESSAGE] VARCHAR(MAX),
NAME VARCHAR(MAX),
[TYPE] VARCHAR(MAX),
LINK VARCHAR(MAX),
[DESCRIPTION] VARCHAR(MAX),
INSERT INTO POST
SELECT * FROM NEWDAVID UNION SELECT * FROM NEWJOHN
SELECT * FROM POST
CREATE TABLE [USER]
[USER_ID] VARCHAR(100) NOT NULL,
INSERT INTO [USER] VALUES (612831408762037),(1119736203)
ALTER TABLE [USER] ADD PRIMARY KEY([USER_ID])
ALTER TABLE POST ADD PRIMARY KEY(POST_ID)
ALTER TABLE POST ADD FOREIGN KEY([USER_ID]) REFERENCES [USER]([USER_ID]) -
What is the need of Table Types,
when there is Tables.
Even when iam using in the Abap Programs in se38..
iam not getting any difference..
Even i want to about the use of Line type
when there is the structure..
iam sap 4.7 they gave that Table type describe the structure and
functional attributes of an internal table.Way: 1:
Go to SE84 --> Select ABAP Dict --> Table Types -->
Enter the short names like ORDER wih leading and ending * on the Table Types Field. ---> F8
This will bring all related entries of Table Types(Line Types) having ORDER has a part of its Name.
Way:2:
If you know the Table Name, then go SE11 --> Putch in the Table Name --> Press Display
Now put the cursor on the Table Name field, press CNTLSHFTF3, on the WHERE USED LIST Pop up, Select only the TABLE TYPE Option and press EXECUTE.
This will bring the Table Types and Line Types.
SAP Table Types
I. Transparent tables (BKPF, VBAK, VBAP, KNA1, COEP)
Allows secondary indexes (SE11->Display Table->Indexes)
Can be buffered (SE11->Display Table->technical settings) Heavily updated tables should not be buffered.
II. Pool Tables (match codes, look up tables)
Should be accessed via primary key or
Should be buffered (SE11->Display Table->technical settings)
No secondary indexes
Select * is Ok because all columns retrieved anyway
III. Cluster Tables (BSEG,BSEC) Should be accessed via primary key - very fast retrieval otherwise very slow
No secondary indexes
Select * is Ok because all columns retrieved anyway. Performing an operation on multiple rows is more efficient than single row operations. Therefore you still want to select into an internal table. If many rows are being selected into the internal table, you might still like to retrieve specific columns to cut down on the memory required.
Statistical SQL functions (SUM, AVG, MIN, MAX, etc) not supported
Can not be buffered
IV. Buffered Tables (includes both Transparent & Pool Tables)
While buffering database tables in program memory (SELECT into internal table) is generally a good idea for performance, it is not always necessary. Some tables are already buffered in memory. These are mostly configuration tables. If a table is already buffered, then a select statement against it is very fast. To determine if a table is buffered, choose the 'technical settings' soft button from the data dictionary display of a table (SE12). Pool tables should all be buffered.
Table Types : A table type describes the structure and functional attributes of an internal table in ABAP. In ABAP programs you can reference a table type TTYP defined in the ABAP Dictionary with the command
DATA : itab TYPE TTYP.
Reafer these links below for clear ideas.
http://help.sap.com/saphelp_nw04/helpdata/en/fb/f14736a1f0ad1fe10000009b38f839/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/90/8d7304b1af11d194f600a0c929b3c3/frameset.htm
Thanks
Allot points if this helps! -
What is inbound XML message type and idoc type in Purchase Order response
Hi ,
We are on SRM 7 ECS , support pack SAPKIBKV08.
We have a process in which vendor will send a Purchase Order response which will be
converted to XML format by a middleware. This XML message will come to
SRM and post a POR. I want to do the EDI mapping for this XML message,
but there is no message type and idoc type in SRM for Purchase Order
response. How do I map my message type in SRM to the vendor sent fields
in middleware .
Please advise
Rgds
SumendraHi,
You can process with XML without IDoc.
Vendor-> (XML) -> PI -> (XML) -> SRM.
Please check PurchaseOrderConfirmation_In in namespace "http://sap.com/xi/SRM/Procurement/Global".
http://esworkplace.sap.com
Regards,
Masa -
Connecting to datasource and retrieve, insert and update data in SQL Server
hi,
i am trying to retrieve, insert and update data from SQL Server 2000 and display in JSPDynPage and is for Portal Application. I have already created datasource in visual composer. Is there any sample codes for mi to use it as reference???
Thanks
Regards,
shixuanHi,
See this link
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6209b52e-0401-0010-6a9f-d40ec3a09424
Regards,
Senthil kumar K. -
Hi ,
Anyone can send what are all the std idoc types and message types are there in SAP?
Coz i dnt have SAP.
Please let me knowThe IDoc type indicates the SAP format that is to be used to interpret the data of a business transaction.
An IDoc type consists of the following components:
· a control record
This is identical for each IDoc type.
· several data records
One data record consists of a fixed key part and a variable data part. The data part is interpreted using segments, which differ depending on the IDoc type selected.
· several status records
These are identical for each IDoc type and describe the statuses an IDoc has already passed through or the status an IDoc has attained.
You find various IDOC / Message types in SAP -
http://www.erpgenie.com/sapedi/message_types_masterdata.htm
IDoc Types - Message Types -Accounting Business Processes
IDoc Types - Message Types - HR Business Processes
IDoc Types - Message Types - Logistics Business Processes
Eg.
General Message types / IDoc types / BAPI
Vendor CREMAS / CREMAS02
Customer DEBMAS / DEBMAS03
Accounting Message types / IDoc types / BAPI
G/L account GLMAST / GLMAST01
Cost center COSMAS / COSMAS01
Cost element COELEM / COELEM01
Maybe you are looking for
-
Report for slow moving material.
Hi friends I want to create report for slow & fast moving materials.. I have to add following fields in the report Material, Unit of Measure, Current Stock, Value, Last consumption date, Last movement date... Now I dont have all these fields toghethe
-
Multiple time submission of a form automatically in struts
I have a button in jsp, when the onclick event is fired, it will send the request to someaction.do to generate a report and display that report in a new window. After clicking the button to generate the report, in the business class a sql query is ge
-
Nothing works my beachball is spinning all the time
I have a MacBook Pro and upgraded to Yosemite a few weeks ago. The first week was a learning process but it has been impossible since then. Literally every task I try to do I have the beachball spinning, SAFARI, GOOGLE, BOOKMARKS, WORD, EXCEL, ITUNES
-
I can't get my software to recognize my second nano. How?
no more message than that!
-
Hi, my iPod touch used iOS 6.1.5 and recently, when I add new songs to the iPod and sync with iTunes, the album covers are no longer that of the songs added. They somehow end up being all mixed up. I've tried deleting and re adding the songs but tho