‎2008 Jul 14 12:45 PM
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.........
‎2008 Jul 14 12:50 PM
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.
‎2008 Jul 14 12:54 PM
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.