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

direct input

Former Member
0 Likes
440

hello

is there any way to get the list of records which are not uploaded while performing direct input session ?

regards

anjali

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
407

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

3 REPLIES 3
Read only

Former Member
0 Likes
408

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

Read only

0 Likes
407

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

Read only

0 Likes
407

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..