‎2022 Mar 30 5:06 PM
Hello All,
I'm submitting RSNAST00 in IN UPDATE FM even with/without RETURN and getting error like, "Statement SUBMIT_NO_RETURN not allowed in this"
submit rsnast00 with s_kappl in s_kappl
with s_objky in s_objky
with s_kschl in s_kschl
with s_nacha in s_nacha and return.
OR,
submit rsnast00 with s_kappl in s_kappl
with s_objky in s_objky
with s_kschl in s_kschl
with s_nacha in s_nacha .
And, getting,

Could you please suggest, How to call RSNAST00 in IN UPDATE Function Module.
Thanks,
Ram
‎2022 Mar 30 8:26 PM
Hi Ram,
I had such issues also from time to time. My solution was to put the submit into an own Function Module which is RFC-enabled. This one is then called with STARTING NEW TASK in the update function module. As this SUBMIT is then called in a seperate task, you do not have the described issue anymore.
Kind regards
Jens
‎2022 Mar 30 5:41 PM
Hello rammididoddi
It has been asked and answered: https://answers.sap.com/questions/5282061/how-do-i-submit-from-a-user-exit-which-is-called-i.html
Best regards
Dominik Tylczynski
‎2022 Mar 30 5:41 PM
You could have a periodic job waiting for an event (I guess) or perhaps reading from a custom table, written in the task. I'm not sure a direct insert in NAST is recommended, I wouldn't try that.
‎2022 Mar 30 8:26 PM
Hi Ram,
I had such issues also from time to time. My solution was to put the submit into an own Function Module which is RFC-enabled. This one is then called with STARTING NEW TASK in the update function module. As this SUBMIT is then called in a seperate task, you do not have the described issue anymore.
Kind regards
Jens
‎2022 Mar 31 8:19 AM
Hi Jens,
Thanks for your comment and my scenario is that, we are sending order status to IDoc incase of PO change at anycase like during OBD, Picking, IBD, PGI and PGR.
Kind Regards,
Ram
‎2022 Mar 30 9:25 PM
Weird choice from you, or just ignorance, could you explain why you don't use AND RETURN???
SUBMIT ...
WITH ...
AND RETURN.
‎2022 Mar 31 8:51 AM
Hello All,
As i'm calling this FM: Z_FUNCTION_MODULE IN UPDATE in BADI: LE_SHP_DELIVERY_PROC and doing submit RSNAST00 to send the order status to IDoc.
Kind Regards,
Ram
‎2022 Apr 01 9:46 AM
Hi All,
I can conclude that, have achieved from the below link it was exactly my development.
https://sapcodes.com/2017/06/23/set-update-task-local/
Kind Regards,
Ram Mididoddi