cancel
Showing results for 
Search instead for 
Did you mean: 

Data not saved in the database

Former Member
0 Kudos

hi all

I have a webdynpro app. where I try to insert a new record into sflight.

I have create a model importing BAPI_FLIGHT_SAVEREPLICA_INPUT

and BAPI_TRANSACTION_COMMIT.

I update all fields thru my code.

When I press my button I call my component controller execute method.

wdThis.wdGetFlightCompController().executeBapi_Flight_Savereplica_Input()

where I call

wdContext.currentBapi_Flight_Savereplica_InputElement().modelObject().execute();

wdContext.currentBapi_Transaction_Commit_InputElement().modelObject().execute();

Unfortunately nothing is written cack to the backend.

Any suggestion would be helpful.

Thanks

yuval

Accepted Solutions (1)

Accepted Solutions (1)

nikhil_bose
Active Contributor
0 Kudos

put break points in Functional Modules and see data is coming from dynpro application to R/3.

nikhiL

Former Member
0 Kudos

Dear Nikhil

Thank you very much for yr reply. It was st.... of me not to start by debugging ABAP code first.

Debugging the backend code I discovered it throws an exception because not all parameters (6 or 7 of them) were passed to the function module. Once I passed all arguments to the function module did I manage to save the data to the backend.

Dear Goriga

Thank you as well. I did that but if the function module throws a exceotion , it returns no value. So it's no big help. Please stand me correct....

Thank you.

points rewarded

yuval peery

Answers (1)

Answers (1)

Former Member
0 Kudos

HI ,

Try to print all the values by using,

IWDMessageManager msgMrg = wdThis.wdGetAPI().getComponent().getMessageManager();

msgMrg.reportSucess("value1"+value1);

Then u can able to check the values.

Regards,

LG