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

SUBMIT RSNAST00 in INUPDATE Function Module

rammididoddi
Explorer
0 Likes
4,380

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





1 ACCEPTED SOLUTION
Read only

Jeansy
Active Contributor
3,972

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

7 REPLIES 7
Read only

Dominik_Tylczynski
SAP Champion
SAP Champion
0 Likes
3,972

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

Read only

abo
Active Contributor
0 Likes
3,972

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.

Read only

Jeansy
Active Contributor
3,973

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

Read only

0 Likes
3,972

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

Read only

Sandra_Rossi
Active Contributor
0 Likes
3,972

Weird choice from you, or just ignorance, could you explain why you don't use AND RETURN???

SUBMIT ...
  WITH ...
  AND RETURN.
Read only

rammididoddi
Explorer
0 Likes
3,972

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

Read only

rammididoddi
Explorer
0 Likes
3,972

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