Application Development 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: 

Is it possible to write a Batch Input program for transaction CAT2 ?

Former Member
0 Kudos

Hi!

I need to insert new records for an employee with CAt2 but the grid like structure in the lower part seems to be inappropriate for the bdc technique ?

Would you please advice ? What can I do else?

Kind Regards.

Erkan.

Any comment ?

Edited by: erkan varol on Nov 30, 2011 1:06 PM

1 ACCEPTED SOLUTION

kesavadas_thekkillath
Active Contributor
0 Kudos

Check with bapi's

BAPI_CATIMESHEETMGR_INSERT.

BAPI_CATIMESHEETMGR_CHANGE

BAPI_CATIMESHEETMGR_DELETE

Also if you want BDC to be used, you can see a personal settings button in initial screen or in menu of CAT2 where a check box can be marked for avoiding the ALV display. Please note that BDC must not be used for Enjoy transactions.

4 REPLIES 4

kesavadas_thekkillath
Active Contributor
0 Kudos

Check with bapi's

BAPI_CATIMESHEETMGR_INSERT.

BAPI_CATIMESHEETMGR_CHANGE

BAPI_CATIMESHEETMGR_DELETE

Also if you want BDC to be used, you can see a personal settings button in initial screen or in menu of CAT2 where a check box can be marked for avoiding the ALV display. Please note that BDC must not be used for Enjoy transactions.

Former Member
0 Kudos

"Your program should look like this
.
.
.
.


perform bdc_field       using 'BDC_CURSOR'      'ITAB1-FIELD1'.

perform bdc_field       using 'BDC_OKCODE'       '=NEWL'.
"Fill Grid like structure (table control) with records from internal table (uploaded file entries)
"----------->>>>>>>>>
LOOP AT ITAB2.
V_COUNT = V_COUNT + 1.

perform bdc_dynpro      using 'SAPTIMESHEET' '0001'.

perform bdc_field           using 'AAAAAA'             'HRP01'.


IF V_COUNT1 = 40.
   V_COUNT1 = 1.
   perform bdc_field       using 'BDC_OKCODE'        '=P+'. "Next Page after 40 lines

ENDIF.
ENDLOOP.
"-----------<<<<<<<
* After the loop statement continue the steps as per recording.

perform bdc_dynpro      using 'SAPLZAAA' '0001'.

perform bdc_field       using 'BDC_CURSOR'

Former Member
0 Kudos

There are plenty of notes related to using batch input for this transaction, so it should be possible.

Rob

Former Member
0 Kudos

ok