cancel
Showing results for 
Search instead for 
Did you mean: 

help in bdc for tcode MEK1

former_member438956
Active Participant
0 Kudos

Hi,

I am creating a recording for transaction MEK1. Based on the condition type specified , the next screen comes based on key combination. I want to check in the program that out of all the key combination user have selected which combination.

For ex. for conditon type ZAVS the key combination comes as

1) county/region/material

2) country/region/vendor

3) vendor

If the vendor selects key as vendor then how to take the value for BDC program.

Thanks,

Anil N.

Accepted Solutions (0)

Answers (1)

Answers (1)

naveen_inuganti2
Active Contributor
0 Kudos

Hi..,

That option wl be selection indicator. Right?

Then pass the value 'X', to select reuired one.

While recording this screen, after entering the condition type , click on key combination.and then you wl get new pop up with radio buttons.

just select one by one radio button from top to bottom.

(here prefer the combination which is having more choices)

and then you should get code like this..,

perform bdc_field       using 'RV130-SELKZ(01)'
                              'record-SELKZ_01_002 
perform bdc_field       using 'RV130-SELKZ(02)'
                              record-SELKZ_02_003.
perform bdc_field       using 'RV130-SELKZ(03)'
                              record-SELKZ_03_004.
perform bdc_field       using 'RV130-SELKZ(04)'
                               record-SELKZ_04_005.
perform bdc_field       using 'RV130-SELKZ(05)'
                               record-SELKZ_05_006.

So here pass the X value in one of this where ever you want depeneding on your reuirement.

With above code you can select any one of given five, to select one of from given six we have to add one more field, thats why while recording only you have to record the combination which is having more records.

With in the loop you can implement the logic with if condition to pass the X value to reuired one.

Thanks,

Naveen.I