2011 Nov 30 9:23 AM
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
2011 Nov 30 12:08 PM
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.
There are plenty of notes related to using batch input for this transaction, so it should be possible.
Rob
2011 Nov 30 12:08 PM
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.
2011 Nov 30 12:22 PM
"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'
2011 Nov 30 2:37 PM
There are plenty of notes related to using batch input for this transaction, so it should be possible.
Rob
2011 Dec 20 2:47 PM
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |