Application Development 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: 

bdc using cs01 and cs02

Former Member
0 Kudos
146

hi friends,

i hav to use cs01 and cs02 in bdc such that, if the data in my flatfile does not exist, cs01 is to be executed, and if it exists cs02 is to be executed and the new data in my flatfile has to replace the already existing one in the cs02 table control. my problem is that i am not able to check if the data in my flatfile already exists and am not able to think of a way to replace the existing data in the cs02 table control

6 REPLIES 6

Former Member
0 Kudos
94

hi,

You can check in STKO table whether BOM is created.

0 Kudos
94

but i donot give the bom number in my flatfile, i only give the material, plant, usge, alternate usage, change number and the components with their quantity

0 Kudos
94

hi,

check MAST ( Material to BOM Link) Table.

It contains material, plant, usge, alternate usage.

*Pls dont forget to reward points by clicking the radiobutton on the left of your question if it helped you

Former Member
0 Kudos
94

Hi Santhosh,

you can check the data in the flat file using the sy-subrc. if sy-subrc returns value 0 then u have a value so you can exectute cs02 otherwise choose cs01 in the if condition.

0 Kudos
94

and how do i replace the table control line in cs02, i ask this bcoz if the 1st line of the table control is to be replaced by say.. the 5th line in my internal table>?

0 Kudos
94

hi,

there is a pushbutton called 'position' in the CS02 screen. using this you can navigate to the particular row of table control