cancel
Showing results for 
Search instead for 
Did you mean: 

Value could not be transfer from sap table to java application

former_member184958
Active Participant
0 Kudos

In my application i submit the Course id, course type and plan version after click submit it will display the begda endda and stext but it will not get display. In same application after press submit i submit pernr then press enter i get the pernr name.

Here i attached my application screen shots.

please help me i'm the fresher for webdynpro java.

Thank You.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi John,

Modify your code like below and try ,,I have roughly written it ,so correct it with proper names

jwd_trnfd_model mod = new jwd_trnfd_model();

zbapi_train_fdp_input inp = new zbapi_train_fdp_input(mod);

zst_bapi str = new zst_bapi(mod);

List<zst_bapi> bapilist = new ArrayList<zst_bapi>();

str.setIm_objid( wdcontext..........................................);

str.......................................

str.............................;

bapilist.add(str);

inp.setyour fieldname in bapi(bapilist);

wdcontext.nodezbpi_train_fdb_input().bind(inp);

wdcontext.currentzbpi_train_fdb_inputelement().modelobject().execute();

wdcontext.nodeoutput().invalidate();

Thanks!

Swarnaprakash

former_member184958
Active Participant
0 Kudos

Hi Swarnaprakash,

     Here zst_bapi is the exporting parameter in my rfc why should i set my import value to that structure. Because it going to hold my result right.

if i confuse dont make me mistake this is my first secnario.

Thank You.

Former Member
0 Kudos

Hi John,

Can you expand your "zbapi_train_fdp_input " under model classes and post the screen shot ?

I need to see the structure.

Thanks!

Swarnaprakash

former_member184958
Active Participant
0 Kudos

Hi Swarnaprakash,

These are my context. Help me to correct my problem.

Former Member
0 Kudos

Hi John,

try this line instead of inp.execute.

wdcontext.currentzbpi_train_fdb_inputelement().modelobject().execute();

And let me know the result.

Thanks!

Swarnaprakash

Former Member
0 Kudos

Hi John,

Is your issue resolved?

Thanks!

Swarnaprakash

former_member184958
Active Participant
0 Kudos

Hi Swarnaprakash,

        My issue is resolved. thank for ur valuable answer.

by John

Former Member
0 Kudos

Hi John,

Ok. Award points if you think the answer helped you and please close the thread.

Thanks!

Swarnaprakash

Stefan-EA
Contributor
0 Kudos

Call the node invalidation after you execute the RFC.

former_member184958
Active Participant
0 Kudos

Hi Stefan,

Already did that if u have other ideas please share...,