Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

BDC - creating line items

All,

I have used SHDB to record transaction CJ02 . The code works fine until i try to load more than 14 lines then the 15 line is ovewritten. I am passing a next page statement but it is still ovewriting after 14 lines. Can someone please look at the code and advise what i need to do to get it to work please.

The following is the code that i am using :

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

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question