How to spool this requirement...?
Hi all..
I want to write the all tables details of one schema in one .XLS sheet
OR for each table one .XLS sheet. Just i want only COLUMN NAME,
COLUMN TYPE, AND COLUMN SIZE. I want the column names in
DESC order.
How to wirte query for this..
Thanks in advance,
Pal
Thanks for your prompt reply...
By using, i think, we can get the column names in DESCRIBE order. I checked
it. It is coming in DESCRIBE. In this Query, always column names comes in
DESCRIBE order or it may change...? For NUMBER, it (DATA_LENGTH) is
showing 22, but actual length of NUMBER in table is 10.
select a.TABLE_NAME,a.COLUMN_NAME,a.DATA_LENGTH from
user_tab_columns a
Thanks in advance,
Pal
Similar Messages
-
How to approach this requirment
Business overview:
For every organisation account management will be the core functionality. The account management should include the following:
customer - company - vendor.
1. customer info
2. vendor info
3.organisation info
4.material info
5.purchase order info
6.sales order info
7.subsequent documents such as delivery doc,invoice doc n accounting doc info.
Reports:
1.purchase order line item wise report.
2.open purchase order.
3.sales order line item wise report.
4.open sales order report.
5.open invoice item wise.
Im new to ABAP, pl someone guide me how to approach this requirment. Which r the tables n fields i need to work with?
Thank you.Hi Ashwini,
I am giving you some of the important details of tables as per your requirement.But there could be more tables than i am providing.
Just a list of tables that come in handy.
Sales orders
Name Description Uses
LIKP Shipped Lines header
LIPS Shipped Lines detail
VBAK Order header Every order (unless archiving)
VBAP Table fields Every line item (unless archiving)
VBBE Open sales order line items Great file, but be careful.Contents don't reflect orders
that do not affect purchasing (go figure).
VBEP Schedule line item
VBFA Document flow Let's you move from order to shipping document to invoice.
VBUK Order status
VBUP Line item detail status
VBFK Invoicing header
VBFP Invoicing detail
Material Management
Name Description Uses
MARA Inventory Master
MARC Plant Data
MARD Current Inventory
MAKT Descriptions
MBEW Material Valuation
T179 Product Hierarchy
MVKE Sales data (materials)
MKPF Material document Status code 'R' in VBFA
Purchasing
Name Description Uses
EINA Purchasing inforecord by MATNR/LIFNR contains things like vendor material
number and access key for EINE
EINE Purchasing inforecord detail Contains minimum purchase, group, currency
EKPO Purchase orders
EKET Scheduled lines
EKES Vendor confirmed lines
IKPF Header- Physical Inventory Document
ISEG Physical Inventory Document Items
LFA1 Vendor Master (General section)
LFB1 Vendor Master (Company Code)
NRIV Number range intervals
RESB Reservation/dependent requirements
T161T Texts for Purchasing Document Types
Forecasting
Name Description Uses
MAPR
PROP
PROW
Classification
Name Description Uses
KSSK Material number to class
KLAS Class description
KSML Characteristic name
CABN/CABNT Characteristic name description
CAWN/CAWNT Characteristic name
AUSP Numeric values
CAUFV Service order header
AFPO Service order line Holds items that will create "reservations"
RESB SM Reservations Materials needed for line
Customer Data
KNA1 Customer Master
KNVV Sales information
KNVP Partners (ship-to, etc)
Since you are new to abap, its better you to know the system tables and other tables for configuring:
System tables
Name Description Uses
DD02T Table texts
DD03L Table fields Lists the fields in a table
DD04T Data element texts
USR02 Valid user names
Config tables (normally begin with "T")
Name Description Uses
T001 Client table
T002 Languages
T005 Region (Country)
TCURR Currency and exchange rates
TVAK Order type
TVSB Shipping condition
TVAGT Rejected reason for order line
Other tables
Name Description Uses
STXH Text header
STXL Text detail
Reward points if useful.
Thnakyou,
Regards. -
How to approach this requirement
Business overview:
For every organisation account management will be the core functionality. The account management should include the foll:
customer - company - vendor.
1. customer info
2. vendor info
3.organisation info
4.material info
5.purchase order info
6.sales order info
7.subsequent documents such as delivery doc,invoice doc n accounting doc info.
Reports:
1.purchase order line item wise report.
2.open purchase order.
3.sales order line item wise report.
4.open sales order report.
5.open invoice item wise.
Im new to ABAP, Please someone guide me how to approach this requirement. Which are the tables and fields i need to work with?
Thank You.
AshwiniHi:
Refer to SAP Tables in this documentation.
http://www.erpgenie.com/abap/tables.htm
You will find the realted fields in the weblink.If you are not unable to find the field and table, go to functional consultant and ask him about the filed.
he will show you and click on F1.you can see the techncail information.Click on this and you will see table name and field name.
Please let me know if you need more information.
Assign points if useful.
Regards
Sridhar M -
How to design this requirement by GP, webdynpro, Adobe and UWL?
The scenario is :
The supplier logs in the SAP Portal
1) The first screen should be WebDynpro screen with some filter selection which have drop downs etc populating from R/3
After selecting particular values and clicking on a button on screen an adobe form should open upon fetching detail from R/3
2) This adobe form will have certian prefilled information and certian fields will be editable for the supplier to fill in.
After the supplier fills in the remaining data he clicks on "Submit" button on the form (Assuming this is online scenario).
3) Now this form should go for approval as line item in inbox (portal inbox can be UWL/GP).
4) Once the manager clicks on the line item which has come for approval, on click the filled adobe form should open up and
the Manager should have option to approve/reject. If approved the data should load in SAP R/3 (I assume to send data back to R/3 i will have to make this also WebDynpro but how will it have the values that the supplier filled in and how can be it be open when clicked on line item in GP?)
Note: This all has to be achieved by using WebDynpro for Java/GP/Adobe, no SAP R/3 workflow has to be used.
Kindly let me know how can I break this requirements into WebDynpro ,GP and adobe?
Need Help in designing and whether its possible or not? Helpful answers will be rewarded.
Regards,
VDHi Vishal,
try this link...
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e0957cb6-5103-2a10-6d9d-a0a4d68c8bf1
Regards,
Sudheer. -
How to design this requirement by GP, Webdnpro , Adobe and UWL?
The scenario is :
The supplier logs in the SAP Portal
1) The first screen should be WebDynpro screen with some filter selection which have drop downs etc populating from R/3
After selecting particular values and clicking on a button on screen an adobe form should open upon fetching detail from R/3
2) This adobe form will have certian prefilled information and certian fields will be editable for the supplier to fill in.
After the supplier fills in the remaining data he clicks on "Submit" button on the form (Assuming this is online scenario).
3) Now this form should go for approval as line item in inbox (portal inbox can be UWL/GP).
4) Once the manager clicks on the line item which has come for approval, on click the filled adobe form should open up and
the Manager should have option to approve/reject. If approved the data should load in SAP R/3 (I assume to send data back to R/3 i will have to make this also WebDynpro but how will it have the values that the supplier filled in and how can be it be open when clicked on line item in GP?)
Note: This all has to be achieved by using WebDynpro for Java/GP/Adobe, no SAP R/3 workflow has to be used.
Kindly let me know how can I break this requirements into WebDynpro ,GP and adobe?
Need Help in designing and whether its possible or not? Helpful answers will be rewarded.
Regards,
VDHi vishal,
We have similar requirement and currently I am working on it. One solution we have got is using portal database (MaxDB) for storing data temporarily.
Once the employee submits the data, it is stored in MaxDB, later manager can fetch it from here, and once approved it will be updated in SAP backend. Later a WD application callable object can be created in GP.
This link /people/karthikeyan.rammohan/blog/2007/12/06/jdbc-connectivity-with-webdynpro-and-max-db can help you in creating the table in database.
Please let me know if you have any better ideas.
Hope this helps you,
Amit -
How to select this requirement...?
Hi all..
I am having two tables , Table1 and Table2.
select * from Table1 where Table1.col1 in (select Table2.col2 from Table2 )
Here, Table1.col1 is NUMBER datatype
Table2.col2 is Varchar2 datatype (Its containes values like 13,54,123,8
and we dont know how many commas will be there, it will change)
How to acheive this.
Thanks in advance
PalHere’s another one ( if Not on 10g ) –
1. The Inner SQL basically splits the comma separated string into multiple lines
2. Use your outer query to join using “=” <Equal to> instead of “In”
operator
SQL> select * from test3
2 /
COL1 COL2
Rec1 10,22,38,34,45,101
Rec2 20,34,37,34,49,238
1 Select col2, 'Found No Match' str
2 From
3 (
4 select substr (txt,
5 instr (txt, ',', 1, level ) + 1,
6 instr (txt, ',', 1, level+1) - instr (txt, ',', 1, level) -1 ) as col2
7 from (select ',' || col2 ||',' txt from test3 Where col1 = 'Rec2')
8 connect by level <= length(:txt)-length(replace(:txt,',',''))+1
9 )
10* Where &id = col2
SQL> /
Enter value for id: 1
old 10: Where &id = col2
new 10: Where 1 = col2
no rows selected
SQL> /
Enter value for id: 2
old 10: Where &id = col2
new 10: Where 2 = col2
no rows selected
SQL> /
Enter value for id: 34
old 10: Where &id = col2
new 10: Where 34 = col2
COL2 STR
34 Found No Match
34 Found No Match -
How to implement this requirement
Greetings!!!
The following are my tables
CREATE TABLE SHIPMENT_CARTON(
SSSD_ID NUMBER(10) NOT NULL,
CTN_MEAS_ID NUMBER(10),
SSSD_NO_CTN NUMBER(10),
SSSD_GW NUMBER(10,2),
SSSD_NW NUMBER(10,2),
CONSTRAINTS PK_SHIPMENT_CARTON PRIMARY KEY(SSSD_ID))
TABLESPACE order_data01
STORAGE(
INITIAL 10K
NEXT 10K
MINEXTENTS 5
MAXEXTENTS 10);
ALTER TABLE SHIPMENT_CARTON ADD CONSTRAINTS FK_SHIPMENT_CARTON1 FOREIGN KEY(CTN_MEAS_ID)
REFERENCES CARTON_MEAS(CTN_MEAS_ID);
CREATE TABLE ITEMS_IN_CARTON(
IIC_ID NUMBER(10) NOT NULL,
IIC_QTY NUMBER(10),
SSSD_ID NUMBER(10),
OI_ITEM_ID NUMBER(10),
CONSTRAINTS PK_ITEMS_IN_CARTON PRIMARY KEY(IIC_ID))
TABLESPACE order_data01
STORAGE(
INITIAL 10K
NEXT 10K
MINEXTENTS 5
MAXEXTENTS 10);
ALTER TABLE ITEMS_IN_CARTON ADD CONSTRAINTS FK_ITEMS_IN_CARTON1 FOREIGN KEY(SSSD_ID)
REFERENCES SHIPMENT_CARTON(SSS_ID);
ALTER TABLE ITEMS_IN_CARTON ADD CONSTRAINTS FK_ITEMS_IN_CARTON2 FOREIGN KEY(OI_ITEM_ID)
REFERENCES ORDER_ITEM(OI_ITEM_ID);
REQUIREMENT:
More than 1 itemcode(s) will be put in 1 carton.
Solution:
I did it's master detail entry wherein the user will initially select the carton size(CTN_MEAS_ID), enter no of carton(SSSD_NO_CTN),
gross weight(SSSD_GW), net weight(SSSD_NW) and primary key (SSSD_ID sequence generated) in table SHIPMENT_CARTON(Master Block Entry).
Afterwhich, user will select itemcodes(OI_ITEM_ID), enter the quantity(IIC_QTY) and primary key (IIC_ID sequence generated) in
ITEMS_IN_CARTON (Detail Block Entry).
MY NEW REQUIREMENT:
More than 1 itemcode(s) will be put in 1 carton.
User will initially select the itemcode(s)and quantity , then select the carton size,enter the no of carton, gross & net weight.
How to implement it in reverse manner.
I hope somebody out there can suggest how to do it in Forms10g.
Thank you in Advance...It depends on what the front end should look like and whether the carton details are known immediately after the items have been entered or not. I'll assume the carton details will not be known for some time.
Presumably you have other tables in the model, for example there would probably be a table above shipment_carton. "Shipment" perhaps? If not then create it and foreign key both tables here to the Shipment table. When you add items you add them to a shipment and when you add cartons you add them to a shipment. Then you just have to assign items to cartons within that shipment. The foreign key from items to cartons must now include the Carton AND Shipment primary key columns so you know that the items are not being put into another shipment's carton. -
Dear all
I have two columns in al table its data is like the following
example :
stuff description
desk is red with glass
desk is rounded
desk having four legs
chair its color is brown
this is how the data in the table
what i want is to select from the column stuff the thing with the different description for it without repeating this stuff
such as the following :
desk is red with glass
is rounded
having four legs
chair its color is brown
Will you help me in that select please as fast as possiple thnks alotuser513954 wrote:
Will you help me in that select please as fast as possiple thnks alotUrgent is it?
Why? Have you forgotten to do your coursework and you'll get thrown off your course if you don't hand it in today?
What makes you believe that your request for help is more important than someone else who has requested help? It's very rude to assume you are more important than somebody else, and I'm sure they would like an answer to their issue as soon as they can get one too, but they've generally been polite and not demanded that it is urgent.
Also, you assume that people giving answers are all sitting here just waiting to answer your question for you. That's not so. We're all volunteers with our own jobs to do. How dare you presume to demand our attention with urgency.
If you want help and you want it answering quickly you simply just put your issue forward and provide as much valuable information as possible.
Looking at your post you haven't told us what database version you are using, you haven't provided any create table DDL's and insert statements to populate that with sample data, and you haven't even shown us that you've had a go at doing something yourself.
You will find if you post on here demanding your post is urgent then most people will just ignore it, some will tell you to get lost, and some will explain to you why you shouldn't post "urgent" requests. Occasionally you may find somebody who's got nothing better to do who will actually provide you with an answer, but you really are limiting your options by not asking properly. -
hi all
thanks in advance
how do following
select-options s_budat like mkpf-budat take dummy not dispaly
display parameter for taking date
and user insert date in parameter this date assing to dummy
select option which are not display
plz
thankshi Anand,
check out this code.
data : date like mkpf-budat.
select-options date1 for date.
Hope this code will help you .
By
Pari -
Hi There can anybody assist me with this question?
I would like to know how much data a 3.3 minute clip downloaded from adobe revel to my smart phone is in real terms how much data? The reason I ask, is that my mobile service provider, is wanting to charge me, despite having 1gig allowance on my account - so my concern here is simply to determine the amount data downloaded relative to a 3.3 minute clip : does this represent 50 mb or 200mb or more! could some please advise?
Regards,
RicoroyalHi there,
I cannot speak for all video formats but I have 2 videos I shot - one from my iphone and one from an iPad mini. Both are a little over 3 minutes and they are about 400mb each.
Hope that helps,
Glenyse -
How to get this required information via SQL
Dear All
I have a requirement & i am not getting a way out of it.
Consider Sample Data as
Table Name >> INVOICE
Data :
INV_N0 PRODUCT_NO SOLD_QTY
1 1 2
1 2 3
1 3 1
2 2 11
2 3 12
3 2 10
4 3 22
Now my requirement is to fetch data of particular invoices that contains a certain set of products.
e.g.
If i want invoice that contain only product no 2 & 3 then my out put should be.
INV_N0 PRODUCT_NO SOLD_QTY
1 1 2
1 2 3
1 3 1
2 2 11
2 3 12
Means i want to fetch data of complete invoice containing a certain set of products from that invoice.
Regards
Capri
Edited by: Capri on Apr 8, 2010 4:57 AMprobaby not the best performance, but you have a PRODUCT IN () list, which is what you wanted
with t as (
select 1 inv_no, 1 product, 2 sold_qty from dual union all
select 1, 2, 3 from dual union all
select 1, 3, 1 from dual union all
select 2, 2, 11 from dual union all
select 2, 3, 12 from dual union all
select 3, 2, 10 from dual union all
select 4, 3, 22 from dual
, tt as (
select t1.*, (select count(*)
from t t2
where product in (2,3)
and t1.inv_no = t2.inv_no) cn
from t t1
select * from tt
where cn > 1 -
How to maintain experience requirement for a position
Hi All,
There is a very common requirement for a position like "5 years of experience in management level" I dont know how to maintain this requirement in SAP. right now we have created a qualification named "Management Experience" with a time scale assigned to it with a validity period of one year so HR dept must change the scale evey year. It works but it's not best practice. I know if there is a way we can use employee past and current work history to determine the level of experience and also how to define this requirement in position profile.
Thanks in advance,
ShahinI guess it will be SU12 Transaction.
Thanks
Seshu -
How to associate independent requirements to specific customers in SAP
Hello Experts,
I have a question about customer independent requirements.
My client has some customers for which they expect more sales. So, they want to enter some specific requirements, start producing and want to make sure that they are kept reserved for these customers and do not get consumed by the others.
They do not wish to enter fake sales orders into the system until they actually get the order , nor do they wish to go for scheduling agreements, with these customers.
So, I thought of using customer independent requirements and tried transaction code MD81 but in MD81, there was no place to enter a customer no. anywhere. Without mentioning the customer, how do we ensure that the stock produced shall not get used up by other requirements? We are followng a make-to-stock scenario and planning to run MRP and generate planned orders to carry out the production.
Can anyone please suggest as how to handle this requirement in SAP?
Regards
PapriHi,
MD81 is for Customer Independent Requirement and this is a specific requirement from customer.
Production execution happens only after receiving the requirement from the customer i.e. MD81 then rest of the process is same only difference is produced stock ( sale order stock ) is delivered only to the particular customer and It can not be delivered to another customer independent requirement.
In your case it is possible to associate with specific customer because your are creating the requirement through MD81.
Regards,
Narresh -
How to get this column (SYSDATE-CREATEDON DATE)
I have a reporting requirement to get a column subtracting two date fields and result gets displayed in days.
I have a notification number with CreatedON date field in my DSO. Now for notification age, I have to subtract SYSDATE(which is current day)-CREATEDON date(for Notification Number)
AGE(in days) = SYSDATE - CREATEDON DATE
Can anyone give me some suggestion on how to fulfill this requirement?
Thanks in Advance
NHi,
The steps in Query designer 7 are :
1) Open your Query
2) Go to Columns area and create a structure and under this strcuture create a formula by context menu.
3) In the edit screen of Formula : Right click on <i>Formula varibles</i>(Available operands) and select new varible
4) Now select edit option from the context menu of the new varible :
in general tab page take processing by <i>Customer Exit</i> and change the desription to FV1.
in details tab page , take variable as Mandatory and remove tick mark for <i>Ready for input</i>.
In currency/unit tab page . take Dimensions as Date.
5) Again ,In the edit screen of Formula : Right click on <i>Formula varibles</i>(Available operands) and select new varible
6) Now select edit option from the context menu of the new varible :
In general tab page take processing by <i>Replace ment path</i> and change the desription to FV2.And Take 0NOTIFICATION as <i>reference Characterstic</i>.
In the REplace ment path tab page , Attribute value for<i> Varibale represents</i> and tehn take CREATEDON as the <i>Attribute</i>.
In details tab page , take variable as Mandatory and remove tick mark for <i>Ready for input</i>.
In currency/unit tab page . take Dimensions as Date.
7) Now in te formula created in teh step 2 , take FV1-Fv2 as <i>Detail View</i>
8) Write the code for FV1 in Cmod as below:
DATA: L_S_RANGE TYPE RSR_S_RANGESID.
DATA: L_S_RANGE2 TYPE RSR_S_RANGESID.
DATA: LOC_VAR_RANGE LIKE RRRANGEEXIT.
DATA: LOC_VAR_RANGE2 LIKE RRRANGEEXIT.
CASE I_VNAM.
WHEN 'ZFV1'.
IF I_STEP = 2.
L_S_RANGE-LOW = sy-datum.
L_S_RANGE-SIGN = 'I'.
L_S_RANGE-OPT = 'EQ'.
APPEND L_S_RANGE TO E_T_RANGE.
ENDLOOP.
ENDIF.
endcase.
With rgds,
Anil Kumar Sharma .P
With rgds,
Anil Kuamr Sharma .P -
For this sample data how to fulfill my requirement ?
For this sample data how to fulfill my requirement ?
with temp as
select 'MON' WEEKDAY,'9-10' TIMING,'I' CLASS FROM DUAL UNION
select 'MON' WEEKDAY,'9-10' TIMING,'II' CLASS FROM DUAL UNION
select 'MON' WEEKDAY,'9-10' TIMING,'III' CLASS FROM DUAL UNION
select 'MON' WEEKDAY,'10-11' TIMING,'I' CLASS FROM DUAL UNION
select 'MON' WEEKDAY,'10-11' TIMING,'II' CLASS FROM DUAL UNION
select 'TUE' WEEKDAY,'9-10' TIMING,'I' CLASS FROM DUAL UNION
select 'TUE' WEEKDAY,'9-10' TIMING,'II' CLASS FROM DUAL
select ?? (what will be the query ??)
How can i get output data in this way :
WEEKDAY TIMING CLASS
MON 9-10 I,II,III
MON 10-11 I,II
TUE 9-10 I,IIIf in 11g, you can use LISTAGG
with temp as
select 'MON' WEEKDAY,'9-10' TIMING,'I' CLASS FROM DUAL UNION
select 'MON' WEEKDAY,'9-10' TIMING,'II' CLASS FROM DUAL UNION
select 'MON' WEEKDAY,'9-10' TIMING,'III' CLASS FROM DUAL UNION
select 'MON' WEEKDAY,'10-11' TIMING,'I' CLASS FROM DUAL UNION
select 'MON' WEEKDAY,'10-11' TIMING,'II' CLASS FROM DUAL UNION
select 'TUE' WEEKDAY,'9-10' TIMING,'I' CLASS FROM DUAL UNION
select 'TUE' WEEKDAY,'9-10' TIMING,'II' CLASS FROM DUAL
select
WEEKDAY,
TIMING,
LISTAGG(CLASS,',') WITHIN GROUP (order by 1) as class_aggregate
from temp
GROUP by WEEKDAY,TIMING;
WEEKDAY TIMING CLASS_AGGREGATE
MON 9-10 I,II,III
MON 10-11 I,II
TUE 9-10 I,IIOther techniques for different versions are also mentioned here :
http://www.oracle-base.com/articles/misc/StringAggregationTechniques.php#listagg
Maybe you are looking for
-
How does one mirror margins on Pages 5.5.2?
Earlier versions of Pages had a "Facing Pages" category in which to set margins as "inner" and "outer". This permitted margins on the bound side of the page to be different from those on the outer edge of the page. I am having difficulty finding so
-
Connect to secure LDAP server from iWS 4.1
I am trying to connect to a secure LDAP server that is expecting client authentication. I installed a client cert (provided by the LDAP admin) on the iWS admin server, and I can search/view user records housed on the LDAP server. However, when I try
-
Dbms_output.put_line truncate leading space?
Hi guys, I am using Oracle 9i R2. Does anyone know that if 9i R2 dbms_output.put_line will truncate the leading space from a output line? I am running the function directly from sqlplus. Is it a default behaviour and could it be changed? Thanks for y
-
Org.hibernate.AssertionFailure: scrollable result sets are not enabled
I am using hibernate with oracle and got the following code snippet: ScrollableResults results = criteria.scroll(ScrollMode.SCROLL_SENSITIVE); When I run the above snippet I get the following exception: org.hibernate.AssertionFailure: scrollable resu
-
Pointer turns to 'hand' over image while in editor disallowing any access to tool bar. How do I avoid?