cancel
Showing results for 
Search instead for 
Did you mean: 

BDC Recording: Issue on Tab key

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi vinoth,

Thanks for the reply. By the way how to check the screen no and field value. Also i am clicking the field vbeln in vl10b and by cliclking that itz navigating to vl02n transaction. The delivery number which appears in the vl02n transaction is the delivery number which i clicked in VL10B transaction. Itz automatically placed ther in vl02n.

If u dont mind, would you plz provide bit of sample code for it. It might be helpful to me.

Thanks And Regards,

Karthik

Former Member
0 Kudos

Hello Karthik

To know the screen number, field name, place the cursor on the field, press F1 and then press technical info button.

This will give you the main program name, screen number, subscreen number (if any) and field's name.

Once you get this, you can write the code as follows:

(In order to start a screen)

wlt_bdcdata-program = main program name.

wlt_bdcdata-dynnr = screen number

wlt_bdcdata-dynbegin = 'X'.

append wlt_bdcdata to lt_bdcdata.

(to set some values in the field)

wlt_bdcdata-fname = field name

wlt_bdcdata-fval = field value.

append wlt_bdcdata to lt_bdcdata.

Hope this helps,

Regards,

Himanshu

Former Member
0 Kudos

Hi himanshu,

Thanks for the reply.

Thanks and Regards,

Karthik

Edited by: karthikani on Sep 21, 2010 10:46 AM

Answers (3)

Answers (3)

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi sujay,

Thanks for your reply.

If u dont mind, Would u plz provide bit of code. It will be much much helpful to me.

Thanks & Regards,

Karthik

Former Member
0 Kudos

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

maciej_domagaa
Contributor
0 Kudos

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

Former Member
0 Kudos

Dear Maciej Domagała ,

Still same problem. My issue was, In the vl10b screen after the delivry number generation i want to click the particular field of a line ( i.e: delivery number) then it will navigate to vl02n screen. while testing it was fine upto delivery number generation and the place wer i m stucking was during double clicking of the delivery number. During testing i double click manually and it will navigating to vl02n and evrything was fine.

I tried with manual debug in VL10b for this double click and for this the okcode is differing everytime. And the okcode = %_GC 166_2 , %_GC 167_2 , %_GC 147_2, %_GC 334_2 . everytime its differing.

Kindly help me to resolve this issue....

Thanks,

Karthik

maciej_domagaa
Contributor
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

Hi Breakpoint,

Thanks for the reply. Herewith i attached my code. Kindly check it and give some solution for it.



  perform bdc_dynpro      using 'RVV50R10C' '1000'.
perform bdc_field       using 'BDC_CURSOR'
                              'ST_VSTEL-LOW'.
perform bdc_field       using 'BDC_OKCODE'
                              '=S0S_TAB5'.
perform bdc_field       using 'ST_LEDAT-LOW'
                              '13.09.2010'.
perform bdc_field       using 'ST_LEDAT-HIGH'
                              '14.09.2010'.
perform bdc_field       using 'P_LERUL'
                              '2'.
perform bdc_dynpro      using 'RVV50R10C' '1000'.
perform bdc_field       using 'BDC_OKCODE'
                              '=ONLI'.
perform bdc_field       using 'ST_LEDAT-LOW'
                              '13.09.2010'.
perform bdc_field       using 'ST_LEDAT-HIGH'
                              '14.09.2010'.
perform bdc_field       using 'P_LERUL'
                              '2'.
perform bdc_field       using 'BDC_CURSOR'
                              'ST_EBELN-LOW'.
perform bdc_field       using 'ST_EBELN-LOW'
                              record-vbeln_001.
perform bdc_dynpro      using 'SAPLSLVC_FULLSCREEN' '0500'.
perform bdc_field       using 'BDC_OKCODE'
                              '=&ALL'.
perform bdc_dynpro      using 'SAPLSLVC_FULLSCREEN' '0500'.
perform bdc_field       using 'BDC_OKCODE'
                              '=SAMD'.
perform bdc_dynpro      using 'SAPLSLVC_FULLSCREEN' '0500'.
perform bdc_field       using 'BDC_OKCODE'
                              '=&ALL'.
perform bdc_dynpro      using 'SAPLSLVC_FULLSCREEN' '0500'.
perform bdc_field       using 'BDC_OKCODE'
                              '=ANZ1'.
perform bdc_dynpro      using 'SAPLSLVC_FULLSCREEN' '0500'.

perform bdc_field       using 'BDC_OKCODE'
                              '=%_GC 160 2'.
perform bdc_dynpro      using 'SAPMV50A' '1000'.
perform bdc_field       using 'BDC_OKCODE'
                              '=ANZA_T'.


"HEREONLY I M CLICKING THE FIELD (VBELN) AND IT WILL NAVIGATE TO VL02N TRANSACTION. PLZ GIVE SOME SOLUTION FOR IT.


perform bdc_field       using 'BDC_CURSOR'
                              'LIKP-VBELN'.
perform bdc_dynpro      using 'SAPMV50A' '1000'.
perform bdc_field       using 'BDC_OKCODE'
                              '=PSER_T'.
perform bdc_field       using 'LIKP-BLDAT'
                              '13.09.2010'.
perform bdc_field       using 'BDC_CURSOR'
                              'LIPSD-PIKMG(01)'.
perform bdc_field       using 'LIKP-KODAT'
                              '13.09.2010'.
perform bdc_field       using 'LIKP-KOUHR'
                              '00:00:00'.
perform bdc_field       using 'LIPS-LGORT(01)'
                              record-lgort_002.
perform bdc_field       using 'LIPSD-PIKMG(01)'
                              record-pikmg_003.
perform bdc_dynpro      using 'SAPLIPW1' '0200'.
perform bdc_field       using 'BDC_CURSOR'
                              'RIPW0-SERNR(02)'.
perform bdc_field       using 'BDC_OKCODE'
                              '=RWS'.
perform bdc_field       using 'RIPW0-SERNR(01)'
                              record-sernr_001.
perform bdc_field       using 'RIPW0-SERNR(02)'
                              record-sernr_002.
perform bdc_dynpro      using 'SAPMV50A' '1000'.
perform bdc_field       using 'BDC_OKCODE'
                              '=HADM_T'.
perform bdc_field       using 'LIKP-BLDAT'
                              '13.09.2010'.
perform bdc_field       using 'BDC_CURSOR'
                              'LIPSD-PIKMG(01)'.
perform bdc_dynpro      using 'SAPMV50A' '2000'.
perform bdc_field       using 'BDC_OKCODE'
                              '=SICH_T'.
perform bdc_field       using 'BDC_CURSOR'
                              'LIKP-LIFSK'.
perform bdc_field       using 'LIKP-LIFSK'
                              '01'.
perform bdc_dynpro      using 'ZVR113_LORRY_DETAILS' '0100'.
perform bdc_field       using 'BDC_OKCODE'
                              '=TRANSFER'.
perform bdc_dynpro      using 'SAPLSLVC_FULLSCREEN' '0500'.
perform bdc_field       using 'BDC_OKCODE'
                              '=&F03'.
perform bdc_dynpro      using 'RVV50R10C' '1000'.
perform bdc_field       using 'BDC_OKCODE'
                              '/EE'.
perform bdc_field       using 'BDC_CURSOR'
                              'ST_VSTEL-LOW'.

perform bdc_transaction using 'VL10B'.

ENDLOOP.


Thanks and Regards,

Karthik

Edited by: karthikani on Sep 21, 2010 10:45 AM

Former Member
0 Kudos

Hi guys,

Waiting for your valuable reply...

Thanks.

Karthik