Professional Documents
Culture Documents
Start Routine Issue For 2LIS - 03 - BF
Start Routine Issue For 2LIS - 03 - BF
1 of 5
https://archive.sap.com/discussions/thread/3257581
10/31/2016 6:56 PM
2 of 5
https://archive.sap.com/discussions/thread/3257581
Hi all,
As I am having mismatch with stock amounts in 0IC_C03, I am applying a solution according to OSS note.
My issue is implementing lines in the start routine
The part I am adding is
loop at SOURCE_PACKAGE.
if SOURCE_PACKAGE-stockcat eq 'V' or
SOURCE_PACKAGE-stocktype eq 'V'.
delete SOURCE_PACKAGE.
endif.
endloop.
* if abort is not equal zero, the update process will be canceled
ABORT = 0.
* INSERT END
Eddy Carl
October 26, 2012 at 12:04 PM
1 Likes
10/31/2016 6:56 PM
3 of 5
https://archive.sap.com/discussions/thread/3257581
Eddy Carl
October 26, 2012 at 12:04 PM
1 Likes
Deepak Chavan
replied
October 26, 2012 at 12:10 PM
Hi Eddy,
Please use below code:
LOOP AT SOURCE_PACKAGE ASSIGNING
SOURCE_FIELDS.
IF SOURCE_FIELDS-STOCKCAT EQ 'V' OR
SOURCE_FIELDS-STOCKTYPE EQ 'V'.
DELETE SOURCE_PACKAGE.
ENDIF.
ENDLOOP.
Regards,
Deepak Chavan.
0
Eddy Carl
replied
October 26, 2012 at 12:52 PM
Hi Deepak,
Thank you for the response, when I update the
lines per your prompt, I receive this message:
E:Field "SOURCE_PACKAGE" is unknown. It is
neither in one of the specified tables nor defined
by a "DATA" statement.
10/31/2016 6:56 PM
4 of 5
https://archive.sap.com/discussions/thread/3257581
type
_ty_t_SC_1
so I expect there would no be a
"SOURCE_PACKAGE is unknown" issue.
By the way my code part is as below:
loop at SOURCE_PACKAGE ASSIGNING
<source_fields>.
if SOURCE_fields-stockcat eq 'V' or
SOURCE_fields-stocktype eq 'V'.
delete SOURCE_PACKAGE.
endif.
endloop.
0
Deepak Chavan
replied
October 26, 2012 at 13:19 PM
Eddy Carl
replied
10/31/2016 6:56 PM
5 of 5
https://archive.sap.com/discussions/thread/3257581
Eddy Carl
replied
October 26, 2012 at 13:34 PM
(86788 B)
Deepak Chavan
replied
October 26, 2012 at 14:21 PM
Hello Eddy,
Please put your code in
"Begin of Routine " and "End
of Routine part."
You are using gloabl section
hence error message is
coming.
Regards
Deepak Chavan.
0
Hendrik Brandes
replied
October 26, 2012 at 12:29 PM
Hello,
the correct syntax is LOOP AT itab ASSIGING
<source_fields>.
But: Try this:
10/31/2016 6:56 PM