10-10-2007 8:11 AM
Hi
I am using LSMW to create item lines. The records are created ok until i get to line 14, at this point line 15 is overwritten by the next record. Is there a solution for this please?
thanks
Andty
10-10-2007 9:10 AM
have u checked ur flat file values after 14th line item and also once check ur display converte data.
Thanks
10-10-2007 9:34 AM
There is no issues with the soiurce data, This is because when the LSMW runs the screen only shows 14 records, when it gets to the 15th it over writes (even after using a page down).
10-10-2007 2:19 PM
hello andrew,
it is the limitation of LSMW as it can not use table control if item data is more.
you better try with BDC inwhich you loop your items once loop count reaches to 14 make OK_CODE "p+" so that it will go to next table control page and ready to accept entries above 14.
Regards,
Rushikesh
10-10-2007 10:46 PM
ARE U RECORDING IN LSMW OR USING STANDARD PROGRAM
IF U A RECORIDNG PLEASE RECORD THE PAGE UP AND ONCE LINE ITEM
14 PLEASE PAGE UP OKCODE
10-16-2007 2:39 PM
hi
here is my code can you advise please:
perform open_group.
loop at i_mat into wa_mat.
perform bdc_dynpro using 'SAPLCJWB' '0100'.
perform bdc_field using 'BDC_CURSOR'
'*PROJ-PSPID'.
perform bdc_field using 'BDC_OKCODE'
'=LETB'.
perform bdc_field using '*PROJ-PSPID'
wa_mat-proj_pspid.
perform bdc_dynpro using 'SAPLCJWB' '0901'.
perform bdc_field using 'BDC_CURSOR'
'PROJ-POST1'.
perform bdc_field using 'BDC_OKCODE'
'=P+'.
perform bdc_dynpro using 'SAPLCJWB' '0901'.
perform bdc_field using 'BDC_OKCODE'
'=BU'.
perform bdc_field using 'BDC_CURSOR'
'PRPS-POST1(02)'.
perform bdc_field using 'PRPS-STUFE(02)'
wa_mat-proj_hr_level.
perform bdc_field using 'RCWBS-IDENT(02)'
wa_mat-proj_element.
perform bdc_field using 'PRPS-POST1(02)'
wa_mat-proj_description.
perform bdc_transaction using 'CJ02'.
endloop.
perform close_group.
10-16-2007 2:39 PM
hi
here is my code can you advise please:
perform open_group.
loop at i_mat into wa_mat.
perform bdc_dynpro using 'SAPLCJWB' '0100'.
perform bdc_field using 'BDC_CURSOR'
'*PROJ-PSPID'.
perform bdc_field using 'BDC_OKCODE'
'=LETB'.
perform bdc_field using '*PROJ-PSPID'
wa_mat-proj_pspid.
perform bdc_dynpro using 'SAPLCJWB' '0901'.
perform bdc_field using 'BDC_CURSOR'
'PROJ-POST1'.
perform bdc_field using 'BDC_OKCODE'
'=P+'.
perform bdc_dynpro using 'SAPLCJWB' '0901'.
perform bdc_field using 'BDC_OKCODE'
'=BU'.
perform bdc_field using 'BDC_CURSOR'
'PRPS-POST1(02)'.
perform bdc_field using 'PRPS-STUFE(02)'
wa_mat-proj_hr_level.
perform bdc_field using 'RCWBS-IDENT(02)'
wa_mat-proj_element.
perform bdc_field using 'PRPS-POST1(02)'
wa_mat-proj_description.
perform bdc_transaction using 'CJ02'.
endloop.
perform close_group.
10-12-2007 2:49 PM
hi guys thanks for the response
Im using LSMW to record CJ02.
Can you provide an example how i can use the Loop logic and BDC please?
thanks for your help
Andy