Application Development 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: 

Problem with Copied Program of LT10

Former Member
0 Kudos

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

6 REPLIES 6

Former Member
0 Kudos

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.

Former Member
0 Kudos

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

0 Kudos

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

0 Kudos

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.

0 Kudos

Rob,

I tried what you have suggested but still it is not working.

0 Kudos

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