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

Change NAST entry while processing PO

Former Member
0 Likes
2,408

Hi All,

I need to change NAST entry based on a condition in the Purchase Order line items.

Nace has been configured with a Z output type and a Zprogram has been for processing routine External Send.

A job has been scheduled to run for every 10 mins via the Standard Prog. RSNAST01 with variant (supplied with values 'Output application' and 'Output type'  here EF and ZAA1 respectively).

This prog picks up the PO's and processes them every 10 mins( it may pick 1 2 or more).

When a PO is created 4 Zoutput types  are added under message tab.

Now when job gets triggered and suppose it picks up 3 PO's and of those i need to change the 2nd PO's NAST entry i.e., change the nast entries value nast-vstat from 0 to 2.

To achieve above I have used FM RV_MESSAGE_UPDATE_SINGLE and changed the nast-vstat value from 0 to 2.

The issue here is the Zprogram is called 'within' RSNAST01 so the value which i have changed nast-vstat = 2 is not retained.

So, could anyone suggest on how to retain the value of nast-vstat for above scenario.

-Regards

Dep

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,249

Hi,

I have passed return code to form entry_neu and resolved the issue.

1 REPLY 1
Read only

Former Member
0 Likes
1,250

Hi,

I have passed return code to form entry_neu and resolved the issue.