Showing results for 
Search instead for 
Did you mean: 

LSMW BUS1503_CREATE -> BAPI_RE_BE_CREATE Problem with CO-PA rule

0 Kudos

I am creating object in lsmw using BAPI BAPI_RE_BE_CREATE, trying to create settlement rule via input structure in BAPI


and fill the table with data..




But I can not get it to work

When using the transaction REBDBU, and function to create settlement rule, I key in

KONTY = 'ROB' and PROZS = '100', after key ENTER, I pass trougt the determination, and after the accept the settlement rule receiver is filled...

But I do not have field KONTY in the BADI, how to create the rule in BAPI..

Best regards

Jørgen Jensen

Accepted Solutions (0)

Answers (2)

Answers (2)

Active Contributor
0 Kudos


please have also a look at SAP note 1151136 which contains useful information for using of BAPIs in RE-FX.

Regards, Franz

Former Member
0 Kudos

Hi Jørgen,

1. First to assign or create BE/BU manually, and save it.

2. Then use BAPI_RE_BE_GETDETAIL BAPI to find out how fields are poppulated in BAPI (CO Structure).

3. Now fill the create BAPI, by seeing GETDETAIL BAPI.. it should work.



0 Kudos

I tryed already this, but it still not work...

The problem is the receiver which is found in the dialog, and this is key 'EO' and then at number, this number is not the same but an internal number generated at runtime, therefore i need the bapi to triger the determination...

In the mean time I generated a report which running the same step as when generating the rule in dialog, then I first run the bapi-create then next step in my LSMW is my report...

Best Regards

Jørgen Jensen