Creating EVS , OVS with RFC in WebDynpro Java (F4)
Hello All,
I am struggling with EVS creation through aRFC. I followed all the tutorials given on the SDN, but of no use till now.
I have two DC's <b>rmmodel</b> and <b>rmcomponents</b>
I have created <b>Model</b> in the rmmodel DC through aRFC and added it in the public part. further I added the rmmodel DC in rmcomponent DC's <b>used DC</b> list. Finally i added rmmodel in the <b>used models</b> list of rmcomponent DC.
Then i created a component in rmcomponent DC.
I have already done model binding and context binding (XYZ_XYZ_XYX_Input -->Output)
Now I want to create an EVS with InputField , in my case i want to populate EVS from R/3 Table dynamically. Till now am getting a simple InputField with the first record selected on running my application.
Please Help.
Please avoid posting links to other similar threads, as i have already checked most of the popular threads, blogs and tried my hands on tutorials given on sdn library.
Regards,
Amol
Hi Biswal,
I am trying to do the above but having some problem with the "<attributeName>"
I created a custom controller and a view then i did the model binding and context binding.
In my custom controller <b>EvsController</b> I have the following context.
= Context
===Test_xyz_xyz_Input
=====Output
=======Lt_xyz_xyz
<b>Short</b>
here my attributename is <b>Short</b> so i am writing the following code in the <b>EvsController's</b> wdDoInit()
IModifiableSimpleValueSet valueset =
wdContext.nodeLt_xyz_xyz().getNodeInfo().getAttribute(Short).getModifiableSimpleType().getSVServices().getModifiableSimpleValueSet();
The problem is, it's not able to identify "Short" and giving me an error "Short can not be resolved"
Please suggest something..
Regards,
Amol
Similar Messages
-
I changed RFC but Webdynpro java still using old RFC, why?
Hi,
I changed RFC but Webdynpro java still using old RFC, why?
How can I solve this problem?(Wihtout resetting j2ee engine.)
Thanks.Cemil,
check whether cache invalidation tool is installed on your portal or not.
go to system administration-system configuration-webdynpro console-invalidate ARFC cache
or you can reimport model using another jco connection.
check this link for more details
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/10465350-b4f5-2910-61ba-a58282b3b6df
Thanks
Bala Duvvuri -
Why we call adaptive RFC in webdynpro java..
Hi,
I want to know why we call adaptive RFC connection in webdynpro java whenever we import new rfc in our java web dynpro project. why name ADAPTIVE RFC is used
if we make any structure changes in the model which we imported in web dynpro project , like adding a new field, or changing the length/datatype of the existing field, then we always have to reimport the model in our webdynpro project so why adaptive name used. wats especial in the word ADAPTIVE RFCHi Rahul,
please read the guide:
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/10465350-b4f5-2910-61ba-a58282b3b6df?quicklink=index&overridelayout=true
Best Regards,
Ervin -
Accessing SAP DB(Oracle/Max DB) without using RFC in webdynpro java
Dear Friends,
I'm developing an application in Adobe interactive Forms using webdynpro java. To retrive the data from R/3 generally we use RFC / BAPI's.
But i dont want to use RFC / BAPI's which is written in ABAP.
I want to write one RFC /BAPI using java to store / retreive the data from R/3. or how to access the data / store the data using JAVA from R/3.
Can any one guide me on the same.
Thanks in Advance.
Regards,
Gowripathirao.
Edited by: Gowripathirao on Nov 30, 2009 7:58 AMdon't do that ( I always wanted to write this since joining SDN )
If you want to access database tables in general, check the EJB3 tutorial in SAP Help
http://help.sap.com/saphelp_nwce10/helpdata/en/45/f72761af4020fde10000000a1553f6/frameset.htm -
How to upload a file in R/3 system through RFC using WebDynpro Java
Hi There,
we need to pass a file(mostly xml) using file upload feature in Webdynpro and then need to pass the file in R/3 system using RFC. What should be importing parameters for RFC and how should i implement the fileUploadUi in this case.
I have already seen example of how to add this in a table input form.
Any pointers will be great help.
Regards,
SudhirUse this code to convert the file content to bytes in WDJ:
Apart from the resource context attribute create a context attribute of type binary.
get the data from resource & convert it to binary & pass that to RFC. U can use this code for conversion
byte fileData[] = null;
try{
InputStream fileIs = wdContext.currentAttachCVElement().getFileData().read(false);
ByteArrayOutputStream bOut = new ByteArrayOutputStream();
int length;
byte[] part = new byte10 * 1024;
while ((length = fileIs.read(part)) != -1) {
bOut.write(part, 0, length);
fileIs.close();
fileData = bOut.toByteArray();
bOut.close();
} catch (Exception e) {
wdComponentAPI.getMessageManager().reportSuccess(e.toString());
Here getFileData reffers to the attribute of type resource. rest of the code u can use directly.
Use this code in your R/3 function module to convert the data.
*" VALUE(XCONTENT) TYPE XSTRING OPTIONAL
OUTSTRING TYPE STRING,
CONV TYPE REF TO CL_ABAP_CONV_IN_CE.
Convert data passed from WD Application.
CONV = CL_ABAP_CONV_IN_CE=>CREATE( INPUT = XCONTENT ).
CONV->READ( IMPORTING DATA = OUTSTRING ).
SPLIT OUTSTRING AT CL_ABAP_CHAR_UTILITIES=>CR_LF INTO TABLE IT_DATA.
DELETE ADJACENT DUPLICATES FROM IT_DATA.
Let me know if you run into issues, please award points accordingly. -
How to create a folder with spaces written in Java under Linux?
Hello,
I have a serious problem
I want to run a Linux command using a Java class with the runtime interface, there is a command to create a folder named eg "My Folder", with a space
For create the Unix command is easy to do either:
mkdir My\ Folder
or
mkdir "My Folder"
But how to translate this in Java, I tried with two commands :
Runtime.exec("mkdir My\\ Folder")
Runtime.exec("mkdir \"My Folder\"")
For example :
import java.io.IOException;
public class CreerDossier {
public static void main(String[] args) throws IOException {
Runtime runtime = Runtime.getRuntime();
runtime.exec("mkdir My\\ Folder");
runtime.exec("mkdir \"My Folder\"");
But it's still not working,
For runtime.exec("mkdir My\\ Folder") it creates two folders My\ and Folder
For runtime.exec("mkdir \"My Folder\"") it creates also two folders "My and Folder"
Are there solutions?
Thank you !But my real problem is how to apply the chmod 777 on a folder containing spacesSo why not say so in the first place?
Runtime.exec ("chmod 777 My\\ Folder");Runtime.exec(new String[]{"chmod", "777", "My Folder"});
That is why I chose the example of mkdirYour reasoning on this point is incomprehensible. You wanted help with A so you asked about B. Just wasting time. -
Can I create a PDF with form controls using JAVA?
I have a web site running on linux (Ubuntu). I'm programming in Java. Presently I use open office to create PDFs with form controls (checkboxes, lists and text fields). I'd like to be able to create in my program (Java) with form controls. JasperReports is not good because I don't see a way to create form controls. Help!!!
I am not sure what this has to do with the Acrobat SDK, as we don't have a version of SDK for Linux (or Java).
-
Hi All..
I need to Create a Adobe Form with the table structure as used in my RFC and Using onSubmit event to store the entered data into SAP. Please Provide me Some Useful links to know the proper process, please guide me the process.
Thanks,
Parameshwarihttp://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f02b33fc-9eb1-2c10-0599-f2ef9fb5c5b6?QuickLink=index&overridelayout=true
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f02b33fc-9eb1-2c10-0599-f2ef9fb5c5b6?QuickLink=index&overridelayout=true
Regards,
Mahesh -
Getting started with NDWS7.3 ,webdynpro JAVA
Someone please help me how to create normal application where we have 2 ratio button
* single
* multiple
If we select Single it will show :
1 Start Date
2 End Date
If we select Multiple:
1 Start date
2 End Date
3 Drop down menu to add file to upload.Dear Prakash,
Check following example.
**************** - Enable/Disable & Show/Hide UI Elements in Web Dynpro Java
Thanks & Regards,
Patralekha -
Send attachments with Email in WebDynpro[Java]
Hi All,
Developing a webdynpro application in Java Which will sending -mail.Is it Possible to send attachments[Ex: Excel/doc Files] in webdynpro ?How to do it ?Please Help me out..
Regards,
Ramganesh.Hi,
Try this code;
Properties properties = new Properties();
properties.put( "mail.smtp.host", <>);
Session session = Session.getInstance( properties, null);
MimeMessage message = new MimeMessage( session);
try
MimeMultipart multipart = new MimeMultipart();
BodyPart messageBodypart = new MimeBodyPart();
message.setFrom( new InternetAddress( <sender mail id>));
message.setRecipient( Message.RecipientType.TO, new InternetAddress( wdContext.currentContextElement().getP_Email_Id()));
message.setSubject( "Subject");
messageBodypart.setText( "Text");
multipart.addBodyPart( messageBodypart);
messageBodypart = new MimeBodyPart();
messageBodypart.setDataHandler( new DataHandler( new FileDataSource( <Path of file>)));
messageBodypart.setFileName( new FileDataSource( <Path of file>).getName());
messageBodypart.setHeader( "Content-Type", "application/pdf");
multipart.addBodyPart( messageBodypart);
message.setContent( multipart);
Transport.send( message);
} catch (AddressException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
} catch (MessagingException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
Regards
Vinod V -
How to create CRUD application using bapi in webdynpro java
Hi All,
I have implemented the CRUD application using bapi Now i want to create, retrieve , update and delete the existing table by click on Insert, delete, retrieve ,and update button dynamically. i get null values from database, Please let me know the logic and procedure for how to create CRUD application using bapi Please any one help me..
Thanks in advanceHi,
Hey tell me one thing your BAPI having CURD methods. See you are getting data from BAPI and pull the data in Table in WDJ. So if u can do any action it will comes trough BAPI.
If your BAPI having CURD methods. You can implement CURD methods in WDJAVA also.
@ You said you are getting null values from the database. Please let me know what code you have to wrote for CURD. Please tell me.
Hope this is help full for u
Best Regards
Vijay K -
SRM RFC Model Error in Webdynpro JAVA
Hi All,
When I create a model from Any R/3 RFC in Webdynpro(JAVA) and map the RFC model context to Controller Context then every thing works fine, but when I create model from SRM RFC(Model is created with no problems at all) and map the SRM Model context to Controller Context, then I get below error:
com.sap.tc.webdynpro.services.exceptions.TypeNotFoundException: type com.cnsl.srm.model.types.Bbp_Category_Id could not be loaded: com.sap.dictionary.runtime.DdException: Type com.cnsl.srm.model.types.Bbp_Category_Id does not exist
Is there any thing specific to SRM that we have to do on the Webdynpro(JAVA) side to be able to call the SRM RFC. Kindly suggest me. Also please if you can forward me to forum thread/blog in case there is any.
-Shekhar.Hi,
Please look at this thread. Similar problem
Webdynpro Services Exception
WebDynpro using BAPI has an error
Regards,
Marcin Gajewski -
Table ui element in webdynpro java.
Hi Friends,
I am krishna i am working as sap webdynpro abap consultant . But right now i got the requirement on sap webdynpro java.
so please give me the required details.
Here are my questions.
1. how to populate the data into the table.
2. and the back end is erp, i have to use rfc. to display the data into the table .
3. so how to integrate the rfc into webdynpro java.
if u send with screen shots that would be very help for me.
Waiting for your reply.
Thanks & Regards.
Krishna.It's very simple.
1) Import your RFC.
For this:
-Right click on Models->Create Model->Select Import Adaptaive RFC then follow the steps.
-Go to Used Models. Right click -> Add... -> then select the model that you created.
2) I guess you have a view that is using a controller (Custom/Component) so:
-Go to Context Tab-
-Create a model node.
-Bind the model node with the model that you created.
-Go to the view where you want to put the Table ui element and add the table (Outline window->right click->Insert Child->Table)
-Go to context tab, add a model node, en map it (Edit context mapping) with the model node that you created in the controller.
-Go back to layout tab. Then in table properties, in datasource click on the "..." and select the output node of the model that you have created in the view.
-Then in Outline Window-> Right click on the table element-> Create binding-> check the attributes that you want to be binded to the table.
-Then follow the steps.
You have now your table binded to the rfc.
Finally what you have to do is to create a method to execute the rfc. Usually it is written in the controller. Something like this:
public void execute<YourBapiName>( )
//@@begin execute<YourBapiName>()
IWDMessageManager manager = wdComponentAPI.getMessageManager();
try
wdContext.current<YourBapiName>Element().modelObject().execute();
wdContext.node<YourBapiOutputNode>().invalidate();
wdContext.current<YourBapiName>Element().modelObject().modelInstance().disconnectIfAlive();
catch(WDDynamicRFCExecuteException e)
manager.reportException(e.getMessage(), false);
//@@end
To call this method, first, you have to bind the input parameters and then execute it (you can do this wherever you want):
<YourBapiName> input = new <YourBapiName>();
input.set<YourBapiParameters>(<YourParameter>);
wdContext.current<YourBapiName>Element.bind(input);
wdThis.wdGet<YourControllerName>(Controller().execute <YourBapiName>();
I hope it helps.
Bye bye. -
How to access ISR scenaros / PDF Forms to Webdynpro Java
How do we access the ISR Scenarios / PDF Forms created in R/3 to a WebDynPro - Java application. I don't think we have to use BAPIs to access these Adobe Forms.
Any insights is really appreciated.
Thank you very much ....
Waiting for any repliesHi,
Well, As such I learned these HR Forms from this ISR Cookbook itself. I too delivered couple of ISR/PCR based applications. I also refered the Standard Forms and the related BADI's to get to understand the ISR Architecture.
As such,I dont think you can get any precise document for HR Forms.
But, you can always get Custom PCR Documentation from
<b>https://websmp202.sap-ag.de/mss</b>
In this link, access the Documentation-Internet Service Requests and Personnel Change Requests part.
These documents will certainly be useful for you.
Regards,
<i><b>Raja Sekhar</b></i> -
Calling RFC with webdynpro java (in NetWaver Dev.Studio)
Hi,
I have a RFC like below
FUNCTION ZSAP_X.
*""Local interface:*
*" IMPORTING
*" VALUE(USNAM) TYPE USERNAME
*" EXPORTING
*" VALUE(PWD) TYPE CHAR8
1-I want to write webdynpro java application to call RFC
2-Call RFC with USNAM parameter
3-Get PWD output parameter and write it's value into View TextInput field.
I wrote application but I did not get PWD (output parameter) value. I checked RFC running poreperly.I did not achieve to get PWD.
How can I do that?
Thanks.Hi Bala,
I checked RFC, it is running properly and getting the output value.
And I used command below, but it produces error
String X = wdContext.currentPWDElement().getpwd().toString();
Error:
java.lang.ArrayIndexOutOfBoundsException: -1
Thanks.
Maybe you are looking for
-
Documentation for install of 3.6.1?
Hi. We have, for a client, a version of UPK installed which is 3.1.7. The new version to be installed is 3.6.1. I have uploaded the new content to the server. But I am looking for documentation that would explain the new setup....something like Oracl
-
"Save As" command with very slow Finder response in Tiger
Ever since upgrading to Tiger using the "Archive & Install" option, my applications have had very slow operation of the "Save As" command. The Finder takes a long time to open and display the Save As window with folders and file name etc. This has oc
-
The email window pane is huge and disappears off screen and I have not found any way to resize it. This means I cannot see what I am typing as the text disappears to the right off the screen. Only way to see what you are typing is to drag the pane
-
Software to read Ordnance survey maps on 3230
Hi I'm planning to take up walking and would like some software on the lines of Pocket Navigator that will read mmi (Memory-map) ordnance survey map files on a 3230. I already have Tom Tom but that only does road travel where I plan to hill walking e
-
FM or BAPI to get BP based on country region bus group role
Hi Gurus, Do any one know a FM or bapi that I can use to find business partners based on: Country Region Business Group (Marketing Attribute) Role (BUP002-Prospect) BP Type (2-Corporate Account) Sales Rep ID i think i need to use multple Fm to get th