Date format while calling RFC??
Hi all,
Do we need to format date in WDJ while calling a RFC function module??
I am trying to populate with the code.
import java.sql.Date;
Date payDate;
payDate = wdContext.currentContextElement().getSelectedPayDate();
incInput1.setPay_Date(payDate);
and i am getting the following error
java.lang.arrayindexoutofboundsexceptio.
at com.sap.mw.jco.JCO$MetaData.getType(JCO.java10179)
at com.sap.aii.proxy.framework.core.jcobasetypedata.selelementvalue(jcobasetypedata.java :731)
i got this error when i added a new date paramter to my FM and reimported the model pls. gimme ur suggestions.
Thanks,
Srini..
Hi Ganga,
I did every thing you said already, but still some thiing is going wrong.. and i am not facing any nullpointer exception it has a date value..
the following is the error trace.
[code]java.lang.ArrayIndexOutOfBoundsException
at com.sap.mw.jco.JCO$MetaData.getType(JCO.java:10179)
at com.sap.aii.proxy.framework.core.JcoBaseTypeData.setElementValue(JcoBaseTypeData.java:731)
at com.sap.tc.webdynpro.modelimpl.dynamicrfc.DynamicRFCModelClass.setAttributeValueAsDate(DynamicRFCModelClass.java:578)
at com.peabodyenergy.compensationcommunication.Zhr_Get_Incentive_Data_Input.setPay_Date(Zhr_Get_Incentive_Data_Input.java:237)
at com.sap.xss.hr.ecm.review.VEcmReviewView.printIncentiveLetter(VEcmReviewView.java:305)[/code]
Similar Messages
-
Error while calling RFC when using BSP Web Interface
Hi,
we have a problem with the Authorization when we use an Web Interface for BSP. We have assigned all roles to the user which were mentioned in the SAP standard documentation:
R_AREA
R_METHOD
R_PACKAGE
R_PARAM
R_PLEVEL
R_PM_NAME
R_PROFILE
R_STS_PT
R_STS_SUP
R_WEBITF
S_RS_ADMWB
S_RS_AUTH
S_RS_COMP
S_RS_COMP1
S_RS_DAS
S_RS_ICUBE
but we still get the error message: "Error while calling RFC".
When using a user with SAP_ALL, it works.
What can we do?
Thx for your time.
JoergActually that's surprising - because BSP (Business Server Pages) and RFC (Remote Function Call) are not related; they use totally different transport protocols (http vs. RFC). Even if an BSP application is calling a function module remotely (acting as RFC client) no authorizations for S_RFC are required - in the calling system (but in the called system, i.e. the RFC server).
Since assigning SAP_ALL seems to "cure" the problem, it seems to be an authorization issue, indeed. In that case it makes sense to use the authorization trace (ST01 - notice: that's specific to one single ABAP application server; you might have to activate the trace on multiple instances) to find out which authorizations are checked / demanded. -
Error while calling RFC adapter(FILE-XI-RFC scenario)
Hi,
I am trying for FILE-XI-RFC scenario. I am getting the following error. I have checked in message monitoring. The error is coming while calling the RFC adapter. Can any body tell what problem is this?
Regards,
Dhana
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <!-- Call Adapter
-->
- <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
<SAP:Category>XIServer</SAP:Category>
<SAP:Code area="INTERNAL">AE_DETAILS_GET_ERROR</SAP:Code>
<SAP:P1>af.f23.sofd00001530a</SAP:P1>
<SAP:P2 />
<SAP:P3 />
<SAP:P4 />
<SAP:AdditionalText>2: Unable to find URL for Adapter Engine af.u7a.us4296</SAP:AdditionalText>
<SAP:ApplicationFaultMessage namespace="" />
<SAP:Stack>Error while reading access data (URL, user, password) for the Adapter Engine af.f23.sofd00001530a</SAP:Stack>
<SAP:Retry>M</SAP:Retry>
</SAP:Error>Hi,
I did SLD check.
The status says 'Summary: Connection to SLD works correctly'.
But it fails while checking the access to XI profile.
Here is the status
Summary: Connection to SLD works correctly
Now checking access to the XI Profile
Properties of RFC destination LCRSAPRFC
RFC host:
%%RFCSERVER%%
program id: LCRSAPRFC_DZ1
gateway host:
gateway service:
Testing the RFC connection to the SLD java client...
RFC ping returned exception with message:
/ CPIC-CALL: 'ThSAPOCMINIT' : cmRc=2 thRc=679#Transaction program not registere -
Changes in date format while creating/downloading the file
Hi All,
Can any one let me know how does the system determines which date format should it apply while creating/downloading the file.
Issue :
When I create/download the file generated by report RTXWCF02 using unix level acess the Date format of a field in file is DD.MM.YYYY where as in user profile i can see its in MM/DD/YYYY.
I dont understand how system determines the date format and How we can change it. Please suggest.
Regards,
Ravi KasnaleI would suggest you to use ALV_XXL_CALL if your want to keep your data formats intact.
like this - CALL FUNCTION 'ALV_XXL_CALL'
EXPORTING
i_tabname = 'T_GRID' " Name of your internal table
it_fieldcat = t_fcatk[] "Your LAV grids catalog.
TABLES
it_outtab = t_grid "Internal table itself
EXCEPTIONS
fatal_error = 1
no_display_possible = 2
OTHERS = 3.
IF sy-subrc <> 0.
MESSAGE e806(bk).
ENDIF.
hope it helps. -
Hi people,
I have developed a function module in R/3 system and wants to access it in BW system. While checking syntax, it do not give any error. But when I try to execute the function module in BW, I get short dump saying please check the name of the Function Module in SE37.
The call of RFC is like :
CALL FUNCTION 'ZFM_POUSR' DESTINATION dest
IMPORTING
table = itab
EXCEPTIONS
system_failure = 1
communication_failure = 2
cx_sy_dyn_call_illegal_type = 3
OTHERS = 4.
IF sy-subrc <> 0.
EXIT.
ENDIF.
Please suggest solution.
Thanks in Advance.
NitinHi,
http://help.sap.com/saphelp_nw04/helpdata/en/13/90a594a1ab0841bbb731bdec1a7fd7/content.htm - check this link for handling exception when calling RFCs
call the function like below
data: list like UINFO occurs 0 with header line .
CALL FUNCTION 'TH_USER_LIST' destination <dest>
TABLES
list = list
exceptions
communication_failure = 1
system_failure = 2 .
if sy-subrc ne 0 .
handle error here
endif .
<b>Reward points</b>
Regards -
We migrated Packages from SSIS 2008 to 2012. The Package is working fine in all the environments except in one of our environment.
SSIS 2012 is intermittently failing with below error while importing data from a source table into a Destination table with same exact schema.
Error: 2014-01-28 15:52:05.19
Code: 0x80004005
Source: xxxxxxxx SSIS.Pipeline
Description: Unspecified error
End Error
Error: 2014-01-28 15:52:05.19
Code: 0xC0202009
Source: Process xxxxxx Load TableName [48]
Description: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80004005.
An OLE DB record is available. Source: "Microsoft SQL Server Native Client 11.0" Hresult: 0x80004005 Description: "Invalid date format".
End Error
Error: 2014-01-28 15:52:05.19
Code: 0xC020901C
Source: Process xxxxxxxx Load TableName [48]
Description: There was an error with Load TableName.Inputs[OLE DB Destination Input].Columns[Updated] on Load TableName.Inputs[OLE DB Destination Input]. The column status returned was: "Conversion failed because the data value overflowed
the specified type.".
End Error
But when we reorder the column in "Updated" in Destination table, the package is importing data successfully.
This looks like bug to me, Any suggestion?Hi Mohideen,
Based on my research, the issue might be related to one of the following factors:
Memory pressure. Check there is a memory challenge when the issue occurs. In addition, if the package runs in 32-bit runtime on the specific server, use the 64-bit runtime instead.
A known issue with SQL Native Client. As a workaround, use .NET data provider instead of SNAC.
Hope this helps.
Regards,
Mike Yin
If you have any feedback on our support, please click
here
Mike Yin
TechNet Community Support -
I am trying to run this AR API, for a perticular set of value in Oracle R12 instance...
DECLARE
L_RETURN_STATUS VARCHAR2(1);
L_MSG_COUNT NUMBER;
L_MSG_DATA VARCHAR2(2000);
L_BATCH_SOURCE_REC AR_INVOICE_API_PUB.BATCH_SOURCE_REC_TYPE;
L_TRX_HEADER_TBL AR_INVOICE_API_PUB.TRX_HEADER_TBL_TYPE;
L_TRX_LINES_TBL AR_INVOICE_API_PUB.TRX_LINE_TBL_TYPE;
L_TRX_DIST_TBL AR_INVOICE_API_PUB.TRX_DIST_TBL_TYPE;
L_TRX_SALESCREDITS_TBL AR_INVOICE_API_PUB.TRX_SALESCREDITS_TBL_TYPE;
BEGIN
FND_GLOBAL.APPS_INITIALIZE(112,50368,7000);
MO_GLOBAL.SET_POLICY_CONTEXT('S',82);
L_BATCH_SOURCE_REC.BATCH_SOURCE_ID := 1024;
L_TRX_HEADER_TBL(1).TRX_HEADER_ID := 16828;
L_TRX_HEADER_TBL(1).TRX_NUMBER := '620121V';
L_TRX_HEADER_TBL(1).TRX_DATE := '29-APR-08';
L_TRX_HEADER_TBL(1).GL_DATE := '30-SEP-2010';
L_TRX_HEADER_TBL(1).TRX_CURRENCY := 'INR';
L_TRX_HEADER_TBL(1).CUST_TRX_TYPE_ID := 1033;
L_TRX_HEADER_TBL(1).BILL_TO_CUSTOMER_ID := 8256;
L_TRX_HEADER_TBL(1).BILL_TO_ADDRESS_ID := 1476;
L_TRX_HEADER_TBL(1).SHIP_TO_CUSTOMER_ID := 8256;
L_TRX_HEADER_TBL(1).SHIP_TO_ADDRESS_ID := 1476;
L_TRX_HEADER_TBL(1).BILL_TO_SITE_USE_ID := 1687;
L_TRX_HEADER_TBL(1).TERM_ID := 1001;
L_TRX_HEADER_TBL(1).ORG_ID := 82;
L_TRX_HEADER_TBL(1).TRX_CLASS := 'INV';
L_TRX_HEADER_TBL(1).REFERENCE_NUMBER := NULL;
L_TRX_HEADER_TBL(1).COMMENTS := 'Sale';
L_TRX_LINES_TBL(1).TRX_HEADER_ID := 16828;
L_TRX_LINES_TBL(1).TRX_LINE_ID := 16864;
L_TRX_LINES_TBL(1).WAREHOUSE_ID := 102;
L_TRX_LINES_TBL(1).QUANTITY_INVOICED := 1;
L_TRX_LINES_TBL(1).MEMO_LINE_ID := 1001;
L_TRX_LINES_TBL(1).UNIT_SELLING_PRICE := 8070;
L_TRX_LINES_TBL(1).LINE_NUMBER := 1;
L_TRX_LINES_TBL(1).AMOUNT := 8070;
L_TRX_LINES_TBL(1).LINE_TYPE := 'LINE';
L_TRX_LINES_TBL(1).INTERFACE_LINE_CONTEXT := 'CONVERSION';
L_TRX_LINES_TBL(1).INTERFACE_LINE_ATTRIBUTE1 := 3882;
L_TRX_LINES_TBL(1).INTERFACE_LINE_ATTRIBUTE2 := 1;
L_TRX_LINES_TBL(1).INTERFACE_LINE_ATTRIBUTE3 := 'Sale';
L_TRX_LINES_TBL(1).DESCRIPTION := 'Conversion';
AR_INVOICE_API_PUB.CREATE_INVOICE(P_API_VERSION => 1.0,
P_BATCH_SOURCE_REC => L_BATCH_SOURCE_REC,
P_TRX_HEADER_TBL => L_TRX_HEADER_TBL,
P_TRX_LINES_TBL => L_TRX_LINES_TBL,
P_TRX_DIST_TBL => L_TRX_DIST_TBL,
P_TRX_SALESCREDITS_TBL => L_TRX_SALESCREDITS_TBL,
X_RETURN_STATUS => L_RETURN_STATUS,
X_MSG_COUNT => L_MSG_COUNT,
X_MSG_DATA => L_MSG_DATA);
IF ((L_RETURN_STATUS = FND_API.G_RET_STS_ERROR) OR (L_RETURN_STATUS = FND_API.G_RET_STS_UNEXP_ERROR)) THEN
DBMS_OUTPUT.PUT_LINE('Unexpected Errors Found While Calling API');
END IF;
DBMS_OUTPUT.PUT_LINE(CHR(10));
DBMS_OUTPUT.PUT_LINE('L_RETURN_STATUS: '||L_RETURN_STATUS);
DBMS_OUTPUT.PUT_LINE('L_MSG_COUNT: '||L_MSG_COUNT);
DBMS_OUTPUT.PUT_LINE('L_MSG_DATA: '||L_MSG_DATA);
DBMS_OUTPUT.PUT_LINE(CHR(10));
END;
On running this,the output comes as -
Unexpected Errors Found While Calling API
L_RETURN_STATUS: U
L_MSG_COUNT:
L_MSG_DATA: Error in AR_INVOICE_UTILS.validate_tax_exemption ORA-01403: no data found
Can some one help me out where am i going wrong???Hi Gourab
You have posted this request to the wrong forum, so no one here will be able to help you.
I believe the correct forum for the question you are asking is the EBS Financials forum:
Financials
Please try posting your query there, hopefully someone there will be able to help you.
Regards
Simon Kissane
Oracle Support -
Date format for call transaction
Hi,
What is the best solution for passing a date field to a call transaction in the date format that the user has in his settings?.
RgdsThe best solution is to define a character field of length 10. Then WRITE the date to the BDC_DATE and then use this variable when passing to BDC.
data: bdc_date(10) type c.
write sy-datum to bdc_Date.
Regards,
Rich Heilman -
How to modify Bridge CS6 default sub-folder date format while importing?
How could I modify Bridge CS6 default sub-folder date format when we are importing images from a connected camera? Default format for shooting date is aaaammjj. I would like instead aaaa_mm_jj. How could I add "_" to the date format?
You only can do so after the import process using a third party app called A better finder Rename, originally designed for Mac but they seem to have a Windows version also:
http://www.publicspace.net/ABetterFinderRename/ -
Customisation of Date format while Scheduling reports
Hello,
While I am scheduling a report,in reccurance-Dateformat-RunObject and option is Hourly,
the StartDate/Time format needs to change from 07 - 20 -AM 06/07/2009 to 06/Jul/2009 07-20- AM or equivalent time format.
Is there any options to customise the time format like above while schedling the report.
ThanksIf you are scheduling from CMC or Infoview then you won't be able to customize it. If you are scheduleing from a custom application then you can build a screen whoch shows a date format in desired way so that the end user can select start and end time.
-
Hi all WebDynpro Gurus
I am using EP7.
I am developing an WD application for KM functionality in which I need to call RFC from backend. I followed the "<b>Creating WD application accessing ABAP function</b>" example.
But when I executed the application I got following exception.
<i><b>Root Cause</b>
The initial exception that caused the request to fail, was:
com.sap.lcr.api.cimclient.CIMClientException: java.net.MalformedURLException: URL must have a host part
<b>Correction Hints</b>
Accessing the System Landsape Directory (SLD) failed. Depending on the concrete reason (see root cause) check the following:
is the SLD Supplier in the J2EE engine configured correctly? See the SLD documentation for more details about the SLD and about how to configure it.
are all JCO destinations maintained correctly? Use the preinstalled Web Dynpro Content Admin application to check/edit the destination. Use the Ping and Test functions of the Content Admin to verify that each destination is properly configured.</i>
I checked JcO connections in the webdynpro content admin. There the status is unknown and create tabs are disabled.
I checked the SLD connections in content admin , the entries are as below:
<b>Host name : blank
Port: -1
User: blank
Url: http://.-1/sld</b>
Where could i configure these SLD settings and what should be the new entries ?
I dont have permission to view WebDynpro console.
Please help me out.Vinod,
Claim: "Hello, World" application with WD and RFC is the "Hello, World" application with most complex configuration.
Prove:
1. You need to run http://host:port/sld and import CIM context
2. You need to add technical WebAS ABAP systems to SLD (same URL)
3. You need to run Visual Administrator and setup SLD connection parameters (host, port, user, password)
4. You need to (re)deploy your WD application
5. You need to run web-based WebDynpro Content Administrator and configure JCO connections.
Fortunately, [1]-[4] is necessary only ones per server, [5] is necessary per every application.
Valery Silaev
SaM Solutions
http://www.sam-solutions.net
P.S. After I'd started working with XI I understood that procedure described above is not complex at all -
DATE format - while defining the table column
Hi Friends,
I came across a piece of code which was applying a TO_DATE() function on a date type column.
I have two tables t1 and t2 and they have col1 and col2 columns respectively of type DATE
t1
col1 DATE
t2
col2 DATEalso there is a variable var1 and is defined as below:
var1 DATE;now I have conditions as below in the code:
AND to_date(t1.col1,'dd/mm/yyyy') = to_date(t2.col2,'dd/mm/yyyy')
AND to_date(t1.col1,'dd/mm/yyyy') = to_date(var1,'dd/mm/yyyy')This code failed on Production with an error: ORA-01861 literal does not match format string
I changed the code to remove TO_DATE() and it worked fine. Dev clarified that they used this function so that if the two columns or variable are in diff date format.,..they can be put in sync.
e.g. if col1 is dd/mm/yyyy and col2 is mm/dd/yyyy then there will be an issue.
My doubt is.. in a given environment if we are creating a table and defining a column of type DATE , or defining a variable of type DATE, can their format be different at any time? I think No.?
In what scenario can the date format be different?
Thanks,Having said that date format is only for display purposes, if you tend to avoid the error without changing the code then you can modify the NLS_DATE_FORMAT parameter at session level.
SQL> alter session set nls_date_format = 'dd-mm-yyyy'
2 /
Session altered.
SQL> select to_date(sysdate,'dd/mm/yyyy') from dual
2 /
TO_DATE(SY
29-12-2008
SQL> alter session set nls_date_format = 'mm-dd-yyyy'
2 /
Session altered.
SQL> select to_date(sysdate,'dd/mm/yyyy') from dual
2 /
select to_date(sysdate,'dd/mm/yyyy') from dual
ERROR at line 1:
ORA-01843: not a valid month
SQL> select to_date(sysdate,'mm/dd/yyyy') from dual
2 /
TO_DATE(SY
12-29-2008Thanks,
Karthick. -
Date format while downloading data into open office excel
Hi experts,
i am trying to download hr personal data into excel from an internal table using GUI_DOWNLOAD, where date field, in excel, are having 2 different types of date format and the formats are :
1) 05/08/52
2) 22.04.1957
But i want to maintain only one type date format... preferably the 2nd one.
please help me out in this....
with regards.
PraveenHi,
Convert the date fields in the internal table using conversion routines.
Regards
Praveen -
Error in date format while downloading it into excel
Hi Experts,
I created a report and when i download date from report to excel the date format is getting reversed.
FOR example Date in REPORT : 07//2010
IN EXCEL: 201007
Kindly give some idea to resolve this issue.
Regards,
Vishwahello,
Please change the data type of date field to Character (C).
and pass the required date value.
It shouldl make correct output to excel...
Thanks. -
Need help at date format while creating External Tables from Flat file
Hi All,
I have a flat file generated from SQL Server 2005. In that generated flat file the date format is in the format as "YYYY-MM-DD HH24:MI:SS.Millisec" like example "2007-09-08 13:32:36.568".
My task is I have to load this flat file data into Oracle database table running on 9i, but its failing at the creation of external table itself because of this date format. The target table in Oracle the date column data type is "date" only not the "TIMESTAMP".
Can any body suggest how to resolve this?
Thanks,
SankarOr:
SQL> select cast(to_timestamp('2007-09-08 13:32:36.568',
2 'yyyy-mm-dd hh24:mi:ss.xff') as date) dt
3 from dual;
DT
08-SEP-07
Maybe you are looking for
-
Black screen with underscore after updating ubuntu on Lenovo G560
hello everybody, I'm new here. I looked for this problem online during the past few days but I haven't found a solution. I have a Lenovo G560 and I divided my hard drive into two partition, I installed Ubuntu on C:\ and Windows on D:\ and I haven't h
-
Dish TV - connectivity streaming problems, help please???
After working with Dish Network email, chat, and phone support for three days I'm at my wits end. Is there anyone who might be able to help me...
-
Zen V Plus - how to change quality in video convert
Hi there, I?ve just bought the ZEN V Plus MP3 player and I?m very disappointed with the Video Convertor. I would love to watch video files on my ZEN, but, when I want to copy file to memory, I have to convert it with that program, but, it'ss impossib
-
I bought two iPod touches (32GB) from the same apple store. When I look at some pages on them the screen has a very faint but noticeable flicker. The flicker is not across the whole screen but only over certain areas. You can see it a lot on the dock
-
Whenever clicking on an html link to the www from an email in bridge mode (Bridge messages) over Telus mobile network I get the message "Your Blackberry smartphone is unable to establish a connection to the destination server". It is opening the mai