Skip to Content
author's profile photo Former Member
Former Member

Call Transaction from Program by Skipping Initial Screen & Pass the Value

Hi All,

Can anybody help me to call a transaction from my program. I do not want to display the initial screen of the transaction but that TCODE should get opened by passing the values to the parameter of the initial screen.

For Example, in my program I want to call 'SE38' and in that, my Program of Name 'ZTEST' should get opened. So I need to call Transaction SE38, but I donot want to display initial screen of that. Instead of that, I want to put the value of Program 'ZTEST' and thus my program should get opened.

Sandip

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Posted on Feb 03, 2005 at 12:45 PM

    Hi Sandip,

    just create an recording where you enter your values in first screen(s). Abort recording with cancel (or whatever) and remove last ok-code filling out of your program.

    Then you can call transaction with mode 'E' - stop on error, which is missing ok-code.

    Regards,

    Christian

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 03, 2005 at 01:28 PM

    Hi,

    yes - the fastest way to get correct call transaction parameters. Convert recording into $tmp-program (or function module) and use the parts you need.

    Of course you can fill fields 'manually', too 😊

    Christian

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 03, 2005 at 01:54 PM

    Hello Sandip,

    Since you have not made any references to Batch Processing, I shall tell you the normal way to do it. First look at the code below and execute it.

    set parameter id 'DTB' field 'VBAK'.
    
    call transaction 'SE16' and skip first screen.

    There are a few things that you need to keep in mind before you use this statement:

    1. All mandatory input fields of the initial dynpro must be filled completely and with the correct values by the SPA/GPA parameters.

    2. For the initial dynpro, in the Screen Painter the own dynpro number must not be specified as the next screen number. However, if the next screen can be reached from the first screen by just hitting the Enter key, this will work.

    The following will not work as you expect, because the next screen in the transaction cannot be reached by just hitting the Enter Key.

    set parameter id 'RID' field 'ZTEST'.
    
    call transaction 'SE38' and skip first screen.

    Regards,

    Anand Mandalika.

    Please reward points if this helps.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 03, 2005 at 02:32 PM

    You can also invoke the editor directly using:

        CALL FUNCTION 'RS_TOOL_ACCESS'
             EXPORTING
                  operation           = 'EDIT'
                  object_name         = 'ZTEST'
                  object_type         = 'PROG'
             EXCEPTIONS
                  not_executed        = 1
                  invalid_object_type = 2
                  OTHERS              = 3.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 04, 2005 at 12:57 PM

    Hi All,

    I could solve the problem by using Export to Memory and the calling tcode is also a ztcode so I Import from memory there and solved the problem.

    Sandip

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.