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 VA42 BDC

Former Member
0 Likes
735

Hello Friends,

Right now I am using BDC to update serial number details through VA42 transaction in zprogram.Now I am trying to use the same functionaties in zfunction module.

But while using this functionality is zprogram I can able to skip the incompletion log screen window.But the same code is not working in zfunction module.

  • By pass the document incomplete pop up

PERFORM bdc_dynpro USING 'SAPLSPO2' '0101'.

PERFORM bdc_field USING 'BDC_OKCODE' '=OPT1'.

PERFORM bdc_dynpro USING 'SAPLSPO1' '0100'.

PERFORM bdc_field USING 'BDC_OKCODE' '=YES'.

Please let me know, is there any other option to take care of this issue or I have to include any more statement in this part.

Thanks

Gowrishankar

Hello Friends,

Right now I am using BDC to update serial number details through VA42 transaction in zprogram.Now I am trying to use the same functionaties in zfunction module.

But while using this functionality is zprogram I can able to skip the incompletion log screen window.But the same code is not working in zfunction module.

  • By pass the document incomplete pop up

PERFORM bdc_dynpro USING 'SAPLSPO2' '0101'.

PERFORM bdc_field USING 'BDC_OKCODE' '=OPT1'.

PERFORM bdc_dynpro USING 'SAPLSPO1' '0100'.

PERFORM bdc_field USING 'BDC_OKCODE' '=YES'.

Please let me know, is there any other option to take care of this issue or I have to include any more statement in this part.

Thanks

Gowrishankar

4 REPLIES 4
Read only

Harsh_Bansal
Contributor
0 Likes
686

Hi,

Try re-recording and then create Function-Module instead of Program.

Regards,

Harsh Bansal

Read only

Former Member
0 Likes
686

Compare both BDC internal tables, run both, program and function in display mode 'A' to try to get the difference between then.

Regards,

Felipe

Read only

0 Likes
686

Hello Friends

I re-recorded the same and compare both the values, its looking same.

Totally its confusing

Thanks

Gowrishankar

Read only

0 Likes
686

But did you try to run the call transaction in mode 'A' (visible) executing the function module? did you get an error or message, which one?

Felipe.