01-09-2015 1:49 PM
Hi everybody.I needed to copy report RFIDYYWT but i noticed that this report has some validations considering sy-repid value. In this way, any copies from this report do not work. I`m thinking about change the sy-repid value in initialization or maybe has any configuration for this report copy work correctly? Thank`s!
01-09-2015 2:01 PM
Hi
If you need to copy the report, you can change the validations for SY-REPID, you can replace it with a new variable and use it instead of SY-REPID
Max
01-09-2015 2:01 PM
Hi
If you need to copy the report, you can change the validations for SY-REPID, you can replace it with a new variable and use it instead of SY-REPID
Max
01-09-2015 2:16 PM
thank`s Max, but this report actually use sy-repid in a lot of points including Enhancements , Function modules etc... must be complicated map and copy all objects to replace the sy-repid.
01-09-2015 2:35 PM
Uhm
sorry but SY-REPID has the value of the current program, so if it's check in a function module, SY-REPID will have the name of the main program of the function group so it'll be the same if the function is called by RFIDYYWT or your Z-copy.
The enhancements are linked to the main program RFIDYYWT , so you should copy them too in your new copy.
I mean you should manage SY-REPID only where it's used directly by RFIDYYWT
01-09-2015 2:26 PM
Why would you want to copy this? It is huge and going to be a headache to keep up to date. There are plenty of enhancement points etc., to insert stuff. Just a thought.
01-09-2015 2:51 PM
So, the client asked to build a new report using basically the same data this report present, but in other specific layout. We need to create a new report using ALV OO (not write more). What interest me is the data filled at internal tables i_idwtfidoc and i_idwtpartner. Yeah! It`s a huge headache!
01-09-2015 3:36 PM
Probably you don't need to copy the program, but only to define a new program for output
The output program can be defined in table T059ID01, here you can create a new Output Group where you can assign your program ( t059id01-wt_og_user_pgm)
Max
01-09-2015 4:35 PM
i don`t know if i`m doing it right but, i actually created new report and update table T059ID01 with this new report in the field you told. The standard call FM IDWT_DISPATCHER with wa_idwtglob-WT_OG_USER_PGM filled with my new report, but yet keeps the same standard output. =S
01-09-2015 4:44 PM
01-09-2015 8:21 PM
Max, thank`s for all. Actually i resolved the problem. There is a flag in main screen "additional user config" is must be flagged to the report consider the new program configured in T059ID01.
Unfortunately, this configured program can`t call other screen to present ALV, i got i DUMP when tried to do it. So, i used this program to export the data to memory and maintain this in other program. Kind ugly but... rsrsrss
01-12-2015 10:39 AM
Hi
You could use your report in order to submit the standard one and use a new setting of T059ID01
Max