‎2006 Nov 28 5:16 PM
hi,
how to call multiple transactions in session method ( multiple sessions).
thanks in advance.
‎2006 Nov 28 5:23 PM
Something like this:
PERFORM display_progress USING 'Creating batch input sessions...'.
* Actuals
PERFORM open_batch_session USING p_sessa.
LOOP AT ltcap_int
WHERE NOT tot_inc IS initial.
PERFORM fill_bdc_header.
PERFORM fill_bdc_lines.
PERFORM post_entries.
PERFORM insert_batch_session USING 'FB01'.
ENDLOOP.
PERFORM close_batch_session.
perform start_batch_session using p_sessa.
* Budgets
WRITE p_fy TO c_fy.
PERFORM open_batch_session USING p_sessb.
LOOP AT ltcap_int
WHERE NOT tot_inc IS initial.
PERFORM rollup_header.
PERFORM rollup_line.
PERFORM rollup_save.
PERFORM insert_batch_session USING 'FR21'.
ENDLOOP.
PERFORM close_batch_session.
perform start_batch_session using p_sessb.
Rob
‎2006 Nov 28 5:18 PM
Hi,
Can call BDC_INSERT multiple times.
For more info:
http://help.sap.com/saphelp_erp2005/helpdata/en/fa/097119543b11d1898e0000e8322d00/frameset.htm
http://www.sapbrain.com/TUTORIALS/TECHNICAL/BDC_tutorial.html
http://www.sap-img.com/abap/learning-bdc-programming.htm
http://www.sap-img.com/bdc.htm
Hope this helps.
Manish
Message was edited by:
Manish Kumar
‎2006 Nov 28 5:23 PM
Something like this:
PERFORM display_progress USING 'Creating batch input sessions...'.
* Actuals
PERFORM open_batch_session USING p_sessa.
LOOP AT ltcap_int
WHERE NOT tot_inc IS initial.
PERFORM fill_bdc_header.
PERFORM fill_bdc_lines.
PERFORM post_entries.
PERFORM insert_batch_session USING 'FB01'.
ENDLOOP.
PERFORM close_batch_session.
perform start_batch_session using p_sessa.
* Budgets
WRITE p_fy TO c_fy.
PERFORM open_batch_session USING p_sessb.
LOOP AT ltcap_int
WHERE NOT tot_inc IS initial.
PERFORM rollup_header.
PERFORM rollup_line.
PERFORM rollup_save.
PERFORM insert_batch_session USING 'FR21'.
ENDLOOP.
PERFORM close_batch_session.
perform start_batch_session using p_sessb.
Rob