batch iput

Question: how to transfer data to database using batchinput , if possible could u send small example..

i recorded the transaction and create the funtion..but i donīt know to use it in a programme to transfer data.

thank you.

Answer:
Hi,

Here is a snippet of code,

l_wa_bdctab-fnam = c_bdc_pernr.
l_wa_bdctab-fval = '00000420'.
APPEND l_wa_bdctab TO l_i_bdctab.


l_wa_bdctab-fnam = c_bdc_infty.
l_wa_bdctab-fval = '0420'.
APPEND l_wa_bdctab TO l_i_bdctab.

l_wa_bdctab-fnam = c_bdc_subty.
l_wa_bdctab-fval = ' '.
APPEND l_wa_bdctab TO l_i_bdctab.

* Move the ok_code to the BDC table to go to next screen
l_wa_bdctab-fnam = c_bdc_okcode.
l_wa_bdctab-fval = c_dis.
APPEND l_wa_bdctab TO l_i_bdctab.

...
...
...

*Call the transaction 'PA30' with the BDC table and the ERRORS only mode
CALL TRANSACTION c_pa20 USING l_i_bdctab MODE c_mode.

Either you can do BDC method or create a session and process the session the method described above is call transaction for PA30.

Hope this must be useful.

regards,
ranganath

Answer:
I dont remember the transaction for Batch Input, any body help me?

Answer:
SM35
Copyright ?2007 - 2008 www.jt77.com