cancel
Showing results for 
Search instead for 
Did you mean: 

Regarding problem in cardinality for context in alv display

former_member191468
Participant
0 Kudos

Hello,

I have a problem with caridianalty with context when displaying in alv. If the cardinality is 1..N then its displaying the data in alv. But if cardinality is changed to 0..N then its giving a cardinality error.

what i want to do is if the internal table is empty i should refresh the alv with the no records for the second time. so please let me know if there is any method to bind the alv with empty internal table.

Regards

Anil Kumar K

Accepted Solutions (0)

Answers (2)

Answers (2)

Dheerendra
Participant
0 Kudos

Hi Anil.....

Hope So Following Link will help-ful for u regarding Model-Binding and Data Binding....

1.http://help.sap.com/saphelp_erp2005/helpdata/en/89/5d3d4d4d28c84eb01c635d95a93e0f/frameset.htm

2.http://help.sap.com/saphelp_erp2005/helpdata/en/8f/db0c533a4e514d9720ed2307a40f84/frameset.htm

3.http://help.sap.com/saphelp_erp2005/helpdata/en/fb/fbb84c20df274aa52a0b0833769057/frameset.htm

Best Regard's

Dheerendra

Dheerendra
Participant
0 Kudos

Hi Anil,As I Think U Getting the Data in Table From Back-End R/3.....Through Model-Binding......As i Tested in My Application.....for changing the Cardinality u must first go to Model Binding of custom controller and change it's cardinality 0...n,then change the cardinality of appropriate IViews..............then it(cardinality)will change and will not give any error..........

Best Regard's

Dheerendra Shukla

former_member191468
Participant
0 Kudos

Hi Dheerendra,

Thanks for your reply. But this did not solve my problem.I am taking a context node cardinality as 0..n

and binding the internal table with this context. it is saying the below error.

The following error text was processed in the system NWS : Zugriff über 'NULL' Objektreferenz nicht möglich.

but it is working fine with 1..n. The data is coming from R/3.

I am not using any custom container i am just using the component controller context and view context.Please let me know what model binding is, i think this same as data binding right.

Regards

Anil Kumar K