‎2007 Jul 11 4:48 AM
Hi,
i need eloboratation on the below code and functionality
1) nast table entries and functionlaity how it works etc details
2) function module called and how data is transfering into the table from it
3) bold codes specially
call function 'RV_PRICE_PRINT_REFRESH'
TABLES
tkomv = tkomv.
clear komk.
clear komp.
clear <b>nast_anzal.</b> "Clear aux. variable for number of outputs
<b> if nast-objky+10(6) ne space.
vbco3-vbeln = nast-objky+16(10).</b>
else.
<b>vbco3-vbeln = <i>nast-objky</i>.</b>
endif.
vbco3-mandt = sy-mandt.
<b> vbco3-spras = nast-spras. what is happenign her how the values from nast coming where it is getting populated intitally?
vbco3-kunde = nast-parnr.
vbco3-parvw = nast-parvw.</b>
call function 'RV_BILLING_PRINT_VIEW'
EXPORTING
comwa = vbco3
IMPORTING
kopf = vbdkr
TABLES
pos = tvbdpr
EXCEPTIONS
terms_of_payment_not_in_t052 = 1
error_message = 5
others = 4.
if not sy-subrc is initial.
if sy-subrc = 1.
syst-msgty = 'I'.
perform p_update.
endif.
endif.
form p_update.
<b>check xscreen = space.
call function 'NAST_PROTOCOL_UPDATE'
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.</b>
endform.
regards
Arora
‎2007 Jul 11 8:59 AM
Hi,
NAST: Is MEssage status table. Documents which are having message status are stored into NAST.
Now in your case order no is nast-objky stored in the NAST.
'NAST_PROTOCOL_UPDATE': Is nothing but a processing of NAST Log.
Reward if useful!
‎2007 Jul 11 8:59 AM
Hi,
NAST: Is MEssage status table. Documents which are having message status are stored into NAST.
Now in your case order no is nast-objky stored in the NAST.
'NAST_PROTOCOL_UPDATE': Is nothing but a processing of NAST Log.
Reward if useful!
‎2007 Jul 11 11:21 AM
hi
my question is realted to eloboration of above code in detail and the functioning and processing
reagards
Arora
‎2007 Jul 11 11:22 AM
Hi,
<b>if nast-objky+10(6) ne space.</b> He is checking 6 CHARACTERS from the 10th position if they are spaces.
vbco3-vbeln = nast-objky+16(10). Same here.
char+x(y) means Y characters from X offset.
Regards,
Sesh
‎2007 Jul 12 4:47 AM
hi sesh
what is nast-<b>objky</b> how it isf unctioning and how it is called etc pls eloborate
also u can eloborate more on nast table it is message status table what does t his implies i can understand it stores message status by this but what does nast-objk implies
and vbo3-vbeln is taking value of nast-objky wht does thi smean from whre the value is coming and being passed to vbco3-vbeln and its use in nast table how the value comes?
Regds
Arora
‎2007 Jul 12 5:58 AM
Hi,
Sorry couldn't see your message,
Anyways, Baiscally OBJEKY is Document number which uniquely identifies an object (for example, an order). The object key is assigned by the system.
It is an internal Process.
For e.g: Purhcase Order or Sales Order.
Once you Enter Message type in NACE transaction corresponding documents with their message types gets into NAST table.
Suppose you have P.O. No: 00000001 and if you preview P.O. It will refer entry from NAST table internally as OBJKY: 00000001 whcih is your P.O.
You can directly write into a Program routine NAST-OBJKY, it will automatically picks up the PO no while previewing or Printing it.
Now in your case Sales Doc.Access Methods: Key Fields: Document Printing
vbco3 is the table defined in the same program. Double click to check it.
You are storing corresponding values from NAST to vbco3 table.
As you get entire row from NAST referring to your Document.
'RV_BILLING_PRINT_VIEW': Shows Preview of a document.
Now if it returns an error it will update the log for NAST that if you want to see the print log can be seen.
Hope this helps.
Reward if usegful!
‎2007 Jul 17 6:43 AM