‎2007 Feb 08 3:43 AM
hello
is there any way to get the list of records which are not uploaded while performing direct input session ?
regards
anjali
‎2007 Feb 08 3:53 AM
Hi anjali,
based on a specific condition the faulty records can be checked and moved into an internal table or downloaded in a specific file...
for example..
if we want the records with no material numbers..i.e. matnr is initial..
write the code in mapping fields step at matne field and donload it in end-of-processing step using fm gui_download..
try this sample code..
IF NOT MYINTERTAB-MATNR IS INITIAL.
BMM00-MATNR = MYINTERTAB-MATNR.
ELSE.
er_itab-matnr = myintertab-matnr.
CLEAR ER_ITAB.
MOVE MYINTERTAB TO ER_ITAB.
APPEND ER_ITAB.
ENDIF.
*******end-of-processing****
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
FILENAME = 'C:\Documents and Settings\sampath\Desktop\ER.txt'
APPEND = 'X'
TABLES
DATA_TAB = ER_ITAB.
hope this helps u a bit,
all the best,
regards,
sampath
mark helpful answers
‎2007 Feb 08 3:53 AM
Hi anjali,
based on a specific condition the faulty records can be checked and moved into an internal table or downloaded in a specific file...
for example..
if we want the records with no material numbers..i.e. matnr is initial..
write the code in mapping fields step at matne field and donload it in end-of-processing step using fm gui_download..
try this sample code..
IF NOT MYINTERTAB-MATNR IS INITIAL.
BMM00-MATNR = MYINTERTAB-MATNR.
ELSE.
er_itab-matnr = myintertab-matnr.
CLEAR ER_ITAB.
MOVE MYINTERTAB TO ER_ITAB.
APPEND ER_ITAB.
ENDIF.
*******end-of-processing****
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
FILENAME = 'C:\Documents and Settings\sampath\Desktop\ER.txt'
APPEND = 'X'
TABLES
DATA_TAB = ER_ITAB.
hope this helps u a bit,
all the best,
regards,
sampath
mark helpful answers
‎2007 Feb 08 4:12 AM
hi! sampath
ya i agree with you what you said is correct,
m doing upload of open po's and i can chack it for the condition where vendor is not there but there are many other issues like material is not active and material is not alloacted for the particular plant.
is there any way out to get the whloe the list as we get in batch input?
regards
anjali
‎2007 Feb 08 4:23 AM
anjali,
probably u shud code the logic/fm's individually for all the fields and put result fields together in an internal table and chck it or download it..