Skip to Content
avatar image
Former Member

Calling a transaction from output.

hi everybody,

my problem is .

i done a report and i am geting output also.

(kunnr,vbeln,vgbel)

Wen i am double clicking on Delevery no(vbeln)... it has to call the trasaction VL02n, and the cursor has to move Bill of lading(BOLNR) field of that transaction.

i done a littile code at AT USER-COMMAND event.

code is as follows.

SET PARAMETER ID 'VL' FIELD it_output-vbeln.

CALL TRANSACTION 'VL02N' AND SKIP FIRST SCREEN.

but the cursor is not going to the Bill of lading field.

Can any body help this.

thanx in advance.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Aug 02, 2004 at 07:39 AM

    Hello Reddy,

    You can have a look at the command SET CURSOR.

    Regards,

    Sükrü

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 04, 2004 at 07:28 AM

    Hi Karunakar,

    Use this piece of code, it will work.. I checked it and it is fine.

    perform bdc_dynpro using 'SAPMV50A' '4004'.

    perform bdc_field using 'BDC_CURSOR'

    'LIKP-VBELN'.

    perform bdc_field using 'BDC_OKCODE'

    '/00'.

    perform bdc_field using 'LIKP-VBELN'

    '710000420'.

    perform bdc_dynpro using 'SAPMV50A' '1000'.

    perform bdc_field using 'BDC_OKCODE'

    '=HDET_T'.

    perform bdc_dynpro using 'SAPMV50A' '2000'.

    perform bdc_field using 'BDC_CURSOR'

    'LIKP-BOLNR'.

    call transaction 'VL02N' using bdcdata

    mode 'E'.

    Regards,

    Mayank Patel

    Add comment
    10|10000 characters needed characters exceeded