on 10-28-2004 7:08 AM
Hi,
Using JCA I've connected to a R/3 system. I need to invoke a RFC with:
two import parameters, both being DATS 8(MM/dd/yyyy), and
an export parameter being a table structure.
I passed date as String
eg., IMPORTPARAMS.put(PARAM1-DATE, "10/28/2004");
When executed, a nullpointer exception is thrown, even though there are many rows in the export table structure.
What is the compatible data structure in Java that matches DATS of ABAP.
Can anyone help me in solving this problem?
Hi Vijay,
From your sample code I assume that the RFC input parameter is called "PARAM1-DATE".
The code I've used in the past is :
String dateString = "20041029";
importParams.put("PARAM1-DATE", dateString);
If the field is a DATS in SAP then the field must be sent in the format yyyymmdd ( internal SAP format ). The other solution is to change the field type in SAP to CHAR length 10 and then send dd/mm/yyyy.
Cheers
Richard
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.