Regarding working in XI
Hi,
I am presently working in ABAP.
Now we are getting requirement in XI.
Work Scope: <b>info from SNP to XI converted to an ORDERS05 IDOC to SAP-R/3</b>.
Following are the other words they have used while sending mail for above requirement:
<b>The use of XI to create an ORDERS05 IDOC to send to SAP-R/3 system.
The source for the IDOC is out of APO.
The target for the IDOC is SAP-R/3 system.</b>
Complete requirement we are yet to get. We will get that after call with on-site guys.
Now i need to learn XI and work on above XI requirement.
Can anybody help what are the concepts i have to learn to be able to work on above requirement. This project will be started in next <b>3/4</b> days.
Before that i have to get accustomed to XI.
XI version we are going to work: <b>XI3.0</b>
Can anybody help in this regard.
Also provide me any material which will help me learn concepts required for working on above requirement.
Also please explain what is the above requirement is all about.
Thanks in advance.
Thanks,
Deep.
Hi Deep,
These blogs are good to learn XI.
<a href="/people/sravya.talanki2/blog/2006/12/25/aspirant-to-learn-sap-xiyou-won-the-jackpot-if-you-read-this-part-i to learn SAP XI...You won the Jackpot if you read this!-Part I</a> By Sravya Talanki
<a href="/people/sravya.talanki2/blog/2006/12/26/aspirant-to-learn-sap-xiyou-won-the-jackpot-if-you-read-this-part-ii to learn SAP XI...You won the Jackpot if you read this!-Part 2</a> By Sravya Talanki
<a href="/people/sravya.talanki2/blog/2006/12/27/aspirant-to-learn-sap-xiyou-won-the-jackpot-if-you-read-this-part-iii to learn SAP XI...You won the Jackpot if you read this!-Part III</a> By Sravya Talanki
Your Scenario would be APO - XI - R3.
Here is a similar scenario integrating he MDM to R3 thru XI.
<a href="/people/balas.gorla/blog/2006/09/27/mdm-xi-r3-integration Integration</a> By Bala
<a href="/people/harrison.holland5/blog/2006/12/20/xi-configuration-for-mdm-integration--sample-scenario Configuration for MDM Integration - Sample Scenario</a> By Harrison Holland
This scenario is about R3 to MDM via XI.
<a href="/people/balas.gorla/blog/2007/02/05/r3-xi-mdm-outbound-scenario (Outbound Scenario)</a> By Bala
Regards
San
Remember to set the thread to solved when you have received a solution there is a Way.
Similar Messages
-
Issue regarding [Work Flow] Business Object Event Raise in ABAP Program
Hi All,
I have one issue regarding [Work Flow] Business Object Event Raise in ABAP Program.
Actual TDS is as below:
If E message type written, raise Business object BUS2005 (Production order) Event PickShortage for production order passing warehouse, transfer request
(BUS2065 Object key) in event container. Also include table of text version of error
messages for this set of Transfer
Request.
Can anybody tell me how can i write it technically in ABAP Code.
Can anybody solve this issue!
Thanks in advance.
Thanks,
Deep.Hi,
Can anybody solve above posted issue!
Thanks,
Deep. -
hi,
can you please tell me wht is work flow .
thanks & regards,
ramnareshHi
Workflow automates the steps and activities in a business process according to predefined procedures and rules.
Workflow presents information and documents to the appropriate knowledge worker or agent (another entity such as a program) to make a decision or perform an activity.
Workflow tracks each and every step in the process flow and maintains an ongoing status.
Workflow also collects and reports all of the metrics associated with the execution and completion of the process.
Check the below links u will get lot of info..
http://www.sap-press.com/product.cfm?account=&product=H950
Workflow
http://www.sap-img.com/workflow/sap-workflow.htm
http://help.sap.com/saphelp_47x200/helpdata/en/a5/172437130e0d09e10000009b38f839/frameset.htm
For examples on WorkFlow...check the below link..
http://help.sap.com/saphelp_47x200/helpdata/en/3d/6a9b3c874da309e10000000a114027/frameset.htm
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PSWFL/PSWFL.pdf
http://help.sap.com/saphelp_47x200/helpdata/en/4a/dac507002f11d295340000e82dec10/frameset.htm
http://www.workflowing.com/id18.htm
http://www.e-workflow.org/
http://web.mit.edu/sapr3/dev/newdevstand.html
Go through the following links on FORK :
http://help.sap.com/saphelp_nw04/helpdata/en/24/e2283f2bbad036e10000000a114084/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/8d/25f1e7454311d189430000e829fbbd/frameset.htm
http://help.sap.com/saphelp_46c/helpdata/en/c5/e4a930453d11d189430000e829fbbd/content.htm
http://www.insightcp.com/res_23.htm
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCBMTWFMSTART/BCBMTWFMSTART.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCBMTWFMDEMO/BCBMTWFMDEMO.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCBMTWFMPM/BCBMTWFMPM.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PSWFL/PSWFL.pdf
For more reference on workflow: http://****************/Tutorials/Workflow/Workflow.htm
http://help.sap.com/saphelp_erp2005vp/helpdata/en/04/9277a346f311d189470000e829fbbd/frameset.htm
Check these links.
http://www.sapgenie.com/workflow/index.htm
/people/ginger.gatling/blog/2005/12/01/link-workflow-business-objects-to-your-collaboration-tasks
http://help.sap.com/saphelp_nw04/helpdata/en/92/bc26a6ec2b11d2b4b5006094b9ea0d/content.htm
http://help.sap.com/saphelp_bw33/helpdata/en/92/bc26a6ec2b11d2b4b5006094b9ea0d/content.htm
http://help.sap.com/saphelp_bw31/helpdata/en/8d/25f94b454311d189430000e829fbbd/content.htm
http://www.sap-press.com/product.cfm?account=&product=H950
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PSWFL/PSWFL.pdf
http://www.workflowing.com/id18.htm
http://www.e-workflow.org/
Workflow
http://www.sap-img.com/workflow/sap-workflow.htm
http://help.sap.com/saphelp_47x200/helpdata/en/a5/172437130e0d09e10000009b38f839/frameset.htm
For examples on WorkFlow...check the below link..
http://help.sap.com/saphelp_47x200/helpdata/en/3d/6a9b3c874da309e10000000a114027/frameset.htm
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PSWFL/PSWFL.pdf
http://help.sap.com/saphelp_47x200/helpdata/en/4a/dac507002f11d295340000e82dec10/frameset.htm
http://www.workflowing.com/id18.htm
http://www.e-workflow.org/
http://web.mit.edu/sapr3/dev/newdevstand.html
http://www.sap-img.com/workflow/sap-workflow.htm
http://help.sap.com/saphelp_47x200/helpdata/en/a5/172437130e0d09e10000009b38f839/frameset.htm
For examples on WorkFlow...check the below link..
http://help.sap.com/saphelp_47x200/helpdata/en/3d/6a9b3c874da309e10000000a114027/frameset.htm
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PSWFL/PSWFL.pdf
http://help.sap.com/saphelp_47x200/helpdata/en/4a/dac507002f11d295340000e82dec10/frameset.htm
http://www.workflowing.com/id18.htm
http://www.e-workflow.org/
http://web.mit.edu/sapr3/dev/newdevstand.html
Workflow tutorials with step-by-step and with screenshots are available at http://www.****************/Tutorials/Workflow/Workflow.htm
http://help.sap.com/saphelp_erp2005vp/helpdata/en/42/c14a9b55103116e10000000a1553f7/frameset.htm
http://help.sap.com/saphelp_erp2005vp/helpdata/en/c5/e4a930453d11d189430000e829fbbd/frameset.htm
http://www.sapgenie.com/workflow/
http://www.sap-img.com/workflow/sap-workflow.htm
http://help.sap.com/saphelp_47x200/helpdata/en/3d/6a9b3c874da309e10000000a114027/frameset.htm
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PSWFL/PSWFL.pdf
http://help.sap.com/saphelp_47x200/helpdata/en/4a/dac507002f11d295340000e82dec10/frameset.htm
http://www.sap-basis-abap.com/wf/sap-business-workflow.htm
https://forums.sdn.sap.com/click.jspa?searchID=791580&messageID=2857887
https://forums.sdn.sap.com/click.jspa?searchID=791580&messageID=2855919
https://forums.sdn.sap.com/click.jspa?searchID=791580&messageID=2735228
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCBMTWFMSTART/BCBMTWFMSTART.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCBMTWFMDEMO/BCBMTWFMDEMO.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCBMTWFMPM/BCBMTWFMPM.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PSWFL/PSWFL.pdf
Debug a workflow.
This has a step by step procedure :
http://fuller.mit.edu/workflow/debugging.pdf
www.erpgenie.com/sap/workflow/debugging.htm
http://www.erpgenie.com/workflow/debugging.htm?2b5de440
Workflow tutorials with step-by-step and with screenshots are available at
http://www.****************/Tutorials/Workflow/Workflow.htm
http://www.sapgenie.com/workflow/
http://www.sap-img.com/workflow/sap-workflow.htm
http://help.sap.com/saphelp_47x200/helpdata/en/3d/6a9b3c874da309e10000000a114027/frameset.htm
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PSWFL/PSWFL.pdf
http://help.sap.com/saphelp_47x200/helpdata/en/4a/dac507002f11d295340000e82dec10/frameset.htm
http://www.workflowing.com/id18.htm
http://www.e-workflow.org/
http://web.mit.edu/sapr3/dev/newdevstand.html
http://www.sap-basis-abap.com/wf/sap-business-workflow.htm
https://forums.sdn.sap.com/click.jspa?searchID=791580&messageID=2857887
https://forums.sdn.sap.com/click.jspa?searchID=791580&messageID=2855919
https://forums.sdn.sap.com/click.jspa?searchID=791580&messageID=2735228
http://www.sapbrain.com/TUTORIALS/TECHNICAL/WORKFLOW_tutorial.html
Regarding Work Flow
work flow scenarios.
1. applying for a leave.
2. approval process.
3. material creation process.
4. mainly work flow is for notification purpose.
chk this links
http://help.sap.com/saphelp_erp2005/helpdata/en/fb/135962457311d189440000e829fbbd/frameset.htm
http://help.sap.com/saphelp_erp2005/helpdata/en/c5/e4a930453d11d189430000e829fbbd/frameset.htm
Workflow
http://www.sap-img.com/workflow/sap-workflow.htm
http://help.sap.com/saphelp_47x200/helpdata/en/a5/172437130e0d09e10000009b38f839/frameset.htm
For examples on WorkFlow...check the below link..
http://help.sap.com/saphelp_47x200/helpdata/en/3d/6a9b3c874da309e10000000a114027/frameset.htm
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PSWFL/PSWFL.pdf
http://help.sap.com/saphelp_47x200/helpdata/en/4a/dac507002f11d295340000e82dec10/frameset.htm
http://www.workflowing.com/id18.htm
http://www.e-workflow.org/
http://web.mit.edu/sapr3/dev/newdevstand.html
http://www.erpgenie.com/workflow/index.htm
http://www.sap-basis-abap.com/wf/sap-business-workflow.htm
http://www.insightcp.com/res_23.htm
A good tutorial
http://www.thespot4sap.com/articles/Invoice_Verification_Automation_Using_SAP_Workflow.asp
http://www.sap-basis-abap.com/wf/sap-business-workflow.htm
/people/alan.rickayzen/blog
/people/jocelyn.dart/blog/2006/06/19/why-use-abap-oo-with-workflow
a good book
http://www.sap-press.com/product.cfm?account=&product=H950
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PSWFL/PSWFL.pdf
http://help.sap.com/saphelp_47x200/helpdata/en/4a/dac507002f11d295340000e82dec10/frameset.htm
http://www.sap-press.com/downloads/h950_preview.pdf
Check the following PDF
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCBMTWFMSTART/BCBMTWFMSTART.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCBMTWFMDEMO/BCBMTWFMDEMO.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCBMTWFMPM/BCBMTWFMPM.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PSWFL/PSWFL.pdf
also seach the workflow forum: SAP Business Workflow
Regards
Anji -
Regarding [Work Flow] Business Object Event Raise in ABAP Program
Hi All,
I have one issue regarding [Work Flow] Business Object Event Raise in ABAP Program.
Actual TDS is as below:
If E message type written, raise Business object BUS2005 (Production order) Event PickShortage for production order passing warehouse, transfer request
(BUS2065 Object key) in event container. Also include table of text version of error
messages for this set of Transfer
Request.
Can anybody tell me how can i write it technically in ABAP Code.
Can anybody solve this issue!
Thanks in advance.
Thanks,
Deep.Hi,
Can anybody solve above posted issue!
Thanks,
Deep. -
Best practice regarding work flow (cutting, applying effects, exporting etc)
Hi!
I've been asked to shoot and edit a music video for a friend of mine, and I'm trying to figure out the best way to manage this project in PrE (in what order to do things and so on). I have a picture in my head which make sence, but I'd like to have it confirmed. If you've been following the "Very disappointed with Premiere Elements" thread, you know I'm not a fan of how the applying of effects works, when having a lot of cuts between scenes and clips etc. A few of the steps below is meant to make that process more effective.
So, here's my idea, from the begining and in detail:
1. Download the appropriate clips from the camera (in this case 1280x720, H.264 mov's from an EOS 500D).
2. Create a PrE-project for each clip and maybe trim the in and outs a bit, if needed.
3. Export each clip to uncompressed avi's.
4. Create the main project file and import all the uncompressed avi's.
5. Insert the clips in on appropriate tracks in the timeline.
6. Do all the cutting, triming and sync as complete as possible, without thinking about effects.
7. When finished, open up each of the smaller clip projects and add the desired effects. This will mainly include contrasts, color corrections, noise etc, in order to get the right look and feel to each clip/scene.
8. Again, export the clips to uncompressed avi's and overwrite the previous versions.
9. Open up the main project, which now should contain the clips with look-and-feel effects visible.
10. Add some additional effects if needed.
11. Export/share, and you're done.
Of course I will end up going back and forth through these steps anyway, but as a basic plan it seems reasonable. I see three main positive aspects:
1. The look-and-feel effects will be applied on the raw material, before the converting process. This should result in a slightly better quality. Perhaps not noticeable, but anyway.
2. The main project will be more CPU friendly and easier to work with.
3. If I want to tweek the look-and-feel effect to a clip/scene, I don't have to do it on every split (I will have a lot of splits, so applying and changing the effect parameters will be time consuming and ineffective). Of course, opening up the clip's specific project, changing the effect and then export to avi, will also take time, but point 1 and 2 makes up for that.
Have in mind that it is a music video project, to put things in the right context. We'll probably have a few parallel stories/scenes, with lots of cutting in and out between them. The timeline will probably look insane.
So, am I thinking in the right direction here? Any traps I might fall into along the way?
Regards
FredrikFredrik,
Though similar to your workflow, here is how I would do it.
Import those "raw" Clips into a Project, and do my Trimming in that Project, relying on the Source Monitor to establish the In & Out Points for each, and also using different Instances of any longer "master Clip.". I would also do my CC (Color Correction), and all density (Levels, etc.) Effects here. Do not Trim too closely, as you will want to make sure that you have adequate Handles to work with later on.
Use the WAB (Work Area Bar) to Export the material that I needed in "chunks," using either Lagarith Lossless CODEC, or UT Lossless CODEC *
Import my music into a new Project and listen over and over, making notes on what visuals (those Exported/Shared Clips from above) I have at my disposal. At this point, I would also be making notes as to some of the Effects that I felt went with the music, based on my knowledge of the available visuals.
Import my Exported/Shared, color graded Clips.
Assemble those Clips, and Trim even more.
Watch and listen carefully, going back to my notes.
Apply any additional Effects now.
Watch and listen carefully.
Tighten any edits, adjust any applied Effects, and perhaps add (or remove existing) more Effects.
Watch and listen carefully.
Output an "approval" AV for the band/client.
Tweak, as is necessary.
Output "final approval" AV.
Tweak, as is necessary.
Export/Share, to desired delivery formats.
Invoice the client.
Cash check.
Declare "wine-thirty."
This is very similar to your proposed workflow.
Good luck,
Hunt
* I have used Lagarith Lossless CODEC with my PrE 4.0, but have not tried UT. Both work fine in PrPro, so I assume that UT Lossless will work in PrE too. These CODEC's are fairly quick in processing/Exporting, and offer the benefit of smaller files, than Uncompressed AVI. They are visually lossless. The resultant files will NOT be tiny, so one would still need a good amount of HDD space. Neither CODEC introduces any artifacts, or color degredation. -
Regarding work flow for credit block release in sales order
Dear Experts,
Kindly help me with work flow-
my scenario is if customers credit limit of 5000$ exceeds in sales order it should be blocked and notification should go to authorize person through simple mail to release this block.
for this i have done settings in out control i have used output type krml and determined partner as employee responsible to release block in customer master but mail is not triggered to authorized person for credit block and how i can create work flow for this so that authorized person should get notify for credit block as well he releases block also.
Regards
SupriyaDear supriyaparimal,
Please find the below points to fix your issue.
1. Configure the out put determination by using the condition type KRML.(Hope oyu have done it already).
2.Maintain the condition records in VV11 for condition type "KRML"
3.Then select the condition record and click the communication tab .
4. If you want to give any information you can use "Note for recipient".
5. If the information has to be sent to relevant person you recipient name in the recipient column.
Save the documnet.
If you raise the sales order and if it is blocked then system automatically send the information to respective person.
You can get this in formation in ""SBWP" transaction code.
Check the in box, the information what you have mentioned in the condition records will be appeared.
Please let me know if you have any clarifications
Thanks&Regards
raghu.k -
Basic query regarding work-area and select query
hi
dear sdn members,
thanks too all for solving all my query's up till now
i am stuck in a problem need help
1) why basically work-area has been used ? the sole purpose
2) different types of select query ? only coding examples
note: no links pls
regards,
virushi,
Work Area
Description for a data object that is particularly useful when working with internal tables or database tables as a source for changing operations or a target for reading operations.
WORKAREA is a structure that can hold only one record at a time. It is a collection of fields. We use workarea as we cannot directly read from a table. In order to interact with a table we need workarea. When a Select Statement is executed on a table then the first record is read and put into the header of the table and from there put into the header or the workarea(of the same structure as that of the table)of the internal table and then transferred top the body of the internal table or directly displayed from the workarea.
Each row in a table is a record and each column is a field.
While adding or retrieving records to / from internal table we have to keep the record temporarily.
The area where this record is kept is called as work area for the internal table. The area must have the same structure as that of internal table. An internal table consists of a body and an optional header line.
Header line is a implicit work area for the internal table. It depends on how the internal table is declared that the itab will have the header line or not.
.g.
data: begin of itab occurs 10,
ab type c,
cd type i,
end of itab. " this table will have the header line.
data: wa_itab like itab. " explicit work area for itab
data: itab1 like itab occurs 10. " table is without header line.
The header line is a field string with the same structure as a row of the body, but it can only hold a single row.
It is a buffer used to hold each record before it is added or each record as it is retrieved from the internal table. It is the default work area for the internal table.
With header line
SELECT.
Put the curson on that word and press F1 . You can see the whole documentation for select statements.
select statements :
SELECT result
FROM source
INTO|APPENDING target
[[FOR ALL ENTRIES IN itab] WHERE sql_cond]
Effect
SELECT is an Open-SQL-statement for reading data from one or several database tables into data objects.
The select statement reads a result set (whose structure is determined in result ) from the database tables specified in source, and assigns the data from the result set to the data objects specified in target. You can restrict the result set using the WHERE addition. The addition GROUP BY compresses several database rows into a single row of the result set. The addition HAVING restricts the compressed rows. The addition ORDER BY sorts the result set.
The data objects specified in target must match the result set result. This means that the result set is either assigned to the data objects in one step, or by row, or by packets of rows. In the second and third case, the SELECT statement opens a loop, which which must be closed using ENDSELECT. For every loop pass, the SELECT-statement assigns a row or a packet of rows to the data objects specified in target. If the last row was assigned or if the result set is empty, then SELECT branches to ENDSELECT . A database cursor is opened implicitly to process a SELECT-loop, and is closed again when the loop is ended. You can end the loop using the statements from section leave loops.
Up to the INTO resp. APPENDING addition, the entries in the SELECTstatement define which data should be read by the database in which form. This requirement is translated in the database interface for the database system´s programming interface and is then passed to the database system. The data are read in packets by the database and are transported to the application server by the database server. On the application server, the data are transferred to the ABAP program´s data objects in accordance with the data specified in the INTO and APPENDING additions.
System Fields
The SELECT statement sets the values of the system fields sy-subrc and sy-dbcnt.
sy-subrc Relevance
0 The SELECT statement sets sy-subrc to 0 for every pass by value to an ABAP data object. The ENDSELECT statement sets sy-subrc to 0 if at least one row was transferred in the SELECT loop.
4 The SELECT statement sets sy-subrc to 4 if the result set is empty, that is, if no data was found in the database.
8 The SELECT statement sets sy-subrc to 8 if the FOR UPDATE addition is used in result, without the primary key being specified fully after WHERE.
After every value that is transferred to an ABAP data object, the SELECT statement sets sy-dbcnt to the number of rows that were transferred. If the result set is empty, sy-dbcnt is set to 0.
Notes
Outside classes, you do not need to specify the target area with INTO or APPENDING if a single database table or a single view is specified statically after FROM, and a table work area dbtab was declared with the TABLES statement for the corresponding database table or view. In this case, the system supplements the SELECT-statement implicitly with the addition INTO dbtab.
Although the WHERE-condition is optional, you should always specify it for performance reasons, and the result set should not be restricted on the application server.
SELECT-loops can be nested. For performance reasons, you should check whether a join or a sub-query would be more effective.
Within a SELECT-loop you cannot execute any statements that lead to a database commit and consequently cause the corresponding database cursor to close.
SELECT - result
Syntax
... lines columns ... .
Effect
The data in result defines whether the resulting set consists of multiple rows (table-like structure) or a single row ( flat structure). It specifies the columns to be read and defines their names in the resulting set. Note that column names from the database table can be changed. For single columns, aggregate expressions can be used to specify aggregates. Identical rows in the resulting set can be excluded, and individual rows can be protected from parallel changes by another program.
The data in result consists of data for the rows lines and for the columns columns.
SELECT - lines
Syntax
... { SINGLE }
| { { } } ... .
Alternatives:
1. ... SINGLE
2. ... { }
Effect
The data in lines specifies that the resulting set has either multiple lines or a single line.
Alternative 1
... SINGLE
Effect
If SINGLE is specified, the resulting set has a single line. If the remaining additions to the SELECT command select more than one line from the database, the first line that is found is entered into the resulting set. The data objects specified after INTO may not be internal tables, and the APPENDING addition may not be used.
An exclusive lock can be set for this line using the FOR UPDATE addition when a single line is being read with SINGLE. The SELECT command is used in this case only if all primary key fields in logical expressions linked by AND are checked to make sure they are the same in the WHERE condition. Otherwise, the resulting set is empty and sy-subrc is set to 8. If the lock causes a deadlock, an exception occurs. If the FOR UPDATE addition is used, the SELECT command circumvents SAP buffering.
Note
When SINGLE is being specified, the lines to be read should be clearly specified in the WHERE condition, for the sake of efficiency. When the data is read from a database table, the system does this by specifying comparison values for the primary key.
Alternative 2
Effect
If SINGLE is not specified and if columns does not contain only aggregate expressions, the resulting set has multiple lines. All database lines that are selected by the remaining additions of the SELECT command are included in the resulting list. If the ORDER BY addition is not used, the order of the lines in the resulting list is not defined and, if the same SELECT command is executed multiple times, the order may be different each time. A data object specified after INTO can be an internal table and the APPENDING addition can be used. If no internal table is specified after INTO or APPENDING, the SELECT command triggers a loop that has to be closed using ENDSELECT.
If multiple lines are read without SINGLE, the DISTINCT addition can be used to exclude duplicate lines from the resulting list. If DISTINCT is used, the SELECT command circumvents SAP buffering. DISTINCT cannot be used in the following situations:
If a column specified in columns has the type STRING, RAWSTRING, LCHAR or LRAW
If the system tries to access pool or cluster tables and single columns are specified in columns.
Note
When specifying DISTINCT, note that you have to carry out sort operations in the database system for this.
SELECT - columns
Syntax
| { {col1|aggregate( col1 )}
{col2|aggregate( col2 )} ... }
| (column_syntax) ... .
Alternatives:
1. ... *
2. ... {col1|aggregate( col1 )}
{col2|aggregate( col2 )} ...
3. ... (column_syntax)
Effect
The input in columns determines which columns are used to build the resulting set.
Alternative 1
Effect
If * is specified, the resulting set is built based on all columns in the database tables or views specified after FROM, in the order given there. The columns in the resulting set take on the name and data type from the database tables or views. Only one data object can be specified after INTO.
Note
If multiple database tables are specified after FROM, you cannot prevent multiple columns from getting the same name when you specify *.
Alternative 2
... {col1|aggregate( col1 )}
{col2|aggregate( col2 )} ...
Effect
A list of column labels col1 col2 ... is specified in order to build the resulting list from individual columns. An individual column can be specified directly or as an argument of an aggregate function aggregate. The order in which the column labels are specified is up to you and defines the order of the columns in the resulting list. Only if a column of the type LCHAR or LRAW is listed does the corresponding length field also have to be specified directly before it. An individual column can be specified multiple times.
The addition AS can be used to define an alternative column name a1 a2 ... with a maximum of fourteen digits in the resulting set for every column label col1 col2 .... The system uses the alternative column name in the additions INTO|APPENDING CORRESPONDING FIELDS and ORDER BY. .
Column labels
The following column labels are possible:
If only a single database table or a single view is specified after FROM, the column labels in the database table - that is, the names of the components comp1 comp2... - can be specified directly for col1 col2 ... in the structure of the ABAP Dictionary.
If the name of the component occurs in multiple database tables of the FROM addition, but the desired database table or the view dbtab is only specified once after FROM, the names dbtab~comp1 dbtab~comp2 ... have to be specified for col1 col2 .... comp1 comp2 ... are the names of the components in the structure of the ABAP Dictionary.
If the desired database table or view occurs multiple times after FROM, the names tabalias~comp1 tabalias~comp2 ... have to be specified for col1 col2 .... tabalias is the alternative table name of the database table or view defined after FROM, and comp1 comp2 ... are the names of the components in the structure of the ABAP Dictionary.
The data type of a single column in the resulting list is the datatype of the corresponding component in the ABAP Dictionary. The corresponding data object after INTO or APPENDING has to be selected accordingly.
Note
If multiple database tables are specified after FROM, you can use alternative names when specifying single columns to avoid having multiple columns with the same name.
Example
Read specific columns of a single row.
DATA wa TYPE spfli.
SELECT SINGLE carrid connid cityfrom cityto
INTO CORRESPONDING FIELDS OF wa
FROM spfli
WHERE carrid EQ 'LH' AND connid EQ '0400'.
IF sy-subrc EQ 0.
WRITE: / wa-carrid, wa-connid, wa-cityfrom, wa-cityto.
ENDIF.
Alternative 3
... (column_syntax)
Effect
Instead of static data, a data object column_syntax in brackets can be specified, which, when the command is executed, either contains the syntax shown with the static data, or is initial. The data object column_syntax can be a character-type data object or an internal table with a character-type data type. The syntax in column_syntax, like in the ABAP editor, is not case-sensitive. When specifying an internal table, you can distribute the syntax over multiple rows.
If column_syntax is initial when the command is executed, columns is implicitly set to * and all columns are read.
If columns are specificied dynamically without the SINGLE addition, the resulting set is always regarded as having multiple rows.
Notes
Before Release 6.10, you could only specify an internal table with a flat character-type row type for column_syntax with a maximum of 72 characters. Also, before Release 6.10, if you used the DISTINCT addition for dynamic access to pool tables or cluster tables, this was ignored, but since release 6.10, this causes a known exception.
If column_syntax is an internal table with header line, the table body and not the header line is evaluated.
Example
Read out how many flights go to and from a city. The SELECT command is implemented only once in a sub-program. The column data, including aggregate function and the data after GROUP BY, is dynamic. Instead of adding the column data to an internal l_columns table, you could just as easily concatenate it in a character-type l_columns field.
PERFORM my_select USING `CITYFROM`.
ULINE.
PERFORM my_select USING `CITYTO`.
FORM my_select USING l_group TYPE string.
DATA: l_columns TYPE TABLE OF string,
l_container TYPE string,
l_count TYPE i.
APPEND l_group TO l_columns.
APPEND `count( * )` TO l_columns.
SELECT (l_columns)
FROM spfli
INTO (l_container, l_count)
GROUP BY (l_group).
WRITE: / l_count, l_container.
ENDSELECT.
ENDFORM.
SELECT - aggregate
Syntax
... { MAX( col )
| MIN( col )
| AVG( col )
| SUM( col )
| COUNT( DISTINCT col )
| COUNT( * )
| count(*) } ... .
Effect
As many of the specified column labels as you like can be listed in the SELECT command as arguments of the above aggregate expression. In aggregate expressions, a single value is calculated from the values of multiple rows in a column as follows (note that the addition DISTINCT excludes double values from the calculation):
MAX( col ) Determines the maximum value of the value in the column col in the resulting set or in the current group.
MIN( col ) Determines the minimum value of the content of the column col in the resulting set or in the current group.
AVG( col ) Determines the average value of the content of the column col in the resulting set or in the current group. The data type of the column has to be numerical.
SUM( col ) Determines the sum of the content of the column col in the resulting set or in the current group. The data type of the column has to be numerical.
COUNT( DISTINCT col ) Determines the number of different values in the column col in the resulting set or in the current group.
COUNT( * ) (or count(*)) Determines the number of rows in the resulting set or in the current group. No column label is specified in this case.
If you are using aggregate expressions, all column labels that are not listed as an argument of an aggregate function are listed after the addition GROUP BY. The aggregate functions evaluate the content of the groups defined by GROUP BY in the database system and transfer the result to the combined rows of the resulting set.
The data type of aggregate expressions with the function MAX, MIN or SUM is the data type of the corresponding column in the ABAP Dictionary. Aggregate expressions with the function AVG have the data type FLTP, and those with COUNT have the data type INT4. The corresponding data object after INTO or APPENDING has to be selected accordingly.
Note the following points when using aggregate expressions:
If the addition FOR ALL ENTRIES is used in front of WHERE, or if cluster or pool tables are listed after FROM, no other aggregate expressions apart from COUNT( * ) can be used.
Columns of the type STRING or RAWSTRING cannot be used with aggregate functions.
When aggregate expressions are used, the SELECT command makes it unnecessary to use SAP buffering.
Null values are not included in the calculation for the aggregate functions. The result is a null value only if all the rows in the column in question contain the null value.
If only aggregate expressions are used after SELECT, the results set has one row and the addition GROUP BY is not necessary. If a non-table type target area is specified after INTO, the command ENDSELECT cannot be used together with the addition SINGLE. If the aggregate expression count( * ) is not being used, an internal table can be specified after INTO, and the first row of this table is filled.
If aggregate functions are used without GROUP BY being specified at the same time, the resulting set also contains a row if no data is found in the database. If count( * ) is used, the column in question contains the value 0. The columns in the other aggregate functions contain initial values. This row is assigned to the data object specified after INTO, and unless count( * ) is being used exclusively, sy-subrc is set to 0 and sy-dbcnt is set to 1. If count( *) is used exclusively, the addition INTO can be omitted and if no data can be found in the database, sy-subrc is set to 4 and sy-dbcnt is set to 0.
if helpful reward points -
Hi gurus,
Presently I am working for a Engineering and Construction Project, I am new to Project systems. In this project client have one Fabrication unit and 20 Projects across the India. In project site also they are doing some production activities. How to create a work center in this aspect( There is no planned activities as of my knowledge)
Thanks & Regards,
Sudhahai,
you are saying workcenter needed for Fabrication unit,
As per my experiance in Fabrication unit it mainly consist of all types of welding(manuval, MIG, TIG etc) , and also bending and ctting of rods with (power saw, band saw etc).
find out one suitable Activity unit for welding with time, Power consumption etc -
Regarding Work Center Capacities
Dear Exprts,
How many Capacity Categories Can we maintain in Work center.
Regards,
MANOJDear Manoj,
How many Capacity Categories Can we maintain in Work center.
One can maintain any no of Capacity Categories in the work center, provided that you have actually defined/maintained
that no of Capacity categories in customizing.
So while creating work center you can have capacity categories like machine, person, processing unit, lab etc. as per requirements.
Revert back in case of query,
Thanks,
Sudhakar -
If you have worked on Workbook templatesu2026u2026u2026I need some help regarding creation of workbook template.i wanna insert logo bydefault itz not visible when I double click on the position Iu2019m able to viewu2026u2026u2026if you have any idea could you updateu2026
Hi kiran
you need to insert multiple dataprovider indo either several excel sheets or when no navigation ( drill down) is needed into a single one.
By help of convert to formula you can use a blank (new) sheet to reference to all data needed in your bar chart.
The BW functionality will refresh the query sheet(s) and Excel will adopt this to your bar chart.
I just published a new book at Amazon
[SAP BW 7.x reporting|http://www.amazon.com/SAP-7-x-Reporting-performance-Dashboards/dp/1448606268/ref=sr_1_1?ie=UTF8&s=books&qid=1248812442&sr=8-1]
that exactely describes how to build state of the art workbooks and how to visualize your data.
Joerg -
i have a to create a work book in which sheet1 of work book must show some 6 query results and there summary must come in sheet2 of same work book in barchart manner so can any body help me in how to show query result in second sheet of same work book
thanks and regards
kiranHi kiran
you need to insert multiple dataprovider indo either several excel sheets or when no navigation ( drill down) is needed into a single one.
By help of convert to formula you can use a blank (new) sheet to reference to all data needed in your bar chart.
The BW functionality will refresh the query sheet(s) and Excel will adopt this to your bar chart.
I just published a new book at Amazon
[SAP BW 7.x reporting|http://www.amazon.com/SAP-7-x-Reporting-performance-Dashboards/dp/1448606268/ref=sr_1_1?ie=UTF8&s=books&qid=1248812442&sr=8-1]
that exactely describes how to build state of the art workbooks and how to visualize your data.
Joerg -
Regarding work center hierarchy
Hi all,
I have 2 work centers liked to a superior work center in a hirarchy.
Is it possible to do capacity planning at the superior work center level.
The scenario is like this - I will get planned order at a superior work center level. I will convert the planned order into 2 production orders with child work centers in respective order.
Now I want that, when I see the capacity overview for the superior work center, it should be full. That means I want to link the capacities of the child work centers to the parent work center.
Please let me know if it is possible ?
Regards,
YogeshHi,
Work center hierarchies are used in capacity planning to cumulate available capacity and capacity requirements. You can cumulate available capacities from subordinate work centers to a superior work center level in order to determine the total available capacity for the superior work center.
In your situation, I think you need to create two planned orders with the two work centers and after this you will be able to see the capacity requirements cumulated at the superior WC.
Regards
Datta -
Regarding work center master creation In PP
Hi Iam Kiran working on routings and work centers creation.I want to know how the formulaes are derived for caluculating capacities,shedulling,Costing.where can I find study material regarding formulae derivation.For the above mentioned.Please respond if your having any material with respect to this content.
Hi Kiran,
Please use the following transaction to create/check the parameters & formulas,
OP17 - Create formula parameter
OP19 - Maintain standard value key. (The parameters created are entered in this standard value key & this std value key is used in the work center (CR03) basic data tab page)
OP21 - Create Formulas
These formulas are assigned in the capacity, scheduling & costing tab page in the workcenter.
This workcenter is assigned to an operation in the routing (CA03).
Regards,
Senthilkumar -
Regarding work center configuration.
Hi PP Gurus,
We need to take an account to Rated Line Speed (Bottles per minute) (i.e. It should be the current capacity of the bottling line operating at the full rated speed, irrespective of the bottling format).
We're using Discrete Manufacturing scenario and work center (CR01). How could it be taken into account.
Is there any alternte way to put an additional fiueld in work center create (CR01)/work center change (CR02) transaction code?
Thanks & Regards,
Abu Arbab
Edited by: abu arbaba on Jan 30, 2009 9:46 AMhi,
What I mentioned is , create a reference operation set of one operation with that particular work center and maintain operation times as the speed of that line ( 100 bottles for minute should be entered as base qty as 100 and time as 1 min). Call this reference operation set in any routings that uses this line.
If you do this, you don't need additional field in work center and so don't get confused with it.
cheers
Rav -
Regarding work order urgent pls
Hi,
i have a requirement where i need to get the time slots dynamically which i need to use in select query to retrieve data.
the time slots are,
S1 : 8-10 AM
S2 : 10-12
S3 : 12-14
S4 : 14-16
AM : 08-12 and goes on upto 20.00 PM
when u open a workorder in iw33 transaction in the location tab u can find an ABC indicator where we are using these time slots for the work order.
Now my problem is to select the work orders based upon the current systime and timeslot.
For eg: if user executes the report say at 10.00 AM he should get all the work orders falling in the time slots S1. in the same way if he executes the report at 12.00 he should get work orders falling in the time slot S1,S2,AM and the user may execute the report at any time.
can anyone suggest how to implement the code and is there any functional module which takes current time and gives the time slots as output.
In the standard workorder u wont find the time slots as S1, S2,S3 u will find it as A,B,C,D in ABC indicator field of location tab.
pls urgent help me and surely u can expect points.
Message was edited by:
Ravi Kumar Gundacan you make use of the logic as
sy-uzeit+0(2) --> hrs cnt like
08
10
12
14 16
into variables and
case timeslot.
when
endcase .
vl = lower value
vh = higher value and then substitute the same in the
say user has entered a time of 11:40 am
then set the lower value to 8
and higher to 12
vl = 8
vh = 12
do this in the case endcase.
select query
select f1 f2 ...
fx between vl and vh .
regards,
vijay
Maybe you are looking for
-
CX_SY_CONVERSION_NO_NUMBER Error
Hi All, Iam executing a query in Analyser. Iam getting the following error and analyser id getting disconnected from server. The argument '7.3774100000000000E+05' cannot be interpreted as a number An exception with the type CX_SY_CONVERSION_NO_NUMBER
-
Desktop picture disappears, won't return
Hi. When I plug my new MacBook into a projector (mini display to serial port convertor) and then unplug it, my desktop picture is replaced with the standard space one, and choosing my own again under Desktop/Screen Saver in Preferences makes no diffe
-
Hi Guys, Customer send send sall the payments to Locbox. The bank send EDI 820 file Can you please send a sample mapping document for EDI 820 format to PEXR2002 idoc to Lockbox. My email [email protected]
-
Flash 64-bit Beta stalling?
I tried loading the Flash 64-bit Beta version on my MacBook Core 2 Duo 2.2. It seems to work and doesn't necessarily hang forever. However, there are certain pages (especially one particular local newspaper site) where it just stalls for 10-15 seco
-
Disappearing personal settings in Safari
for like the 3rd time since i installed leopard, my personal safari settings, like user id/password for all websites it used to remember are suddenly gone! i did not even look at, nor do anything with the keychain app, nor purposely clear the cache!!