cancel
Showing results for 
Search instead for 
Did you mean: 

Data source enhancement

Former Member
0 Kudos

Hi,

I am enhancing a data source.

When am ding the extraction, for a field(rout) am getting blank value.

When i extract a data source by giving single value(vbeln) then code is working fine.DAta is popultaing correctly.

Basically my logic in program is am getting a value for the field "rout", "Vbeln" from table LIKP.

For this am comparing Reference document number(VGBEL) form vbrp table.

So vgbel from vbrp = vbeln of LIKP table.

For the above logic. i wrote this code.

" IF NOT i_vbrp[] IS INITIAL.

SELECT vbeln route bolnr

FROM likp

INTO CORRESPONDING FIELDS OF TABLE i_likp

FOR ALL ENTRIES IN i_vbrp

WHERE vbeln = i_vbrp-vgbel.

ENDIF. " i_vbrp[] is initial

"

Could anyone tell me how to overcome my problem and corect this code???

Thanks in advance

Kind Regards,

Shanbagavalli.S

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Your select statement looks good. You are getting the values correctly if you extract for a single value. The case may be of clearing the declared variables. If you are using any variables in the loop, try to clear those variables at the end of the loop ( last statement before endloop). That might solve your problem. Hope this helps.

Thanks and Regards

Subray Hegde