Problems using WITH SELECTION-TABLE
I am trying to call rfrecpsfa140 using:
SUBMIT rfrecpsfa140
"VIA SELECTION-SCREEN
WITH SELECTION-TABLE gt_rsparams. "parameter table
I am setting up the table gt_rsparams like this
"Company Code
wa_rsparams-selname = 'S_BUKRS'.
wa_rsparams-kind = 'S'.
wa_rsparams-low = '1000'.
wa_rsparams-sign = 'I'.
wa_rsparams-option = 'EQ'.
APPEND wa_rsparams TO gt_rsparams.
"Land Record
wa_rsparams-selname = 'S_SGRNR'.
wa_rsparams-kind = 'S'.
wa_rsparams-low = '287'.
wa_rsparams-sign = 'I'.
wa_rsparams-option = 'EQ'.
APPEND wa_rsparams TO gt_rsparams.
"Land Record
wa_rsparams-selname = 'S_SGRNR'.
wa_rsparams-kind = 'S'.
wa_rsparams-low = '392'.
wa_rsparams-sign = 'I'.
wa_rsparams-option = 'EQ'.
APPEND wa_rsparams TO gt_rsparams.
Table is defined like this
gt_rsparams TYPE STANDARD TABLE OF rsparams, "parameter table
wa_rsparams like line of gt_rsparams. "Work area for gt_rsparams
The problem I am having is that I am only seeing the results for the first land record, if I uncomment the VIA SELECTION SCREEN and run it, the Multiple Selections is Active, when I go into the multiple selections I can see both land records, however, if I close out of that window I get a message "The entered selections were not copied". If I select Copy from that screen, then run it I get info for both land records.
Seems like I am setting up the gt_rsparams table wrong, or maybe calling the program incorrectly.
Any ideas??
try this way..
data: r_bukrs type range of bukrs,
wa_bukrs like line of r_bukrs,
r_sgrnr type range of sgrnr,
w_sgrnr like line of r_sgrnr.
*wa_bukrs-selname = 'S_BUKRS'.
wa_bukrs-low = '1000'.
wa_bukrs-sign = 'I'.
wa_bukrs-option = 'EQ'.
APPEND wa_bukrs TO r_bukrs.
*w_sgrnr-selname = 'S_SGRNR'.
w_sgrnr-low = '287'.
w_sgrnr-sign = 'I'.
w_sgrnr-option = 'EQ'.
APPEND w_sgrnr TO r_sgrnr.
*w_sgrnr-selname = 'S_SGRNR'.
w_sgrnr-low = '392'.
w_sgrnr-sign = 'I'.
w_sgrnr-option = 'EQ'.
APPEND w_sgrnr TO r_sgrnr.
SUBMIT rfrecpsfa140
with s_bukrs in r_bukrs
with s_rgrnr in r_sgrnr
and return.
Similar Messages
-
USING WITH SELECTION-TABLE rspar
Hi,
I want to Submit a report via selection screen filling the selection screen values.
Do let me know how to fill the selection-table and pass it.
Thanks & Regards,
SPHi,
SAP keyword docu explains it clearly.......
... WITH SELECTION-TABLE rspar
Effect
If you specify this addition, parameters and selection criteria on the selection screen are supplied from an internal table rspar. You must specify an internal table with the row type RSPARAMS for rspar. The structured data type RSPARAMS is defined in the ABAP Dictionary and has the following components, all of which are data type CHAR:
SELNAME (length 8),
KIND (length 1),
SIGN (length 1),
OPTION (length 2),
LOW (length 45),
HIGH (length 45).
To supply parameters and selection criteria for the selection screen with specific values, the lines in the internal table rspar must contain the following values:
SELNAME must contain the name of a parameter or selection criterion for the selection screen in block capitals
KIND must contain the type of selection screen component (P for parameters, S for selection criteria)
SIGN, OPTION, LOW, and HIGH must contain the values specified for the selection table columns that have the same names as the selection criteria; in the case of parameters, the value must be specified in LOW and all other components are ignored.
If the name of a selection criterion is repeated in rspar, this defines a selection table containing several lines and passes it on to the selection criterion. If parameter names occur several times, the last value is passed on to the parameter.
The contents of the parameters or selection tables for the current program can be entered in the table by the function module RS_REFRESH_FROM_SELECTOPTIONS.
Cheers,
jose. -
Problem with SUBMIT report [ WITH SELECTION-TABLE ] or [ IN range ]
Hello Everybody,
I am trying to call transaction F.80 for mass reversal of FI documents by using SUBMIT sentence and its parameters like this:
LOOP AT i_zfi013 INTO wa_zfi013.
PERFORM llena_params USING 'BR_BELNR' 'S' 'I' 'EQ' wa_zfi013-num_doc ''.
range_line-sign = 'I'.
range_line-option = 'EQ'.
range_line-low = wa_zfi013-num_doc.
APPEND range_line TO range_tab.
endloop.
Line: -
SUBMIT sapf080
WITH br_bukrs-low = p_bukrs
WITH SELECTION-TABLE it_params [ same problem with - WITH BR_BELNR IN range_tab]
WITH br_gjahr-low = p_an1
WITH stogrd = '05'
WITH testlauf = ''
AND RETURN.
My problem is that when the report is executed the BR_BELNR only delete one document of the all the inputs in the selection criteria from the loop. if I add the statement [ VIA SELECTION-SCREEN] in the SUBMIT if open the multiple selection criteria in the screen I can check that all the documents are set in it from the ABAP code in the loop from it I just need to push F8 to copy them and run the program processing all the documents normally .
Can some one help me with this? is there a way to execute the transaction BY the SUBMIT with the multiple selection criteria for the Document Number working well?
Thank for you time and help.This is my code:
TYPES: BEGIN OF T_ZFI013,
BUKRS TYPE BUKRS,
GJAHR TYPE GJAHR,
MONAT TYPE MONAT,
ANLN1 TYPE ANLN1,
ANLN2 TYPE ANLN2,
NUM_DOC TYPE BELNR_D,
DATE TYPE DATUM,
TIME TYPE UZEIT,
USER TYPE SYUNAME,
END OF T_ZFI013.
DATA: I_ZFI013 TYPE STANDARD TABLE OF T_ZFI013,
WA_ZFI013 TYPE T_ZFI013,
DATA: br_belnr TYPE BELNR_D,
rspar_tab TYPE TABLE OF rsparams,
rspar_line LIKE LINE OF rspar_tab,
range_tab LIKE RANGE OF br_belnr,
range_line LIKE LINE OF range_tab."range_tab.
LOOP AT i_zfi013 INTO wa_zfi013.
range_line-sign = 'I'.
range_line-option = 'EQ'.
range_line-low = wa_zfi013-num_doc.
APPEND range_line TO range_tab.
ENDLOOP.
SUBMIT sapf080
WITH br_bukrs-low = p_bukrs
WITH br_belnr IN range_tab
WITH br_gjahr-low = p_an1
WITH stogrd = '05'
WITH testlauf = ''.
This is the RANGE_TAB table before submit:
1 I EQ 1001xxxxxx
2 I EQ 1002xxxxxx
3 I EQ 1003xxxxxx
4 I EQ 1004xxxxxx
5 I EQ 1005xxxxxx
6 I EQ 1006xxxxxx
7 I EQ 1007xxxxxx
8 I EQ 1008xxxxxx
I think this wont work for some reason so I will start to do this by a BDC.
Many thanks for your help. -
I HAVE A SOURCE TABLE WITH 10 RECORDS AND TARGET TABLE 15 RECORDS. MY QUESTION IS USING WITH THE TABLE COMPARISON TRANSFORM .I WANT TO DELETE UNMATCHED RECORDS FROM THE TARGET TABLE ?? HOW IT IS ??
Hi Kishore,
First identify deleted records by selecting "Detect deleted rows from comparison table" feature in Table Comparison
Then Use Map Operation with Input row type as "delete" and output row type as "delete" to delete records from target table. -
SUBMIT ......WITH SELECTION-TABLE
Dear All,
I am using the following statement to send report to spool:
SUBMIT riafvc20 TO SAP-SPOOL
SPOOL PARAMETERS K_PARAMS
WITHOUT SPOOL DYNPRO AND RETURN WITH SELECTION-TABLE seltab.
When I read the contents from the spool, I get the records only pertaining to first record in seltab. Any insights on why this is happening.
Note: seltab is an internal table without a header line.
Thanks in Advance,
Rajeshseltab was populated using the following statement.
LOOP AT i_order.
MOVE: 'AUFNR' TO seltab_wa-selname,
'S' TO seltab_wa-kind, " SELECT-OPTION
'I' TO seltab_wa-sign,
'EQ' TO seltab_wa-option,
i_order-aufnr TO seltab_wa-low,
' ' TO seltab_wa-high.
APPEND seltab_wa TO seltab.
ENDLOOP.
Below is the code of the program. Please note that there are 2 submit statements, the first one is working fine, but not the second submit statement.
FUNCTION Z_TEST_REPAIR.
""Local interface:
*" IMPORTING
*" VALUE(P_AUART) LIKE DIAUFK-AUART
*" TABLES
*" T_OUTPUT STRUCTURE ZLINE
DATA: i_list LIKE abaplist OCCURS 0 WITH HEADER LINE.
DATA: BEGIN OF i_list_conv OCCURS 1,
line(256),
END OF i_list_conv.
DATA : BEGIN OF I_SPOOL OCCURS 0,
RQIDENT LIKE TSP01-RQIDENT,
END OF I_SPOOL.
DATA : I_ACTUAL LIKE SOLI OCCURS 0 WITH HEADER LINE.
DATA: BEGIN OF i_order OCCURS 0,
aufnr LIKE aufk-aufnr,
END OF i_order.
DATA: seltab TYPE TABLE OF rsparams,
seltab_wa LIKE LINE OF seltab.
RANGES: r_aufnr FOR aufk-aufnr.
DATA: v_lines TYPE i.
DATA : K_PARAMS LIKE PRI_PARAMS,
V_JOBCOUNT LIKE TBTCM-JOBCOUNT,
V_SPOOL_NO LIKE TSP01-RQIDENT, "SPOOL NO.
V_LIST LIKE PRI_PARAMS-PLIST.
MOVE: 'AUART' TO seltab_wa-selname,
'S' TO seltab_wa-kind, " SELECT-OPTION
'I' TO seltab_wa-sign,
'EQ' TO seltab_wa-option,
p_auart TO seltab_wa-low,
' ' TO seltab_wa-high.
APPEND seltab_wa TO seltab.
MOVE: 'AUART' TO seltab_wa-selname,
'S' TO seltab_wa-kind, " SELECT-OPTION
'I' TO seltab_wa-sign,
'EQ' TO seltab_wa-option,
'Z001' TO seltab_wa-low,
' ' TO seltab_wa-high.
APPEND seltab_wa TO seltab.
CALL FUNCTION 'GET_JOB_RUNTIME_INFO'
IMPORTING
JOBCOUNT = V_JOBCOUNT
EXCEPTIONS
NO_RUNTIME_INFO = 1
OTHERS = 2.
IF SY-SUBRC <> 0.
ENDIF.
CONCATENATE 'ACT' V_JOBCOUNT INTO V_LIST.
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
LIST_NAME = V_LIST
NO_DIALOG = 'X'
IMPORTING
OUT_PARAMETERS = K_PARAMS.
SUBMIT riaufk20 TO SAP-SPOOL
SPOOL PARAMETERS K_PARAMS
WITHOUT SPOOL DYNPRO AND RETURN WITH SELECTION-TABLE seltab.
This select neither goes by primary nor any index as we are passing
rq2name which is not a part of primary or any index
SELECT RQIDENT FROM TSP01 INTO TABLE I_SPOOL WHERE RQ2NAME = V_LIST.
IF SY-SUBRC = 0.
SORT I_SPOOL BY RQIDENT DESCENDING.
READ TABLE I_SPOOL INDEX 1.
V_SPOOL_NO = I_SPOOL-RQIDENT.
ENDIF.
CALL FUNCTION 'RSPO_RETURN_SPOOLJOB'
EXPORTING
RQIDENT = V_SPOOL_NO
DESIRED_TYPE = 'RAW'
TABLES
BUFFER = I_ACTUAL
EXCEPTIONS
NO_SUCH_JOB = 1
JOB_CONTAINS_NO_DATA = 2
SELECTION_EMPTY = 3
NO_PERMISSION = 4
CAN_NOT_ACCESS = 5
READ_ERROR = 6
TYPE_NO_MATCH = 7
OTHERS = 8.
IF SY-SUBRC <> 0.
ENDIF.
*====================================================================
DATA: v_text1(20).
LOOP AT I_ACTUAL.
IF sy-tabix GT 3.
SPLIT I_ACTUAL-line AT '|' INTO v_text1 I_ACTUAL-line.
SPLIT I_ACTUAL-line AT '|' INTO v_text1 I_ACTUAL-line.
SPLIT I_ACTUAL-line AT '|' INTO i_order-aufnr I_ACTUAL-line.
APPEND i_order.
CLEAR i_order.
ENDIF.
ENDLOOP.
IF NOT I_ORDER[] IS INITIAL.
DESCRIBE TABLE i_order LINES v_lines.
DELETE i_order INDEX v_lines.
ENDIF.
REFRESH seltab.
CLEAR seltab_wa.
REFRESH i_list.
REFRESH i_list_conv.
SORT i_order.
LOOP AT i_order.
MOVE: 'AUFNR' TO seltab_wa-selname,
'S' TO seltab_wa-kind, " SELECT-OPTION
'I' TO seltab_wa-sign,
'EQ' TO seltab_wa-option,
i_order-aufnr TO seltab_wa-low,
' ' TO seltab_wa-high.
APPEND seltab_wa TO seltab.
ENDLOOP.
*========================================================================
Refresh: I_SPOOL, I_ACTUAL.
clear: V_JOBCOUNT, V_LIST, V_SPOOL_NO, K_PARAMS.
CALL FUNCTION 'GET_JOB_RUNTIME_INFO'
IMPORTING
JOBCOUNT = V_JOBCOUNT
EXCEPTIONS
NO_RUNTIME_INFO = 1
OTHERS = 2.
IF SY-SUBRC <> 0.
ENDIF.
CONCATENATE 'ACT' V_JOBCOUNT INTO V_LIST.
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
LIST_NAME = V_LIST
NO_DIALOG = 'X'
IMPORTING
OUT_PARAMETERS = K_PARAMS.
*DATA: RANGE_LANGU TYPE RANGE OF aufk-aufnr,
RANGE_LANGU_WA LIKE lINE OF RANGE_LANGU.
LOOP AT i_order.
MOVE:
'I' TO RANGE_LANGU_WA-sign,
'EQ' TO RANGE_LANGU_WA-option,
i_order-aufnr TO RANGE_LANGU_WA-low,
' ' TO RANGE_LANGU_WA-high.
APPEND RANGE_LANGU_WA TO RANGE_LANGU.
endloop.
SUBMIT riafvc20 TO SAP-SPOOL
SPOOL PARAMETERS K_PARAMS
WITHOUT SPOOL DYNPRO AND RETURN WITH SELECTION-TABLE seltab.
via selection-screen.
This select neither goes by primary nor any index as we are passing
rq2name which is not a part of primary or any index
SELECT RQIDENT FROM TSP01 INTO TABLE I_SPOOL WHERE RQ2NAME = V_LIST.
IF SY-SUBRC = 0.
SORT I_SPOOL BY RQIDENT DESCENDING.
READ TABLE I_SPOOL INDEX 1.
V_SPOOL_NO = I_SPOOL-RQIDENT.
ENDIF.
CALL FUNCTION 'RSPO_RETURN_SPOOLJOB'
EXPORTING
RQIDENT = V_SPOOL_NO
DESIRED_TYPE = 'RAW'
TABLES
BUFFER = I_ACTUAL
EXCEPTIONS
NO_SUCH_JOB = 1
JOB_CONTAINS_NO_DATA = 2
SELECTION_EMPTY = 3
NO_PERMISSION = 4
CAN_NOT_ACCESS = 5
READ_ERROR = 6
TYPE_NO_MATCH = 7
OTHERS = 8.
IF SY-SUBRC <> 0.
ENDIF.
t_output[] = I_ACTUAL[].
ENDFUNCTION. -
Use of selection table with 4 fields
Hi everyone
Can someone please explain to me what is the use of the seltab 4 fields, how they are used and provide an example, cos Im kinda struggling understanding them...
Thanks in advance
AdamHi,
Explicity there is a selection table for select-options that is seltab and it have sign, low, high, and option.
Actually these values are also available in ranges.
Just to explain you go through this info.
What are the difference between SELECT-OPTIONS & RANGES?
Here both SELECT-OPTIONS & RANGES works for the same purpose. They both are used for the range selection from selection screen. The main diff. between them is, while we use SELECT-OPTIONS system implicitly creates the select options internal table which contains the fields of SIGN,OPTION,LOW & HIGH. But in case of RANGES, this internal table should be defined explicitly.
Eg. to SELECT-OPTIONS :
REPORT YARSELECT.
TABLES YTXLFA1.
SELECT-OPTIONS : VENDOR FOR YTXLFA1-LIFNR.
INITIALIZATION.
VENDOR-LOW = 1000. " It specifies the range starting value.
VENDOR-HIGH = 2000. " It specifies the range ending value.
VENDOR-OPTION = 'BT'. " specifies ranges value is in between.
VENDOR-SIGN = 'I'. "specifies both inclussive.
APPEND VENDOR.
SELECT LIFNR LAND1 NAME1 FROM LFA1 INTO TABLE ITAB
WHERE LIFNR IN VENDOR.
Eg. to RANGES:
REPORT YARRANGE.
TABLES YTXLFA1.
RANGES: VENDOR FOR YTXFLA1-LIFNR.
SELECT LIFNR LAND1 NAME1 FROM LFA1 INTO TABLE ITAB
WHERE LIFNR IN VENDOR.
Here with RANGES user has to design an internal table with fields -
SIGN,OPTION,LOW and HIGH EXPLICITLY.
>
Example:
select-options: bukrs for zstock-bukrs.
Should the user fill in 'ABFI' in BUKRS on the selection screen, BUKRS will look like this:
IEQABFI
This is because BUKRS is set as a table as follows:
begin of bukrs occurs 0,
SIGN(1) type c,
OPTION(2) type c,
LOW like bukrs,
HIGH like bukrs,
end of bukrs.
Now, when you create the following range, it will have the exact same fields set inside its table:
Ranges: bukrs for zstock-bukrs.
The difference is, because ranges doesn't show on the selection screen, you will have to fill it yourself, meaning you will have to fill bukrs-sign, bukrs-option, bukrs-low & bukrs-high all manually.
Some tips:
Sign is always I (for Include) or E (for Exclude)
Option can be a whole range, which includes:
EQ (Equal)
BT (Between))
CP (Contain Pattern)
So let's say you want to have the range check for all company codes not starting with AB, you will set your code as follow:
ranges: bukrs for zstock-bukrs.
bukrs-sign = 'E'. "Exclude
bukrs-option = 'CP'. "Pattern
bukrs-low = 'AB*'. "Low Value
bukrs-high = ''. "High Value
append bukrs.
Always remember to APPEND your range when you fill it, as the WHERE clause checks against the lines of the range table, not against the header line.
Hope this explains it well enough.
>
What does SIGN "I" & "E" mean?
The "I" stands for Include, and the "E" for Exclude.
The easiest way to learn how the range selections work is, create the following dummy program:
report dummy.
tables: mara.
select-options: matnr for mara-matnr.
start-of-selection.
loop at matnr.
write: / matnr-sign,
matnr-option,
matnr-low,
matnr-high.
endloop.
Run this program, and fill in a lot of junk into MATNR. Fill in some includes, some excludes, some ranges, etc., and you will soon realise how the system builds ranges (select-options). Once you know that, you can fill your own ranges quickly and efficiently.
Hope this info helps.
Regards,
Kumar. -
OSB 11g - Conditional Branch Problem using attribute selection
Folks,
Came across a problem using OSB Conditional Branch using attribute selection, it fails & is most likely a bug. It was bug in ALSB2.5 but read in forums was fixed in ALSB 2.6
things I am doing -
1. In the Msg Flow, Conditional branch is @ the start of the flow
Xpath :- ./cm:processLineItem/cm:lineItem/@actionCode
In-Variable: - body
Label: - MODIFY
Operator:- =
Value:- 'Modify'
It fails with BEA-382000 error Code
<con:errorCode>BEA-382000</con:errorCode>
<con:reason>
com.bea.wli.sb.stages.StageException: {bea-err}TYPE003: Runtime Type Mismatch
</con:reason>
What could be wrong with Xpath or is it a Bug ?
Thanks,
AbhijeetHi Abhijeet,
Your case is re-producible. It may be a bug.
BTW, I have noticed a strange behaviour -
1. If there is only one attribute then it works fine (<cus:lineItem actionCode="Modify")
2. If the attribute which you want to refer in selection, is in the last then also it works fine (<cus:lineItem priorityRanking="201" quantity="1"> actionCode="Modify")
So I will suggest you to raise a case with support and meanwhile as a workaround I would suggest you to use actionCode attribute in the last of lineItem node. So your XML should be like -
<soapenv:Body xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<cus:processLineItem xmlns:com="http://vodafone.com.au/ebo/vha/CommonComponents" xmlns:cus="http://vodafone.com.au/cm/ocv/ebm/CustomerOrder" xmlns:cus1="http://vodafone.com.au/ebo/vha/CustomerManagement">
<com:header>
<com:createDateTime>2008-09-29T11:49:45</com:createDateTime>
<!--Optional:-->
<com:webUser>test</com:webUser>
<com:channel>string</com:channel>
<com:applicationName>string</com:applicationName>
<com:businessIdentifier>string</com:businessIdentifier>
<!--Optional:-->
<com:entityIdentifier>string</com:entityIdentifier>
<!--Optional:-->
<com:sourceIdentifier>string</com:sourceIdentifier>
<!--Optional:-->
<com:statusCode>Success</com:statusCode>
<!--Optional:-->
<com:messageIdentifier>string</com:messageIdentifier>
</com:header>
<cus:lineItem priorityRanking="201" quantity="1" actionCode="Modify">
<!--You have a CHOICE of the next 3 items at this level-->
<!--Optional:-->
<cus1:product ID="string">
<!--Zero or more repetitions:-->
<cus1:attribute>
<com:name>test</com:name>
<com:value>test1</com:value>
</cus1:attribute>
</cus1:product>
</cus:lineItem>
</cus:processLineItem>
</soapenv:Body>
Regards,
Anuj -
Ago Function with Select Table--HELP!
When my physical layer was setup using all 'Physical Table' types, my time series functions were working.
I had to modify my fact table to be of a 'Select' type (using SQL). When I remap my data, my time series functions fail with the following message:
"[nQSError: 22038] Function AGO requires at least one measure attribute in its first argument."
We have to be able to use select tables with time serious functions--what am I missing!?
Thanks!!does your new 'select table' contain the same number of columns with same datatypes?
did you restart the services (if developing in online mode- which is not recommended)
Lastly, if all fails,can you create those views on the database rather than in the physical layer? -
can anyone out there help to solve this problem? why will it be super laggy when i using quick selecting tool in photoshop cc? i had tried using the same tool at photoshop cs6, it work super fast...but why it happened at cc? kindly pm me via my email : [email protected] thank~
Secondly, please provide sensible details in connection with your issue.
BOILERPLATE TEXT:
Note that this is boilerplate text.
If you give complete and detailed information about your setup and the issue at hand,
such as your platform (Mac or Win),
exact versions of your OS, of Photoshop (not just "CS6", but something like CS6v.13.0.6) and of Bridge,
your settings in Photoshop > Preference > Performance
the type of file you were working on,
machine specs, such as total installed RAM, scratch file HDs, total available HD space, video card specs, including total VRAM installed,
what troubleshooting steps you have taken so far,
what error message(s) you receive,
if having issues opening raw files also the exact camera make and model that generated them,
if you're having printing issues, indicate the exact make and model of your printer, paper size, image dimensions in pixels (so many pixels wide by so many pixels high). if going through a RIP, specify that too.
etc.,
someone may be able to help you (not necessarily this poster, who is not a Windows user).
a screen shot of your settings or of the image could be very helpful too.
Please read this FAQ for advice on how to ask your questions correctly for quicker and better answers:
http://forums.adobe.com/thread/419981?tstart=0
Thanks! -
Photo problems using "copy selected albums only"
No one seems to be able to help me at Apple to figure out why if I have PhotoShop Album 2.0 that I can't get the IPod to let me have the choice of "copy selected albums only". The only choice it allows is to copy all photos and I don't want to do that. Would appreciate any help anyone can give me.
I am not sure what you mean by "set up". It is on the computer I am using with my Ipod and really don't know how the Ipod and it connect/talk to each other. Thanks for at least asking/responding to my question. I have figured out how to get photos from a folder but really would have liked to have used the album feature as they are all organized and I have to mess with them to get them to come out in the folder. Thanks for your time. Nancy
-
Insert problem using a SELECT from table with a index by function TRUNC
I came across this problem when trying to insert from a select statement, the select returns the correct results however when trying to insert the results into a table, the results differ. I have found a work around by forcing an order by on the select, but surely this is an Oracle bug as how can the select statements value differ from the insert?
Platform: Windows Server 2008 R2
Oracle 11.2.3 Enterprise edition
(I have not tried to replicate this on other versions)
Here are the scripts to create the two tables and source data:
CREATE TABLE source_data
ID NUMBER(2),
COUNT_DATE DATE
CREATE INDEX IN_SOURCE_DATA ON SOURCE_DATA (TRUNC(count_date, 'MM'));
INSERT INTO source_data VALUES (1, TO_DATE('20120101', 'YYYYMMDD'));
INSERT INTO source_data VALUES (1, TO_DATE('20120102', 'YYYYMMDD'));
INSERT INTO source_data VALUES (1, TO_DATE('20120103', 'YYYYMMDD'));
INSERT INTO source_data VALUES (1, TO_DATE('20120201', 'YYYYMMDD'));
INSERT INTO source_data VALUES (1, TO_DATE('20120202', 'YYYYMMDD'));
INSERT INTO source_data VALUES (1, TO_DATE('20120203', 'YYYYMMDD'));
INSERT INTO source_data VALUES (1, TO_DATE('20120301', 'YYYYMMDD'));
INSERT INTO source_data VALUES (1, TO_DATE('20120302', 'YYYYMMDD'));
INSERT INTO source_data VALUES (1, TO_DATE('20120303', 'YYYYMMDD'));
CREATE TABLE result_data
ID NUMBER(2),
COUNT_DATE DATE
);Now run the select statement:
SELECT id, TRUNC(count_date, 'MM')
FROM source_data
GROUP BY id, TRUNC(count_date, 'MM')You should get the following:
1 2012/02/01
1 2012/03/01
1 2012/01/01Now insert into the results table:
INSERT INTO result_data
SELECT id, TRUNC(count_date, 'MM')
FROM source_data
GROUP BY id, TRUNC(count_date, 'MM');Select from that table and you get:
1 2012/03/01
1 2012/03/01
1 2012/03/01The most recent month is repeated for each row.
Truncate your table and insert with the following statement and the results should now be correct:
INSERT INTO result_data
SELECT id, TRUNC(count_date, 'MM')
FROM source_data
GROUP BY id, TRUNC(count_date, 'MM')
ORDER BY 1, 2;If anyone has encountered this behavior before could you please let me know, I can't see that I am making a mistake as the selects results are correct they should not differ from what is being inserted.
Edited by: user11285442 on May 13, 2013 5:16 AM
Edited by: user11285442 on May 13, 2013 6:15 AMHi,
welcome to the forum. I cannot reproduce the same behavior.
Could you please post the SQLPlus output while executing all commands, like it has been done by S10390?
Also post the output of the following command:
SELECT * FROM v$version;When you put some code or output please enclose it between two lines starting with {noformat}{noformat}
i.e.:
{noformat}{noformat}
SELECT ...
{noformat}{noformat}
Formatted code is easier to read.
Regards.
Al -
Problem using 2 Fact tables with the same dimension
Hi,
I have noticed a very strange behaviour in Presentation Services / BI Administrator. I have 2 cubes (created in OWB) which are in the same business model, they are set up with foreign keys etc. and works as they should using them separately. Problem is (sometimes!) when I want to use the common dimension (Project) against both of the fact tables (Sales Order and Purchase Order).
Scenario 1:
If I use Project Id, Purchase Amount, Sales Amount I get either an amount in Sales Amount or in Purchase Amount, BUT if the Project Id starts with a letter (not starting with a number) it will show the correct amount for both Sales- and Purchase Amount.
Scenario 2:
I use Project Description (even followed by Project Id or not), Sales Amount, Purchase Amount I get the correct numbers for all projects. Project Description must come before Project Id or else it will not work.
I only noticed this problem when using both of the Fact tables since I want to compare Sales Amount and Purchase Amount in each Project. The Dimension for Project consist of Project, Sub Project and Activity and works fine. If I only use Sales Amount or Purchase Amount with Project Id I don't get this error. Only when both numbers are used.
I would be very happy if anyone have a good solution/explanation to this problem! Seems like could be something in the BI Server memory that goes wrong somewhere.The strange thing is that the results from the queries are correct running them in SQL Developer. This is one that works:
SELECT Project.Project saw_0, "- SalesOrderFact"."Sales Amount" saw_1, "- PurchaseOrderFact"."Purchase Amount" saw_2, REPORT_SUM(saw_1 BY ), REPORT_SUM(saw_2 BY ) FROM SalesOrder ORDER BY saw_0
SALES ORDER:
select T3032.PROJECT_DESCRIPTION as c1,
sum(T161.SALES_AMOUNT_LOCAL) as c2
from
DIM_PROJECT_V T3032,
CUBE_SALES_ORDER T161
where ( T161.DIM_PROJECT = T3032.DIMENSION_KEY )
group by T3032.PROJECT_DESCRIPTION
order by c1
PURCHASE_ORDER:
select T3032.PROJECT_DESCRIPTION as c1,
sum(T3020.TOTAL_BUY_AMOUNT) as c2
from
DIM_PROJECT_V T3032,
CUBE_PURCH_ORDER T3020
where ( T3020.DIM_PROJECT = T3032.DIMENSION_KEY )
group by T3032.PROJECT_DESCRIPTION
order by c1
And this will give the wrong result in Answers (correct in SQL..):
SELECT Project."Project Id" saw_0, "- SalesOrderFact"."Sales Amount" saw_1, "- PurchaseOrderFact"."Purchase Amount" saw_2, REPORT_SUM(saw_1 BY ), REPORT_SUM(saw_2 BY ) FROM SalesOrder ORDER BY saw_0
SALES_ORDER:
select T3032.PROJECT_KEY_NAME_ID as c1,
sum(T161.SALES_AMOUNT_LOCAL) as c2
from
DIM_PROJECT_V T3032,
CUBE_SALES_ORDER T161
where ( T161.DIM_PROJECT = T3032.DIMENSION_KEY )
group by T3032.PROJECT_KEY_NAME_ID
order by c1
PURCHASE_ORDER:
select T3032.PROJECT_KEY_NAME_ID as c1,
sum(T3020.TOTAL_BUY_AMOUNT) as c2
from
DIM_PROJECT_V T3032,
CUBE_PURCH_ORDER T3020
where ( T3020.DIM_PROJECT = T3032.DIMENSION_KEY )
group by T3032.PROJECT_KEY_NAME_ID
order by c1
As you can see the SQL look very familiar, and I cannot see anything in SQL that should be the cause of this error. I think the error must be in the BI Memory or something.
Any ideas? -
Message mapping problem: BAPI with range table parameters
A kind hello to all,
I try to call the BAPI_ALM_ORDERHEAD_GET_LIST in a 4.70 system via RFC connector. The configuration already works with another BAPI. With this here I get message mapping exception:
Trace level="1" type="T">com.sap.aii.utilxi.misc.api.BaseRuntimeException: RuntimeException in Message-Mapping transformation: Zielelement /ns1:BAPI_ALM_ORDERHEAD_GET_LIST kann nicht angelegt werden. Prüfen Sie, ob die XML-Instanz für die Ausgangs-XSD und die Zielfeldzuordnung die Anforderungen der Ziel-XSD erfüllt. at com.sap.aii.mappingtool.tf3.AMappingProgram.start
(How can I switch the trace language to English easily? I try to translate:
"BAPI_ALM_ORDERHEAD_GET_LIST cannot be created. Check if the XML instance meets the requirements for the output XSD and the destination field mapping meets the requirements of the destination XSD.")
But the mapping test tool in the Integration Builder Design does not report any warning or error.
My guess is that the problem lies in the parameter structure of the BAPI_ALM_ORDERHEAD_GET_LIST: I have to fill the IT_RANGES selection range table, so it looks as if I need several instances of the item in the corresponding XML. Can I use "Duplicate tree" in the mapping editor? Here I got another exception?
Many thanks for any help!
Regards,
CarstenHi Udo,
you gave the final hint, indeed I used a XML file that was not evidently not compliant to the message type I created (even though it had been validated by Altova XMLspy).
From now onwards I only use the "Create instance" function of the test tool to create the XML body of my test messages...
Thanks a lot,
and best regards,
Carsten -
Primary key problem using with oc4j
Hi everyone
I have deployed my entity bean in the oc4j container without any problem.But when I use the search->primary key in the console,no results display.
detail:
Step1I open the oc4j console by typing java -jar orion.jar -console
the oc4j container is successfully built
and in the left part of my console I see my entity bean
step2 I click my entity bean and in the right of the console in the search->primary key I type the a number which exists in my table in the database.
but no results display.
the following is my datasource-file anf orion-ejb-jar file
data-sources.xml
<?xml version="1.0"?>
<!DOCTYPE data-sources PUBLIC "-//Evermind//- Data-sources configuration" "http://xmlns.oracle.com/ias/dtds/data-sources.dtd">
<data-sources>
<data-source
class="com.evermind.sql.DriverManagerDataSource"
name="jdbc/OracleDSCore"
location="jdbc/OracleDSCore"
pooled-location="jdbc/OracleDSPooled"
xa-location="jdbc/xa/OracleDSXA"
connection-driver="oracle.jdbc.driver.OracleDriver"
username="SCOTT"
password="TIGER"
url="jdbc:oracle:thin:@localhost:1521:b2b"
/>
</data-sources>
orion-ejb-jar.xml
<?xml version = '1.0' encoding = 'GBK'?>
<!DOCTYPE orion-ejb-jar PUBLIC "-//Evermind//DTD Enterprise JavaBeans 1.1 runtime//EN" "http://xmlns.oracle.com/ias/dtds/orion-ejb-jar.dtd">
<orion-ejb-jar>
<enterprise-beans>
<entity-deployment name="EMP" data-source="jdbc/OracleDSCore" table="EMP" >
<primkey-mapping>
<cmp-field-mapping>
<fields>
<cmp-field-mapping name="EMPNO"
persistence-name="EMPNO" persistence-type="VARCHAR2(4)"/>
</fields>
</cmp-field-mapping>
</primkey-mapping>
</entity-deployment>
</enterprise-beans>
<assembly-descriptor>
<default-method-access>
<security-role-mapping name="<default-ejb-caller-role>" impliesAll="true"/>
</default-method-access>
</assembly-descriptor>
</orion-ejb-jar>
Any answer is welcome. Thankou in advance!Fernando,
I see you suffer a lot with ADF...write me at [email protected] and let´s keep in touch.
Maybe we can do a Brazilian list for JDev/ADF.
Regards,
Marcelo Alcantara -
Problem using At Selection Screen on value request for *"Select Fieldname"*
Hi All,
I Have a requirement of passing mutiple paraters value or selection option values in selection screen.
For Eg :I Have -
*--- Selection Screen
Select-options : s1 for vbak-vbeln ,
s2 for vbap-posnr.
*--- At Selection Screen
At Selection Screen on value request for s1-low.
i need to pass S1-low as well as S2-low ...
i.e first item of the Sales Document.
Value is getting passed in S1-low but not in S2-low
Can anybody help me on this ...
Thanks in Advance ..Hi,
Make use of the FM "F4IF_INT_TABLE_VALUE_REQUEST" for the value request for the first field.
Use the "FIELD_MAPPING" in the tables parameter of the above FM.
Please go through the FM documentation.
Hope this will help you.
Regards,
Smart Varghese
Maybe you are looking for
-
Playing a .CDR file from Hard Drive
Hi, I have copied a DVD to my hard drive using Disk Utility. I did this as a back up should the DVD become damaged or lost. I can make a DVD out of it so all is well. I however wish to be able to watch the DVD directly from the Hard Drive ie from the
-
Wanting to buy photoshop elements 7
can you change backgrounds in photoshop elements 7 I have digital backdrop cd
-
Can't edit php files in dreamweaver, access to site root denied
Can anyone help me please? I've recently purchased a Macbook Pro after my PCs failed on me and also had to get a Creative Suite Web Premium. I have always used Dreamweaver to edit my php files. In Windows XP, I had to run the programme to run as an A
-
I'm trying to start over. Typed wrong id ( not my email). Now I have a new id but can't change my iCloud account. I need to just start over from scratch but it won't let me do so. When it sends verification it is sending it to a nonexistent email.
-
Plugin lib3ivxEnc.dylib troubleshooting on FCP 7
I have FCP 7.0.3 on OS 10.6.8 and recently it crashes after 2-3 mins with message error saying it is caused by plugin lib3ivxEnc.dylib. Any solution? This is very problematic I can't use FCP anymore!! Help