Skip to Content
avatar image
Former Member

BDC Recording: Issue on Tab key

Hi,

I m recording a BDC for t.code vl10b aftr generating the delivery number i have to double click the delivery number and it will redirect to vl02n transaction. {while recording (in vl10b t.code) i hav to press 9 times tab button and it will goto delivery number field, here wen i enter it will goto vl02n transaction or else i hav to double click the field delivery number.}

Issue:

During my recording in vl10b either double click nor tab is not recording. Please give me some solution for this issue.

Thanks and regards,

Karthik

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

4 Answers

  • Best Answer
    avatar image
    Former Member
    Sep 21, 2010 at 04:29 AM

    yup. using BDC_CURSOR you can record tab key. it can be used like

    "perform bdc_field using 'BDC_CURSOR'

    'RF02K-KTOKK'."

    Thus if you know the screen no and field value, directly pass it to the BDC_CURSOR value and resolve it. Try this.

    Regards

    Vinodh A

    < removed by moderator >

    Please do no ask for points. This is not the first time you have been warned.

    Edited by: Neil Gardiner on Sep 21, 2010 2:51 PM

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 21, 2010 at 11:32 AM

    Hi Karthik,

    After the call transaction for VL10B is successful,

    CALL TRANSACTION 'VL10B' MESSAGES INTO t_bdcmsgcoll.

    You can read the message table and navigate to the VL02 with the delivery number generated.

    The output you get from VL10B is an ALV.

    Hope it helps.

    Sujay

    Edited by: Sujay Venkateswaran Krishnakumar on Sep 21, 2010 5:03 PM

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi,

      In the bdcmsgcoll internal table get the success message from which you can get the delivery number. Pass the same to the transaction VL02N using set parameter id for the delivery number.

      SET PARAMETER ID 'VL' value 'Value from the bdcmsgcoll'.

      call transaction vl02n.

      Hope it helps.

      Sujay

  • avatar image
    Former Member
    Sep 20, 2010 at 11:57 AM

    SAP provides BDC_CURSOR to allow you to position to a specific field. However, I've never had to use it, since I merely point to the field name and supply the value I want in it, so long as within the screen. To navigate to VL02N (not desirable if VL02 will be processed by BDC, don't used the Enjoy version (N), use the old BDC-friendlly version) do a call transaction and skip first screen after setting your PIDs to the desired values.

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 21, 2010 at 09:11 AM

    Instead of trying to jump to VL02N from your bdc transaction you can do it right after the bdc tranasction has finished. So after your code which calls bdc:

    call transaction 'VL10B' using ...
    

    you can jump to the recently created delivery with this piece of code:

    call transaction 'VL02N' and skip first screen.
    

    If your call to VL10B creates more than one delivery document and you want to run VL02N for the document with a specific number you can use:

    set parameter id 'VL' field <delivery-number-here>.
    call transaction 'VL02N' and skip first screen.
    

    regards

    Add comment
    10|10000 characters needed characters exceeded

    • My idea was to forget about calling VL02N by clicking in BDC - and achive the same functionality that you want but with other way - which makes no difference to the user but makes a difference to you because allows you to get rid of problems on how to encode some clicking in bdc.

      Is there a reason why you need calling VL02N from BDC ? Do you mean to continue processing the document in BDC but in VL02N - not just to display the screen of VL02N to the user ?

      regards