11-15-2006 7:29 PM
Hi
I have a requirement to change the standard program of T-code LT10 i.e. RLS10034. I have copied the program to ZRLS10034.
Issue is when I run the program ZRLS10034 with passing values Warehouse number and Storage type it does not show any thing in the output, but when I run RLS10034 with same values it give me output. ZRLS10034 is an exact copy of RLS10034 and thus not able to understand why it is behaving differently.
Any suggestions are welcomed.
Thanks
11-15-2006 7:36 PM
Hi Rohit,
Am not sure if you have also copied all the includes present in the program and also the includes within those includes.
If you didn't do that try it and see. this should work...
Regards,
Vinod.
11-15-2006 7:36 PM
A lot of standard SAP programs check the transaction code that is executing it. This seems to be going on here:
form check_variant_existence.
if not listv is initial.
move: listv to variant-variant,
'LT10' to variant-handle,
'SAPLL01L' to variant-report.
call function 'REUSE_ALV_VARIANT_EXISTENCE'
EXPORTING
i_save = 'A'
CHANGING
cs_variant = variant.
endif.
Rob
11-15-2006 7:42 PM
So, as a start, I would copy transaction LT10 to new transaction ZLT10 and point it to your program. Then change all occurrences of LT10 in the program (and includes) to ZLT10.
Rob
11-15-2006 7:45 PM
Vinod:
Yes I have copied all the includes. Still it does not work
Rob:
I have debugged the program but it is not even going in that if condition.
11-15-2006 7:51 PM
11-15-2006 8:02 PM
My suggestion was just to get you started. The program may also be looking for the transaction code in a table. Or it may be something else entirely.
Your best bet is to debug both programs side by side.
If all else fails, you might consider a mod to the SAP code.
Rob