on 09-17-2009 7:50 AM
Hello All,
This is regarding UPDATING R/3 DATA.
Done - I created a model and able to retrieve the data from the BAPI, which I am displaying in a table.
Requirement - I want to update the data which is coming in upper step.
Problem - 1. Do not know what to do exactly.
2. Read a PDF related with FlightBooking, but did not get the basic idea behind.
3. When I tried, BAPI to modify throws exception (tried to print that, but is null)
Below are the list of BAPIs I am using, not sure which all are to use & which not.
RHXSS_SER_GET_EMPLOYEE_DATA -> Getting the data from this BAPI currently.
HRXSS_PER_INIT_PERNR
HRXSS_PER_READ_P0006_IN
HRXSS_PER_CLEANUP
HRXSS_SER_GETMENUDATA
HRXSS_PER_NEW_P0006_IN
HRXSS_PER_GET_F4_VALUES
HRXSS_PER_MODIFY_P0006_IN
HRXSS_PER_CHECK
HRXSS_PER_SAVE
HRXSS_SER_GETCONFSCRLINKS
HRXSS_PER_CLEANUP
HRXSS_SER_INITSERVICE
Please guide.. Thanks.
Best Regards
Chander Kararia
Edited by: Chander Kararia on Sep 17, 2009 4:13 PM
Edited by: Chander Kararia on Sep 18, 2009 11:51 AM
Hello Chander,
Please try to print content, just before it is being passed to BAPI, of Input object of BAPI which u are passing to get modified in R3. It seems some how it is getting null value.
After getting all values, provide same set of input in R# and check whether it is working or not.
I hope it would help to analyse the problem.
Best Regards,
Pankaj Sharma
Edited by: Pankaj Sharma on Sep 22, 2009 10:03 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
just to understand that: Have you already imported your model, called the BAPI function and you get a NullPointerException?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi..
I explain you completely.
1. I had to Save/Update the data in R/3 system.
2. Till Now, I had imported the model, executed the BAPI to get the output. (BAPI names are mentioned in previous post)
3. I am getting the result on my web dynpro view.
4. Now, I want to edit them & save them.
5. How to do this?
Also, when I tried to follow some examples, I am getting this error - "Access via 'NULL' object reference not possible., error key: RFC_ERROR_SYSTEM_FAILURE "
Please guide on how to save the record in R3. I am using the JCo connections. Everything seems find till the record display.
Best Regards
Chander Kararia
hello,
did you bind the model to the context? If so, did you create a context element manually and then bind it to the node? Because thats most likely the cause of such things.
like this:
Request_FooSessionLocal_removeFoo request_FooSessionLocal_removeFoo = new Request_FooSessionLocal_removeFoo(fooModel);
request_FooSessionLocal_removeFoo.setFoo(fooObject);
wdContext.nodeRequest_FooSessionLocal_removeFoo().bind(
request_FooSessionLocal_removeFoo);
its an EJB model though, I dont have RFC code at my hand right now.
Hi,
I might not be of much help for you, but just to give some helping idea , did you manage to find out the BAPI that you have to use for you scenario. Because, for "EMPLOYEE" there are so many business objects attached in different scenarios. So, in which scenario of the Employee data are you trying to change?
Because, in my situation we had a similar situation where we wanted to update an infotype(0655) of the user if he clicks on a radio button. For this, we wrote a custom BAPI to update the infotype everytime the user changes the data.
So, it really depends on your requirement. Try to explain your issue in more detail. I might be able to help you if I can.
Regards,
Gopal.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.