Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Issue on Table Control

Former Member
0 Likes
591

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

4 REPLIES 4
Read only

Former Member
0 Likes
550

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

Read only

Former Member
0 Likes
550

hi vamsi,

i think your progam is not incrementing the line /row...after each insertion...

this issue is discussed in the forum :

please check this link:

[;\

regards

safel

Read only

Former Member
0 Likes
550

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.

Read only

Former Member
0 Likes
550

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...