12-22-2008 9:49 AM
Hi Experts,
FORM user_command USING cmd TYPE sy-ucomm
self TYPE slis_selfield.
CASE cmd.
WHEN '&IC1'.
READ TABLE gt_output INTO gs_output INDEX self-tabindex.
IF self-fieldname = 'VBELN' and gs_output-vbeln is not initial.
SET PARAMETER ID 'AUN' field gs_output-VBELN.
call transaction 'VA23' AND SKIP FIRST SCREEN.
ENDIF.
ENDCASE.
ENDFORM.
But in the above code my parameter id value is not properly fixed. Could anybody suggest me how I can fix my parameter id based on user selection so that I can call the desired transaction.
Regards,
Neha
12-22-2008 10:05 AM
we dont have any parameter id AUN in standard t.code so it is not possible to get the vbeln value to va23
GET PARAMETER ID 'AUN' FIELD VBAK-VBELN.
give find for above syntax in the standard program and see........
12-22-2008 10:16 AM
Use this one
SET PARAMETER ID 'AGN' field gs_output-VBELN.
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
I hope this will resolve your issue.
Cheers,
J.
12-22-2008 10:22 AM
12-22-2008 10:30 AM
hi,
SET PARAMETER ID <pid> FIELD <f>.
This statement saves the contents of field <f> under the ID <pid> in the SAP memory. The code <pid> can be up to 20 characters long. If there was already a value stored under <pid>, this statement overwrites it. If the ID <pid> does not exist, double-click <pid> in the ABAP Editor to create a new parameter object.
in your statement check the id, if it is not available you can create id and store the field value.
for more information, follow this link.....
http://help.sap.com/saphelp_nw04/helpdata/EN/9f/db9e0435c111d1829f0000e829fbfe/content.htm
regards,
Ashok
12-22-2008 10:45 AM