Application Development 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: 

How can we update NAST table

Former Member
0 Kudos

Hi All,

How can we update NAST table, is there any function module to update nast table. ( i want to change the vstat to 1 in nast table for my delivery number having output type ZCHM).

6 REPLIES 6

Former Member
0 Kudos

call function <b>'NAST_PROTOCOL_UPDATE'</b>
EXPORTING
msg_arbgb = syst-msgid
msg_nr = syst-msgno
msg_ty = syst-msgty
msg_v1 = syst-msgv1
msg_v2 = syst-msgv2
msg_v3 = syst-msgv3
msg_v4 = syst-msgv4
EXCEPTIONS
others = 1.


when the function finished I get SY-SUBRC = 0, so, I have no errors and no NAST update....

Former Member
0 Kudos

Hi,

use program RSNAST00 to update nast table

or

use vl03-enter delivey no->issue output to print

enter output type zchm

once output is issued nast-vstat changes to 1.

Regards

amole

0 Kudos

HI

It is not updating the Nast table using this FM.

0 Kudos

I tried, but the function module NAST_PROTOCOL_UPDATE is not updating the nast table. Iam sending message type as 'S', but the vstat is not changing to '1'.

Former Member
0 Kudos

Hi,

Can you look at the Program <b>RSNAST00</b>, this will help you out ....

if not, why don't you write a Small Program which will have a select statment to update the NAST table ....

Regards

Sudheer

0 Kudos

Hi,

please check my code.

move

'4055335805' TO gs_output_options-tdtelenum,

'IN' TO gs_output_options-tdteleland,

'TELEFAX' TO gs_control_param-device.

CALL FUNCTION gv_func_mod_name

EXPORTING

control_parameters = gs_control_param

output_options = gs_output_options

user_settings = ' '

p_vbeln = gs_likp-vbeln

p_po_num = gv_po_num

p_lfdat = gs_likp-lfdat

p_vbak_vbeln = gv_vgbel

p_adr_sh = gv_adrnr1

p_adr_bp = gv_adrnr2

p_kunnr1 = gv_kunnr1

p_kunnr2 = gv_kunnr2

p_datbg = gv_datbg

p_is_bmt = gfl_bmt.

IF sy-subrc NE 0.

  • Will the NAST-vstat become here 1, if the sy-subrc * eq 0.

ENDIF.

--> issue is NAST-VSTAT is not changing, even the output is triggered. Still the VSTAT value is '0'.