09-12-2008 6:14 AM
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.
09-12-2008 7:13 AM
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.
09-12-2008 7:13 AM
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.
09-12-2008 8:14 AM
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.
09-12-2008 8:20 AM
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.
09-12-2008 10:39 AM
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
09-12-2008 11:12 AM
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.
09-12-2008 11:17 AM
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.
09-12-2008 11:18 AM
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.
09-12-2008 11:40 AM
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,