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: 

Call transaction

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

4 REPLIES 4

Former Member
0 Kudos

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

former_member598013
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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.