Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3165

Re: Call transaction with selection parameters fill with value

$
0
0

Why don't you try

 

submit ZPRAC1 with P_EBAN eq CONTENTS

via SELECTION-SCREEN and RETURN.

 

Explanation: Here After pressing the First program you need to call the Second program name

here  zprac1  is the second program name  and P_EBAN Is the parameter of the Second program

Via selection screen.

 

Create second program with the below one.

PARAMETER: P_EBAN TYPE EBAN-BANFN.


Only parameter don't do any thing.


In the first Program you need to use the below logic.

Copy past the code in Second program.


DATA: contents(250) TYPE c.

DATA: itab TYPE TABLE OF eban WITH HEADER LINE.

*-----------------------------------------------------*

* start of selection

*-----------------------------------------------------*

START-OF-SELECTION.

   SELECT * FROM eban

     INTO CORRESPONDING FIELDS OF TABLE itab

     UP TO 10 ROWS .

*----display the data output

   WRITE:/1(40) sy-uline .

   WRITE:/1 sy-vline,

         2 'Program Name',

         40 sy-vline .

   WRITE:/1(40) sy-uline .

   LOOP AT itab.

     WRITE:/1 sy-vline,

           2 itab-banfn,

           40 sy-vline .

   ENDLOOP.

   WRITE:/1(40) sy-uline .

*----- this is for the double click

AT LINE-SELECTION.

   contents = sy-lisel.

*--- get this parameter ids from the table TPARA

   CONCATENATE sy-lisel+1(10) ' ' INTO contents.

   CONDENSE contents .

*  SET PARAMETER ID 'BAN' FIELD contents.

*  CALL TRANSACTION 'ME53N'.

 

     BREAK-POINT.

   submit ZPRAC1 with P_EBAN eq CONTENTS

   via SELECTION-SCREEN and RETURN.



  Hop You understood.






Viewing all articles
Browse latest Browse all 3165

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>