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

Problem in VK15 BDC

Former Member
0 Likes
1,027

Hi

I am trying to create a function module which create condition record in VK15. BDC recording is working fine but when i develop code in Function module it does not even pass the values to the screen fields. Code is as under , Kindly help

   CLEAR bdcdata_wa.

   bdcdata_wa-program  = 'SAPMP50A'.

   bdcdata_wa-dynpro   = '100'.

   bdcdata_wa-dynbegin = 'X'.

   APPEND bdcdata_wa TO bdcdata_tab.

    CLEAR bdcdata_wa.

   bdcdata_wa-fnam = 'RV13A-KSCHL'.

   bdcdata_wa-fval = 'ABCD'.

   APPEND bdcdata_wa TO bdcdata_tab.

   CLEAR bdcdata_wa.

   bdcdata_wa-fnam = 'RV13A-KOTABNR'.

   bdcdata_wa-fval = '304'.

   APPEND bdcdata_wa TO bdcdata_tab.

CALL TRANSACTION 'VK15' USING bdcdata_tab mode CTUMODE .

Regards

Ammad

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
860

Debug the FM by changing the mode CTUMODE to 'A'.

3 REPLIES 3
Read only

Former Member
0 Likes
861

Debug the FM by changing the mode CTUMODE to 'A'.

Read only

0 Likes
860

yes i did this it displays the screen but does not put values in the fields

Read only

0 Likes
860

Hi,

Please use pgm name as 'SAPMV13A' instead of 'SAPMP50A'.

ie ,

bdcdata_wa-program  = 'SAPMV13A'  instead of

bdcdata_wa-program  = 'SAPMP50A'.

Regards,

Riyas.