2008 Dec 22 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
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........
2008 Dec 22 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........
2008 Dec 22 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.
2008 Dec 22 10:22 AM
2008 Dec 22 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
2008 Dec 22 10:45 AM
| User | Count |
|---|---|
| 6 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |