Skip to Content

LSMW to add distribution details to General contrcat

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

8 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 29, 2009 at 10:38 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 29, 2009 at 03:39 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 03, 2009 at 07:02 AM

    Hi

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

    Thanks and Regards

    MVK

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 03, 2009 at 01:41 PM

    Hi MVK,

    Please eloberate on "LSMW 2/3'.

    I dont uderstand what you meant.

    Rgds

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 06, 2009 at 05:28 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 24, 2009 at 07:43 AM

    Hi,

    Thanks for the detiled reply.

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

    Regards

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 04, 2009 at 09:54 AM

    got a workaround

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      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

  • Posted on Nov 12, 2009 at 05:10 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      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!

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.