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

what does this code implies pls eloborate

Former Member
0 Likes
1,149

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
907

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!

6 REPLIES 6
Read only

Former Member
0 Likes
908

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!

Read only

0 Likes
907

hi

my question is realted to eloboration of above code in detail and the functioning and processing

reagards

Arora

Read only

seshatalpasai_madala
Product and Topic Expert
Product and Topic Expert
0 Likes
907

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

Read only

0 Likes
907

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

Read only

Former Member
0 Likes
907

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!

Read only

Former Member
0 Likes
907

got answer