Application Development and Automation 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: 
Read only

Write statement not working

Former Member
0 Likes
1,710

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

9 REPLIES 9
Read only

Former Member
0 Likes
1,293

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.

Read only

0 Likes
1,293

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.

Read only

0 Likes
1,293

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.

Read only

0 Likes
1,293

The parameter p_test is defaulted to 'X' in the standard program. Have you unchecked this in your copy?

Rob

Read only

0 Likes
1,293

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.

Read only

0 Likes
1,293

Are you entering either the IDoc number or the Mesage type?

I made a copy of the program and it works for me.

Rob

Read only

Former Member
0 Likes
1,293

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.

Read only

Former Member
0 Likes
1,293

Important - read note 1481960.

The program was recently changed and you should only run it if OSS asks you to run it.

Rob

Read only

0 Likes
1,293

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.