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 standard transaction

Former Member
0 Likes
673

hello all,

I have to call a standard transaction from Z* program. I want to use the output of the standard transaction into my program how can do this?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
596

You can use FM "RSPO_RETURN_ABAP_SPOOLJOB".

6 REPLIES 6
Read only

Former Member
0 Likes
596

hi,

FORM call_tcode USING r_ucomm ls_selfield LIKE ls_selfield.

CASE r_ucomm.

WHEN '&IC1'.

IF ls_selfield-fieldname = 'VBELN'.

SET PARAMETER ID 'VF' FIELD ls_selfield-value.

CALL TRANSACTION 'VF03' AND SKIP FIRST SCREEN.

ENDIF.

IF ls_selfield-fieldname = 'AUBEL'.

SET PARAMETER ID 'BES' FIELD ls_selfield-value.

CALL TRANSACTION 'ME23N' AND SKIP FIRST SCREEN.

ENDIF.

ENDCASE.

ENDFORM.

regards,

Paras

Read only

0 Likes
596

I dont think this will work. If i run the standard transaction it is giving me alv grid output. I want to use some of the entries from this table into my z program. how can i do that?

Read only

Former Member
Read only

Former Member
0 Likes
596

Hi,

Use JOB_OPEN, call transaction or SUBMIT ..to SAP-SPOOL & JOB_CLOSE.

This will create a spool with the desired output of Standard transaction.

Retrieve the spool into an internal table using a FM.

Best regards,

Prashant

Read only

0 Likes
596

you mean to say,

Job_open.

call trasaction

job_close.

this much i have to use or do i have to create a whole BDC for that. One more thing can you give me the program get the table from the spool.

Read only

Former Member
0 Likes
597

You can use FM "RSPO_RETURN_ABAP_SPOOLJOB".