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

READ from Internal Table

Former Member
0 Likes
339

Dear All,

The output from a FM is getting stored in an internal table IL_MDPSX. I am trying to read 3 values from a single line value which meets the criteria as per below,

IF Sy-Subrc EQ 0.

READ TABLE IL_MDPSX INTO IT_MDPSX

WITH KEY DELNR = V_DELNR DELPS = V_DELPS.

V_EDELET = IT_MDPSX-DELET.

V_EDELNR = IT_MDPSX-DELNR.

V_EDELPS = IT_MDPSX-DELPS.

ENDIF.

But the values are not being read, may i know what mistake i have done.

Regards,

Vivek

1 REPLY 1
Read only

Former Member
0 Likes
305

Hi,

u can use offset to extract the values.

Example:

let us consider IT_MDPSX contains these value

vivek 1234 xyzz

u can extract these values by using offset like this

V_EDELET = IT_MDPSX+0(5).

V_EDELNR = IT_MDPSX+6(4)..

V_EDELPS = IT_MDPSX+11(4).

reward if helpful

raam