Char1 in ABAP Side & Boolean in Java Side
Hello,
When importing a BAPI at Java side, I have a problem to deal with a field of type char1 (referenced to a domain with two fixed values : 'X' et ' ') which is becoming a boolean at Java Side.
I found posts talking about the same problems but I didn't find answers.
Have anyone encountred this problem before?
Thanks in advance for your help,
ImaneA
Thank you John & Srikanth for your replies.
My issue is that the Java side doesn't recognize the 'X' or ' '. It means that for Java side, the field is always empty.
We tried a domain with no values instead of 'X' and ' ' but it still doesn't recognize the content of field even if it is a String now and no longer a boolean in java side.
Do you have any idea how to solve this problem?
Thanks in advance for your help.
Regards,
Imane
Similar Messages
-
Restore ABAP side of dual stack
Hi
Been 4 years + since I did any work on I-series. After patch of BW 7.01 ABAP side SPS6 to 16 using SPAM I tried to use JSPM to patch Java side.
System didn't allow this after patching JSPM to level 16 so was forced to use SUM. Note 1881524 suggests you can't update java side separately so need to start again. Kernel was updated to 7.20 from 7.01 after patching ABAP side.
Is it sufficient to restore r3sidDATA library and then continue with SUM ?
I'm also currently converting to new user concept per note 1149318 as a pre-req to using SUM.
Advise appreciated.
Regards
DaveHi Dave,
According to note 1149318, you could try to update the ABAP stack to a next available patch level
together with JAVA. And this can avoid the restore. If you just want to keep ABAP at 16, you have
to do the restore.
It is enough to restore R3<SID>DATA library, and please delete all the sql packages after that.
About SUM, please make sure you have switched to new user concept and 720 kernel before start
it.
Regards
Daniel
SAP on IBM i Team -
How to activate SAP Visual Composer Reporting on ABAP Side
Hello,
How can we activate SAP Visual Composer Reporting on ABAP Side in ECC 6?
It is not in BI or in Portal.
And I have some problem to find documentation about it.
Thank you a lot!
ManuHi Manish, Is not posible to migrate iviews, you need to do a new deploy in the new server.
Regards.
Ignacio. -
Can we get a "Add to Browser Favorites" URL from ABAP-side?
Hi,
via "Add to Browser Favorites", you can get a URL for opening exactly the portal page you are currently on. Is there any possibility
to get (or create/generate) the URL for such a page from ABAP-side? We have the requirement to send e-mails from the ABAP
backend with links (URLs) to a corresponding portal page (like the example below). This has to be done quite generic, mi.e. the server,
the port, the application parameters, etc. cannot be hardcoded but have to be generated in a generic way.
Thank you and kind regards,
Florian
PS: Example:
http://pwdf6460.wdf.sap.corp:50000/irj/portal/ajax?navigationtarget=roles://portal_content/com.sap.pct/every_user/com.sap.pct.erp.common.bp_folder/com.sap.pct.erp.common.roles/com.sap.pct.erp.common.erp_common/com.sap.pct.erp.common.lpd_start_wd_abap&&WebDynproApplication=CPROJECTS_FPM&WebDynproConfiguration=CPROJECTS_FPM&ApplicationParameter=OBJ_EVENT%253dDPO47BAB5FEB7A55A28E10000000A424B1D47BAB5FEB7A55A28E10000000A424B1DDPO++++++++++++++++++++++++NON&NavMode=3&System=SAP_cProjects&PrevNavTarget=ROLES%253a%252f%252fportal_content%252fcom.sap.pct%252fevery_user%252fcom.sap.pct.plm.ppm.PPM50%252fcom.sap.pct.plm.ppm.Roles%252fcom.sap.pct.plm.ppm.port_prj_mgmt_showcase%252fcom.sap.pct.plm.ppm.projectmanagement_showcase%252fcom.sap.pct.plm.ppm.pm_overview%252fcom.sap.pct.plm.ppm.ws_projects%252fcom.sap.pct.plm.ppm.cpr_projects_showcase&WebDynproNamespace=sap&&NavigationContext=merge(ROLES://portal_content/every_user/general/eu_core_role/com.sap.uwl.home_core_ws/com.sap.netweaver.bc.uwl.overview%7CROLES://portal_content/every_user/general/eu_core_role/com.sap.portal.home_core/com.sap.portal.home.overview)Hi,
It is hard to know exactly what to suggest since I don't know the full story behind the process you are trying to implement. However I can make some suggestions:
1. Use short URLs. These can be configured in the portal and will allow for easier navigation. you will see this as a "quick link" parameter in the page properties.
2. Rather then hard coding any values use a configuration table in the ABAP system.
3. If the process starts in the portal you could have your portal application send the necessary data to the ABAP system so it could use it to generate the email (e.g. Server/Port/Parameters etc...)
4. If it is a dual stack system you may be able to leverage the co-existance of portal an ABAP on the same server.
5. What about using a web service on the portal to supply the URL to the ABAP system. You could call this web service from the ABAP and have the portal provide the data that way. This would be good if your process kicks off on the ABAP side and not via the portal.
Anyway, I hope some of those suggestions help.
BRgds,
Simon -
Webdynpro for ABAP vs WD for Java
How different is WD for ABAP from WD for Java?
I have a good knowledge of WD for Java and I know ABAP. But how good and efficient is WD for ABAP? Would it be better to use WD for ABAP or WD for Java for SAP based portal development?
Thanks in advance,
Reena<i>
1. We can embedd the Web Dynpro for ABAP applications in SAP screens in ABAP environment. I don't think it is possible using java web dynpro.
</i>
Yes, you probably can, since the application can be fired simply by a URL, there is not reason that you couldn't have an HTML control in your dynpro and point to this URL.
To answer the original question, the development model for each is pretty much the same, just two different flavors. I think that some things make WDA better, one being that it is totally integrated into the ABAP development workbench and the Transport/change control system. On the WDJ side, you development locally and "deploy" your changes using the DTR and CBS. I'm not exactly comfortable with this quite yet, which is why I like WDA better..
Another thing is that we have some built in stuff with WDA, like automatic search help functionality, ALV Grid, and Select-option functionality. I do believe that SAP is working on some of these for WDJ.
Regards,
Rich Heilman -
How to Call abap functn/program from java layer
Hi all,
I have to develop a program which has to call abap function/program from java side or how to call a abap program through java ..
pls send me related links or explanations.. dont send unrelated answers..
Regards,
Arivarasu SHi,
You mean accessing ABAP functions from J2EE perspective, then I think we can do this by using SAP Java Resource Adapter and also through webservices.
SAP Java Resource Adapter (SAP JRA) can be used as an add-on for the SAP JCo SAP JRA enables the implementation of standard interfaces from diverse J2EE servers to the SAP JCo in the SAP Web AS. The SAP JRA thus simplifies
communication with ABAP within heterogeneous J2EE landscapes.
Go through the following links which has Good documentation on how to achieve this
Accessing BAPIs Using the SAP Java Resource Adapter
[https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/ad09cd07-0a01-0010-93a9-933e247d3ba4]
Connectivity and Interoperability
[https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/326d82e5-0601-0010-fca4-9caf27b89c26]
Finally with WebServices. Accessing SAP Business Functions (ABAP) via Web Services
[https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/06adbf03-0a01-0010-f386-d8e45561a3c4]
Regards
Raghu -
Processing ABAP Idocs in SAP Java AS CE 7.1 web service client applicatin
I am trying to build a Java web service client which would call a web service in a non-SAP system. I am trying to send Idocs from the back-end CRM system to my Java web service client using a Jco RFC Provider. I have already created the RFC Destination on the ABAP side to send my Idocs to my Jco RFC Provider program on the Java side. The connections between the ABAP and Java are working fine. My question is how in my Java web service client do I pick up the IDoc sent from ABAP to the Jco RFC Provider?
Please let me know if more clearification is neededI do receive the IDoc with the SAP Java AS "RFC Jco Provider" component I created, and in my Java application I created a class for "IDOC_INBOUND_ASYNCHRONOUSBean" which has a method "processFunction(Function function)" and in that method I can do function.write("filename.xml") and it writes out an xml document of the Idoc sent from the ABAP server. I can further process the Idoc by pulling field values from the xml structure. However, my problem is I am now trying to write a second Java application to do the same thing but with a different Idoc type. I created a a second RFC Jco provider(listener) on the server but the Idocs still flow through the first Java application, which is an undesirable affect. I got this idea from this document originally "http://nwadave.com/NwadExplorer/data/SAPDoc/ProcessingIDocsWithTheSAPJavaConnector.doc", and it works fine until now when I'm trying to add a second application to do similar work. This is makeing me wonder if I should have even done the first one this way? Bottomline is what tell the RFC Jco provider(listener) on the Java server which application to send the Idocs too?
-
How to consume the Abap web service in Java web-dynpro
Hi Everyone,
I want to consume ABAP web service in java web dynpro.
so when i tried to create model in java web-dynpro, it gave me an error message saying "Invalid WSDL or WSDL not found".
i think this error message is because, to access the WSDL of abap web-service, we need username and password, but the dialog box in java web-dynpro is not programmed to take username and password from us and send it to the server to get the WSDL.
i came to this conclusion because i was able to successfully test my abap web-service in java portal. the java portal asked me the username and password to open the WSDL.
So, please help me to consume the abap web service in java web-dynpro.
Thanks in advance
Regards
VikasHi Vikas ,
while creating a model in web-dynpro try to use the "import web service model" option and if you are using local server choose the local server option so that you can get the available web services which are in server, select one among them and continue you process.I think this is the some what easy way .
If you want use the URL for wsdl better to once test the available service in server and copy that WSDL URL and paste over WSDL textbox.
I think this is pretty help ful to you
Best Regards
Srikatnh -
ABAP code in to JAVA for overwritting condition value for IPC pricing
Dear experts i am an IPC JAVA developer and i am trying to translate an ABAP Routine in to JAVA code for overwriting condition value in the pricing user exit of IPC
Here is the ABAPcode segment i am trying to transulate
DATA: l_kdkg1 LIKE komk-kdkg1,
l_work TYPE f,
l_umren LIKE marm-umren,
l_umrez LIKE marm-umrez.
SELECT SINGLE peinh FROM mbew INTO mbew-peinh
WHERE matnr = komp-matnr
AND bwkey = komp-werks.
I need some help in the following things
1. I don't know how to transulate the following Line of ABAP code into JAVA
" AND bwkey = komp-werks."
Bwkey stands for plant details. I don't know how to get plant details from Pricing Item.
2. Someone please tell me weather the following JAVA transulation is correct
Vector x = prItem.getUserExitConditions();
db database = pricingEngine.getDatabase();
// set table name
String tableStart = "mbew";
// set query parameters
sys_query_pair[] queryPair = null;
//matnr = komp-matnr . Getting the material Number
String materialNo= prItem.getProduct().toString();
//bwkey = komp-werks.Getting plant.
// TODO: werks stands for plant. Not sure how to get it from prItem
String plant = "";
queryPair = new sys_query_pair[2];
queryPair[0] = new sys_query_pair("matnr", materialNo);
queryPair[1] = new sys_query_pair("bwkey", plant);
// set query columns
String ZZFIELDStart = "peinh";
String ZZFIELD_VALUEStart;
String[] projectionStart;
projectionStart = new String[];
BigDecimal pricingUnit = null;
try{
// execute query
res resultSetStart = database.db_read_table(tableStart, queryPair,projectionStart) ;
if (!res.db_empty_results_p(resultSetStart))
ZZFIELD_VALUEStart = resultSetStart.db_get_row_element_string(0);
pricingUnit = new BigDecimal(ZZFIELD_VALUEStart);
resultSetStart.db_finish();
else
System.out.println("Coudn't find a value of field peinh in table mbew!");
catch (exc_database_error e)
e.printStackTrace();Please login to the server where IPC is installed. In the IPC folder u find libs folder or search for docs in IPC folder. There it is dealt how ABAP routines are mapped to user exits in java coding
Thanks
Surya -
Call ABAP FM from XI Java mapping
Can you please provide me some documentation on how to make a call to ABAP function module from Java mapping.
Basically this would be a RFC lookup from Java mapping.
Any recomendations on which one is a standard approach among ABAP Mapping vs JAVA mapping within XI.
Your responses are appreciated.
TNVHi TNV,
<i>I am more looking into using RFC call from java mapping.</i>
The article by Michal can be used to make the RFC lookup not only from an User Defined Function but also from a java mapping.
You can write any piece of java code inside the EXECUTE() method of your Java Mapping including the RFC Lookup API code in michal's article.
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/xi-code-samples/xi%20mapping%20lookups%20rfc%20api.pdf
Regards.
Bhavesh -
Include a WD ABAP into a WD Java
Hi all!
we've developed a WD Java in NW CE 7.11.
Pushing a button we want to open a modal popup which points to a WD ABAP developed in a ECC 6.0 system (other system).
Is it possible?
If yes, what kind of object we.ve to call in Java to pass parameters to WD ABAP?
Thanx.
AndreaHi Andrea,
Youn can try the option of calling a WD4ABAP view by passing a URL of your WD4A application as an external window in WDJava component and you can access the URL parameters in your webdynpro ABAP application also.
There is no other option of calling a WD ABAP View from WD Java Application.
Thanks & Regards,
Jhansi Miryala -
Open Innovation Call: abap interpreter written in java
Like part of the Open Innovation Call initiative: /people/ignacio.hernndez/blog/2006/12/22/open-innovation-call ,
I begin this forum thread to open the discussion about "JAbap project":
I know JRuby...is there something like a abap interpreter written in java? ..java and abap using the same virtual machine....?Hello I have the same problem, were you able to execute the WS through the JS code now?
I would like to call an ABAP WS using JavaScript to return complex structures that I would like to manage directly with JS.
I tried with this code and I get the error "RaiseError: Acrobat Raise." when the request is executed:
var WSUrl = "http://<server>:<port>/sap/bc/srt/wsdl/bndg_4D15C75529330AF1E10000000A150429/wsdl11/allinone/ws_policy/document?sap-client=500";
var VendorNumber = xfa.form.DATA.DATAFLOW.SF_HEADER.VENDOR_NUMBER.rawValue;
try {
// Create request structure, read Input out of text field
var request = {
"urn:sap-com:document:sap:soap:functions:mc-style:ZWsTest" : {ILifnr: VendorNumber}
SOAP.wireDump = true;
// Call web service using SOAP object
var response = SOAP.request ({
cURL: WSUrl,
oRequest: request
// cAction: "urn:sap-com:document:sap:soap:functions:mc-style"
} catch (e) {
xfa.host.messageBox(e.toString()); //pop-up "TypeError:service.CelsiusToFahrenheit is not a funciton"
with this other code I get the error "SOAPError: CX_ST_MATCH_ELEMENT:XSLT exception.System expected element 'ILifnr'":
try {
var myProxy = SOAP.connect(WSUrl);
var result = myProxy.ZWsTest( { ILifnr: VendorNumber } );
xfa.form.DATA.DATAFLOW.SF_HEADER.E_DESCRIPTION.rawValue = result;
// Display the response in the console:
console.println("Result is " + result);
} catch (e) {
xfa.host.messageBox(e.toString()); //pop-up "TypeError:service.CelsiusToFahrenheit is not a funciton"
in the second option, if I make the field ILifnr optional the call is succesfully performed but the parameter is not passed to the WS. So the call is working.
Using stand-alone LiveCycle designer 8.1 and Adobe Reader 8
Any suggestions?
Many thanks,
G.
Edited by: Guillem Mateu Navalón on Jan 13, 2011 1:13 PM -
Access ABAP table in Webdynpro Java application
Hi All
Is it possible to access ABAP table in Webdynpro Java application
Please provide your input
Thanks
Karthi D.Hi you will connect to the remote SAP system, the
backend, using an Adaptive RFC MOdel. To access database tables, you can make use of existing functions in terms of RFC function modules. For each function module you need, the system generates a corresponding Java proxy class. All the generated proxy classes and interface are bundled together in the RFC model and treated as part
of your Web Dynpro project
In WebDynpro java you RFC by using Model :
Adaptive RFC Model
1. automatically adapts to changes in function module signature
2 provides support for data types and extensibility
3.support for different structure definitions in different backend
systems (release dependent structures, custom adaptation)
Basic principles and guidelines
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/11c3b051-0401-0010-fe9a-9eabd9c216de
See this blog
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/wdjava/faq%2b-%2bmodels%2b-%2badaptive%2brfc
http://help.sap.com/saphelp_nw04s/helpdata/en/6a/11f1f29526944e8580c5e59333d96d/frameset.htm
Thanks,
Tulasi -
ABAP proxy object and JAVA proxy objects
can anyone explain whether ABAP proxy object and JAVA proxy objects can communicate with each others?
if yes then how???JCO connectors would be able to do the trick here i guess
regards
krishna -
How to execute an ABAP Mapping after a Java Mapping
Hi, i have found a Bug in XI and SAP said to me that the only solution is to execute an ABAP mapping after my java mapping.
I have an IDOC to FILE scenario
Could anyone orient me on what do i have to configure, so after my java mapping i can execute an abap mapping ?.
Do i have to use process integration?
thanks
Mariano.i have developed a Java mapping originally, but XI has a bug. When you do not write anything to the outputStream XI instead of writing an emtpy file writes a file containing one byte ( 0x00 ) and this is a problem.
SAP said to me that they will not fix this issue so they recomend me to create an abap mapping after my java mapping that will send no information if it receives this byte (0x00) and if not it will write all the information as received.
My doubt regarding putting several mappings in the interface mapping configuration is this...
Actual configuration:
SOURCE MSG A -> ORIGINAL MAPPING -> TARGET MSG B
Proposed configuration
SOURCE. MSG A -> ORIGINAL MAPPING -> TARGET MSG B
SOURCE. MSG A -> PATCH MAPPING -> TARGET MSG B
I dont understand what receives de "patch mapping" it receives the structure from TARGET MSG B?
regards
mariano
Maybe you are looking for
-
Process Inbound 997 using Orchestration in BizTalk 2010
MS, After reviewing and trying all the topics related to Inbound 997, I am creating this new topic that appears to have worked for some of the forum users. So here is what I did: First Attempt: Created a simple Orchestration that has a receive port
-
Macbook stuck on white screen with apple logo. help please
I have a macbook (black model) and while I was surfing on internet it is frozen. so I shut it down and restarted. When I restarted, it stuck on white screen with gray apple logo and seems like booting but nothing happens. after that, I restarted agai
-
Colour changes on creating PDF
Hi, I have just started using Indesign CS3 and am having a problem when I export to PDF. On export, the colour on my page that has a transparency, changes to a duller version or colour. All the other pages stay with the correct colour. I have tried c
-
Images not appearing sharp and with posterization
Some RAW CR2 images taken with Canon EOS 1D Mk11 appear perfect when viewed in the Canon software. I can then save them as TIFFS from this software but cannot manipulate them in it. When the same RAW images are opened in Photoshop CS3, they appear un
-
Oracle Apps Technical or Financial
Hi, I m working as core DBA since 1 year. now i want to switch to Apps DBA field. But i m confused that oracle are giving many Apps DBA trainings like - 11i install, patch, monitor - Oracle Apps Technical - Oracle Apps Financial. As i m new in apps d