How To Create Client Table( CTable ) With Pages Part -2.
Go to -> How To Create Client Table( CTable ) With Pages Part -1.
Go to created CTable Column->right click->Insert Cell Editor->create Element VBELN of type Text View.
Repeate this step for all columns by creating elements for POSNR,MATNR,ARKTX and ZMENG.
Select CTable->Go to properties window->bind data source property with CTable node.
Select VBELN Text View under CTable Column->Go to properties->Bind Text Property with CTable node attribute VBELN.
Repeat this by binding all Text Property of all attributes to respective context Ctable node attributes.
Go to CTable->Properties->Navigation Property->Select Pager.
After Selecting Pager CTable looks like below screen Shot.
Go to Actions Tab->Display action->Write Sample Code Like Below.
Header 1 |
---|
method ONACTIONDISPLAY . DATA lo_nd_input TYPE REF TO if_wd_context_node. DATA lo_nd_ctable TYPE REF TO if_wd_context_node. IF lo_el_input IS NOT INITIAL.* get single attribute IF lv_vbeln IS NOT INITIAL. SELECT vbeln lo_nd_ctable->bind_table( lt_ctable ). ENDIF. |
Goto Componet->Create->Webdynpro Application.
Activate all.
In put :
Enter Sales Document Click on Display for Output.
Out put : CTable with Pages looks like this. You can navigate to Pages by clicking on Page number or Forward Button.
nice document...