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: 

regarding BDC program

0 Kudos

hi frnds,

I have one doubt regarding BDC. In one internal table i have 1000 records.total 10 fields in that table.fields are:

1. vendor.

2.xxx

3.xxx

4.xxx

5.xxx

6.xxx.

7.pan number.

8.xxx

9.xxx.

10.xxx.

i have total(1000) vendor numbers but there are some pan numbers doesn't exists.So, i have to update the pan number

which are related particular vendor number.

and also i want to upload some new vendors and pan numbers.

i knew the uploading and change record BDC programs.

But i want both operations in one program.

help me frnds.........

2 REPLIES 2

Former Member
0 Kudos

Hi ,

Just check whether vendor and pan number exists in the vendor master table .

IF it is there , dont do anything .

IF vendor exists but pan number is not there , execute the code for vendor change BDC .

And if the vendor is not there , execute the code for vendor create BDC.

Include the code for both in same program and depending upon the condition execute different BDCs.

Former Member
0 Kudos

Hi

try like this...

iupld is ur int. table.

LOOP AT iupld.

SELECT SINGLE lifnr FROM lfa1 WHERE lifnr = iupld-lifnr.

IF sy-subrc NE 0.

move iupld TO iupld1.

APPEND iupld1.

CLEAR iupld.

DELETE iupld index sy-tabix.

ENDIF.

ENDLOOP.

IF NOT iupld[] IS INITIAL.

perform... code..

call xk01 transaction here..

ENDIF.

IF NOT iupld1 IS INITIAL.

perform... code..

call xk02 transaction here..

ENDIF.