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

IDOCs Problem

Former Member
0 Likes
605

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 dialogue box pops up which says Reprocess idocs :

On the dialogue box it 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.

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.

Edited by: Alvaro Tejada Galindo on Apr 30, 2008 3:08 PM

4 REPLIES 4
Read only

Former Member
0 Likes
572

No one answered

Read only

Former Member
0 Likes
572

Rajeev:

Don't close the thread if you haven't received a satisfactory answer...

Don't duplicate posts...They might be deleted by Moderators...

People...As yourself...Got work to do, and might not have the time to answer you very quickly....You must wait till someone answers you...No matter how important or urgent your question is...We all had also important and urgent things to do...

Greetings,

Blag.

Read only

0 Likes
572

I got your point Alvaro !!!!

Read only

Former Member
0 Likes
572

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