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 the following code do, especially bold statement

Former Member
0 Likes
318

Hi all,


  Select ckmlpp~vnkumo ckmlpp~meins mbew~bwkey
       into (ckmlpp-vnkumo, ckmlpp-meins, mbew-bwkey)
       from ckmlpp
       inner join mbew on ckmlpp~kalnr eq mbew~kaln1
       where mbew~matnr eq itab-matnr and
             mbew~bwkey in urt and
             ckmlpp~poper eq current_month and
             ckmlpp~bdatj eq year.
<b>ADD ckmlpp-vnkumo TO p_fs.</b>
""p_fs is the fiedl symbol.

I do not know much on field symbols, does it add the value that comes from select loop each time to the fs?

For example at first loop assume ckmlpp-vnkumo is 50 and at second one it is 100, so the p_fs value is 150 or what?

Thanks.

Thanks.

1 REPLY 1
Read only

h_senden2
Active Contributor
0 Likes
285

well, your code will not work.

If you want add a number to the value represented by the fieldsymbol you have to code it like

ADD ckmlpp-vnkumo TO <p_fs>.

regards,

Hans