Z data source issue for creating packets
Hi I have created a Z data source (function module) .
My issue is I am not able to create data record packets all the data is coming in one packet only.
The is code is as show below is some one can please assist me how can I change the code so that is can create multiple packets for the option given in Tcode RSA3.
FUNCTION ZBW_MATERIAL_GROUP_HIE.
""Local Interface:
*" IMPORTING
*" VALUE(I_REQUNR) TYPE SRSC_S_IF_SIMPLE-REQUNR
*" VALUE(I_DSOURCE) TYPE SRSC_S_IF_SIMPLE-DSOURCE OPTIONAL
*" VALUE(I_MAXSIZE) TYPE SRSC_S_IF_SIMPLE-MAXSIZE OPTIONAL
*" VALUE(I_INITFLAG) TYPE SRSC_S_IF_SIMPLE-INITFLAG OPTIONAL
*" VALUE(I_READ_ONLY) TYPE SRSC_S_IF_SIMPLE-READONLY OPTIONAL
*" VALUE(I_REMOTE_CALL) TYPE SBIWA_FLAG DEFAULT SBIWA_C_FLAG_OFF
*" TABLES
*" I_T_SELECT TYPE SRSC_S_IF_SIMPLE-T_SELECT OPTIONAL
*" I_T_FIELDS TYPE SRSC_S_IF_SIMPLE-T_FIELDS OPTIONAL
*" E_T_DATA STRUCTURE ZBW_MAT_GRP_HIER OPTIONAL
*" EXCEPTIONS
*" NO_MORE_DATA
*" ERROR_PASSED_TO_MESS_HANDLER
TABLES : /BI0/HMATL_GROUP.
DATA : BEGIN OF t_hmat OCCURS 0,
hieid LIKE /BI0/HMATL_GROUP-hieid,
objvers LIKE /BI0/HMATL_GROUP-objvers,
iobjnm LIKE /BI0/HMATL_GROUP-iobjnm,
nodeid LIKE /BI0/HMATL_GROUP-nodeid,
nodename LIKE /BI0/HMATL_GROUP-nodename,
tlevel LIKE /BI0/HMATL_GROUP-tlevel,
parentid LIKE /BI0/HMATL_GROUP-parentid,
END OF t_hmat.
DATA : BEGIN OF t_flathier,
hieid LIKE /BI0/HMATL_GROUP-hieid,
lv2_id LIKE /BI0/HMATL_GROUP-nodeid,
lv2_name LIKE /BI0/HMATL_GROUP-nodename,
lv3_id LIKE /BI0/HMATL_GROUP-nodeid,
lv3_name LIKE /BI0/HMATL_GROUP-nodename,
lv4_id LIKE /BI0/HMATL_GROUP-nodeid,
lv4_name LIKE /BI0/HMATL_GROUP-nodename,
lv5_id LIKE /BI0/HMATL_GROUP-nodeid,
lv5_name LIKE /BI0/HMATL_GROUP-nodename,
lv6_id LIKE /BI0/HMATL_GROUP-nodeid,
lv6_name LIKE /BI0/HMATL_GROUP-nodename,
lv7_id LIKE /BI0/HMATL_GROUP-nodeid,
lv7_name LIKE /BI0/HMATL_GROUP-nodename,
lv8_id LIKE /BI0/HMATL_GROUP-nodeid,
lv8_name LIKE /BI0/HMATL_GROUP-nodename,
lv9_id LIKE /BI0/HMATL_GROUP-nodeid,
lv9_name LIKE /BI0/HMATL_GROUP-nodename,
lv10_id LIKE /BI0/HMATL_GROUP-nodeid,
lv10_name LIKE /BI0/HMATL_GROUP-nodename,
lv11_id LIKE /BI0/HMATL_GROUP-nodeid,
lv11_name LIKE /BI0/HMATL_GROUP-nodename,
material LIKE /BI0/HMATL_GROUP-nodename,
END OF t_flathier.
FIELD-SYMBOLS: <f> LIKE LINE OF t_hmat,
<Level> TYPE ANY.
data : count(2) type c,
lv_level(20) type c.
DATA : lv_count TYPE n.
DATA : lv_id LIKE /BI0/HMATL_GROUP-nodeid,
lv_hieid LIKE /BI0/HMATL_GROUP-hieid.
Auxiliary Selection criteria structure
DATA: l_s_select TYPE srsc_s_select.
Maximum number of lines for DB table
STATICS: s_s_if TYPE srsc_s_if_simple,
counter
s_counter_datapakid LIKE sy-tabix,
cursor
s_cursor TYPE cursor.
Select ranges
RANGES: l_r_nodename FOR /BI0/HMATL_GROUP-nodename,
l_r_hieid FOR /BI0/HMATL_GROUP-hieid.
Initialization mode (first call by SAPI) or data transfer mode
(following calls) ?
IF i_initflag = sbiwa_c_flag_on.
Initialization: check input parameters
buffer input parameters
prepare data selection
Check DataSource validity
CASE i_dsource.
WHEN 'ZMATERIAL_GROUP_HIE'.
WHEN OTHERS.
IF 1 = 2. MESSAGE e009(r3). ENDIF.
this is a typical log call. Please write every error message like this
log_write 'E' "message type
'R3' "message class
'009' "message number
i_dsource "message variable 1
' '. "message variable 2
RAISE error_passed_to_mess_handler.
ENDCASE.
APPEND LINES OF i_t_select TO s_s_if-t_select.
Fill parameter buffer for data extraction calls
s_s_if-requnr = i_requnr.
s_s_if-dsource = i_dsource.
s_s_if-maxsize = i_maxsize.
Fill field list table for an optimized select statement
(in case that there is no 1:1 relation between InfoSource fields
and database table fields this may be far from beeing trivial)
APPEND LINES OF i_t_fields TO s_s_if-t_fields.
ELSE. "Initialization mode or data extraction ?
Data transfer: First Call OPEN CURSOR + FETCH
Following Calls FETCH only
First data package -> OPEN CURSOR
IF s_counter_datapakid = 0.
Fill range tables BW will only pass down simple selection criteria
of the type SIGN = 'I' and OPTION = 'EQ' or OPTION = 'BT'.
LOOP AT s_s_if-t_select INTO l_s_select WHERE fieldnm = '0MATERIAL'.
MOVE-CORRESPONDING l_s_select TO l_r_nodename.
APPEND l_r_nodename.
ENDLOOP.
LOOP AT s_s_if-t_select INTO l_s_select WHERE fieldnm = 'HIEID'.
MOVE-CORRESPONDING l_s_select TO l_r_hieid.
APPEND l_r_hieid.
ENDLOOP.
Get the data from Hierarchy table
SELECT * FROM /BI0/HMATL_GROUP INTO CORRESPONDING FIELDS OF
TABLE t_hmat
WHERE hieid IN l_r_hieid
AND objvers = 'A' .
ENDIF.
loop through all the 0MATERIAL entries to get all the hirarchy levels.
Start of change.
LOOP AT t_hmat ASSIGNING <f>
WHERE iobjnm = '0MATL_GROUP'
AND nodename IN l_r_nodename.
LOOP AT t_hmat ASSIGNING <f>
WHERE nodename IN l_r_nodename.
End of change
lv_count = <f>-tlevel.
"refresh t_flathier.
CLEAR: t_flathier. ", lv_level, count.
MOVE :
<f>-hieid TO lv_hieid ,
<f>-nodename TO t_flathier-material,
<f>-parentid TO lv_id.
if <f>-iobjnm <> '0MATL_GROUP' .
move <f>-nodename+3 to t_flathier-material .
else.
move <f>-nodename to t_flathier-material .
endif.
Added for Last level.
if lv_count = '1' .
*t_flathier-lv1_name = t_flathier-material .
elseif lv_count = '2' .
t_flathier-lv2_name = t_flathier-material .
elseif lv_count = '3' .
t_flathier-lv3_name = t_flathier-material .
elseif lv_count = '4' .
t_flathier-lv4_name = t_flathier-material .
elseif lv_count = '5' .
t_flathier-lv5_name = t_flathier-material .
elseif lv_count = '6' .
t_flathier-lv6_name = t_flathier-material .
elseif lv_count = '7' .
t_flathier-lv7_name = t_flathier-material .
elseif lv_count = '8' .
t_flathier-lv8_name = t_flathier-material .
elseif lv_count = '9' .
t_flathier-lv9_name = t_flathier-material .
elseif lv_count = '10' .
t_flathier-lv10_name = t_flathier-material .
endif.
DO lv_count TIMES .
lv_count = lv_count - 1.
IF lv_count = 1.
EXIT.
ENDIF.
READ TABLE t_hmat WITH KEY
hieid = lv_hieid
nodeid = lv_id.
IF sy-subrc = 0.
CLEAR lv_id.
CASE lv_count.
WHEN '11' .
MOVE : t_hmat-nodename+3 TO t_flathier-lv11_name,
t_hmat-parentid TO lv_id.
WHEN '10' .
MOVE : t_hmat-nodename+3 TO t_flathier-lv10_name,
t_hmat-parentid TO lv_id.
WHEN '9' .
MOVE : t_hmat-nodename+3 TO t_flathier-lv9_name,
t_hmat-parentid TO lv_id.
WHEN '8' .
MOVE : t_hmat-nodename+3 TO t_flathier-lv8_name,
t_hmat-parentid TO lv_id.
WHEN '7' .
MOVE : t_hmat-nodename+3 TO t_flathier-lv7_name,
t_hmat-parentid TO lv_id.
WHEN '6' .
MOVE : t_hmat-nodename+3 TO t_flathier-lv6_name,
t_hmat-parentid TO lv_id.
WHEN '5' .
MOVE : t_hmat-nodename+3 TO t_flathier-lv5_name,
t_hmat-parentid TO lv_id.
WHEN '4' .
MOVE : t_hmat-nodename+3 TO t_flathier-lv4_name,
t_hmat-parentid TO lv_id.
WHEN '3' .
MOVE : t_hmat-nodename+3 TO t_flathier-lv3_name,
t_hmat-parentid TO lv_id.
WHEN '2' .
MOVE : t_hmat-nodename+3 TO t_flathier-lv2_name.
ENDCASE.
ENDIF.
ENDDO.
Populate data for level 1 (Class Type)
READ TABLE t_hmat WITH KEY
hieid = lv_hieid
tlevel = 1.
IF sy-subrc = 0.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
EXPORTING
input = t_hmat-nodename
IMPORTING
output = e_t_data-0class_type.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = e_t_data-0class_type
IMPORTING
output = e_t_data-0class_type.
ENDIF.
populate data to extraction structure ( removing prefixe 'class type')
MOVE : lv_hieid TO e_t_data-hieid,
t_flathier-lv2_name TO e_t_data-xhier_lv1,
t_flathier-lv3_name TO e_t_data-xhier_lv2,
t_flathier-lv4_name TO e_t_data-xhier_lv3,
t_flathier-lv5_name TO e_t_data-xhier_lv4,
t_flathier-lv6_name TO e_t_data-xhier_lv5,
t_flathier-lv7_name TO e_t_data-xhier_lv6,
t_flathier-lv8_name TO e_t_data-xhier_lv7,
t_flathier-lv9_name TO e_t_data-xhier_lv8,
t_flathier-lv10_name TO e_t_data-xhier_lv9,
t_flathier-lv11_name TO e_t_data-xhie_lv10,
t_flathier-material TO e_t_data-0MATL_GROUP.
APPEND e_t_data.
CLEAR e_t_data.
ENDLOOP.
s_counter_datapakid = s_counter_datapakid + 1.
IF s_counter_datapakid > 1 .
RAISE no_more_data.
ENDIF.
ENDIF. "Initialization mode or data extraction ?
ENDFUNCTION.
As now when I run it in Tcode RSA3 it give only one data packet of some 5k to 6k records.
Thanks in advance for your help.
Pawan.
Hi PS,
Instead of
SELECT * FROM /BI0/HMATL_GROUP INTO CORRESPONDING FIELDS OF
TABLE t_hmat
WHERE hieid IN l_r_hieid
AND objvers = 'A' .
code should look like this .
OPEN CURSOR WITH HOLD S_CURSOR FOR
SELECT (S_S_IF-T_FIELDS) FROM /BI0/HMATL_GROUP
FETCH NEXT CURSOR S_CURSOR
APPENDING CORRESPONDING FIELDS
OF TABLE E_T_DATA
PACKAGE SIZE S_S_IF-MAXSIZE.
For more information refer to sample code of fm "RSAX_BIW_GET_DATA_SIMPLE"
Hope that helps.
Regards
Mr Kapadia
***Assigning points is the way to say thanks in SDN.***
Similar Messages
-
Error on clicking "Report Data Source" in library created using power pivot template
Hi,
On clicking on "Report Data Source" in library created using power pivot template i am getting below exception. Can some one help me in understanding the root cause / fix it.
Error being shown: Microsoft.ReportingServices.SharePoint.SharedService.Client.RecoverableCommunicationException: The content type text/html; charset=utf-8 of the response message does not match the content type of the binding (application/soap+msbin1).
If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly. The first 1024 bytes of the response were: '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>IIS 8.0 Detailed Error - 500.19 - Internal Server Error</title> <style type="text/css"> <!-- body{margin:0;font-size:.7em;font-family:Verdana,Arial,Helvetica,sans-serif;}
code{margin:0;color:#006600;font-size:1.1em;font-weight:bold;} .config_source code{font-size:.8em;color:#000000;} pre{margin:0;font-size:1.4em;word-wrap:break-word;} ul,ol{margin:10px 0 10px 5px;} ul.first,ol.first{margin-top:5px;}
fieldset{padding:0 15px 10px 15px;word-break:break-all;} .summary-container fieldset{padding-bottom:5px;margin-top:4px;} legend.no-expand-all{padding:2px 15px 4px 10px;margin:0 0 0 -12px;} legend{color:#333333;;margin:4px 0 8px -12px;_margin-top:0px;
font-weight:bold;font-size:1em;} a:link,a:visited{color:#007EFF;font-weight:bold;} a:hover{text-decoration:none;} h1{font-size:2.4em;margin:0;color:#FFF;} h2{font-size:1.7em;margin:0'. ---> System.ServiceModel.ProtocolException:
The content type text/html; charset=utf-8 of the response message does not match the content type of the binding (application/soap+msbin1). If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly. The first 1024
bytes of the response were: '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>IIS
8.0 Detailed Error - 500.19 - Internal Server Error</title> <style type="text/css"> <!-- body{margin:0;font-size:.7em;font-family:Verdana,Arial,Helvetica,sans-serif;} code{margin:0;color:#006600;font-size:1.1em;font-weight:bold;}
.config_source code{font-size:.8em;color:#000000;} pre{margin:0;font-size:1.4em;word-wrap:break-word;} ul,ol{margin:10px 0 10px 5px;} ul.first,ol.first{margin-top:5px;} fieldset{padding:0 15px 10px 15px;word-break:break-all;}
.summary-container fieldset{padding-bottom:5px;margin-top:4px;} legend.no-expand-all{padding:2px 15px 4px 10px;margin:0 0 0 -12px;} legend{color:#333333;;margin:4px 0 8px -12px;_margin-top:0px; font-weight:bold;font-size:1em;} a:link,a:visited{color:#007EFF;font-weight:bold;}
a:hover{text-decoration:none;} h1{font-size:2.4em;margin:0;color:#FFF;} h2{font-size:1.7em;margin:0'. ---> System.Net.WebException: The remote server returned an error: (500) Internal Server Error.
at System.Net.HttpWebRequest.GetResponse()
at System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout) -
-- End of inner exception stack trace --- Server stack trace:
at System.ServiceModel.Channels.HttpChannelUtilities.ValidateRequestReplyResponse(HttpWebRequest request, HttpWebResponse response, HttpChannelFactory`1 factory, WebException responseException, ChannelBinding channelBinding)
at System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
at System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout)
at System.ServiceModel.Channels.SecurityChannelFactory`1.SecurityRequestChannel.Request(Message message, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message) Exception rethrown
at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at Microsoft.ReportingServices.ServiceContract.IReportServiceManagement.get_IsWebServiceEnabled()
at Microsoft.ReportingServices.SharePoint.SharedService.Client.ReportingWebServiceApplicationProxy.<>c__DisplayClass8`1.<ExecuteOnApplication>b__6(IReportServiceManagement proxy, Int32 dummy)
at Microsoft.ReportingServices.SharePoint.SharedService.Client.ReportingWebServiceApplicationProxy.ExecuteOnChannel[T](String siteUrl, String xmlNamespace, Action`2 method, IChannel channel, Int32 maxFaultSize)
at Microsoft.ReportingServices.SharePoint.SharedService.Client.ReportingWebServiceApplicationProxy.HandleExecuteOnChannel[T](String siteUrl, String xmlNamespace, Action`2 method, SPServiceLoadBalancerContext loadBalancerContext) -
-- End of inner exception stack trace ---
at Microsoft.ReportingServices.SharePoint.SharedService.Client.ReportingWebServiceApplicationProxy.HandleExecuteOnChannel[T](String siteUrl, String xmlNamespace, Action`2 method, SPServiceLoadBalancerContext loadBalancerContext)
at Microsoft.ReportingServices.SharePoint.SharedService.Client.ReportingWebServiceApplicationProxy.ExecuteOnApplication[T](String operationName, String siteUrl, String xmlNamespace, Action`2 method)
at Microsoft.ReportingServices.SharePoint.SharedService.Client.ReportingWebServiceApplicationProxy.Invoke[T](SPServiceContext serviceContext, String operationName, String siteUrl, String xmlNamespace, Guid serviceInstanceId, Action`2 method)
at Microsoft.ReportingServices.SharePoint.SharedService.Client.ReportingWebServiceClient.Execute[TResult](String methodName, Func`2 action)
at Microsoft.ReportingServices.SharePoint.UI.BaseRSLayoutPage.ValidateReportServerConnection(SrvProxy rsProxy)
Followed steps from below link :
http://www.mssqltips.com/sqlservertip/3004/getting-started-with-power-view-reports-with-sharepoint-excel-and-sql-server/
Thanks,
VenugopalHi Venugopal,
Please refer to the blogs below and see if it works for your case:
http://sharepointerthilosh.blogspot.com/2013/10/sharepoint-2013-reports-unexpected.html
http://badalratra.wordpress.com/2014/03/13/error-the-content-type-texthtml/
To create a Power View report, start Power View from a
data model file in SharePoint Server 2010 or 2013. Models, or connections to models, can be in a SharePoint Server document library or in a
Power Pivot Gallery, a special purpose SharePoint Server document library that provides rich preview and document management for published Microsoft Excel workbooks that contain data models.
Please refer to the links below to get report in Power View in SharePoint server:
http://office.microsoft.com/en-in/excel-help/power-view-in-sharepoint-server-create-save-and-print-reports-HA102834736.aspx
http://office.microsoft.com/en-in/excel-help/create-a-connection-to-a-data-model-for-power-view-HA102835737.aspx
Regards,
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected] .
Rebecca Tu
TechNet Community Support -
Data source creation for service contract configuration
Hello all,
I have to create a data source for extraction of service contract configuration. I think this could work like data source creation for sales order creation, but I don't know waht to enter in transaction CTBW. Anyone here has done this previously? Any pointers and/or the strategy you've used will be useful.
Kind regards,
SimonHi,
If you are asking about "CRM sales contracts", The following help gives the info about standard ODS and Datasource.
http://help.sap.com/saphelp_nw2004s/helpdata/en/d5/9fcd3b869e7d72e10000000a11402f/frameset.htm
With rgds,
Anil Kumar Sharma .P -
Data source properties for the rulefiles.
Could some one explain what is the use of field edits like move/split/join/create of data source properties for the rulefiles.
move/split/join/create are very useful loading data without going back to source file and changing them. For example
you have an entity dimension with member names like
east10569
east10658
if you want to add a prefix for these members to make them unique, you can use those field edits.
the other uses which I saw is concatination to create unique names etc.
hope this helps -
Need Expert advice on choosing Source System for creating/maint Customers.
Hi Experts,
Iam on project where we have CRM,ECC(SD),FICA in the System Landscape.The client is currently using ECC(SD) Customer master for creating/maintainig Customer's.As we have CRM & FICA in this implementation, we are planning to propose that we use CRM as the source system for creating/maintaing Customers as Business Partners & Perform standard replication to the other system's in the landscape.
The client has has asked us to confirm if having CRM as the source is the Best practice in the industry when we have this three systems (CRM,FICA,ECC(SD)) Landscape.I thought to get some expert advice on this & see if any of you have a similar project experience & share some views on this CRM BP vs ECC(SD) Customer Master.
Thanks in advance!
Regards,
NaveenHi,
I believe it depends on your business senario.Here I can share some my experience for you.
CRM As Source System
Advantage:
1) Choosing CRM as source system ,you can create several roles of customer for tracking the presales process of customer,such as prospect ,sold to party ,customers ,also you can define the life cycle of your customer and control which life cycle of customer should be replicated to ECC and which one should not.
2) CRM can have more views of customer and customer defined field (EEWB fields) ,so if you choose CRM as Source it will be more convenient to create and fill in the all your user defined field .In other words ,choosing ECC as source you have to extend these field again in CRM .
3) easy to maintain customer relationship
Disadvantages:
1) Have to extend Company code view of Customer data, since CRM do not have these view ,it is just used for billing and integration with financial accounts.
2) have to extend some particular partner function of customer ,it is because of CRM it is only possible to create part of partner function automatically like SP ,BP when business partner is replicating to ECC.
ECC As the source
Oppositely, if you choose ECC as the source ,the advantage become disadvantage.
Advantage :
1) Can Easily to create customer's data of company code view
2) Can easily to assign any partner function to customer
To conclude, if you only need to create sales order in ECC ,I believe choosing ECC as Lead system is better, since you do not have to extend customer data and easily to integrate with FICO and SD.Howerver, if you are going to create a sales order from opportunity or quotation ,CRM is your best choice.
Regards ,Edward -
Data source cannot be created : MAPVIEWER-00011: Error creating a map data
Hi everyone,
i am getting an error meaasge while creating datasource
" Data source cannot be created : MAPVIEWER-00011: Error creating a map data source."
pls helpYou should assign only one value to jdbc_sid. Try with this
<map_data_source name="mvdemo"
jdbc_host="localhost"
jdbc_sid="orcl"
jdbc_port="1521"
jdbc_user="mvdemo"
jdbc_password="!mvdemo"
jdbc_mode="thin"
number_of_mappers="3"
allow_jdbc_theme_based_foi="false"
/>
Make sure that oracle sid is 'ORCL'
Sujnan -
What are the Non SAP data sources supported for Analysis workbooks?
AO 1.4 SP6
BO 4.1 SP2
What are the Non SAP data sources supported for Analysis workbooks?
Thanks.HANA is a data source (which could contain non-SAP data)
For other Excel front-ends that may connect to "non-SAP" data look at Live Office or Power BI by Microsoft - see Excel and Power BI connectivity to SAP BusinessObjects Universes | Power BI -
Data source value for data source reportData was null
hi i'm using struts 2 and jasperreports my problem is
it generate a pdf file with labels but no data in it..
and when i try to look at the logs of my sun application server
it says Data source value for datasource reportData was null.
reportData is an ArrayList of Personnel object.
here is my code..
public class EIS_HR_004_JASPER extends eisSupport {
private String reportId;
private String dateStart = null;
private String dateEnd = null;
private String pdfFile;
private final static String _REPORT_FOLDER = "EIS_HR_003";
private Report thisReport;
private String dateRange;
private ArrayList<Personnel> reportData;
public String execute(ActionMapping mapping,ActionForm form,
HttpServletRequest request, HttpServletResponse response)
throws Exception {
ReportBean reportBean = new ReportBean();
setThisReport(reportBean.getReport(getReportId()));
reportData=new ArrayList<Personnel>();
Personnel p1=new Personnel();
p1.setSurname("Dela Cruz");
p1.setFirstname("Juan");
p1.setExamcode("CSC111");
p1.setExamdate("January 1,2003");
Personnel p2=new Personnel();
p2.setSurname("Cruz");
p2.setFirstname("Miguel");
p2.setExamcode("CSC222");
p2.setExamdate("December 2,2003");
reportData.add(p1);
reportData.add(p2);
try {
JasperCompileManager.compileReportToFile(
"apps/reports/templates/hr004.jrxml",
"apps/reports/templates/hr004.jasper");
} catch (Exception e) {
e.printStackTrace();
return ERROR;
return SUCCESS;
public ArrayList<Personnel> getReportData() {
// setReportData();
return reportData;
here is part of my struts.xml
<action name="EIS-HR-004_JASPER" class="eis.report.EIS_HR_004_JASPER">
<result name="error">/apps/reports/ReportNotFound.jsp</result>
<result name="success" type="jasper">
<param name="location">apps/reports/templates/hr004.jasper</param>
<param name="dataSource">reportData</param>
<param name="format">PDF</param>
</result>
</action> i dont know why it doesnt retrieved the data from the ArrayList?
please help me..Thanks in advance.Hi,
Looking at the code, it seems you are compiling a JRXML and that is all.
Instead, you should fill it with data and then export the result to PDF.
No wonder you don't see any result.
You need to learn more about how JasperReports work. For a start, I can tell you that you could compile JRXML files as part of the application build process using an Ant task, and not dynamically, like you did. But no matter how you compile the report template, you actually need to fill it with data, using the JasperFillManager and then export it to PDF using the JasperExportManager.
You can see all this in our samples in the /demo/samples folder that is part of our project distribution package. There is even a sample Web application in the /demo/samples/webapp folder.
I hope this helps.
Teodor -
What is Attr data source name for SOLD,BILL and SHIP TO PARTY
Hi all,
I want master data source names for these SOLD,BILL and SHIP TO PARTY.
Bill to party,Ship to party and Sold to party Master data source names.
Plz give me Some help on this.
i want solution very urgently.
Thanks,
Guna.Dear Gunasekhar,
There are no separate datasource for 0sold to, 0ship to and 0bill to parties.
They are referrenced to 0CUSTOMER in BW. and the datasources for 0customer are 0CUSTOMER_ATTR and 0CUSTOMER_TEXT.
Assign points if useful
Regards
Venkata Devaraj!!! -
OracleAS Data Source Plugin for OmniPortlet for SAP
Hi,
What is the later version for the OracleAS Data Source Plugin for OmniPortlet for SAP ?
Still BETA release ?
thanksHello,
We get the same error message for our WD4J application now
"JCo data source missing for type: class com.company.application.main.model.Tvm1T class com.sap.aii.proxy.framework.core.DataAccessException"
Does anybody know the reason for this?
Thanks,
Robert -
Remove data source queue for datasource
Hi,
How to remove data source queue for datasource ?
Regards,
PatrickDepends on which datasource you are dealing with.
Normally you can just delete the delta queue from transaction RSA7 in the source system. If you are dealing with logistic datasources it might be different.
Hope it helps.
BR
Stefan -
Help req in table s525 ( any standard data source avaialable for table s5)
Hi all,
i want to know any standatrd data source available for the table s525 - MRP Exception Message Detail
pl help me on this ..
Thanks
sivakumar rpl any one help me
any std data source available for the table s525 -
HELP "Data source cannot be created : t2cGetCharSet"
HELP "Data source cannot be created : t2cGetCharSet" in OracleAS MapViewer Version: Ver10131_B061023
HELP "Data source cannot be created : [MapperConfig] no se puede agregar el origen de datos de mapa."
-
How to findout the data source information for the perticular tables
Hi,
Can you please tell me the process to findout the data source information for the perticular tables .
For ex.. T2503 ,T2507 ,T25A1,T25A2 etc ..
I am doing a reverse engineering to find out the data sources build on the above SAP Tables.
Thanks.Hi,
Still we haven't get the field level information ,before they send us we should first give them the corresponding data sources for the COPA tables which they have given .
I have searched in help.sap.com but I didn't find any information on this .
Please let me know is there any way to know the data source details for SAP Tables.
Thanks -
No master data source mainatenance for object
Dear SDN.
I want to look for master data for object but it gives message.
No master data source mainatenance for object.
What is going on wrong.Hi,
When you are prompted for the infoobject in master data read you shoud give the main characteristic name, not the attribute name(attribute which is there in the data target). It will map the attribute automatically.
Regards,
Amruth
Maybe you are looking for
-
I have a QNAP NAS which is connected to my Mac Mini. When turning on I see my folders as folders, although one folder (might be too big) is not present. After my computer turns off in energy saving mode and after starting it again, some of the folder
-
I'm on system 10.5.8. Firefox 4.0.1 works on my desktop but won't open on the other user's desktop (although it has been downloaded and dragged to his applications). We get the message "A copy of Firefox is already open. Only one copy of Firefox can
-
Color values shift from Illustrator to Photoshop
Hi there: Hopefully someone has an answer for me (my apologies if this has been addressed before)? When I open up a EPS file in Illustrator CS5, the blacks read !00% for RGB. When exported as a JPG, Photoshop CS5 reads it as 0-0-0. So far so good.
-
My iPhone and iCloud stopped syncing
My contacts and calendars (iCal and Google) were syncing fine until a few weeks ago, when they suddenly stopped. Anything I add to the phone doesn't go on the MacBook, and vice versa. I've checked my settings on my phone, and all appears fine. I h
-
bought an iphone off a friend and i cant activate it as they dont know there password so i can reset the phone , can anyone help