‎2009 May 20 11:52 AM
Hi Guru's,
I have a issue on handling table control with BDC..i am working on RFC's i have incorporated total code but i am able to update at the max 4 line items..more than 4 line items it is not updating..i am working on COR2 transaction...plz hellp me out..
Regards,
Vamshi
‎2009 May 20 11:57 AM
Check if you have a Page Down / Next Page button on the tool bar. If you have one, hit page down after populating 4 records while recording the transaction and include the code for that button. Also set the parameter DEFSIZE to 'X' in opt while using CALL TRANSACTION 'COR2' OPTIONS FROM opt .
regards,
Jinson
‎2009 May 20 12:07 PM
‎2009 May 20 12:30 PM
u have to add the
TRANSACTION 'COR2' | [USING bdc_tab [bdc_options]] .
in wihich
OPTIONS FROM opt
DEFSIZE (Selection as to whether the screens of the called transaction are displayed in the standard screen size.) Values "X" (standard size), " " (current size).
also you have to handle the 'P+'.
*"--------------------------------------------------------------------*
* Structure to hold Parameter string for runtime of CALL TRANSACTION *
*"--------------------------------------------------------------------*
DATA :
fs_opt TYPE ctu_params.
*&---------------------------------------------------------------------*
*& Form SETTINGS
*&---------------------------------------------------------------------*
* This Subroutine sets the default size check box to 'X' & Mode as 'N' *
*----------------------------------------------------------------------*
* There are no interface parameters to be passed to this subroutine
*----------------------------------------------------------------------*
FORM settings .
* Setting the Default size checkbox to 'X' and Mode as 'N'
fs_opt-defsize = 'X'.
FS_OPT-DISMODE = 'N'.
ENDFORM. " FORM RETRIEVE_SUBSECTION...
After filling your BDC Data.
CALL TRANSACTION 'COR2' USING t_bdcdata
OPTIONS FROM fs_opt
MESSAGES INTO t_messages.
you can see the below example
https://www.sdn.sap.com/irj/scn/wiki?path=/display/snippets/bdcToUploadIT0585Data
Regards.
‎2009 May 20 12:31 PM
Thnks for quick response but it is not helping me...
I am using find opiton for searching the fields of the table control which brings the required line option on top and in where i can do the changes...but still it is updating 4 line items...