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 screen

Former Member
0 Likes
998

Hi all,

I have posted this question before too but didn't get any reply, can you please help me in it as I am kind of stuck badly.....

I am working on a custom program that will generate the list of all the idocs that have got errors in it and then we will fix the error and within the same program it will reprocess the idoc, now when I run this program and when I got the list of all the idocs with error and then I will manually correct the error in one of the idoc, once I am done with this then I will click on the tab which says reprocess idoc, as soon as I click on that tab one window pops up which says Reprocess idocs and basically it is using a function module BAPI_IDOC_INPUT1 and now the problem is, on the screen it also says:

call transaction processing with the following three radio buttons:

1. In background

2. In foreground

3. In foreground after error

and by default it's taking In Background but I want to do tht as In foreground always, I mean the default radio button should set to Inforeground, when I tried to debug the program I figured it out that this particular screen is calling "SAPLSEUT" program but I am not being able to figure out how can i acheive this.

Please help.

Thanks,

Rajeeev

8 REPLIES 8
Read only

Former Member
0 Likes
931

Rajeev:

You can't duplicate posts...If your previous question wasn't answered...Why did you close it?

I'm not going to lock this thread...But take care next time...

Greetings,

Blag.

Read only

0 Likes
931

Ok Alavaro....I will take care of this...actually noone was responding ...so I thought to post it again !!!

anyways thanks !!!!

Read only

Former Member
0 Likes
931

Please see if any parameter ID is attached with that radio button, if yes then you can set that to 'X'.

Read only

0 Likes
931

Hi Yogesh,

Thanks for the reply,,,but this is what exactly my problem is..I am not being able to figure out where exactly do I need to take care of that radio button....

Thanks,

Rajeev

Read only

Former Member
0 Likes
931

Hi guys,

I went a lil bit in deep with the code and I found that something need to be change in this program SAPLSEUT / LSEUTE01,

EVENT / ATUSER-COMMAND

Can you please tell what I am supposed to do .

Thanks,

Rajeev

Read only

0 Likes
931

Hi,

you can call screens in a program in 3 ways

1) Call a selection--screen seperately

Call Selection-Screen 250 Starting from Ending From

2) Call screen

or you would use a FM which gives you a screen.

Look in your custom program which of these there methods was used and then figure our how he has created the radio-buttons..

santhosh

Read only

Former Member
0 Likes
931

Hi Guys,

I think I need to make some changes in the following code, but don't know what exactly, it's a std. SAP program SAPLSEUT / LSEUTU04

if use_control = stree_use_control

and tv is initial.

call function 'RS_TREE_CONTROL_PREPARE'

  • EXPORTING

  • CONTROL_PATTERN = STREE_CTL_GENERIC

  • HIERARCHY_HEADER =

  • LIST_ITEM_HEADER =

  • MULTIPLE_SELECTION = STREE_FALSE

exceptions

not_available = 1

others = 2.

if sy-subrc <> 0.

use_control = stree_use_list.

endif.

endif.

case use_control.

when 'P'.

call screen 700.

when stree_use_list.

if screen_start_line = 0.

call screen 700.

else.

call screen 701

starting at screen_start_column screen_start_line

ending at screen_end_column screen_end_line.

endif.

when stree_use_control.

if screen_start_line = 0.

tv-popup = stree_false.

call screen 702.

else.

tv-popup = stree_true.

call screen 704

starting at screen_start_column screen_start_line

ending at screen_end_column screen_end_line.

endif.

call function 'CONTROL_DESTROY'

changing

h_control = tv-tree

exceptions

others = 1.

call function 'CONTROL_FLUSH'

exceptions

cntl_system_error = 1

cntl_error = 2

others = 3.

clear tv.

when stree_use_in_dynpro.

tv-subscreen = stree_true.

exit.

endcase.

  • pop

read table ld "wk070797

index 1. "wk070797

delete ld "wk070797

index 1. "wk070797

f15 = ld_f15.

clear:

ld_f15,

exit,

current_lsind,

cucol,

curow,

licol,

lirow,

tv.

refresh itree.

export tree

from itree

to memory

id logid.

if push_done = stree_true. "wk061109

call function 'RS_TREE_POP'.

endif. "wk061109

endfunction.

Read only

Former Member
0 Likes
931

I was looking into the code again and I found that it;s hitting the custom program and a screen is being called with the follwoing code:

PROCESS BEFORE OUTPUT.

MODULE STATUS_0520.

MODULE INIT_DYNPRO_520.

*

PROCESS AFTER INPUT.

MODULE CANCEL_DYNPRO AT EXIT-COMMAND.

CHAIN.

FIELD MSED7PROCE-FCTNAME.

FIELD MSED7PROCE-SEL_FORGRD.

FIELD MSED7PROCE-SEL_BCKGRD.

FIELD MSED7PROCE-SEL_ERROR.

FIELD MSED7PROCE-SEL_DEBUG.

reaction on user command

MODULE USER_COMMAND_0520.

ENDCHAIN.

MODULE LEAVE_SCREEN.

I think if I take out :

FIELD MSED7PROCE-SEL_BCKGRD.

FIELD MSED7PROCE-SEL_ERROR.

FIELD MSED7PROCE-SEL_DEBUG.

from the above screen then I think it should take it foreground bydefault.

Please Advise

Thanks,

Rajeev Gupta