‎2011 Nov 09 2:22 PM
Hi experts,
I tried to make a copy of the std report, RC1_IDOC_SET_STATUS. The new one is working fine as per the functionality. But somehow the Write statements are not working. ie No results are getting printed for information sake. Can you help me out, please?
FYI - When you debug RC1_IDOC_SET_STATUS, once it reaches the Write in the Test subroutine, the function module TR_GET_NAMESPACE_AND_ROLE gets called. Whereas when my Z program routes into CONVERSION_EXIT_ISOLA_OUTPUT.
Regards,
Diana
‎2011 Nov 09 4:15 PM
Can you provide the Write statement which is failing ? The one inside IF condition writes LV_LINES of type sy-tabix for which I dont think these converstion exists will be called.
‎2011 Nov 09 4:39 PM
Hi Suman,
I have been trying the test part so far. The code snippet is given below:
IF P_TEST = 'X'.
WRITE: L_LINES, ' IDOCs werden umgesetzt.'(001).
EXIT.
ELSE.
LOOP AT L_EDIDC_TAB.
For the std report it prints this line. But my Z pgm, which is an exact replica of this portion, does not.
‎2011 Nov 09 4:53 PM
Is the program copied to Type "Executable" ? Check the text elements also but It shouldn't be a problem as the default german text is hard-code atleast it should get displayed even if 001 is not defined unless text element 001 is defined as blank.
‎2011 Nov 09 5:00 PM
The parameter p_test is defaulted to 'X' in the standard program. Have you unchecked this in your copy?
Rob
‎2011 Nov 09 5:04 PM
Suman,
Yes, the program is Executable. I doubted the DE thing first. But then i converted the pgm to EN and tried. it was still not working.
Rob,
I have kept the code as it is. Even if it is a test run, the print should happen saying that so many idocs are converted.
‎2011 Nov 09 5:09 PM
Are you entering either the IDoc number or the Mesage type?
I made a copy of the program and it works for me.
Rob
‎2011 Nov 09 5:24 PM
Hi Diana,
Comapare both the program - RC1_IDOC_SET_STATUS and the clone in SE39 and see if you have any extra Writes without a new line after this write statement.Or might the FM which you are calling in your program have a Write without a '/'
Regards,
Ram.
‎2011 Nov 09 5:33 PM
Important - read note 1481960.
The program was recently changed and you should only run it if OSS asks you to run it.
Rob
‎2011 Nov 10 11:21 AM
Rob,
This note has already been appiled in our std pgm.
Others,
I am trying to do a fresh copy again. If it works, i will let you know.
Thank you.