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

code optimization

Former Member
0 Likes
323

Hi all,

i am getting these errors ,

data :it_header type bapimereqheader , "Transfer Structure for Purchase Req. - Header

it_headerx type bapimereqheaderx , "Change Parameter for Enjoy Purchase Requisition - Header

g_reqstno type bapimereqheader-preq_no,

PROGRAM: LZ_LPR_STRCREATETOP LINE: 114

Error: Structure name is not matching WA_RESULT

PROGRAM: LZ_LPR_STRCREATETOP LINE: 131

Error: Structure name is not matching IT_HEADER

PROGRAM: LZ_LPR_STRCREATETOP LINE: 132

Error: Structure name is not matching IT_HEADERX

select kostl "Cost Center

from csks

into table it_kostl

for all entries in it_data

where kokrs eq c_pur_org

and kostl eq it_data-kostl

and datbi ge sy-datum.

PROGRAM: LZ_LPR_STRCREATEU01 LINE: 253

Negative SQL Statements in Where Condition of Select

could any one can help me

thanks and regards,

urs,

suman

2 REPLIES 2
Read only

Former Member
0 Likes
300

Hi Suman,

Where have you declared WA_RESULT?

and what is the TYPE of that work area.....

Also taking the errors into consideration, it looks like you are not using seperate work area in your loops or you have declared a work area that does not match the internal table type...

Please check if all the declaration of work area and internal table are correct.

Best Regards,

Ram.

Read only

Former Member
0 Likes
300

thanks a lot