on 01-29-2009 7:46 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
got a workaround
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Thanks for the detiled reply.
But sorry we are using classic realestate and there are no BAPIs available for the same.
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi MVK,
Please eloberate on "LSMW 2/3'.
I dont uderstand what you meant.
Rgds
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Pls run LSMW 2/3...depends upon Condition Number. This one should give answer for your problem.
Thanks and Regards
MVK
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
15 | |
4 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.