2010 Feb 11 5:08 AM
HI,
Please guide me whether SM58 can be scheduled in the background will automatically take care of LUW execution?
Or do i need to write a BDC for SM58 and execute the BDC in Background?
Thank you.
Edited by: Sanjay_lnt on Feb 11, 2010 6:08 AM
Edited by: Sanjay_lnt on Feb 11, 2010 6:09 AM
2010 Feb 11 5:19 AM
You need to submit RSARFCSE instead of writing bdc on sm58. If you check the code inside the SM58.
when 'EXEC'.
dbg = space.
export dbg to memory id '%_arfc_debug'.
perform execute_line.
perform redisplay.
if you check the execute_line form
form execute_line.
if acttid is initial.
message e015.
endif.
%_reserv = arfcsstate-arfcreserv. "Cast auf Struktur %_RESERV
if %_reserv-mandt <> sy-mandt.
message e040 with %_reserv-mandt.
endif.
if arfcsstate-arfcstate <> executed.
if dbg <> space.
select single * from rfcdes
where rfcdest = arfcsstate-arfcdest.
if ( sy-subrc = 0 and rfcdes-rfctype = 'T' ).
message e361(sy) with rfcdes-rfctype.
endif.
endif.
submit rsarfcse and return with tid = acttid
with forced = 'X'.
elseif valid_line = space.
message e015.
else.
message e016.
endif.
endform.
a®
You need to submit RSARFCSE instead of writing bdc on sm58. If you check the code inside the SM58.
when 'EXEC'.
dbg = space.
export dbg to memory id '%_arfc_debug'.
perform execute_line.
perform redisplay.
if you check the execute_line form
form execute_line.
if acttid is initial.
message e015.
endif.
%_reserv = arfcsstate-arfcreserv. "Cast auf Struktur %_RESERV
if %_reserv-mandt <> sy-mandt.
message e040 with %_reserv-mandt.
endif.
if arfcsstate-arfcstate <> executed.
if dbg <> space.
select single * from rfcdes
where rfcdest = arfcsstate-arfcdest.
if ( sy-subrc = 0 and rfcdes-rfctype = 'T' ).
message e361(sy) with rfcdes-rfctype.
endif.
endif.
submit rsarfcse and return with tid = acttid
with forced = 'X'.
elseif valid_line = space.
message e015.
else.
message e016.
endif.
endform.
a®
2010 Feb 11 5:19 AM
2010 Feb 11 5:19 AM
You need to submit RSARFCSE instead of writing bdc on sm58. If you check the code inside the SM58.
when 'EXEC'.
dbg = space.
export dbg to memory id '%_arfc_debug'.
perform execute_line.
perform redisplay.
if you check the execute_line form
form execute_line.
if acttid is initial.
message e015.
endif.
%_reserv = arfcsstate-arfcreserv. "Cast auf Struktur %_RESERV
if %_reserv-mandt <> sy-mandt.
message e040 with %_reserv-mandt.
endif.
if arfcsstate-arfcstate <> executed.
if dbg <> space.
select single * from rfcdes
where rfcdest = arfcsstate-arfcdest.
if ( sy-subrc = 0 and rfcdes-rfctype = 'T' ).
message e361(sy) with rfcdes-rfctype.
endif.
endif.
submit rsarfcse and return with tid = acttid
with forced = 'X'.
elseif valid_line = space.
message e015.
else.
message e016.
endif.
endform.
a®
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |