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

for all entries + client specified

Former Member
0 Likes
911

Hi experts

plz check the below code

SELECT MANDT

ZTXPMTTYP

LIFNR

ZPMTDSC

TXJCD

ZDPMTDY

ZAPMTDY

ZPMTAMT

WAERS

ZLSCH

HKONT

KTOPL

FROM z0132

CLIENT SPECIFIED

INTO CORRESPONDING FIELDS OF

TABLE i_z0132_new

FOR ALL ENTRIES IN i_z0132

WHERE mandt eq i_z0132-mandt

AND ztxpmttyp eq i_z0132-ztxpmttyp

AND lifnr eq i_z0132-lifnr

AND zpmtdsc eq i_z0132-zpmtdsc.

the table i_z0132 have 13 entries......my issue is this query is throwing a subrc value of 4........can someone help me out in this plz....its urgent

thanks in advance

Hi experts

plz check the below code

SELECT MANDT

ZTXPMTTYP

LIFNR

ZPMTDSC

TXJCD

ZDPMTDY

ZAPMTDY

ZPMTAMT

WAERS

ZLSCH

HKONT

KTOPL

FROM z0132

CLIENT SPECIFIED

INTO CORRESPONDING FIELDS OF

TABLE i_z0132_new

FOR ALL ENTRIES IN i_z0132

WHERE mandt eq i_z0132-mandt

AND ztxpmttyp eq i_z0132-ztxpmttyp

AND lifnr eq i_z0132-lifnr

AND zpmtdsc eq i_z0132-zpmtdsc.

the table i_z0132 have 13 entries......my issue is this query is throwing a subrc value of 4........can someone help me out in this plz....its urgent

thanks in advance

5 REPLIES 5
Read only

Former Member
0 Likes
767

HI,

you select over the same table then you insert.

INTO CORRESPONDING FIELDS OF

TABLE i_z0132_new

FOR ALL ENTRIES IN i_z0132

regards

Nicole

Read only

0 Likes
767

Hi Nicole

Thanks for ur quick response

Can u be a bit more clear plz

rgs

Read only

0 Likes
767

Hi,

sure. But I saw, that my answer was not right, cause your insert table ends with _new.

So...forget my first answer.

Did you try to get datas if you run the program only with

FROM z0132

CLIENT SPECIFIED

INTO CORRESPONDING FIELDS OF

TABLE i_z0132_new

FOR ALL ENTRIES IN i_z0132

WHERE mandt eq i_z0132-mandt.

Read only

0 Likes
767

yes....but it is of no use

Read only

Former Member
0 Likes
767

Hi

First sort the Internal table i_z0132 with the WHERE conditions u mentioned.

Thanks