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

Write processing log for custom output type

Former Member
0 Likes
3,699

Hi,

I have defined a new output type at delivery header level . This is processed using a special function and on processing moves stock from unrestricted to a order special stock.

I need to update the "processing log" of the output with the material document number. Can any one please let me know how I can write to this "processing log" of the output?

Thanks in advance.

Regards.

Hari.

1 ACCEPTED SOLUTION
Read only

Jelena_Perfiljeva
Active Contributor
0 Likes
1,371

Use function NAST_PROTOCOL_UPDATE:

* No orders found
    wa_msgv_1 = nast-objky+0(10).
    CALL FUNCTION 'NAST_PROTOCOL_UPDATE'
      EXPORTING
        msg_arbgb = c_msgtype
        msg_nr    = 30
        msg_ty    = 'S'
        msg_v1    = 'No orders found for delivery'
        msg_v2    = wa_msgv_1
      EXCEPTIONS
        OTHERS    = 1.

1 REPLY 1
Read only

Jelena_Perfiljeva
Active Contributor
0 Likes
1,372

Use function NAST_PROTOCOL_UPDATE:

* No orders found
    wa_msgv_1 = nast-objky+0(10).
    CALL FUNCTION 'NAST_PROTOCOL_UPDATE'
      EXPORTING
        msg_arbgb = c_msgtype
        msg_nr    = 30
        msg_ty    = 'S'
        msg_v1    = 'No orders found for delivery'
        msg_v2    = wa_msgv_1
      EXCEPTIONS
        OTHERS    = 1.