Application Development and Automation 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: 
Read only

MEK1 - BDC , ABAP error

Former Member
0 Likes
1,049

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
Read only

Former Member
0 Likes
941

Would you post your code please?

Rob

4 REPLIES 4
Read only

Former Member
0 Likes
942

Would you post your code please?

Rob

Read only

0 Likes
941

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

Thanks

Read only

Former Member
0 Likes
941

clear the bdcdata internal table after call transaction.

Read only

varma_narayana
Active Contributor
0 Likes
941

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>