Application Development and Automation 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: 
Read only

transaction

Former Member
0 Likes
476

hi,

i have to call one transaction from a report program.

and i have to pass values for tha transacton from the calling report.

transaction code is /BEV4/PLEA

i have to pass file name and path here.

how to do it.

can any one help me.

3 REPLIES 3
Read only

RaymondGiuseppi
Active Contributor
0 Likes
454

Call the transaction /BEV4/PLEA,

Press F1 (hep) F9 (technical info) for the two requested parameters

Have those a parameyer id

If yes, set the parameters before calling transaction

- SET PARAMETER ID 'XXX' FIELD filename.

- CALL TRANSACTION ' BEV4/PLEA'.

If no, call SHDB to build a short BDC that you will use in CALL TRANSACTION .

- Fill an itab of BDCDATA type

- CALL TRANSACTION ' BEV4/PLEA' using itab.

Regards

Read only

Former Member
0 Likes
454

to call a transaction from report and pass values to it...

i have done it,for billing doc..by clicking on vbeln field it calls transaction va03..

to send a value use set parameter id...and in the select options give memory id..

here is a sample code...which helps you..

case fieldname.

  • when 'vbeln'.

    • IF sy-subrc = 0 AND e_column_id-fieldname EQ 'VBELN'.

  • SET PARAMETER ID 'GR1' FIELD output-vbeln.

  • CALL TRANSACTION 'script' .

    • ENDIF.

*endcase.

select-options s_vbeln for vbrk-vbeln no intervals memory id gr1.

if any doubt revert back,

pls reward if helpful,

regards.

Read only

Former Member
0 Likes
454

Hi Radha,

From se93 - get program name associated with your Transaction.

If it is executable program, you may be able to use SUBMIT progname USING SELECTION SET / WITH options and pass parameters to your called transaction.

Regards,

Mohaiyuddin