cancel
Showing results for 
Search instead for 
Did you mean: 

Doubt on Bapi and Model node!

Former Member
0 Kudos

HI all,

I hav a bapi say Zone. which has tables,import,export param. The tables are tab1, tab2, tab3 and in import parameter i hav empid. When i execute the bapi in r/3 side and i give input for empid i am getting output records for all the tables tab1, tab2, and tab3. i created model in webdynpro for the bapi. i binded input and executed the model object. everything is fine. i gave same input values which i tested in r/3. after execution of model object i am able to retrieve all data which i mapped the context node to the table ui element datasource. it is displaying all values except the values of tab1 is not displayed. i checked the size of nodetab1 model its zero. the rest of the modelsnodes size its giving correct. but for my tab1 i am not getting data. but it is retrieving in the r/3 end for the same input data which i gave in webdynpro input. in r/3 side i could fine the data for tab1 for the same input value.

any suggestion please. what will be the problem.

awaiting for your reply.

regards,

Ganesh.D

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

All table nodes are under one outputnode or seperate.

If all nodes are under one node.Find the size for each output table.

Otherwise check once for your ourputnode invalidate method for this table.

it might helps you.

Thanks,

Lohi.

Former Member
0 Kudos

Hi Lohi,

I validated. Everything i fine. Any other better solution. i could able to see the size of other node table except the 1st one. but it has entries. i checked by executed bapi's. any other solution will be realy helpfull.

regards,

Ganesh.D

Former Member
0 Kudos

hi Ganesh,

It seems that there is some problem with the mapping of the node which gives you the output for tab1. Please check whether the mappings are done correctly for that particular node which retrieves the output for the tab1.

Can you send me the code what you are using and also the node names, I mean the complete structure for that node which gives you the output.

Thanks,

kris

Former Member
0 Kudos

Hi,

Could you check your BAPI execute method for what your are not getting the value of the table node.

Other wise do one thing u can call that Function module seperatly and check the values are coming or not then it makes sense.

Try it once,

Thanks,

Lohi.

Answers (4)

Answers (4)

Former Member
0 Kudos

When i Tried to import new bapi and make use of it the project restructured and the issue was solved without any additional effort/work. But when i reimported existing model before it does't worked.

Thanks for all.

lajitha_menon
Contributor
0 Kudos

Hi Ganesh,

This could be a leading zero issue as well. when you execute a function in R/3, conversion exits could automatically put leading zeroes in, but you will have to do it manually when you execute it using web dynpro.

Just check if thats the issue by passing leading zeroes from web dynpro for the input.

Regards,

LM

Former Member
0 Kudos

Hi Menon,

Thanks for your reply. Sorry to ask a question Again. what is leading zeros. What i have to do exactlly. can you make your explanation simpler in steps.

regards,

Ganesh.D

Former Member
0 Kudos

Hi all,

Problem is solved. When i tried add another bapi and make use of it it restructured/rebuilded entire thing and the same one is working fine now with any further additional code/work.

Thanks for all your replies.

regards,

Ganesh.D

Former Member
0 Kudos

hi

Ganesh try to debug the Abap code from the Webdynpro.Put a break point in the Abap code .goto utilities in the Menu->settings->Debugging,check the Active checkbox and select the Classic debugger mode.Now Deploy your application and give import parameter ,like this you will come to know what data are passing and what data are you getting from the Backend.

Regards

Nidhideep

lajitha_menon
Contributor
0 Kudos

Hi Ganesh,

Check whether the output node is inside the input rfc node.

If it is inside, have you selected these tables under the output node?

Then check whether you are calling the nodeOutput().invalidate method?

Once these are done, I think it should be ok,

cheers

suresh_krishnamoorthy
Active Contributor
0 Kudos

Hi Ganesh,

I hope your checking correct response nodetab1 model size. ideally you should get the get model size same as r/3 end result.

try reimporting the model again and test it.

Regards, Suresh KB