‎2011 Mar 30 4:10 AM
Hi Expert,
I have some problem down here. I want to get value of SY-UCOMM when running LSMW with the options 'Display error only'.
Usually when I'm using foreground processing, The SY-UCOMM value is not empty, but when I using 'Display error only', THE sy-ucomm is empty.
do I have to add something in my code?
ok_code = SY-UCOMM.
IF ok_code = 'UPD'.
XXX
END IF.Thank you
Rully
‎2011 Mar 30 4:51 AM
>
> Hi Expert,
>
> I have some problem down here. I want to get value of SY-UCOMM when running LSMW with the options 'Display error only'.
-->its not a LSMW anymore , you are running/processing the session , so whats your requirement ?
> Usually when I'm using foreground processing, The SY-UCOMM value is not empty, but when I using 'Display error only', THE sy-ucomm is empty.
>
> do I have to add something in my code?
>
>
ok_code = SY-UCOMM. > IF ok_code = 'UPD'. > XXX > END IF.>
> Thank you
>
>
>
> Rully
‎2011 Mar 30 5:15 AM
Thanks for your comment..
As you said, I'm processing the session with the option 'Display error only'.
I need to get the value of SY-COMM, which is empty in 'Display error only' mode. But, in 'foreground' mode the SY-COMM filled with 'UPD'.
here's the different between the 2 option :
A) Foreground mode
OK_CODE = SY-COMM. -----------------> The value of OK_CODE is 'UPD'
IF OK_CODE = 'UPD'
XXX --------------------> this line got executed
END IFB) Display error only mode
OK_CODE = SY-COMM. -----------------> The value of OK_CODE is empty
IF OK_CODE = 'UPD'
XXX --------------------> this line not executed.
END IFthank you.
Rully
‎2011 Mar 31 1:45 AM