cancel
Showing results for 
Search instead for 
Did you mean: 

Data not coming in the table

former_member187658
Participant
0 Kudos

Hi

I have an application, where some information is to be displayed in the table. The bapi has only one input parameter.

I am passing that parameter, calling the execute(), and invalidating. But the data is not getting displayed in the table. Also, all the steps are being executed and no exception is being thrown. At the R/3 front, when Bapi is executed, it works properly.

I tried re-importing the model , did the binding n mapping again, and restarted the server but to no avail.

Can anyone tell what other reason could be.Any help in this regard, will be highly appreciated.

Thanks & regards,

Anupreet

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

<i>I am passing that parameter, calling the execute(), and invalidating</i>.

Check whether u r invalidating the node first, then pass the parameter and execute.

For checking print the node size after u execute.

- Nagarajan.

former_member187658
Participant
0 Kudos

Hi Nagarajan

I am pasting the code below:

IUser user = WDClientUser.getCurrentUser().getSAPUser();

String user_id=user.getUniqueName().toString();

wdComponentAPI.getMessageManager().reportSuccess(user_id);

input.setZusername(user_id);

wdContext.nodeCmpNode_PersonalData().currentCmpNode_PersonalDataElement().modelObject().execute();

wdContext.nodeCmpNode_PersonalData().nodeOutput().invalidate();

and in the init() i am binding the model object to the node:

wdContext.nodeCmpNode_PersonalData().bind(input);

I also checked regarding the Output node binding, it is done correctly.

Also when i am checking the size after execution and invalidation, the node size is 0 only even though there are records present.

Thanks & regards,

Anupreet

// user_id does carry the correct value

Message was edited by: Anupreet Kaur Chhokar

vijayakhanna_raman
Active Contributor
0 Kudos

Hi,

put this before execution of bapi

wdContext.nodeCmpNode_PersonalData().nodeOutput().invalidate();

Regards,

Vijayakhanna Raman

Former Member
0 Kudos

Hi,

Give the code as below.

<b>Invalidate the node before execution.</b>

wdContext.nodeCmpNode_PersonalData().nodeOutput().invalidate();

IUser user = WDClientUser.getCurrentUser().getSAPUser();

String user_id=user.getUniqueName().toString();

wdComponentAPI.getMessageManager().reportSuccess(user_id);

input.setZusername(user_id);

wdContext.nodeCmpNode_PersonalData().currentCmpNode_PersonalDataElement().modelObject().execute();

//print the node size here and check.

and in the init() i am binding the model object to the node:

wdContext.nodeCmpNode_PersonalData().bind(input);

- Nagarajan.

sridhar_k2
Active Contributor
0 Kudos

Hi,

Check your response node, whether it is giving having data or not?

you can check with wdContext.node<Response>.size(). You can check by printing.

Regards,

Sridhar

former_member187658
Participant
0 Kudos

Hi Nagarajan

Even then the same thing is happening, no data getting displayed , and it is giving the node size as zero.

Thanks & regards,

Anupreet

sridhar_k2
Active Contributor
0 Kudos

Hi Anupreet,

It means, data is not coming from Back-End it self.

Check it in Back end, whether data is there or not?

Regards,

Sridhar

Former Member
0 Kudos

Hi,

Can you post your code. It will ease the proceedings

Regards

Saravanan K

Former Member
0 Kudos

Check if you have bound the correct <i>RFC_Output</i> node to the table data source.