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

calling a transaction ..

Former Member
0 Likes
888

hi all,

there is a requirement to call transaction by posting all default values in the initial screen but that screen should not appear directly second screen should appear. but the constraint is we should not use call transaction for that. can anybody let me know how this situation can be handled?

hi all,

there is a requirement to call transaction by posting all default values in the initial screen but that screen should not appear directly second screen should appear. but the constraint is we should not use call transaction for that. can anybody let me know how this situation can be handled?

6 REPLIES 6
Read only

suresh_datti
Active Contributor
0 Likes
865

Sreedhar,

You can use AND SKIP FIRST SCREEN ..but then you want to call a transaction without using the CALL TRANSACTION statement? PL elaborate..

Read only

Former Member
0 Likes
865

hi,

set parameter id 'AUN' field '2000266593'.

call transaction 'VA02' and skip first screen.

cheers,

Sasi

Read only

Former Member
0 Likes
865

Hi,

with out call transaction you can use submit with seltab option

data : SELTAB TYPE TABLE OF RSPARAMS

SUBMIT 'report name'

WITH SELECTION-TABLE SELTAB

AND RETURN.

Cheers,

Sasi

Read only

Former Member
0 Likes
865

Hi,

In PBO,

CASE sy-ucomm.
WHEN 'MD04'.
      IF w_output-matnr IS INITIAL.
        MESSAGE i001 WITH text-e07.
      ELSE.
        SET PARAMETER ID 'MAT' FIELD w_output-matnr.
        SET PARAMETER ID 'WRK' FIELD w_output-werks.
        CALL TRANSACTION c_transaction_call_md04 AND SKIP FIRST SCREEN .
      ENDIF.
    WHEN OTHERS.
  ENDCASE.
ENDMODULE.                 " USER_COMMAND_9001  INPUT

If u dont want to use CALL TRANSACTION the only other solution is to SUBMIT Report

U can refer this link for the different types of SUBMIT u can use.

http://www.sapdevelopment.co.uk/reporting/rep_submit.htm

As u know SUBMIT rept name so just goto > system > status and check the related program name for the transaction and submit that report.

Specify

submit .....  AND RETURN

.

Kindly reward points for the answers which helped u and close the thread if ur problem got solved.

Read only

0 Likes
865

if its not a executable program (type 1) then you cannot use submit.

if you are really forced to not to use call transaction, tell them you will use function module and use (the function used call transaction - check out the source)

ABAP4_CALL_TRANSACTION

by passing TCODE = '<Transaction code>'

skip_screen = 'X'

SPAGPA_TAB = <your table of type SPAGPA_TAB>

in this table you will pass parameter ids and its values.

Regards

Raja

Read only

0 Likes
865

if your question is answered, reward the helpful answers and close the thread.

Regards

Raja