Report to display IDoc segments data?
Hi all,
I have an idoc. That has segements. Each segments has fields. I need those fields data individually in each segement. Is there any reports that displays fields data of each segement and all the idoc data.
regards
helpful answeres are surely rewarded
We can see the Data of the fields in a segment in all the Idocs ( an Idoc type) you have selected.
1) Go to transaction "WE02".
2) Enter 'Basic type' of Idoc you are looking for and execute
3) Click on the last button (List Specific Segment, Shift+ F1) on the application tool bar
4) enter the Segment you are looking for and press enter.
5) It will display the Report with the Data of all the fields of the segment of all the Idocs selected.
Thanks
Shekar
Similar Messages
-
Hi,
Can anyone tell in which tables is the IDOC segments data is stored?
Rgds,
KanwarHi,
IDoc segment data is stored in strcuture like EDIDD.
Suppose you have created IDoc,then the function module export parameter for Idoc data is IDOC_data(defined as IDOC_DATA STRUCTURE EDIDD).
then you can access data as below.
LOOP AT IDOC_DATA.
CASE IDOC_DATA-SEGNAM.
WHEN 'E1EDP01'.
MOVE IDOC_DATA-SDATA TO E1EDP01.
***Here e1edp01 structure will give you details of ***individual field.
ENDCASE.
ENDLOOP.
Similarly you can access data for all segments.
Thanks.
Mark points if helpful. -
HI All,
I need to pass a constant value for the fields in segments between 2 systems,where can i do that,there a transaction code wher we can do,plz let me know,all useful answers are rewardedHi
Data Creation in Idoc
IDocs are text encoded documents with a rigid structure that are used to exchange data between R/3 and a foreign system. Instead of calling a program in the destination system directly, the data is first packed into an IDoc and then sent to the receiving system, where it is analyzed and properly processed. Therefore an IDoc data exchange is always an
asynchronous process. The significant difference between simple RFC-calls and IDoc data exchange is the fact, that every action performed on IDocs are protocolled by R/3 and IDocs can be reprocessed if an error occurred in one of the message steps.
While IDocs have to be understood as a data exchange protocol, EDI and ALE are typical use cases for IDocs. R/3 uses IDocs for both EDI and ALE to deliver data to the receiving system. ALE is basically the scheduling mechanism that defines when and between which partners and what kind of data will be exchanged on a regular or event triggered basis. Such a set-up is called an ALE-scenario.
IDoc is a intermediate document to exchange data between two SAP Systems.
*IDocs are structured ASCII files (or a virtual equivalent).
*Electronic Interchange Document
*They are the file format used by SAP R/3 to exchange data with foreign systems.
*Data Is transmitted in ASCII format, i.e. human readable form
*IDocs exchange messages
*IDocs are used like classical interface files
IDOC types are templates for specific message types depending on what is the business document, you want to exchange.
WE30 - you can create a IDOC type.
An IDOC with data, will have to be triggered by the application that is trying to send out the data.
FOr testing you can use WE19.
How to create idoc?
*WE30 - you can create a IDOC type
For more information in details on the same along with the examples can be viewed on:
http://www.netweaverguru.com/EDI/HTML/IDocBook.htm#_Toc8400404
http://help.sap.com/saphelp_erp2005/helpdata/en/0b/2a6620507d11d18ee90000e8366fc2/frameset.htm
http://www.sappoint.com/presentation.html
http://www.allsaplinks.com/idoc_search.html
http://www.sapgenie.com/sapedi/idoc_abap.htm
http://www.erpgenie.com/sapedi/idoc_abap.htm
To Create Idoc we need to follow these steps:
Create Segment ( WE31)
Create Idoc Type ( WE30 )
Create Message Type ( WE81 )
Assign Idoc Type to Message Type ( WE82 )
Creating a Segment
Go to transaction code WE31
Enter the name for your segment type and click on the Create icon
Type the short text
Enter the variable names and data elements
Save it and go back
Go to Edit -> Set Release
Follow steps to create more number of segments
Create IDOC Type
Go to transaction code WE30
Enter the Object Name, select Basic type and click Create icon
Select the create new option and enter a description for your basic IDOC type and press enter
Select the IDOC Name and click Create icon
The system prompts us to enter a segment type and its attributes
Choose the appropriate values and press Enter
The system transfers the name of the segment type to the IDOC editor.
Follow these steps to add more number of segments to Parent or as Parent-child relation
Save it and go back
Go to Edit -> Set release
Create Message Type
Go to transaction code WE81
Change the details from Display mode to Change mode
After selection, the system will give this message The table is cross-client (see Help for further info). Press Enter
Click New Entries to create new Message Type
Fill details
Save it and go back
Assign Message Type to IDoc Type
Go to transaction code WE82
Change the details from Display mode to Change mode
After selection, the system will give this message The table is cross-client (see Help for further info). Press Enter.
Click New Entries to create new Message Type.
Fill details
Save it and go back
Check these out..
Re: How to create IDOC
Check below link. It will give the step by step procedure for IDOC creation.
http://www.supinfo-projects.com/cn/2005/idocs_en/2/
ALE/ IDOC
http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm
http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc
http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419
http://www.netweaverguru.com/EDI/HTML/IDocBook.htm
http://www.sapgenie.com/sapedi/index.htm
http://www.sappoint.com/abap/ale.pdf
http://www.sappoint.com/abap/ale2.pdf
http://www.sapgenie.com/sapedi/idoc_abap.htm
http://help.sap.com/saphelp_erp2005/helpdata/en/0b/2a60bb507d11d18ee90000e8366fc2/frameset.htm
http://help.sap.com/saphelp_erp2005/helpdata/en/78/217da751ce11d189570000e829fbbd/frameset.htm
http://www.allsaplinks.com/idoc_sample.html
http://www.sappoint.com/abap.html
http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm
http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc
http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419
http://www.netweaverguru.com/EDI/HTML/IDocBook.htm
http://www.sapgenie.com/sapedi/index.htm
http://www.allsaplinks.com/idoc_sample.html
http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.docs
go trough these links.
http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm
http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc
http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419
http://www.netweaverguru.com/EDI/HTML/IDocBook.htm
http://www.sapgenie.com/sapedi/index.htm
http://www.sappoint.com/abap/ale.pdf
http://www.sappoint.com/abap/ale2.pdf
http://www.sapgenie.com/sapedi/idoc_abap.htm
http://help.sap.com/saphelp_erp2005/helpdata/en/0b/2a60bb507d11d18ee90000e8366fc2/frameset.htm
http://help.sap.com/saphelp_erp2005/helpdata/en/78/217da751ce11d189570000e829fbbd/frameset.htm
http://www.allsaplinks.com/idoc_sample.html
http://www.sappoint.com/abap.html
http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm
http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc
http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419
http://www.netweaverguru.com/EDI/HTML/IDocBook.htm
http://www.sapgenie.com/sapedi/index.htm
http://www.allsaplinks.com/idoc_sample.html
http://http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm
An IDoc is simply a data container that is used to exchange information between any two processes that can understand the syntax and semantics of the data...
1.IDOCs are stored in the database. In the SAP system, IDOCs are stored in database tables.
2.IDOCs are independent of the sending and receiving systems.
3.IDOCs are independent of the direction of data exchange.
The two available process for IDOCs are
Outbound Process
Inbound Process
AND There are basically two types of IDOCs.
Basic IDOCs
Basic IDOC type defines the structure and format of the business document that is to be exchanged between two systems.
Extended IDOCs
Extending the functionality by adding more segments to existing Basic IDOCs.
To Create Idoc we need to follow these steps:
Create Segment ( WE31)
Create Idoc Type ( WE30)
Create Message Type ( WE81)
Assign Idoc Type to Message Type ( WE82)
imp links
http://www.allsaplinks.com/idoc_sample.html
http://www.sapgenie.com/sapedi/idoc_abap.htm
www.sappoint.com
--here u can find the ppts and basic seetings for ALE
http://sappoint.com/presentation.html
www.sapgenie.com
http://www.sapgenie.com/ale/index.htm
Check these links.
http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm
http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc
http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419
http://www.netweaverguru.com/EDI/HTML/IDocBook.htm
http://www.sapgenie.com/sapedi/index.htm
http://www.sappoint.com/abap/ale.pdf
http://www.sappoint.com/abap/ale2.pdf
http://www.sapgenie.com/sapedi/idoc_abap.htm
http://help.sap.com/saphelp_erp2005/helpdata/en/0b/2a60bb507d11d18ee90000e8366fc2/frameset.htm
http://help.sap.com/saphelp_erp2005/helpdata/en/78/217da751ce11d189570000e829fbbd/frameset.htm
http://www.allsaplinks.com/idoc_sample.html
http://www.sappoint.com/abap.html
http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm
http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc
http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419
http://www.netweaverguru.com/EDI/HTML/IDocBook.htm
http://www.sapgenie.com/sapedi/index.htm
http://www.allsaplinks.com/idoc_sample.html
http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.docs
Please check this PDF documents for ALE and IDoc.
http://www.sappoint.com/abap/ale.pdf
http://www.sappoint.com/abap/ale2.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCMIDALEIO/BCMIDALEIO.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCMIDALEPRO/BCMIDALEPRO.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/CABFAALEQS/CABFAALEQS.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVEDISC/CAEDISCAP_STC.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVEDI/CAEDI.pdf
Check below link. It will give the step by step procedure for IDOC creation.
http://www.supinfo-projects.com/cn/2005/idocs_en/2/
Creation of Custom IDOc type and message Type
First Create Partner Profile(WE20 Tcode) and Port Definition in WE19 Tcodes.
take the Basis help to create them.
1.First create segments in WE31 Tcode with the required dataelements
2.Create the Basic Idoc Type in WE30
release the Segments and IDOC type.
3.Create Message type in We81
4.Assign the message type to IDOC type in WE82 T code
5.Create the process code in We41 (for Outbound) WE42 (for Inbound)
6.Create A fun module in SE37 starting with ZIDOC_OUTPUT_.. by copying some Inbound (for Inbound) Outbound Fun module
7.Create Workflow setting if needed ..
8. Assign the fun module to Idoc Type, Message Type and WF object (if it is there0
9.Define setting for fun module in BD51
10.In BD51 Define the settings for Fun module..
10.Assign the Processs Code to Fun mod`ule
Reward all helpfull answers
Regards
Pavan -
How to change the IDOC segment data
How to change the segment data for all IDOCs at one shot J.
For exmple E1EDK02-QUALF - 004
E1EDK02-RGID - 100000008 (Inquiry No)
to
E1EDK02-QUALF - 004
E1EDK02-RGID - 200000005 (Quotation)
Any hints, tips .Appreciate your help and more rewards.
Regards,
CrisHi,
You can change the IDOC values using the transaction WE09
Give the IDOC number..
Press F8..
Expand the tree..
Double click on the segment..
Then in the menu..DATA RECORD -> DISPLAY/CHANGE..
It will go in change mode..Change the IDOC value..
Thanks,
Naren -
How SAP handles Child Idoc segment data insertion automatically
Hello,
We have some Infotypes with extra segments and IDocs are getting created with Parent and child segments.
To fill the data into the parent/child segments, we are currently using User-Exits.
Is there any settings/config in table level(e.g. T777D etc), or any other way, so that SAP handles the data filling into parent/child segments automatically.
Thanks.No I dont want to change the value in WE19.... In runtime I am changing the value of schedule Line quantity and the same is getting update in SDSA also but when a new idoc is getting created that value is not getting reflected in that Idoc segment field.
Kindly suggest. -
RE: How to change Idoc segment data
Hi folks,
I have a requirement where in I have a Inbound DELIN Idoc in the SAP system. When I am reprocessing the same Idoc through WE19 by changing the delivery schedule and then changing the E1EDP16-WMENG value in runtime while debugging, the same is getting updated in correponding SDSA but when the new Idoc is getting triggered, only previous old Idoc value is getting reflected.
Kindly suggest!!!!
Vishal.No I dont want to change the value in WE19.... In runtime I am changing the value of schedule Line quantity and the same is getting update in SDSA also but when a new idoc is getting created that value is not getting reflected in that Idoc segment field.
Kindly suggest. -
Report to display material master data changes
Hi,
Is there a standard report available to display all changes to material master data over a specified time frame i.e all changes made alst week,all chnages made today.
Please suggest.
Thanks in advance.Hi!
Appart from MM04, you can also have a look at MM03 or MM02:
1. Goto MM02 or MM03 transactions and enter the material.
2. Select the relevant views for which you want to have the details.
In the Bar menu follow the path Environment -> Display changes.
Here you will get the list of changes done to the fields with Old and
New values.
Appart from these two tools, there is not any other report provided in the standard for this target.
I hope this helps!
Esther. -
Pull the data from legacy System into report and display with SAP data
Hi Friends,
My requirement is-
Create report by processing data from SAP tables and prepare output.And Before displaying the output, I have to pull the data from non-sap system which is readymade (It will come as flat file with similar fields as Report structure has) and finally display the records from both SAP and Legacy System by filtering duplicates.Steps:-
Define the file path on selection screen:-
Selection screen data
select-options (s_)
parameters (p_)
radio buttons (r_)
checkboxes (x_)
pushbuttons (b_)
SELECTION-SCREEN BEGIN OF BLOCK block1 WITH FRAME TITLE text-f01.
parameter: p_file type text_512 obligatory.
Start-of-selection.
data : l_fname type string. " File Name
l_fname = p_file .
call function 'GUI_UPLOAD'
exporting
filename = l_fname
filetype = 'ASC'
has_field_separator = '#'
tables
data_tab = lt_data
exceptions
file_open_error = 1
file_read_error = 2
no_batch = 3
gui_refuse_filetransfer = 4
invalid_type = 5
no_authority = 6
unknown_error = 7
bad_data_format = 8
header_not_allowed = 9
separator_not_allowed = 10
header_too_long = 11
unknown_dp_error = 12
access_denied = 13
dp_out_of_memory = 14
disk_full = 15
dp_timeout = 16
others = 17.
if sy-subrc <> 0.
message e000 with 'Unable to upload file from the PC'(t13).
endif.
lt_data is of same structure as the fields in the file.
For filtering duplicates:-
delete adjacent duplicates from lt_data.
Now display the records using either ALV or using write statements.
You can display the records in any of the way you want. -
IDOC segment Data updation problem
I have done the Idoc extention for ORDERS05.I have written a code to insert data for my z segments in IDOC_INPUT_ORDERS.But when I run the program its not updating data to z segements as well as other segments
What may be the problem..
READ TABLE dedidd INTO wa_edidd WITH KEY segnam = c-e1edka1
sdata(3) = 'AG'.
IF sy-subrc = 0.
CLEAR w-index.
w-index = sy-tabix.
wa_e1edka1 = wa_edidd-sdata.
CLEAR : wa_e1edka1-parvw,
wa_e1edka1-partn.
wa_e1edka1-parvw = w-parvw.
wa_e1edka1-partn = w-inpnr_ag.
wa_edidd-sdata = wa_e1edka1.
MODIFY dedidd FROM wa_edidd INDEX w-index TRANSPORTING sdata.
ENDIF.
Thanks
UmeshHi,
Use Comparing fields addition in MODIFY Statement...
MODIFY ........ COMPARING <key fields>
Hope this would help you.
Regards
Narin Nandivada. -
Add leading zeroes in the IDOC segment data
Hi,
How to populate the Document number and EAN code in the segment with leading zeroes because I have checked that all fields in the segment are of charcter type.
I want to know can this be handled by customizing or coding but how?
Thanks
PrinceHi,
You can use :
call function 'CONVERSION_EXIT_ALPHA_INPUT'
exportiong
input = c1
importing
output = c1.
Regards,
Subramanian -
Can we chnge segment data of IDOC while processing using EXITS ?
Hi All,
We have requirement that we have to do validations while processing of IDOC i.e. using User EXIT.
i can access the data and can do validations final i can update the tables data coming from user exit , but I'm not able to update the Segment field data.
here we can directly update the database , but i'm not able change the IDOC segment values .
for example
FOR cond_a IDOC
THE USER EXIT==>EXIT_SAPLVKOI_002
FUNCTION EXIT_SAPLVKOI_002.
""Lokale Schnittstelle:
*" IMPORTING
*" VALUE(IDOC_CONTROL) LIKE EDIDC STRUCTURE EDIDC
*" VALUE(INPUT_METHOD) LIKE BDWFAP_PAR-INPUTMETHD
*" TABLES
*" IDOC_DATA STRUCTURE EDIDD
*" EXCEPTIONS
*" APPLICATION_ERROR
i can acess the segement values using IDOC_DATA and validations are done .
but how can i update this segmnent values that must apper in IDOCS again .if we see in we05.
Regards
Nandan.Hi Nadan ,
Yes we can change segment data of an Idoc in the Exits.
Below is the code to change the Idoc segment data .
Here I took E1EDK04 as example I read the data from E1EDK04 and I change the segment data
READ TABLE t_idoc_data INTO is_edidd
WITH KEY segnam = c_segnam_e1edk04. "#EC *
IF sy-subrc EQ 0.
MOVE: is_edidd-sdata TO is_e1edk04.
ENDIF.
IF l_betrg = c_betrg.
is_e1edk04-mwskz = C_TAX20.
is_e1edk04-txjcd = c_txjcd.
ELSEIF l_betrg = c_betrg1.
is_e1edk04-mwskz = C_TAX21.
is_e1edk04-txjcd = wa_ekpo-txjcd.
ENDIF.
LOOP AT t_idoc_data
WHERE docnum = i_idoc_contrl-docnum.
CASE t_idoc_data-segnam .
WHEN c_segnam_e1edk04.
MOVE is_e1edk04 TO is_edidd-sdata.
MODIFY t_idoc_data FROM is_edidd.
ENDCASE.
ENDLOOP.
Please let me know if u have any Queries .
Rgds
Sree m -
How to display flex fileld data in Oracle Reports
Hi All,
I am using Oracle Reports to display Key Flex field information of Oracle Applications in reports by using SRW.user_exit.
These are steps which I did during my development time
P_FLEX_DATA
P_STRUCT_NUM intial value as 101
defined as Parameters, in P_FLEX_DATA calling all segment values as shown in standard reports.
I've used P_FLEX_DATA in sql query of the report and defined two formula cols C_FLEXFIELD and C_DESC_ALL and added below mentioned codes:
C_FLEXFIELD formula column query:
SRW.REFERENCE(:P_STRUCT_NUM);
SRW.REFERENCE(:C_FLEXDATA);
SRW.USER_EXIT('FND FLEXIDVAL
CODE="GL#"
NUM=":P_STRUCT_NUM"
APPL_SHORT_NAME="SQLGL"
DATA=":C_FLEXDATA"
VALUE=":C_FLEXFIELD"
DISPLAY="ALL"');
RETURN(:C_FLEXFIELD);
C_DESC_ALL formula column query:
SRW.REFERENCE(:P_STRUCT_NUM);
SRW.REFERENCE(:C_FLEXDATA);
SRW.USER_EXIT('FND FLEXIDVAL
CODE="GL#"
NUM=":P_STRUCT_NUM"
APPL_SHORT_NAME="SQLGL"
DATA=":C_FLEXDATA"
DESCRIPTION=":C_DESC_ALL"
DISPLAY="ALL"');
RETURN(:C_DESC_ALL);
But I did not find any output for these two columns. I want to display flex fileld description as per code combination id wise in reports. I am using reports 10g for developing the reports. Please help in this regard.
Regards,
PrasadHow do you execute the call for a Report?
URL? -
Searching for segment data in an IDOC!
I had created some MATERIALVALUATION_PRICECHANGE idocs (approx 1000).
Some idocs failed to update the material standard price. How can I search which IDOC is having material X in the segment data?
Please suggest.
Thanks,Hi Somen,
The data in each segment for the idocs on the screen can be viewed if your version is ECC 5 or more.(I am not sure of 4.6 version) . You may go to we05 to display all the idocs. On the displayed screen we have an option in the tool bar - List specific segment (shift + F1). You may choose the segment and say continue, the sdata of the segment can be viewed on the next screen. Hope this helps.
Srini -
To Update the IDOC segment values through report program
My requirement is to update the Idoc segment through the report program. Any SAP provided standard function module is available to update the Idoc segment values. Please help needed.
DATA: LT_EDIDD TYPE STANDARD TABLE OF EDIDD."Local Table to Hold EDIDD
LT_EDIDD = I_EDIDD. "table should have the data
*-- Opening the IDoc for Edit
CALL FUNCTION 'EDI_DOCUMENT_OPEN_FOR_EDIT'
EXPORTING
DOCUMENT_NUMBER = X_EDIDC-DOCNUM
TABLES
IDOC_DATA = IT_EDIDD
EXCEPTIONS
DOCUMENT_FOREIGN_LOCK = 1
DOCUMENT_NOT_EXIST = 2
DOCUMENT_NOT_OPEN = 3
STATUS_IS_UNABLE_FOR_CHANGING = 4
OTHERS = 5.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
*-- Editing the IDoc
CALL FUNCTION 'EDI_CHANGE_DATA_SEGMENTS'
TABLES
IDOC_CHANGED_DATA_RANGE = LT_EDIDD
EXCEPTIONS
IDOC_NOT_OPEN = 1
DATA_RECORD_NOT_EXIST = 2
OTHERS = 3.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
*-- Closing the IDoc after Edit
CALL FUNCTION 'EDI_DOCUMENT_CLOSE_EDIT'
EXPORTING
DOCUMENT_NUMBER = X_EDIDC-DOCNUM
DO_COMMIT = 'X'
DO_UPDATE = 'X'
WRITE_ALL_STATUS = 'X'
EXCEPTIONS
IDOC_NOT_OPEN = 1
DB_ERROR = 2
OTHERS = 3.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
thanks
vijay -
SSRS report not displaying data in correct order
Guys,
I have a SSRS 2012 report not displaying returned records from SQL in the correct order. Running the stored procedure in SSMS and supplying the parameter values returns the data correctly and running Query Designer in SSRS using the stored procedure
on the dataset in question, likewise returns the data correctly. Only when I run the actual report does the data display incorrectly(always last name order). I've done similar reporting using very similar stored procedures and I've never had this
problem. Below is the stored procedure. "@SortBy" is the parameter with the sorting value. 1=Due Date; 2=Denial Amt and 3=Last name and is passed by SSRS to SQL. Wish I could supply screen shots.
Thanks for any help,
Dave
ALTER PROCEDURE [dbo].[RAC_PT_List]
@Level as int,
@SortBy as int,
@PTLName as varchar(30) = NULL,
@User as varchar(10) = NULL
AS
SELECT pat.headerID,
pat.PT_LName + ', ' + pat.PT_FName AS PTName,
pat.PT_AcctNo,
rco.RCO_CLMREF,
rco.RCO_AppealLevel,
rco.RCO_LevelNo,
rco.RCO_AuditorStatus,
let.LET_DEN_DueDate,
CONVERT(varchar(12),let.LET_DEN_DueDate) as DueDate,
let.LET_DEN_Dollars,
let.userID
FROM Master_PT_List pat
INNER JOIN Master_RCO_Work rco on RCO.PT_headerID = pat.headerID
INNER JOIN Master_Letters let on LET.PT_headerID = pat.headerID
WHERE (@PTLName IS NULL OR(pat.PT_LName LIKE + '%' + @PTLName + '%'))
AND (rco.RCO_LevelNo = @Level)
AND (let.userID = @User)
--AND (rco.RCO_AuditorStatus <> 'Closed' and rco.RCO_AdminStatus <> 'Closed')
ORDER BY
CASE WHEN @SortBy = '1' THEN LET_DEN_DueDate
END
DESC,
CASE WHEN @SortBy = '2' THEN let.LET_DEN_Dollars
END
DESC,
CASE WHEN @SortBy = '3' THEN pat.PT_LName
ENDHi DaveMac1960,
According to your description, when you render data in report, you find it always shows the data with unexpected order. Right?
In Reporting Services, if we don't set any sorting in tablix, it will order the data as your query in SSMS or Query Builder. In some scenario, for example, we add parent group for data rows, it will have the rows sort by the group on data field by default,
and the "order by" in your query will be ignored. So please check the Sorting tab in Tablix Properties, in this scenario, we suggest you delete any sorting in the Sorting tab so that the "Order By" clause can work.
Reference:
Sort Data in a Data Region (Report Builder and SSRS)
If you have any question, please feel free to ask.
Best Regards,
Simon Hou
Maybe you are looking for
-
How much RAM do I need to run FCP effectively?
As you can see below, I have an iMac 2.1 Ghz 20 in. (isight) w/ 512 MB of RAM, and I also have FCP, but have been experiencing some playaback framerate issues. So I have decided to upgrade my RAM to either 1 GB, 1.5 GB, or 2.5 GB... My question is ho
-
Problems with Flash Navigation
I'm trying to edit a horizontal flash navigation that I found on the internet but i'm having some issues. The original file can be found here. The flash pulls menu information from an XML file. To add a menu block all I should have to do is add the t
-
I have a af:table with editingMode="eitAll' or even "clickToEdit" but it does not let me edit the cell in the Table. Any Thoughts please
-
Special Characters in text files
I'm working on trying the evdev driver with my Microsoft Explorer mouse. The info that I found says to pay particular attention to the name result of egrep /proc/bus/input/devices The name of the mouse there contains an unprintable character on my c
-
Why are my existing content pages appearing blank in RH7?
I am working in RoboHelp 7. Some of my existing pages appear blank in the tool, but when I do a Preview or generate the final output, the content appears in the viewer window. It also appears to the end-user just fine. I have tried importing the f