2008 May 05 10:54 AM
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,
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.
2008 May 05 10:57 AM
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
2008 May 05 11:03 AM
Hi Nicole
Thanks for ur quick response
Can u be a bit more clear plz
rgs
2008 May 05 11:22 AM
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.
2008 May 05 11:34 AM
2008 May 05 11:50 AM
Hi
First sort the Internal table i_z0132 with the WHERE conditions u mentioned.
Thanks
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |