Skip to Content
0
Former Member
Jul 21, 2008 at 05:00 AM

Can I EXPORT a flag from User ROUTINE(Exit)&IMPORT the same in other EXIT?

99 Views

Hi Experts,

Am wrting a VOFM - Requirement - Routine for output control.

So, here am checking a condition and determoning the SY-SUBRC value explicitly.

But, after executing my ROUTINE( & determing the SY-SUBRC correctly) later, the other ROUTINE of VOFM is executing, WHERE my SY-SUBRC value getting chnaged??????? But, It shuld NOT chnage my SY-SUBRC value!!!!

So, at the end in my scenario,

1 - It shuld NOT to chnage I determined SY-SUBRC value

2 - even, actually, I dont care, the other ROUTINE execution or NOT??

So, req. u that, suggest me ideas,

1 - Can I EXPORT a FLAG my routine and IMPORT the same in other ROUTINE? Is it SAFER and recomended practice? any danger?

2- if not, any other ideas appreciated.

thanq