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: 

VL02 BDC not getting past first screen

Former Member
0 Kudos

Hi,

I'm executing the following BDC script, but it is not getting past the initial VL02 screen. 

I've done BDCs before, but this one has me stumped.  Can anyone see what the problem might be?

Thanks for your help,

Andy

  PERFORM bdc_dynpro      USING 'SAPMV50A' '0101'.

  PERFORM bdc_field       USING 'BDC_CURSOR'

                                'LIKP-VBELN'.

  PERFORM bdc_field       USING 'BDC_OKCODE'

                                '/00'.

  PERFORM bdc_field       USING 'LIKP-VBELN'

                                v_vbeln.

  PERFORM bdc_dynpro      USING 'SAPMV50A' '0200'.

  PERFORM bdc_field       USING 'BDC_CURSOR'

                                'LIPS-MATNR(02)'.

  PERFORM bdc_field       USING 'BDC_OKCODE'

                                '=KALL'.

  PERFORM bdc_field       USING 'LIKP-BLDAT'

                                w_likp-bldat.

  PERFORM bdc_field       USING 'LIKP-WADAT'

                                w_likp-wadat.

  PERFORM bdc_field       USING 'LIKP-BTGEW'

                                wa_8030-pal_weight.

  PERFORM bdc_field       USING 'LIKP-GEWEI'

                                w_likp-gewei.

  PERFORM bdc_field       USING 'LIKP-ANZPK'

                                wa_8030-num_pkgs.

  PERFORM bdc_dynpro      USING 'SAPMV50A' '0300'.

  PERFORM bdc_field       USING 'BDC_CURSOR'

                                'LIKP-LIFEX'.

  PERFORM bdc_field       USING 'BDC_OKCODE'

                                '=SICH'.

  PERFORM bdc_field       USING 'LIKP-KODAT'

                                w_likp-kodat.

  PERFORM bdc_field       USING 'LIKP-KOUHR'

                                w_likp-kouhr.

  PERFORM bdc_field       USING 'LIKP-TDDAT'

                                w_likp-tddat.

  PERFORM bdc_field       USING 'LIKP-TDUHR'

                                w_likp-tduhr.

  PERFORM bdc_field       USING 'LIKP-VSBED'

                                w_likp-vsbed.

  PERFORM bdc_field       USING 'LIKP-LDDAT'

                                w_likp-lddat.

  PERFORM bdc_field       USING 'LIKP-LDUHR'

                                w_likp-lduhr.

  PERFORM bdc_field       USING 'LIKP-WADAT'

                                w_likp-wadat.

  PERFORM bdc_field       USING 'LIKP-WAUHR'

                                w_likp-wauhr.

  PERFORM bdc_field       USING 'LIKP-LFDAT'

                                w_likp-lfdat.

  PERFORM bdc_field       USING 'LIKP-LFUHR'

                                w_likp-lfuhr.

  PERFORM bdc_field       USING 'LIKP-BTGEW'

                                wa_8030-pal_weight.

  PERFORM bdc_field       USING 'LIKP-GEWEI'

                                w_likp-gewei.

  PERFORM bdc_field       USING 'LIKP-ANZPK'

                                wa_8030-num_pkgs.

  PERFORM bdc_field       USING 'LIKP-NTGEW'

                                wa_8030-ntgew.

  PERFORM bdc_field       USING 'LIKP-VOLUM'

                                wa_8030-volume.

  PERFORM bdc_field       USING 'LIKP-VOLEH'

                                w_likp-voleh.

  PERFORM bdc_transaction USING 'VL02'.

6 REPLIES 6

venkat_aileni
Contributor
0 Kudos

Hi-

What error are you getting? Have you processed you recording in display - A(All) mode in call transaction.

-Venkat

Former Member
0 Kudos

Andrew,

VL02 is outdated now, try calling VL02N in your BDC. The rest of the BDC code should still work.

-Amit.

Former Member
0 Kudos

Hi,

Any specific reason you want to use VL02 and not VL02N. the reason you are not able to proceed past first screen is because it issues a message that its outdated transaction and you need to explicitly press enter again to actually use VL02. but you can use VL02N to do the same actions you do with VL02.

0 Kudos

Everyone...thank you for your replies.

Yes....I have run it in "A" mode...it gets to the first screen and stalls there...it does not continue on to the next screen.

I am using VL02 because I tried VL02N and was also getting stuck on the first screen...the script would not pass beyond that.

After researching it I found this saying that BDC would not work with VL02N.

=======================

VL02N is an Enjoy transaction..... uses those funky tab-controls. Because of this, BDC will NOT work with it.

There should be a bunch of BAPI's that could cater for your requirements. Please check in transaction BAPI to find them.

=====================

So is the consensus that BDC will not work with either Tcode?

Thoughts?

Thanks,

Andy

0 Kudos

I originally used VL02N and was stalling on the first screen.  When I researched, I found people saying that VL02N would not work and that I had to use VL02.

Then I ran into the issue with VL02.

I have just decided to use Bapi WS_DELIVERY_UPDATE and that seems to be working for me.

Thank you everyone for your help and input.

Andy

Former Member
0 Kudos

Hi

I checked with VL02N and there was no problem.why did not use VL02N ?

Reza Rostami