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

Call transaction using bdc table and return

Clemenss
Active Contributor
0 Likes
1,200

Hi,

I'm facing this task: From an ALV list I want to call SE71 forms designer for a selected row.

As SE71 does not have any memory fields which I can set before I can not use 'AND SKIP FIRST SCREEN'.

So I fill the values for language, client, form name in a bdc table and use CALL TRANSACTION 'SE71' USING lt_bdcdata.

Works fine, but when I leave the transaction I get back to the selection screen. So how to go directly back to my list?

Will I have to use CALL DIALOG and how to (never did!)?

Regards and TIA

Clemens

Hi,

I'm facing this task: From an ALV list I want to call SE71 forms designer for a selected row.

As SE71 does not have any memory fields which I can set before I can not use 'AND SKIP FIRST SCREEN'.

So I fill the values for language, client, form name in a bdc table and use CALL TRANSACTION 'SE71' USING lt_bdcdata.

Works fine, but when I leave the transaction I get back to the selection screen. So how to go directly back to my list?

Will I have to use CALL DIALOG and how to (never did!)?

Regards and TIA

Clemens

9 REPLIES 9
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
958

You mean it goes to the initial screen of SE71, right?

Regards,

Rich Heilman

Read only

0 Likes
958

The dialog module EDIT_FORM is called by function module EDIT_FORM. Please try using the function module EDIT_FORM, this will surely solved the problem.



    call function 'EDIT_FORM'
      exporting
        form                    = <name_of_form>
*   LANGUAGE                = SY-LANGU
        DISPLAY                 = ' '
*   COMPONENT               = 'HEADER'
     exceptions
       unknown_activity        = 1
       unknown_component       = 2
       others                  = 3
              .



Regards,

Rich Heilman

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
958

Also, if you look inside the function module, you can go to any section of the sapscript form. Just use the appropriate component in your call, the default is HEADER.

Code from the EDIT_FORM function module

 
  IF COMPONENT <> 'HEADER'       AND
     COMPONENT <> 'PARAGRAPH'    AND
     COMPONENT <> 'STRING'       AND
     COMPONENT <> 'PAGE'         AND
     COMPONENT <> 'WINDOW'       AND
     COMPONENT <> 'PAGE_WINDOW'  AND
     COMPONENT <> 'LAYOUT'       AND
     COMPONENT <> 'DOCUMENTATION'.

Regards,

Rich Heilman

Read only

0 Likes
958

Clemens, did this work for ya?

Regards,

Rich Heilman

Read only

0 Likes
958

No.

EDIT_FORM only works if you pass a table with lines. I knew that function before. I want to call transaction SE71 bypassing selection screen and return.

OK, it is not possible.

Regards,

Clemens

Message was edited by: Clemens Li

Read only

0 Likes
958

how about passing parameter id

set paramete id and then call transaction and skip first screen ....

what do u say?

regards

Gunjan

Read only

0 Likes
958

did you read my question? If so, do it again.

If you still do not understand why your help is worthless, ask me why.

Regards,

Clemens

Read only

Clemenss
Active Contributor
0 Likes
958

thats the way it is.

Read only

0 Likes
958

Hi Clemens,

I have the same requirement, and I am very pessimistic about it...

Were you able to solve the problem with returning to your list / transaction, skipping the selection screen?

Thanks and cheers,

Boldi