Skip to Content
0
Former Member
Dec 06, 2006 at 02:58 PM

BDC for KO02 Settlement Rule

417 Views

Hi all,

I've created a BDC for transaction KO02 that will add settlement rules to an existing order. Then I'm using the generated code to create a new program. I have two questions.

1. I need to validate against existing settlement rules. Is there a way to get this information, i.e. can I read the existing table somehow?

2. When I enter multiple entries, I noticed the following calls:

perform bdc_dynpro using 'SAPLKOBS' '0130'.
perform bdc_field using 'BDC_CURSOR' 'COBRB-BETRR(01)'.
perform bdc_field using 'BDC_OKCODE' '/00'.
perform bdc_field using 'COBRB-KONTY(01)' XXX'.
perform bdc_field using 'DKOBR-EMPGE(01)' 'XXX'.
perform bdc_field using 'COBRB-BETRR(01)' 'XXX'.
perform bdc_dynpro using 'SAPLKOBS' '0130'.
perform bdc_field using 'BDC_CURSOR' 'COBRB-BETRR(02)'.
perform bdc_field using 'BDC_OKCODE' '/00'.
perform bdc_field using 'COBRB-KONTY(02)' 'XXX'.
perform bdc_field using 'DKOBR-EMPGE(02)' 'XXX'.
perform bdc_field using 'COBRB-BETRR(02)' 'XXX'.
perform bdc_dynpro using 'SAPLKOBS' '0130'.

Do I need to increment those numbers myself? For example, COBRB-KONTY(01) -> COBRB-KONTY(02)?

Thanks!