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

LDB: Provide query err

vallamuthu_madheswaran2
Active Contributor
0 Likes
363

Hi,

kindly correct the the error in the PROVIDE stament.

provide prfno pernr rnr01 repto asgsd rolld FROM p9035

INTO (gi_prj_allc-hrd_ref, gi_prj_allc-emp_no, gi_prj_allc-prj_role,

gi_prj_allc-rept_to, gi_prj_allc-date_allc,gi_prj_allc-date_relv)

between p0000-begda and p0000-endda.

Thankz & Regards,

vallamuthu.M

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
340

Hi there,

In PROVIDE/ ENDPROVIDE you can not assign variables like that.

instead follow this logic:

give PNP as the logical database.

Create an internal table IT_XYZ have the reqd fields, and create a corresponding work area WA_XYZ.

<b>provide</b> prfno

pernr

rnr01

repto

asgsd

rolld FROM p9035

between pnp-begda and pnp-endda.

<b>endprovide.</b>

  • Now assign the values to workarea

WA_XYZ-field1 = p9035-prfno

WA_XYZ-field2 = p9035-pernr

-

-assign all fields like this

<b>append WA_XYZ to IT_XYZ</b>.

This will populate the internal table IT_XYZ with the desired values.

you might have to modify it according to your requirement.

Regards,

Sonal

<b>Reward points if helpful</b>

Message was edited by:

sonal sharda

1 REPLY 1
Read only

Former Member
0 Likes
341

Hi there,

In PROVIDE/ ENDPROVIDE you can not assign variables like that.

instead follow this logic:

give PNP as the logical database.

Create an internal table IT_XYZ have the reqd fields, and create a corresponding work area WA_XYZ.

<b>provide</b> prfno

pernr

rnr01

repto

asgsd

rolld FROM p9035

between pnp-begda and pnp-endda.

<b>endprovide.</b>

  • Now assign the values to workarea

WA_XYZ-field1 = p9035-prfno

WA_XYZ-field2 = p9035-pernr

-

-assign all fields like this

<b>append WA_XYZ to IT_XYZ</b>.

This will populate the internal table IT_XYZ with the desired values.

you might have to modify it according to your requirement.

Regards,

Sonal

<b>Reward points if helpful</b>

Message was edited by:

sonal sharda