‎2008 Apr 25 10:22 AM
wat is wrong with this code
no rows are getting selected
SELECT vbeln matnr vrkme FROM lips INTO TABLE gt_lips FOR ALL ENTRIES IN
gt_trans WHERE vbeln = gt_trans-vbeln
and matnr = gt_trans-matnr.
even when there are records matching in gt_trans
‎2008 Apr 25 10:26 AM
hi,
make use of CONVERSION_EXIT_MATN1_INPUT for matnr and CONVERSION_EXIT_ALPHA_INPUT for vbeln before using the select statement in order to convert the data in to database format i.e, for appending the leading zeros...
Regards,
santosh
‎2008 Apr 25 10:29 AM
hi jumnum,
First check if data is coming in internal table gt_trans in debugging mode.
regards
neelesh
‎2008 Apr 25 10:29 AM
Hi jamnun,
There is no problem with SELECT query.
try to Debug the code and see,
maybe the problem will be like foll:
vbeln = 5084.
while it maybe comparing the record with vbeln = 0000005084
Regards,
Sunil
‎2008 Apr 25 10:34 AM
Hi ,
Pass gt_trans-matnr to above FM and based on that fetch the data from data base table. Now u will get it.
Regards,
Kumar.
‎2008 Apr 25 10:34 AM
Hi,
Pls try the following code....
SELECT vbeln matnr vrkme FROM lips INTO CORRESPONDING FILEDS OF TABLE gt_lips FOR ALL ENTRIES IN
gt_trans WHERE vbeln = gt_trans-vbeln
and matnr = gt_trans-matnr.
hope this helps.
Pls reward if useful..
Thanks,
Sirisha,