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

Call transaction

When the user click on a PO number on a report output, the t/code ME22N should be invoked. I know the stmt is CALL TRANSACTION. But i want dat ME22N should be invoked with the corresponding PO data on which the user has doubled on the report ouput. How to do so?

Edited by: Mathew Parera on Aug 11, 2008 2:56 AM

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Aug 11, 2008 at 02:09 AM

    Try something like:

    REPORT ztest LINE-SIZE 80 MESSAGE-ID 00.
    
    DATA: po TYPE ebeln VALUE '4500000666'.
    
    START-OF-SELECTION.
      WRITE po.
      HIDE po.
    
    AT LINE-SELECTION.
      SET PARAMETER ID 'BES' FIELD po.
      CALL TRANSACTION 'ME22N' AND SKIP FIRST SCREEN.

    Rob

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 11, 2008 at 05:02 AM

    Hi

    Try this...

    Data : M1 TYPE STRING,

    M2 TYPE EKPO-EBELN.

    AT LINE-SELECTION.

    GET CURSOR FIELD M1 VALUE M2.

    IF M2 IS NOT INITIAL.

    SET PARAMETER ID 'BES' FIELD M2.

    CALL TRANSACTION 'ME23N'.

    ELSE.

    MESSAGE E000(0) WITH 'no purchase order for the given material..'.

    ENDIF.

    CLEAR M2.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 11, 2008 at 02:51 AM

    Hi Mathew,

    First set the Parameter ID for the Purchase Order Through the Statement SET PARAMETER ID '<PID>'.

    Then call the TRansaction through the statement CALL TRANSACTION <TCODE> AND SKIP FIRST SCREEN .

    Thanks,

    Chidanand

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 11, 2008 at 03:51 AM

    Hi Mathew,

    First you need to set the parmeter-id for the PO number in ME22N and use call transaction with skip first screen.

    AT LINE-SELECTION.
    
      SET PARAMETER ID 'BES' FIELD w_po.
      CALL TRANSACTION 'ME22N' AND SKIP FIRST SCREEN.

    Regards,

    Chandra Sekhar

    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.