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: 

MEK1 - BDC , ABAP error

Former Member
0 Kudos

I want to clear the default values displayed on the screen. When i call MEK1 for the very first record on BDC run, it runs properly and when the run reaches the second record , then the values of the first record are defaulted in the system.

For eg , the field condition type (char 4) in the very first screen, is filled up with the old records value , say ZXXX and now the second record has to put the value ZYYY. Now im not able to place ZYYY , i.e im not able to send any values to this field from second record onwards and only ZXXX is maintained throughout the run. I know that the solution would be simple and straight forward but not able to guess. Appreciate ur advice.

Thanks,

RB

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Would you post your code please?

Rob

4 REPLIES 4

Former Member
0 Kudos

Would you post your code please?

Rob

0 Kudos

check BDC_data internal Tables whether u have cleared . Please send the code.

Thanks

Former Member
0 Kudos

clear the bdcdata internal table after call transaction.

varma_narayana
Active Contributor
0 Kudos

Hi Bharat..

After the Call transaction Statement REFRESH the BDCDATA table to avoid this:

LOOP AT ITAB.

PERFORM MAP_DATA.

CALL TRANSACTION 'MEK1'

USING IT_BDCDATA

MODE 'N'

MESSAGES INTO IT_MSG.

REFRESH IT_BDCDATA.

ENDLOOP.

<b>reward if Helpful.</b>