cancel
Showing results for 
Search instead for 
Did you mean: 

LSMW to add distribution details to General contrcat

0 Kudos

Hi,

I have a requirement to create an LSMW to add distribution details to a RE general contract.

I could do it through a recording but this is working only if there is one condition for the contract.

The cases where there are more than one condition, i could not record the process of selecting the desired condition.

Plesae let me know if it is possible by any way to do an LSMW for adding distribution details for contract with more than one condition.

Rgds

Accepted Solutions (0)

Answers (8)

Answers (8)

0 Kudos

HI Janus Arcellana ,

The workaround used was as follows:

We did a recording of adding ond distribution detail to a contract.. The recording was not to directly add the condition and then add the object and then the percentage to be distriubuted. But in this case we did not directly add the condition but added one more activity to search for the condition type. As conditiontype will be unique it will return only one value and selected it.

So if we have to add distribution details for two contionds of a contract we need to have two lines for the same contract in the input file and then use it for the batch input and the lines needs to be in such a way that the condition with higher number shoud be the first in the file

ex: if condition 105 and 106 need to be added then the first line in the input file shoud have detail about 106 and then 105.

But the issue we faced was that as and when the condition was added the same gets sorted and sits in between.

Ex: if i have condition 105 and 107 already existing and you want to add conditon 106 .. as and when you add the condition it will sit in between 105 and 107.

so our LSMW does not work for contracts which has distribution details already existing.

Hope this was clear and it helps

Rgds,

Haranadh

Former Member
0 Kudos

Hi Haranadh,

Can you please elaborate more on how not to directly add the condition but to add the activity to search for the condition type?

The only way I know to add the the conditions is via "Insert new condition type" icon, and it is giving me problems with batch recording.

Cheers!

0 Kudos

got a workaround

Former Member
0 Kudos

what work around where you able to find? i currently need the the bapi BAPI_RE_CN_CHANGE, but we are using classic too..

i hope you can share to me the workaround that you were able to find..

Thanks in advance

0 Kudos

Hi,

Thanks for the detiled reply.

But sorry we are using classic realestate and there are no BAPIs available for the same.

Regards

Former Member
0 Kudos

Hi Haranadh,

Even for SAP Flexible Real Estate for Version 4.7, you have BAPI

BAPI_RE_CN_CREATE

BAPI_RE_CN_CHANGE

BAPI_RE_CN_GET_DETAIL you can use according you requirment

-


Regarding you question,

I understood that you are added distribution to existing contract, SO you can use

BAPI_RE_CN_CREATE Bapi

You can load distribution details to contract with more than one condition also..please see example below.

my input file to BAPI is ,txt file which is format to match BAPI structure

S500\0005750200011,1,S500,100

S500\0005750200011,2,CONTRACT,29991231,,20090101,20090101,,,6,0005750200011

S500\0005750200011,3,,

S500\0005750200011,4,,,,,,,,,,,,,,,,,08000290

S500\0005750200011,5,,,,,1,1,,,,,0,1,0,

S500\0005750200011,6,08000290,TR0600

S500\0005750200011,7,IM,S500/S50001/00000011

S500\0005750200011,7,IM,S500/S50001/00000012

S500\0005750200011,7,IM,S500/S50001/00000013

S500\0005750200011,7,IM,S500/S50001/00000014

S500\0005750200011,8,,,,,,,,,,,,,,,,,,08000290

Here

a. S500\0005750200011 is the object number..which will constant through out you record for given contract

b. 1

2

3

4...are index, every index represents 1 stucuture in BAPI

and if distribution details is 7 structure, repeat it depends upon you conditions.

Thanks

Veman.

0 Kudos

Hi MVK,

Please eloberate on "LSMW 2/3'.

I dont uderstand what you meant.

Rgds

Former Member
0 Kudos

Hi

Pls run LSMW 2/3...depends upon Condition Number. This one should give answer for your problem.

Thanks and Regards

MVK

0 Kudos

hi,

We are workign in 4.7 environment and i doubt any BAPIs are available for RE module in 4.7.

Is there any other possible way??

Edited by: haranadh Kanamarlapudi on Jan 29, 2009 4:39 PM

Former Member
0 Kudos

Hi,

As far as I know, then you need abap to do that updates since you are working with alvs....

Regards,

DAS

Former Member
0 Kudos

Hi Haranadh,

Since you are changing alvs the best thing for you to do is or to incorporate a bapi in the lsmw or to do a program using the change bapi contract.

I use for these questions the bapi BAPI_RE_CN_CHANGE!

Regards,

DAS