Skip to Content
author's profile photo Former Member
Former Member

ALV Interactive -Problem while calling transaction

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 22, 2008 at 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........

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 22, 2008 at 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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 22, 2008 at 10:22 AM

    Hi..

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

    Cheers

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 22, 2008 at 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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 22, 2008 at 10:45 AM

    Thank you very much for your valuable reply.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.