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: 

LSMW - creating item lines

Former Member
0 Kudos

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

7 REPLIES 7

Former Member
0 Kudos

have u checked ur flat file values after 14th line item and also once check ur display converte data.

Thanks

Former Member
0 Kudos

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).

0 Kudos

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

Former Member
0 Kudos

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

0 Kudos

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.

0 Kudos

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.

Former Member
0 Kudos

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