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

help required on bdc control

Former Member
0 Likes
863

Hi everyone,

i have a doubt in table control program. while inserting the item data into xk01 or XD01, table control is present. it may show five rows. so while writing the code we will be writing a if the counter we set is greater than 5 than we will write a perform stmt passing bdc ok_code and p+= . to enable scroll and to insert more rows (item data) into the table control.

let us think the other system which can show only three rows in the table control, and the code which we have written above will not work for this one has it has only three rows and the above code is for 5 rows. so how should we code the program so that it can be used and run for the both systems.

please do reply soon for this program.

Thanks in advance

Hi everyone,

i have a doubt in table control program. while inserting the item data into xk01 or XD01, table control is present. it may show five rows. so while writing the code we will be writing a if the counter we set is greater than 5 than we will write a perform stmt passing bdc ok_code and p+= . to enable scroll and to insert more rows (item data) into the table control.

let us think the other system which can show only three rows in the table control, and the code which we have written above will not work for this one has it has only three rows and the above code is for 5 rows. so how should we code the program so that it can be used and run for the both systems.

please do reply soon for this program.

Thanks in advance

6 REPLIES 6
Read only

amit_khare
Active Contributor
0 Likes
818

Check this link.

http://www.sap-img.com/abap/bdc-example-using-table-control-in-bdc.htm

Regards,

Amit

Reard all helpful replies.

Read only

0 Likes
818

Hi ,

Thanks for your reply. But still question remains unresolved. try to execute this program after seeing the table control rows( for ex if there are 5 or 6 insert, more item details than 6 ) and try this program you will not be able to insert all the item details from your flat file to the transaction code.

just try this one out, because i am damm sure that this will not work.

once again thanks for your reply

Read only

Former Member
0 Likes
818

Hi,

Do your recording in the background mode. And the first thing is check if there is an option to insert the values always in the first row. There will be an option for some tcodes. check it.

And secondly, you can set the default size for the screen to display same no. of rows in you call transaction syntax under options. check this..

CALL TRANSACTION ta { [AND SKIP FIRST SCREEN]

| [USING bdc_tab [bdc_options]] }.

you can fill the option from bdc_options.

... OPTIONS FROM opt

Effect

The OPTIONS addition covers the functions of the MODE and UPDATE additions. It provides further options for controlling batch input processing. The control parameters are specified in an opt structure of the type CTU_PARAMS from the ABAP Dictionary. The CTU_PARAMS structure has the components displayed in the following table:

Component Meaning

DISMODE Processing mode for batch input processing. Values as for the MODE addition.

UPMODE Processing mode for batch input processing. Values as for the UPDATE addition.

CATTMODE CATT mode for batch input processing. CATT means Computer Aided Testtool. While batch input is mostly used for data transfer, CATT processes are to be viewed as more complex transactions, since they are reusable tests. Values: " " (no CATT mode), "N" (CATT without single screen control), "A" (CATT with single screen control).

DEFSIZE Selection as to whether the screens of the called transaction are displayed in the standard screen size. Values "X" (standard size), " " (current size).

RACOMMIT Selection as to whether the COMMIT WORK statement terminates batch input processing or not. Values: " " (COMMIT WORK terminates processing), "X" ( COMMIT WORK does not terminate processing).

NOBINPT Selection for the symbol field sy-binpt. Values: " " (sy-binpt contains in the called transaction "X"), "X" (sy-binpt contains in the called transaction " ").

NOBIEND Selection for the system field sy-binpt. Values: " " (sy-binpt contains "X" after the end of the batch input data in the called transsaction ) "X" (sy-binpt contains " " after the end of the batch input data in the called transaction).

Without use of the OPTIONS FROM addition,the values set by the additions MODE or UPDATE or the standard values specified there apply to DISMODE and UPMODE"A". The other components are set to the value " ".

award points if it helps.

Read only

0 Likes
818

hi ,

Thanks for your reply. ya don't have any idea whether it will work or not. but will try this program and let you know. it is okay while migrating the data from flatfile to tcodes using call transaction method. then what is the procedure if we use the session method.

please do reply soon.

thanks once again.

bye

Read only

0 Likes
818
Read only

0 Likes
818

I am not sure if there is a specific action to be taken in session. The only thing i can think of is to do the insert for every row so that data is always entered in the first row. Did u check this ?