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: 

How to know the right row to update in BDC...

aris_hidalgo
Contributor
0 Kudos

Hello Experts,

I am currently doing a BDC for transaction VD02(change customer) to change the

customers sales data and partner functions. However, I noticed in the partner functions

window that it has many partner functions but I only need to edit the 'PE', 'A1' and

'A2' partner functions. My question is, how will I know the right 'row' to edit since it has

multiple functions and sometimes you need to press page down to see the others. Now, is there a

way to know what value that row currently stores so I can know whether or not I need to modify it?

Hope you can help me guys. Thank you and take care!

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

I understood your problem and have faced a similar scenario,

We cannot read the data during a BDC.

What i had done for my requirement was

i had selected the data from the database table WYT3 with the vendor or customer number

read the data according to the requirement and then performed the BDC for all the entries as it is sorted similar to that in the data base .

you will need a counter for the row

eg.

CONCATENATE 'WRF02K-GPARN(' lv_cnt ')' INTO lv_gparn.

this is the field for updating.

it will be like 'WRF02K-GPARN(01) for the first row then increment the counter for the second row and so on.

This has worked for me.

Hope it helps you too,

Regards,

taher

4 REPLIES 4

Former Member
0 Kudos

Hi,

I understood your problem and have faced a similar scenario,

We cannot read the data during a BDC.

What i had done for my requirement was

i had selected the data from the database table WYT3 with the vendor or customer number

read the data according to the requirement and then performed the BDC for all the entries as it is sorted similar to that in the data base .

you will need a counter for the row

eg.

CONCATENATE 'WRF02K-GPARN(' lv_cnt ')' INTO lv_gparn.

this is the field for updating.

it will be like 'WRF02K-GPARN(01) for the first row then increment the counter for the second row and so on.

This has worked for me.

Hope it helps you too,

Regards,

taher

0 Kudos

Hi,,

Also you will need to manupulate the BDC flow with proper ENTERS

for the proper processing of the logic,

Reward If helpful,

Taher

aris_hidalgo
Contributor
0 Kudos

Hi Guys,

I checked table WYT3 and KNVP but it doesn't store the exact data that is displayed in the transaction.

0 Kudos

Hi,

The data is different in display due to the internal conversions.

There are internal-external conversions for the parter functions

e.g

displays as in data base as

VN --> LF

IP --> RS

GS --> WL

ER --> ZM

You can check the same in debugging.

regards,

taher