Skip to Content
-1
Dec 14, 2022 at 05:23 AM

Singleton class static variable memory cleared during call from S4 to GTS

92 Views

I have a requirement to update the User Group in GTS system based on the S4 system orders created.

Implemented a BADI in GTS with Singleton design class having static variable to Hold the Order number in GTS.

1st Call from S4 to GTS -> Order NO. generated stored in static variable GV_ORDER.

2nd Call from S4 to GTS (Doc Saved) -> Order NO. cleared and unable to Query using GV_ORDER since its cleared.

Let me know if the Static variable memory is cleared during the 2nd call from S4 to GTS.

Basically need a MEMORY ID kind of concept to Hold Order number during the complete call from S4 to GTS systems.