Errors compiling program with RFC SDK 700 for ECC 6.0
Hi,
We are getting an error when trying to compile a program on HP_UX HP9000. We downloaded the RFC SDK for 700. The command we are using is:
cc sapsockets.c librfc.a -o sapsockets -lm -lcl +DA2.0W
The error we receive is:
ld: Unsatisfied symbol "xdr_string" in file librfc.a[cpictlib.o]
ld: Unsatisfied symbol "__nw__FUl" in file librfc.a[cpictlib.o]
ld: Unsatisfied symbol "__dl__FPv" in file librfc.a[cpictlib.o]
ld: Unsatisfied symbol "xdr_free" in file librfc.a[cpictlib.o]
ld: Unsatisfied symbol "[Vtable]key:__dt__21__versioned_type_infoFv" in file librfc.a[cpictlib.o]
ld: Unsatisfied symbol "__PureVirtualCalled" in file librfc.a[cpictlib.o]
ld: Unsatisfied symbol "__dla__FPv" in file librfc.a[cpictlib.o]
ld: Unsatisfied symbol "__nwa__FUl" in file librfc.a[cpictlib.o]
ld: Unsatisfied symbol "__ConstructMarkedArray__FPvUiUlPFv_vT4" in file librfc.a[cpictlib.o]
9 errors.
I don't have much experience in this area. Sorry I couldn't supply more information.
Any help is appreciated.
Thanks,
Domenick
See note 1056696 - Compiling and Linking RFC Programs with the SAP NW RFC SDK
HP-UX (PA-RISC, 64 bit)
aCC -DSAPonUNIX -DSAPonHPPA -DSAPwithUNICODE +DD64 -Aa +W392,829,818,887 -DSAPwithTHREADS -mt -w +O2 -DNDEBUG +inst_compiletime -c <program>.cpp
aCC -Wl,+n,-z -Wl,-a,default +DD64 -o <program> <program>.o libsapnwrfc.sl libsapucum.sl [and possibly libicudecnumber.sl]
Markus
Similar Messages
-
RFC SDK - timeout for RFC execution
Hi!
I was wondering if there was a way, when using the RFC SDK in client mode, to prevent a RFC call from taking more than a specified time to execute on the server.
Can I use the API RfcCallReceiveTimed?
Thanks,
MustansirSee note 1056696 - Compiling and Linking RFC Programs with the SAP NW RFC SDK
HP-UX (PA-RISC, 64 bit)
aCC -DSAPonUNIX -DSAPonHPPA -DSAPwithUNICODE +DD64 -Aa +W392,829,818,887 -DSAPwithTHREADS -mt -w +O2 -DNDEBUG +inst_compiletime -c <program>.cpp
aCC -Wl,+n,-z -Wl,-a,default +DD64 -o <program> <program>.o libsapnwrfc.sl libsapucum.sl [and possibly libicudecnumber.sl]
Markus -
SAP Netweaver RFC SDK bindings for Node.js
Hi all,
I have just completed a first version of bindings to the SAP Netweaver RFC SDK for [Node.js|www.nodejs.org].
You are encouraged to inspect and download the source code on [https://github.com/jdorner/node-sapnwrfc|https://github.com/jdorner/node-sapnwrfc]. For further convenience, I have also supplied a package for use with the node package manager (npm). Nevertheless, you will have to download the SAP NW RFC SDK beforehand. Thus, you should carefully read the README on GitHub for more detailed instructions.
Please let me know if you have problems installing/compiling the module. At the moment it has only been tested on a x86_64 linux platform.
Regards,
JoachimThanks Mike,
For example we want to executie Function Module and need to prepare/allocate TABLE parameter.
In doing so we need to invoke function RfcGetStructureDescHandle is described in doc.
However, we cannot find it anywhere in H files under SAP NW SDK 7.10 dir structure.
Do you have an example of how to create a TABLE parameter (export for example).
We are going to reproduce the symptom with the demo source distributed with the SDK.
Any help/suggestions is greatly appreciated,
Alfonso -
"Error Compiling Movie" with Specific Plug-in
Hi there,
I am receiving an "error compiling movie" message when trying to export video and have discovered that this is a result of using Digital Anarchy's Flicker Free Plug-in, which is vital to the footage. When the effect is disabled the clips export without problems. I believe I have tried using all the methods that I have found suggested in the links below but can't seem to find a way around it. Strangely the effect worked fine on my previous PC but there is now this exporting problem on the new one. Any thoughts are hugely appreciated.
"Error compiling movie" during render or export
"Error compiling movie" when rendering or exporting with Premiere Pro CS3, CS4, CS5, CS5.5, CS6
Many thanks...I'm having the same project. My .NET 4.0 project targets Newtonsoft.JSON 6.0.2 and has a reference to Microsoft.WindowsAzure.Storage 3.1.0.1. The error I'm getting is
C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(1696,5): warning MSB3275: The primary reference "Microsoft.WindowsAzure.Storage, Version=3.1.0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"
could not be resolved because it has an indirect dependency on the assembly "Newtonsoft.Json, Version=4.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed" which was built against the ".NETFramework,Version=v4.5" framework. This is
a higher version than the currently targeted framework ".NETFramework,Version=v4.0".
error CS0234: The type or namespace name 'Storage' does not exist in the namespace 'Microsoft.WindowsAzure' (are you missing an assembly reference?)
I used the reflection tool dotPeek to investigte. Turns out Microsoft.WindowsAzure.Storage.Dll 3.1.0.1 is a .NET 4 project with a .NET 4.5 reference to Newtonsoft.JSON. This is a bug and should be retargeted to the .NET 4 version of JSON. -
[solved] Error compiling wpa_supplicant with broadcom_wl support
Hello friends.
I'm using the broadcom_wl driver for my bcm4312 card in my Dell XPS m1530 laptop. Unsecured wifi is tested and works fine.
I need to use wpa_supplicant to connect to my university's wifi. The core package for wpa_supplicant is not compiled with broadcom support. I tried using the generic wext option, but I get
Trying to associate with 00:11:92:90:de:e1 (SSID='restricted.utexas.edu' freq=2462 MHz)
ioctl[SIOCSIWAP]: Device or resource busy
Association request to the driver failed
It looks like the generic wext option doesn't work for the bcm4312.
So I tried to compile wpa_supplicant with broadcom support using ABS with this package: http://aur.archlinux.org/packages.php?ID=18511 from AUR. I enabled broadcom support in the config file and pointed it toward my local copy of wlioctl.h.
Unfortunately, build() dies with
In file included from /var/abs/local/broadcom/src/src/include/proto/802.11.h:39,
from /var/abs/local/broadcom/src/src/include/wlioctl.h:38,
from ../src/drivers/driver_broadcom.c:34:
/var/abs/local/broadcom/src/src/include/proto/wpa.h:109:1: warning: this is the location of the previous definition
../src/drivers/driver_broadcom.c: In function 'wpa_driver_broadcom_event_receive':
../src/drivers/driver_broadcom.c:229: error: 'wl_wpa_header_t' undeclared (first use in this function)
../src/drivers/driver_broadcom.c:229: error: (Each undeclared identifier is reported only once
../src/drivers/driver_broadcom.c:229: error: for each function it appears in.)
../src/drivers/driver_broadcom.c:229: error: 'wwh' undeclared (first use in this function)
../src/drivers/driver_broadcom.c:240: error: expected expression before ')' token
../src/drivers/driver_broadcom.c:242: error: 'WL_WPA_ETHER_TYPE' undeclared (first use in this function)
../src/drivers/driver_broadcom.c:244: error: 'wl_wpa_snap_template' undeclared (first use in this function)
../src/drivers/driver_broadcom.c:250: error: 'WLC_ASSOC_MSG' undeclared (first use in this function)
../src/drivers/driver_broadcom.c:251: error: 'WL_WPA_HEADER_LEN' undeclared (first use in this function)
../src/drivers/driver_broadcom.c:271: error: 'WLC_DISASSOC_MSG' undeclared (first use in this function)
../src/drivers/driver_broadcom.c:275: error: 'WLC_PTK_MIC_MSG' undeclared (first use in this function)
../src/drivers/driver_broadcom.c:280: error: 'WLC_GTK_MIC_MSG' undeclared (first use in this function)
../src/drivers/driver_broadcom.c: In function 'wpa_driver_broadcom_get_scan_results':
../src/drivers/driver_broadcom.c:465: error: 'wl_bss_info_t' has no member named 'channel'
../src/drivers/driver_broadcom.c: In function 'wpa_driver_broadcom_associate':
../src/drivers/driver_broadcom.c:573: error: 'WLC_GET_WEP' undeclared (first use in this function)
../src/drivers/driver_broadcom.c:576: error: 'WLC_SET_WEP' undeclared (first use in this function)
make: *** [../src/drivers/driver_broadcom.o] Error 1
==> ERROR: Build Failed.
I don't know c. Can someone decipher this error for me?
Thanks in advance.
EDIT: There are multiple versions of wlioctl.h floating around. I eventually got this to work with the version included with the wrt54g tarball. BUT, wpa_supplicant still had driver problems when being run with the -D broadcom option.
I eventually got this working with ndiswrapper and instructions found here: https://help.ubuntu.com/community/WifiD … y_No-Fluff
Pay special attention to the instruction:
"This Chipset/PCI ID is the correct/reliable way to identify the device: Any other labels can be misleading (e.g., notice that both the '14e4:4311 (rev 02)' and '14e4:4319 (rev 02)' call themselves a "BCM4311 (Rev 02)", even though they are different devices)."
Download the driver that matches the output of
lspci -n | grep '14e4:43'
Anyway, wpa_supplicant still gave me driver troubles when using the -D ndiswrapper option. However, it works well with -D wext.
Tldr;
-Your bcm4312 may actually be a BCM4310 (rev 01).
-Use ndiswrapper with this driver: http://myspamb8.googlepages.com/R174291-pruned.zip
-use wpa_supplicant with the -D wext option.
Last edited by BurtHawk101 (2008-11-05 06:28:04)falconindy wrote:
mkinitcpio needs to refuse to run without /dev mounted to avoid errors like this.
mount -t devtmpfs devtmpfs /dev
Thanks falconindy, works great now. -
How to Run std program with a specific variant for specific user?
Hi guys
We have a std program which will be run by different users in the company. Now the requirement is to make sure that each user runs the report with a specific varaint. Can we control this if yes how?
one options we thought about was to create a transaction in SE93 and define the program to run with a predefined varaint and assign the new custom tcode to the user profile. But we have many different users and we will end up with creating many transactions which we would like to avoid. Is there any other option to control the std program such that each user can run the program only with a pre-defined varaint and the one which only the user is suppoed to run. thanks in advance.We have a std program which will be run by different users in the company. Now the requirement is to make sure that each user runs the report with a specific varaint. Can we control this if yes how
you can do this..
You can create a Custom table
userid keyfield
program keyfield
variant keyfield
programdesc
Make the table Maintaintable(usnig table maintenance )
Now create another Program
It takes input of the Program name( using selection screen)
LOGIC
in side that place a logic ,
Based on the user name and program name Get the variant name from above table
Now Submit the program with the variant you have selected above.
Use Variant Addition when you use SUBMIT
So now program executed based on user variant.
Now you create a Transaction for this program.
When use Runs the Transaction , user needs to input the Program name which he wants to execute.
and Output will be shown based on the variants
Regards
Vijay Babu Dudla -
Problem when compiling C program from RFC SDK with Unicode on AIX 5.3
hi friends.
I try RFC with UNICODE.
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/90313271-2311-2a10-c495-c20199d1d821
This simple code compiled.
#include <saprfc.h>
#include <sapuc.h>
#include <sapucx.h>
int mainU(int argc, SAP_UC* argv[] )
const SAP_UC* s1 = cU("Hello");
SAP_UC s2[100];
strcpyU( s2, s1);
printfU(cU("%s
"),s2);
return 0;
The compiling command is
cc -DSAPwithUNICODE -I ../rfcsdkU/include -L ../rfcsdkU/lib sample.c -o sample -lrfcu -lC
to compile.
Then the error information comed:
"sample.c", line 7.24: 1506-045 (S) Undeclared identifier U16LIT_cU.
"sample.c", line 7.27: 1506-275 (S) Unexpected text string literal encountered.
"sample.c", line 10.16: 1506-276 (S) Syntax error: possible missing ')'?
I hope someone can tell me how I can get it through.
Edited by: sakamoto shouichi on Apr 16, 2008 11:02 AM
Edited by: sakamoto shouichi on Apr 16, 2008 11:03 AMhi friends. I'm having same problem.
i speak english just a little.sorry.
see this command line.
AIX5.3
cc -I ../rfcsdk/include -L ../saprfc/rfcsdk/lib sapinfo.c -o sapinfo -lrfc -lC
add -lC .
i fnish this problem. thnx!
Edited by: sakamoto shouichi on Apr 7, 2008 5:32 AM -
BOOST ERRORS porting cs4 to cs5 , compiling plugin with cs5 sdk
i have a project that is working fine with adobe indesign CS4 and now when im trying to build it with cs 5 , i got this error
boost::move ambigous call to overloaded function in CS5 sdk file file "any_regular.hpp"
im using VS2008 and boost version 1.49 in my project, i gues its compatability issue of boost with CS5 SdkPectora:
Check the C++/Preprocessor/Preprocessing Definitions field in your Project Properties dialog. Make sure that your Debug version has a "DEBUG" definition placed in there, and that your release version has an "NDEBUG" definition placed in there someplace. My guess is that either you left one of them out, or that you have the DEBUG definition in your release properties. Other possibilities are a failure to separate definitions properly or misspelling.
HTH!
P.S. I am assuming that you are working with VS8 on a Windows box. This information should be included in your next submission just to make sure we are all working from the same starting point. -
Get data with rfc-sdk language c
Good morning all,
Me was given a task to develop a simple data read between C and SAP. To foreshadow my prerequisites: I did not work with SAP and only have the possibilities of the NW7.01 Trial with a MaxDB database.
I will use the RFC_READ_TABLE and the RfcCallReceive function. The error handling and opening the rfchandle runs.
Using the RFC_READ_TABLE requires to fill the export parameters and handle the 3 tables, FIELDS, OPTIONS and DATA.
Handling the tables throws the error:
RFC Call/Exception: SYSTEM_FAILURE
Group Error group 104
Key RFC_ERROR_SYSTEM_FAILURE
Message Incorrect field length for 'Remote Function Call'.
After searching here this problem I place 3 structs to define the maximum length, which is returnd by the rfc:
typedef struct tDATA
{ SAP_CHAR WA[512];
}tDATA;
typedef struct tFIELDS
{ SAP_CHAR Fieldname[30];
SAP_CHAR Offset[6];
SAP_CHAR Length[6];
SAP_CHAR Type;
SAP_CHAR Fiedltext[60];
}tFIELDS;
typedef struct tOPTIONS
{ SAP_CHAR WA[72];
}tOPTIONS;
Now using the size of these structs the error still stays the same.
So how do I initialise the tables and export parameters, to receive a useable data returned in the DATA table?
The declaration of the export and table structs is left out for now, I will post them immediatly if necessary.
Thanks & Regards
H.Fischer
Edited by: HFischer on Aug 12, 2009 4:09 PMHi all,
I returned to my mind that there was a function embedded in the SDK which generates a headerfile which could be implemented easily. Now I have the structs necessary for the tables but the problem is still the same. I tried some configurations on the termination of the parameter list and I observe that the rfc does not handle with 5 export parameter tables. Here is the parameter declaration I try to use.
At last the tables are terminated with NULL, here I placed it at index 5 but with this the RFC throws an error about the RFC length mentioned in the first post. If I terminate at index 3 the "rfccallreceive" runs without error but returns two empty tables.
Or is it a problem in the declaration of ROWSKIPS and ROWCOUNT?
exporting[0].name = cU("QUERY_TABLE");
exporting[0].nlen = strlen(cU("QUERY_TABLE"));
exporting[0].addr = cU("SPFLI");
exporting[0].leng = strlen(cU("SPFLI"));
exporting[0].type = RFCTYPE_CHAR;
exporting[1].name = cU("DELIMITER");
exporting[1].nlen = strlen(cU("DELIMITER"));
exporting[1].addr = cU(" ");
exporting[1].leng = strlen(cU(" "));
exporting[1].type = RFCTYPE_CHAR;
exporting[2].name = cU("NO_DATA");
exporting[2].nlen = strlen(cU("NO_DATA"));
exporting[2].addr = cU(" ");
exporting[2].leng = strlen(cU(" "));
exporting[2].type = RFCTYPE_CHAR;
exporting[3].name = cU("ROWSKIPS");
exporting[3].nlen = strlen(cU("ROWSKIPS"));
exporting[3].addr = cU("0");
exporting[3].leng = strlen(cU("0"));
exporting[3].type = RFCTYPE_CHAR;
exporting[4].name = cU("ROWCOUNT");
exporting[4].nlen = strlen(cU("ROWCOUNT"));
exporting[4].addr = cU("0");
exporting[4].leng = strlen(cU("0"));
exporting[4].type = RFCTYPE_CHAR;
exporting[5].name = NULL; /*position I mean*/
importing[0].name = NULL;
tables[3].name = NULL; -
Logon Error when SetTableLocation with RAS SDK
Hi
I have a lot of Reports based on TTX files. As these don't work anymore in an 64 bit environment with CRVS2010 I tried to make an update program based on an replace_click sample in this newsgroup.
My program is 32 Bit (x86) on an Windows 7 with VS2010. Cr2010 SP1 (13.0.1.220) 32 and 64 Bit is installed.
After creating an XML-file I want to set the new table location with SetTableLocation method:
I always get this Error: Logon Failed. Error in File xxx.rpt: Unable to connect: incorrect log on parameters.
I tested this with two super easy reports created with Crystal Reports 10:
First: 1 Table (based on ttx) with only one String filed. no subreports.
Second: Same report based on an XML File
With Crystal Reports 10 I can update the Report with the created XML-File.
public convert(NewFilename as String)
Dim lCR As New CrystalDecisions.CrystalReports.Engine.ReportDocument
lCR = New CrystalDecisions.CrystalReports.Engine.ReportDocument
Try
lCR.Load(NewFileName)
Dim rcd As ISCDReportClientDocument
rcd = lCR.ReportClientDocument
For i As Integer = 0 To rcd.SubreportController.GetSubreportNames.Count - 1
ConvertReportTables(NewFileName, rcd, rcd.SubreportController.GetSubreportNames.Item(i), True)
Next
ConvertReportTables(NewFileName, rcd, "", False)
end sub
Jürgen
Edited by: Jürgen Bauer on Jun 7, 2011 1:55 PMPrivate Sub ConvertReportTables(ByRef destination As String, ByRef lcr As ISCDReportClientDocument, srp As String, issubrpt As Boolean)
Dim boTables As CrystalDecisions.ReportAppServer.DataDefModel.ISCRTables
If issubrpt Then
boTables = lcr.SubreportController.GetSubreport(srp).DatabaseController.Database.Tables
Else
boTables = lcr.DatabaseController.Database.Tables
End If
For Each Table As CrystalDecisions.ReportAppServer.DataDefModel.ISCRTable In boTables
'Dateiname für Tabellendefinition erzeugen
Dim XMLFile As String
XMLFile = destination
XMLFile &= "_R_" & srp
XMLFile &= "_T_" & Table.Name.Trim & ".xml"
'Tabellendefinition lesen und in Datei schreiben
Dim dt As New DataTable
For Each field As CrystalDecisions.ReportAppServer.DataDefModel.Field In Table.DataFields
Dim fieldtype As String = ""
Select Case field.Type
Case FieldValueType.BitmapField, FieldValueType.BlobField, FieldValueType.IconField, FieldValueType.OleField, FieldValueType.PictureField
fieldtype = "System.Byte[]"
Case FieldValueType.BooleanField
fieldtype = "System.Boolean"
Case FieldValueType.CurrencyField, FieldValueType.NumberField
fieldtype = "System.Decimal"
Case FieldValueType.TimeField, FieldValueType.DateField, FieldValueType.DateTimeField
fieldtype = "System.DateTime"
Case FieldValueType.Int16sField, FieldValueType.Int16uField, FieldValueType.Int32sField, FieldValueType.Int32uField, FieldValueType.Int8sField, FieldValueType.Int8uField
fieldtype = "System.Int32"
Case FieldValueType.StringField
fieldtype = "System.String"
Case Else
fieldtype = "System.String"
End Select
dt.Columns.Add(New DataColumn(field.Name, Type.GetType(fieldtype)))
Next
dt.TableName = Table.QualifiedName
Dim ds As New System.Data.DataSet
ds.Tables.Add(dt)
ds.WriteXml(XMLFile, XmlWriteMode.WriteSchema)
'boMainPropertyBag: These hold the attributes of the tables ConnectionInfo object
Dim boMainPropertyBag As New PropertyBag()
'boInnerPropertyBag: These hold the attributes for the QE_LogonProperties
'In the main property bag (boMainPropertyBag)
Dim boInnerPropertyBag As New PropertyBag()
'Set the attributes for the boInnerPropertyBag
boInnerPropertyBag.Add("File Path", XMLFile)
boInnerPropertyBag.Add("Internal Connection ID", Guid.NewGuid.ToString)
'Set the attributes for the boMainPropertyBag
boMainPropertyBag.Add("Database DLL", "crdb_adoplus.dll")
boMainPropertyBag.Add("QE_DatabaseName", "")
boMainPropertyBag.Add("QE_DatabaseType", "ADO.NET (XML)")
'Add the QE_LogonProperties we set in the boInnerPropertyBag Object
boMainPropertyBag.Add("QE_LogonProperties", boInnerPropertyBag)
boMainPropertyBag.Add("QE_ServerDescription", "NewDataSet")
boMainPropertyBag.Add("QE_SQLDB", "False")
boMainPropertyBag.Add("SSO Enabled", "False")
'Create a new ConnectionInfo object
Dim boConnectionInfo As New CrystalDecisions.ReportAppServer.DataDefModel.ConnectionInfo()
'Pass the database properties to a connection info object
boConnectionInfo.Attributes = boMainPropertyBag
'Set the connection kind
boConnectionInfo.Kind = CrConnectionInfoKindEnum.crConnectionInfoKindCRQE
Dim boTable As CrystalDecisions.ReportAppServer.DataDefModel.ISCRTable
boTable = Table.Clone(True)
boTable.ConnectionInfo = boConnectionInfo
Try
If issubrpt Then
lcr.SubreportController.GetSubreport(srp).DatabaseController.SetTableLocation(Table, boTable)
lcr.VerifyDatabase()
Else
lcr.DatabaseController.SetTableLocationEx(Table, boTable)
lcr.VerifyDatabase()
End If
Catch ex As Exception
MsgBox(ex.Message)
End Try
Next
End Sub -
I am getting an error encountered problem with the display driver for my Photoshop CS5 extended
I have Windows 7 and have used CS5 extended with no problems for quite a while now.
Last week I started up CS5 and received the error:
"Photoshop has encountered a problem with the display driver and has temporarily disabled GPU enhancements. Check the video card manufacturers website for the latest software. GPU enhancements can be enabled in the Performance panel of Preferences."
"Please close program and uninstall and re-install if problem persists"
I was able to edit, however when I went to save my work it would not do so. The following error came up.
"Could not complete the command because the extension could not be loaded"
"Could not save a copy as .....because of a program error"
I checked to make sure I have the latest driver, I also uninstalled and re-installed the program and I am still getting the errors.
Can anyone help with this?Error 1402 | Error 1406 | Acrobat, Reader
-
Errors compiling program - passing array to method
My program has several errors when compiling and I don't know what I am missing? I would appreciate any tips about where to look if it's syntax, missing curly braces, anything. I am doing this as a practice for my midterm tonight and we can use our notes but they won't help me much if I have them wrong.. Thanks in advance for any help. I will list the errors then a copy of what Ive written.
'.class' expected
int[]date = int new[3];
illegal start of expression
public static int verifyDate(int [] d)
';' expected
unexpected type
required: value
found : class
int[]date = int new[3];
cannot resolve symbol
symbol: method verifyDate (int[])
location: class MidTermPractice.MidTerm
int check = verifyDate(date);
imcompatible types
found : int
required: boolean
if (check = 0)
/* Rhonda Roberson
* MidTerm.java
* Practice Midterm
* Created on November 17, 2004, 4:08 PM
package MidTernPractice;
import javax.swing.JOptionPane;
public class MidTerm
//Main method
public static void main(String[]args)
int[]date = int new[3];
String monthAsString = JOptionPane.showInputDialog(null,
"Enter Month", "Enter Month as a number", JOptionPane.PLAIN_MESSAGE);
date[0] = Integer.parseInt(monthAsString);
String dayAsString = JOptionPane.showInputDialog(null,
"Enter Day", "Enter Day as a number", JOptionPane.PLAIN_MESSAGE);
date[1] = Integer.parseInt(dayAsString);
String yearAsString = JOptionPane.showInputDialog(null,
"Enter Year", "Enter 4 digit Year", JOptionPane.PLAIN_MESSAGE);
date[2] = Integer.parseInt(yearAsString);
//Call VerifyDate() Method
int check = verifyDate(date);
//Print Message if date is valid
if (check = 0)
JOptionPane.showMessageDialog(null, "Date is Valid");
else
JOptionPane.showMessageDialog(null, "Date is NOT VALID");
//************Method to verify date
public static int verifyDate(int [] d)
int check = 0;
if (d[0] < 1 || d[0] > 12)
check = 1;
if(d[1] < 1 || d[1] > 31)
check - 1;
if(d[2] < 1900 || d[2] >2100)
check = 1;
return check;'.class' expected
int[]date = int new[3];
You need a space between int[] and date and it should be "= new int[3];"
unexpected type
required: value
found : class
int[]date = int new[3];
Same as above
imcompatible types
found : int
required: boolean
if (check = 0)
The Java operator to compare two values is == not = -
Error while working with POP-IN object for Table UI
Hi Expert,
I am creating a pop-in for one column of table UI. I have a LinkToAction object to open pop-in. i have some lable and input fields in pop-in. I dont know the flow to display the pop-in and where should i assign data to pop-in fields. how system will know which row i am clicking? Please help to know all details. I have a lots of questions.
I am able to create link on the column and when i am clicking on link i am getting below error.
"Node VIEW_VAL.1.POP_IN does not contain any elements" but i have attributes in node POP-_N.
Please help me.
Thanks and Regards,
Anil
Details from ST22----
An exception occurred which is explained in detail below.
The exception, which is assigned to class 'CX_WDR_ADAPTER_EXCEPTION', was not
caught and
therefore caused a runtime error.
The reason for the exception is:
Adapterfehler im INPUT_FIELD "INPUT_FIELD01" des Views
"Z_BP_GENERAL.VIEW_VAL": Context-Bindung des Properties VALUE kann nicht
aufgelöst werden: Node VIEW_VAL.1.POP_IN does not contain any elements
The occurrence of the exception is closely related to the occurrence of
a previous exception "CX_WD_CONTEXT", which was raised in the program
"CL_WDR_CONTEXT_NODE===========CP",
specifically in line 9 of the (include) program
"CL_WDR_CONTEXT_NODE===========CM00R".
The cause of the exception was:
Node VIEW_VAL.1.POP_IN does not contain any elementshi,
Use this code in OnAction of LinktoAction UI element.
This code will give you index of the row from which Link to Action is Triggered.
<cn_popin> is my node binded to Table.
data: lr_element type ref to if_wd_context_element.
DATA ls_cn_popin TYPE wd_this->element_cn_popin.
lr_element = wdevent->get_context_element( 'CONTEXT_ELEMENT' ).
get all declared attributes
lr_element->get_static_attributes(
IMPORTING
static_attributes = ls_cn_popin ).
data lv type I.
lv = lr_element->GET_INDEX( ).
Finally you have the index in varialbe lv. -
Error Message 2001 with new ITunes 8 (for Mac) & IPhone 2.1
Same general subject as many of tonight's posts. I updated to ITunes 8 & IPhone 2.1. There was some sort of problem during the latter update and my phone now has the "Cord &ITunes logo" with no emergency switch. When I connect the phone to the Mac through a USB, ITunes says that a recovery was stopped and that I must recover. So I hit recover but before the recover finishes it replies with Error message 2001 that it couldn't complete.
This occurred on a relatively recent Mac. My only goal is to get the phone working - I'll restore my settings and sync the music later.
Thank you
TomI don't have that same problem, I was able to download the new Ipod Touch software, but now that I have iTunes 8 and the new Ipod Touch software, it won't let me sync my Ipod. Any info would be great. When I try I get this message:
The Ipod "Matt's Itouch" cannot be synced. An unknown error occured (13213).
This just started happening this afternoon (I downloaded everything this morning. -
Hi,
I'm using NetBeans 6.5.1 ide (uses jdk 1.6).
I prepared java codes to deploy the system uses java version 1.4.2_16.
Is it possible to compile code for 1.4.2_16 using NetBeans 6.5.1?
Thanks.If you really have iphone 3gs, then you can update it further.
If you have an iphone 3g, then you cannot.
Identifying iPhone models - Apple Support
Maybe you are looking for
-
How can I make a indicator transparent grey?
Hi, I would like to make the background of a string indicator transparent grey on the FP. No Problem making it either transparent or grey, but I don't know how to make it transparent and grey at the same time. Would anyone know? Labview 8.5. & XP Tha
-
How to simply save and restore PDF sessions in adobe Acrobat?
I need an acrobat javascript that saves a list of paths of currently opened files then autoloads them upon relaunching Adobe Acrobat. Thanks,
-
Idoc to File Scenarion Using File Content Conversion for Sales order data.
Hi Frineds, WOuld like to know in what strucuture should i design my output strucutre to get data from idoc coming from SAP system. How to enbble file contenct conversion to get txt file. Need a detial view of this scenario. Please help.
-
Something is wrong here...
So here is my problem if anyone can help. I have iphone 4s and trying to put music on it. Yes i have done all the updates. It takes roughly around 10 minutes just to sync one song on my iphone. I have plenty of space to put music on there. So in the
-
Hi All, I want to set quotes " with each field. I have done such type of work but that time values are coming like A,B,C. But now I want that like "A","B"..etc. If any body know then help me. Is there any setting option in Header data. Thanx in adv