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: 

ALV Interactive -Problem while calling transaction

Former Member
0 Kudos

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

5 REPLIES 5

Former Member
0 Kudos

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........

joginder_singh
Active Participant
0 Kudos

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.

Former Member
0 Kudos

Hi..

Instead of AUN try AGN... ......

Cheers

Former Member
0 Kudos

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

Former Member
0 Kudos

Thank you very much for your valuable reply.