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

report

hello to all,

in report i am getting the purchase order if i double click on the purchase order no problem with PO...here the problem is if i changed the TRANSACTION CODE ME23N to VA03 (and also i changed relevent coding) i am getting only one sales order repeatedly even i double click in another sales order....

i wanted to get the result like PO for SO...what i have to change...

ORM user_command USING r_ucomm LIKE sy-ucomm

rs_selfield TYPE slis_selfield.

  • Check function code

CASE r_ucomm.

WHEN '&IC1'.

  • Check field clicked on within ALVgrid report

IF rs_selfield-fieldname = 'VBELN'.

  • Read data table, using index of row user clicked on

READ TABLE it_VBAK INTO wa_VBAK INDEX rs_selfield-tabindex.

  • Set parameter ID for transaction screen field

SET PARAMETER ID 'VAR' FIELD wa_VBAK-vbeln.

  • Sxecute transaction ME23N, and skip initial data entry screen

CALL TRANSACTION 'VA02' AND SKIP FIRST SCREEN.

ENDIF.

ENDCASE.

ENDFORM.

raju....

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Sep 28, 2005 at 08:34 AM

    hi,

    try with this

    instead of

    READ TABLE it_VBAK INTO wa_VBAK INDEX rs_selfield-tabindex

    modify as like

    READ TABLE it_VBAK INTO wa_VBAK with key vbeln = rs_selfield-value.

    cheers,

    sasi

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi

      ID parameter for field VBELN is VA01/02/03 is AUN not VAR:

      • Set parameter ID for transaction screen field

      *-----> SET PARAMETER ID 'VAR' FIELD wa_VBAK-vbeln.

      SET PARAMETER ID 'AUN' FIELD wa_VBAK-vbeln.

      • Sxecute transaction ME23N, and skip initial data entry screen

      CALL TRANSACTION 'VA02' AND SKIP FIRST SCREEN.

      Max

      Message was edited by: max bianchi

  • author's profile photo Former Member
    Former Member
    Posted on Sep 28, 2005 at 08:27 AM

    keep break-point near

    READ TABLE it_VBAK INTO wa_VBAK INDEX rs_selfield-tabindex.

    • Set parameter ID for transaction screen field

    SET PARAMETER ID 'VAR' FIELD wa_VBAK-vbeln.

    and check whether wa_VBAK-vbeln is set correctly.

    hope u have to use paramater id AUN for sales order no inva02..

    regards

    gv

    Message was edited by: Venkat

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 28, 2005 at 08:28 AM

    hi,

    check in debugging mode and find out the value for wa_VBAK

    cheers,

    sasi

    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.