2010 Aug 02 10:05 AM
Hi experts,
Is there any function module so that i can create an entry in NAST table which will trigger an idoc.
Regards
Sridevi S
Hi experts,
Is there any function module so that i can create an entry in NAST table which will trigger an idoc.
Regards
Sridevi S
2010 Aug 02 11:12 AM
if you do proper configuration in NACE then entry can be visible in NAST after output is attached to the particular transaction instance.
Regds,
2010 Aug 02 11:14 AM
hi Suresh,
I want to force the entry in one program. how to do this.
regards
Sridevi S
2010 Aug 02 11:19 AM
NAST_SAVE_OBJECT - give a try.
check program RSNASTSO - You have set it through NACE and then use this program
2010 Aug 02 11:17 AM
Inserting entries to NAST directly ... This must not be done
2010 Aug 02 11:20 AM
then what method need to be followed to send an output type idoc from a program??
2010 Aug 02 12:51 PM
output types will be assinged to transactional data and Idoc will be triggered automatically when output type is assigned.
I am not clear about your requriement.
2010 Aug 02 1:56 PM
hi suresh,
i am getting an inbound idoc. Whenever the receipt is getting posted by this inbound idoc i need to trigger an output type idoc orders05 from the user exit of this inbound idoc. how to acheive this?
Regards
Sridevi S
2010 Aug 02 2:08 PM
this may help you
link:[Processing of output types through program|http://wiki.sdn.sap.com/wiki/display/ABAP/ProcessOutputtypesthroughprogram]
2010 Aug 03 9:47 AM
Hi,
Which receipt transaction you are referring to ? Instead of triggering the IDOC through user exit, you should configure output type (NACE) in this transaction which will trigger ORDERS05 whenever inbound idoc is processed successfully.
Regards
Vinod
2010 Aug 03 10:00 AM
Hi Vinod,
Can you tell me the steps of how to configure this.when wmmbxy inbound idoc is posted successfully i need to trigger orders05 idoc.
Regards
Sridevi S
2010 Aug 03 10:23 AM
Hi,
Ask your functional consultant to configure the message control settings using transaction code NACE. If standard Output type is not available then you have to create one with NACE and assign the process code of ORDERS05 to this.
Read the SDN Blog [Message Control (Output Control) for ALE|http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/6074] [original link is broken] [original link is broken] [original link is broken]; for reference.
Regards
Vinod
2010 Aug 03 10:48 AM
when wmmbxy inbound idoc is posted successfully i need to trigger orders05 idoc
and again ORDERS05 is inbound and Order should be created Goods received in wmmbxy Idoc.
As suggested by Vinod try look for user-exit which will be triggered at the end of wmmbxy processing FM and write code to create Inbound order Idoc using IDOC_INBOUND_ASYNC ..
if no sutiable exit found then copy the processing FM for wmmbxy.
No need of NAST entries for Inbound orders as well.
at the same time if you requirement is to trigger outbound order idoc no standard process FM is available, need to go for custom process.
Regds,
2020 Jun 24 1:57 AM
Use FM RV_MESSAGE_UPDATE_SINGLE to insert or Update an entry in NAST table
2024 Sep 19 3:57 PM
* Data Declaration
DATA: ls_nast TYPE nast,
lv_msg_doc TYPE char50,
lv_vbeln TYPE vbeln_vl.
* Constants
CONSTANTS: lc_v2 TYPE char2 VALUE 'V2',
lc_nacha TYPE char1 VALUE '6',
lc_vsztp TYPE char1 VALUE '4',
lc_zld2 TYPE char4 VALUE 'ZLD2',
lc_01 TYPE na_anzal VALUE '01',
lc_vstat TYPE na_vstat VALUE '1',
lc_msid TYPE sy-msgid VALUE 'E0',
lc_msgno TYPE sy-msgno VALUE '045'.
* Clear
CLEAR: ls_nast, lv_msg_doc, lv_vbeln.
* Logic to update NAST for all deliveries
LOOP AT p_li_docid INTO DATA(ls_docid).
lv_vbeln = ls_docid-docno+25(10).
lv_msg_doc = lv_docnum.
CALL FUNCTION 'NAST_PROTOCOL_INITIALIZE'.
CALL FUNCTION 'NAST_PROTOCOL_UPDATE'
EXPORTING
msg_arbgb = lc_msid
msg_nr = lc_msgno
msg_ty = lc_s
msg_v1 = lv_msg_doc.
CALL FUNCTION 'NAST_PROTOCOL_STORE' ##FM_SUBRC_OK
IMPORTING
msg_cmfpnr = ls_nast-cmfpnr
EXCEPTIONS
no_protocol_update = 1
OTHERS = 2.
ls_nast-spras = sy-langu.
ls_nast-anzal = lc_01.
ls_nast-vstat = lc_vstat. "'1'.
ls_nast-usnam = sy-uname.
ls_nast-kappl = lc_v2.
ls_nast-objky = lv_vbeln.
ls_nast-kschl = lc_zld2.
ls_nast-parnr = p_ls_cust-kunnr.
ls_nast-parvw = lc_we.
ls_nast-erdat = sy-datum.
ls_nast-eruhr = sy-uzeit.
ls_nast-nacha = lc_nacha.
ls_nast-vsztp = lc_vsztp.
ls_nast-manue = abap_true.
ls_nast-datvr = sy-datum.
ls_nast-uhrvr = sy-uzeit.
CALL FUNCTION 'RV_MESSAGE_UPDATE_SINGLE'
EXPORTING
msg_nast = ls_nast.
CLEAR: ls_docid, ls_nast.
ENDLOOP.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |