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: 

double click problem in module pool

Former Member
0 Kudos

Hi Experts,

iam displaying itab_vbak containing quotation number and details of quotation in table control

of module pool programing.and I WRITTEN THE CODE AS FOLLOWS

case sy-ucomm.

WHEN 'PICK'.

GET CURSOR FIELD WS_FIELD LINE WS_LINE.

IF WS_FIELD EQ 'ITAB_VBAK-VBELN'.

READ TABLE ITAB_VBAK INDEX WS_LINE.

SET PARAMETER ID 'AUN' FIELD ITAB_VBAK-VBELN.

CALL TRANSACTION 'VA23' AND SKIP FIRST SCREEN.

ENDIF.

endcase.

when i double click the field itab_vbak-vbeln iam getting the transaction VA23.BUT MY PROBLEM IS

IAM NOT ENTERING INTO THE QUOTATION TO WHICH IAM DOUBLE CLICKING.iam getting MESSAGE

ENTER THE DOCUMENT NUMBER.Please help me in getting the document number in the transaction va23

when i double click the the field ITAB_VBAK-VBELN.URGENT THANKS IN ADVANCE

points will be given for good answers

regards,

Archana.

1 ACCEPTED SOLUTION

former_member188685
Active Contributor
0 Kudos

Debug the Code , Check you have some value in the ITAB_VBAK-VBELN .

WHEN 'PICK'.
GET CURSOR FIELD WS_FIELD LINE WS_LINE.
IF WS_FIELD EQ 'ITAB_VBAK-VBELN'.
READ TABLE ITAB_VBAK INDEX WS_LINE.
SET PARAMETER ID 'AUN' FIELD ITAB_VBAK-VBELN.  "Check you have some value in this field
CALL TRANSACTION 'VA23' AND SKIP FIRST SCREEN.
ENDIF.

8 REPLIES 8

former_member188685
Active Contributor
0 Kudos

Debug the Code , Check you have some value in the ITAB_VBAK-VBELN .

WHEN 'PICK'.
GET CURSOR FIELD WS_FIELD LINE WS_LINE.
IF WS_FIELD EQ 'ITAB_VBAK-VBELN'.
READ TABLE ITAB_VBAK INDEX WS_LINE.
SET PARAMETER ID 'AUN' FIELD ITAB_VBAK-VBELN.  "Check you have some value in this field
CALL TRANSACTION 'VA23' AND SKIP FIRST SCREEN.
ENDIF.

0 Kudos

Hi Vijay,

i kept the debugger as u said and iam getting the value in the itab_vbak-vbeln as '002000123' quotation number

when the transaction 'VA23' is apppeared it is not opening with this quotation number .A warning messsage is appearing saying

'ENTER THE DOCUMENT NUMBER'.

thank u

Regards,

Archana.

0 Kudos

For Time being to test the application

use this code and see..

SET PARAMETER ID 'AUN' FIELD  '002000123' .
CALL TRANSACTION 'VA23' AND SKIP FIRST SCREEN.

Just see .

I am still doubtful on the SET PARAMETER code in your program.

0 Kudos

hi,

i tried the code what u have given still it is giving the same warning 'ENTER THE DOCUMENT NUMBER' .MEANS it is not considering the SET PARAMETER STMT i think .

regards

0 Kudos

Hi,

transaction VA23 is for Quotations..

so in your select query write...

select  vbeln 
         erdat ........
          from vbak into corresponding fields of table <table name>
          *where vbtyp eq 'B'*. (Document type for Quotation)

Then it works.

Regards,

Sathish Reddy.

0 Kudos

Are you sure that document is an order number? Check this info:

The following parameters are available for the individual document types:

AFN - Inquiry number

AGN - Quotation number

AUN - Order number

LPN - Scheduling agreement number

KTN - Contract number

AMN - Assortment number

Regards.

Valter Oliveira.

0 Kudos

write a small program with the below code and check it is working or not...?

SET PARAMETER ID 'AUN' FIELD  '002000123' .
CALL TRANSACTION 'VA23' AND SKIP FIRST SCREEN.

0 Kudos

Thanks to all,

my problem is solved by writing the following code

set parameter id 'AGN' FIELD ITAB_VBAK-VBELN.

CALL TRANSACTION 'VA23' AND SKIP FIRST SCREEN.

regards,