Account Life cycle status change

Hi All,
I have a requirement that goes like this : In the account life cycle status field on the Account screen i have some Custom BP Role statuses. I have to change this status after the User saves the account.
I am new to Web UI and i do not know where to write the code to achieve this functionality. I am assuming we should be writing it in EH_ONSAVE of the BPHEADOVERVIEW of BP_HEAD component. Can we use the PARTNER_UPDATE BADI for this ? or any other BADI/ User Exit that you suggest ?

Hi,
You can use two BADIs to achieve this either ORDER_SAVE(Implement the badi) and write ur ststus change code over here or
BADI - CRM_ORDER_STATUS(Implement the badi) 
for status change use the below code to get it...
call function 'CRM_STATUS_CHANGE_EXTERN'
      exporting
        client              = sy-mandt
        objnr               = lv_order_guid
        user_status         = 'E0012'
        no_check            = 'X'
      exceptions
        object_not_found    = 1
        status_inconsistent = 2
        status_not_allowed  = 3
        others              = 4.
    if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
hope this solves ur problem.
Regards
Jegadesh Balan T

Similar Messages

  • Business Partner Roles and Account Life Cycle management in IC

    Hi all,
    We have IC agents creating prospects but also back office people (i.e. sales staff) creating prospects. Back office staff uses account life cycle management to identify the prospect role. However, I noticed that the business partner role (prospect in this case) is not visible within the IC - during account creation - because the role is used within the account life cycle role exclusion group.
    I can always enhance the IC component to remove the filter on the BP Role. but question I have is why does SAP IC remove the roles from the role drop down list in the IC account creation screen and how did other people get around this?
    Thanks,
    John

    I am also looking for an answer on this. How did other people who work on Interaction Center get around this? How do you create accounts when IC removes the BP roles mentioned in the Exclusion group config in SPRO ?

  • Account life cycle in CRM 2007

    Hello all,
    maybe it is a simple question, but I don't find an answer yet.
    How can I acctivate the account life cycle?? I found something about a config-tool, but I don't know what it is.
    Thanks a lot.
    M.Buchheim

    Hello:
    Because "The account life cycle is delivered as a hidden function and must be activated in the UI configuration tool"
    SO how can I acctivate the account life cycle?Can you tell me?
    How can I find    1097651 How to use the Account Life Cycle?
    thanks!

  • Account Life Cycle

    Hi folks,
    I am little bit confused for the exact scenario and functionality of account life cycle. Although I know that Account life cycle is used to define the BP roles's stage.
    I tried some scenarios:
    1. I went to the BP Role Exclusion group setting and created two role in BP role Exclusion group one is prospects & second is sold to party. After this allow a permitted transition from prospects to sold to party.
    2. Enable the life cycle stage.
    After completing this configuration, I could see that Prospects and Sold to party  BP role are missing from BP roles but that role could be chosen from life cycle stage.
    Till yet, every thing was OK.
    Then i created a prospect from Web ui by selecting the prospects role from life stage cycle.
    Then i tried to create the opportunity transaction and quotation transaction from that prospects and system allowed me to create quotation document with that prospects number... In actual the system asks for a sold to party detail not prospects.
    My 1st question is "As i did not convert the prospects into sold to party then Why the CRM system is allowing the entering a prospects into Quotation document?
    2nd Question is:   If it is allowing then Will it be possible to replicate the prospects into ECC system as sold to party role?
    3rd Question is : Could any body give a practical scenario where this functionality can be used?
    Even if i do not do any account life cycle configuration, I get the same result while creating the opportunity and quotation then what exactly is the use of account life cycle.
    Thanks in advance.
    Best regards,
    Dinesh.
    Message was edited by: Dinesh Sachdeva

    Hi Nash,
    Yes i know that there are many information available in SCN as well as sap help. I have read those information as well as i went on the sap note1097651 - How to use the Account Life Cycle.
    As far as theoretical things concern, all the information were there.
    But practically i could not get the solution of my problem that i mentioned in my earlier post.
    Could you please let me know the actual behavior of the CRM system after configure the Account life cycle and why it is necessary?
    Thanks & Regards
    Dinesh

  • Account Life cycle: Screen Control

    Hi experts.
    I want to:
    Display additional assignment blocks that should only be available if the account is in a certain life cycle stage.
    Hide assignment blocks that should not be available in certain life cycle stages.
    I have implemented the Business Add-In (BAdI) BADI_CRM_BP_UIU_VIEWS from the enhancement spot CRM_UIU_BP_ENHANCEMENT with the filter value BP_HEAD as COMPONENT. Within the implementation of the interface method IF_UIU_BP_VIEWS~DETERMINE_VIEWS i want to evaluate the current life cycle stage, and the corresponding role exclusion group, by the current instance of the custom controller BP_HEAD/Lifecycle. The custom controller should be retrieved from the referenced view controller passed in the parameter IR_VIEW_CONTROLLER by calling GET_CUSTOM_CONTROLLER() and providing the custom controller name BP_HEAD/Lifecycle.
    My problem is that I can´t locate the records containing current life cycle stage, and the corresponding role exclusion group.
    Anybody can hel me?
    Thanks in advance.
    Paco.

    Hi,
    You can use two BADIs to achieve this either ORDER_SAVE(Implement the badi) and write ur ststus change code over here or
    BADI - CRM_ORDER_STATUS(Implement the badi) 
    for status change use the below code to get it...
    call function 'CRM_STATUS_CHANGE_EXTERN'
          exporting
            client              = sy-mandt
            objnr               = lv_order_guid
            user_status         = 'E0012'
            no_check            = 'X'
          exceptions
            object_not_found    = 1
            status_inconsistent = 2
            status_not_allowed  = 3
            others              = 4.
        if sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        endif.
    hope this solves ur problem.
    Regards
    Jegadesh Balan T

  • Accounting entries for OTC life cycle

    Hi Guys,
    I was wondering if anyone of u can explain me the complete accounting entries that get credited and debited....right from booking an order till reconcilation (the whole OTC life cycle).
    Thanks & Regards,
    Ravi.

    All looks good but there can be exceptions if you introduce two variables:
    1. Invoicing Rules and Acconting Rules. These will affect your accouting in AR (Invoicing Rule will affect your Receivables and Accounting rule will affect the revenue accounting).
    2. If you are on R12, there is Customer acceptance process that will change the accounting on both COGS and Revenue accounting a little bit but the final entry remains the same as you mentioned.
    Forgot to mention: In someones blog on in Metalink's section where customer's documents are uploaded in knowledge base, I found a decent document that can help you with some more information.
    Thanks
    Nagamohan
    Edited by: Nagamohan on Oct 2, 2008 6:11 PM

  • Cust Account group field status got changed

    Hi Experts,
    One of my colleaged has executed the program : RFXPRA05.
    As a result of this some of the field in Account group (YSTP)  got its status changed
    Say for e.g Street 2 & Street 3 where optional entry before he executed the program : RFXPRA05,
    but once he has executed the program we found that both the fields got supressed.
    and some vendor master account group also got supressed..
    What is the function of the Program and where  it is used and why is it impacting the configuration for account group?
    Could anyone guide us how to restore the value back and what step we need to take.
    Kind Regards
    Ganesh Raj
    9632003325

    Hi,
    You have to find the changelogs for the configuration in the path
    SPRO>FINANCIAL ACCOUNTINGAR AND APCUSTOMER ACCOUNTSMASTERDATAPREPARATIONS FOR CREATING CUSTOMER MASTER DATADEFINE ACCOUNT GROUPS WITH SCREEN LAYOUT
    Go to the link and in the menu Utilities--Change logs. Here give the date range and find out the change logs. Using the change logs in teh recent past, you can do the correction.
    Also you can compare different systems for the table T077D using the transaction code SCMP. By using this, you can find out what is the change in configuration. You can restore it to original version. You can do the similar thing for vendor acct groups also
    Hope this helps.
    BTW...This program is change the field selection status of account groups.

  • BAPI_KANBAN_CHANGESTATUS - Control cycle correction (Change status and qty)

    Hi Experts,
    I have a requirement to upload the kanban status change and actual quantity to SAP either through PK31 or calling BAPI_KANBAN_CHANGESTATUS. In online transaction, I can change the status from "WAIT" to FULL or any other statuses and i also can put in the actual quantity, there is no issue as long as i entered through transaction. But when i try to do the same thing using BAPI, the system actually prompt me several restriction; I can only change the current status to the next status E.G.: current status is WAIT, i can only change it to EMPTY but not In Process or Full.
    My question is: Is there any other more flexible ways to change the statuses? If need to use this BAPI to change status WAIT to FULL (01 to 05), i need to do several BAPI calls before i can change it to FULL!
    And even i specified the change of actual quantity through the BAPI, it does not update into SAP (no matter how i tried). It strikes me that we could not possible change the actual quantity manually through BAPI, instead the actual quantity is only reflecting the available amount of the material in the stock (something like that). But the thing is i can change the actual quantity in PK31. To me, it seems like the online transaction bypasses some of the business checking.
    Anyone successfully changes the actual quantity through the same BAPI? shed some light please.
    Hopefully someone can answer my question, thanks.
    Regards
    Jay

    Hi,
    I use BDC to do this one, BAPI has too many checking which is not necessary in my case. However i also hit problem with BDC, which is the screen problem (Selecting row in table control). I jsut copied the transaction and made slight change to it, the BDC work like charm.
    Regards

  • Error while executing transport in HANA's application life-cycle management

    Hi everyone,
    we're currently developing our HANA-based software and would like to use HANA's application life-cycle management: transporting our product from one system to another. Everything seems to be set up correctly: two different systems, correct privileges, a product comprising delivery units comprising packages as well as a transport route between the systems. However, the transport always fails with the following error (example for a transport of a single DU):
    [imdbhdb][HDB][2014.05.07 15:10.01.404][TransportService][0] Transport (delta) has been started for route ID: 1020 (Deliver Unit Transport)
    [hanaserver][HDB][2014.05.07 15:10.08.323][Other][0] Get end export timestamp for DU name: PERSISTENCE
    [hanaserver][HDB][2014.05.07 15:10.08.501][Other][12] Unable to retrieve end export timestamp: ReferenceError: assignment to undeclared variable errText
    [imdbhdb][HDB][2014.05.07 15:10.12.402][TransportService][0] There will be 1 delivery units which will be transported.
    [imdbhdb][HDB][2014.05.07 15:10.12.895][TransportService][12] Failed for DU: PERSISTENCE Vendor: LO Error: HTTP request failed. Status: 500. Error: Unable to retrieve end export time stamp.
    [imdbhdb][HDB][2014.05.07 15:10.12.917][TransportService][12] TransportServiceError: Error occurred while performing the transport.
    Does anyone know how to resolve this?
    Thanks so much in advance,
    Lukas

    Hi everyone,
    I am sorry I bothered you with this error. It was caused by me since I forgot to export a top-level file. This file must have defined a variable errText which other DUs depended on and could therefore not be activated.
    Now, the transport works perfectly well and I'm really happy with it.
    All the best
    Lukas

  • Xcelsius 2008 - Life cycle management

    All,
    We have developed Xcelsius 2008 dashboards (by QAAWS) which are published in BO XI 3.0 Enterprise Infoview. How do we promote Xcelsius dashboard from development to production? Do Import wizard help on this?
    Below are the workflow that I think about:
    1) Create QAAWS in both development and production
    2) Create dashboard in Xcelsius 2008 in development through WSDL URL created in QAAWS
    3) Publish the report in BO 3.0 Infoview.
    4) Through Import Wizard, import dashboard from dev to prod.
    My question is how do we map the imported dashbaord in production to production WSDL URL.
    Please let me know the above approach for Xcelsius 2008 life cycle management is correct.
    Thanks
    Jai

    Thanks Jon. So all I need to change Web Service URL from:
    http://bodevserver:8080/dswsbobje/qaawsservices/queryasaservice
    to
    /dswsbobje/qaawsservices/FIAR?WSDL.
    But how will this change to production server WSDL URL when this report moves to prod by import wizard?
    Below is the work flow I did in QAAWS client:
    1) Created 2 URL one for Dev and another for Prod
    2) Created first URL in development through QAAWS client and deploy the same in prod by changing the prod server name.
    For Dev --> http://bodevserver:8080/dswsbobje/qaawsservices/FIAR?WSDL
    For Prod --> http://boprodserver:8080/dswsbobje/qaawsservices/FIAR?WSDL
    I am still confused how these above 2 links helpful in Xcelsius to do life cycle managemnet without any mannual interpretation.
    Thanks
    Jai

  • Life cycle of a web dynpro callable object

    What is the life cycle of a web dynpro callable object.
    Means when that Web dynpro callble object is used in a GP process which method of that component called first and what is the sequence of the method execution in that.
    Can anyone please explain me.

    Sorry ritu there was one mistake in the above two replies.
    The actual execution of the methods when a callable objects is get executed is as following
    1.component controller's  init() method
    2. interface's  init() method
    3.view's  init() method.
    4.interface's execute() method
    5.view's wDoModifyView() method.
    If you want to change anything on your view according to the change in the interfac's execute method.
    Then you have to do that coding in view's wDoModifyView() method.
    with regards
    shanto aloor.

  • CR correction document status changes back to created

    Hi Experts!
    Does anyone of you know why in ChaRM CR Correction document the status of the document (controlled with Actions) switches back to "created" from status "In development". This switch happened to me several times when handling a normal correction and I don't know why it does that.
    Usually I have done Action related task to the correction prior the status is swithced.
    I've tried to look for a solution in the forum and in help docs but I haven't come accross any. Please don't get me wrong, I do get the full maintenance cycle working for normal corrections. This status change is more of an annoyance than an error.
    We are using SolMan 4.0 SP09
    Thankful for all hints I can get!
    BR
    Auli

    I found a previous discussion from this forum with Avinash's advice to use note 919477. This is exactly what I was looking for.
    I'm recording it here just in case anyone ever needs to solve this in the future.
    BR
    Auli

  • Automatic Life Cycle Management in OWB?

    Hello,
    i actally read a white paper (Integrated ETL and Modeling) about OWB. In this paper is a chapter about Life Cycle Management. This chapter sounds to me, that OWB automaticly detects changes in the source or target system and made a message to the programmer.
    In my OWB (10g) I detect changes when I deploy my mappings. So it could happen, that i worked a few days at my mappings, not knowing that sources or targets have changed. That is extreme painful!
    Is it possible I have overlook this feature of OWB?
    Regards Franz

    HI,
    when you feel like source tables got some changes,jus try to import again,then it will show you,whether the souce changed or unchanged.
    Regards
    naren

  • Life Cycle Management BODI

    Hi folks,
    can anyone give me some hints how life cycle management is done in BODI?
    I want to connect a DB2 database via BODI with a BI. BI comes in 3 tier layer. Would you install 3 BODI server? And if so how do I "transport" the changes from one repository (Development) to another one (Production)?
    What is best practice for that?
    Unfortunately I didn't find any documents so far.
    Your help is very welcome.
    Best regards
    Michael

    This is what I have: https://wiki.sdn.sap.com:443/wiki/pages/viewpage.action?pageId=49414406

  • Designing issue in Adobe Life Cycle in interactive form

    Hi,
      My design in Adobe Life Cycle is like,I have to show one image in left corner of the page and giving header and footer
    by using Static Text from Library.I have created the designing and running this application ,it is running fine.But my requirement is i have  to show 50 pages and each page should have same header and footer.How can i do it ?
    And how i will break the pages in to 50 pages.
    Thanks & Regards
    Muna

    Open the PDF file
    Click Ctrl+D (which opens up properties diaglo box)
    Switch to Security Tab
    Change security method to No Security
    If it asks for password - provide the password
    Click Save
    Try to re-open the PDF to ensure that it does not ask you to enter password
    now open the PDF file using LC Designer
    HTH
    --Santosh
    http://about.me/nskumar

Maybe you are looking for